/* ============================================
   TransaksiKita - Integrasi Pembayaran Digital
   Single CSS File - Professional Edition
   ============================================ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-100: #dbeafe;
    --primary-50: #eff6ff;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --purple: #8b5cf6;
    --purple-light: #ede9fe;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }

/* ── Utilities ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary { color: var(--primary) !important; }
.text-cyan { color: var(--accent) !important; }
.text-green { color: var(--success) !important; }

/* ── Floating Particles ── */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    padding: 12px 20px;
}

.btn-ghost:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.btn-ghost-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

.btn-glow {
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 2px 30px rgba(37, 99, 235, 0.5), 0 0 60px rgba(37, 99, 235, 0.15); }
}

.btn-glow-white {
    animation: btnGlowWhite 3s ease-in-out infinite;
}

@keyframes btnGlowWhite {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 2px 30px rgba(255, 255, 255, 0.4), 0 0 60px rgba(255, 255, 255, 0.1); }
}

/* ── Scroll Animations (set via JS for graceful degradation) ── */
[data-animate].will-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-left"].will-animate {
    transform: translateX(40px);
}

[data-animate="fade-right"].will-animate {
    transform: translateX(-40px);
}

[data-animate].animated {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) !important;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
}

.navbar-brand .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
}

.brand-accent {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.navbar-nav a:hover { color: var(--primary); }

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav a:hover::after { width: 100%; }

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Menu ── */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    padding-top: 90px;
    visibility: hidden;
    overflow: hidden;
}

.mobile-menu.active {
    right: 0;
    visibility: visible;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.mobile-menu-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-link {
    display: block;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-link:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 140px 0 0;
    background: linear-gradient(170deg, #f0f5ff 0%, var(--white) 30%, #f0fdff 60%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blobPulse 8s ease-in-out infinite alternate;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 235, 0.07);
    top: -100px;
    right: -150px;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.06);
    bottom: 10%;
    left: -150px;
    animation-delay: 3s;
}

.hero-blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.05);
    top: 40%;
    right: 20%;
    animation-delay: 5s;
}

@keyframes blobPulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(20px, -20px); }
}

.hero-grid-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 30%, transparent 70%);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.hero-content { flex: 1; max-width: 600px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    backdrop-filter: blur(4px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero h1 {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.15;
    color: var(--secondary);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-muted-hero {
    font-size: 28px;
    font-weight: 600;
    color: var(--gray-400);
    -webkit-text-fill-color: var(--gray-400);
    display: block;
    margin-top: 8px;
}

.hero-desc {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.trust-label {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-logos { display: flex; gap: 20px; }

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.trust-item i { color: var(--primary); font-size: 11px; }

/* Hero Visual */
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; max-width: 100%; }
.hero-card-wrapper { position: relative; max-width: 100%; }

.hero-floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    font-weight: 600;
    z-index: 5;
    border: 1px solid var(--gray-100);
}

.floating-badge-1 {
    top: -10px; left: -40px;
    color: var(--success);
    animation: floatBadge 4s ease-in-out infinite;
}

.floating-badge-1 i { color: var(--success); }

.floating-badge-2 {
    bottom: 60px; right: -30px;
    color: var(--primary);
    animation: floatBadge 4s ease-in-out infinite 1.5s;
}

.floating-badge-2 i { color: var(--warning); }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-card {
    width: 400px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    padding: 32px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    backdrop-filter: blur(10px);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(6,182,212,0.2), rgba(139,92,246,0.1));
    border-radius: calc(var(--radius-xl) + 1px);
    z-index: -1;
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.card-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
}

.card-logo-icon {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}

.status-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.hero-card-amount { text-align: center; margin-bottom: 24px; }
.hero-card-amount .currency {
    font-size: 12px; color: var(--gray-400); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 1px;
}
.hero-card-amount .value { font-size: 36px; font-weight: 800; color: var(--secondary); }

.hero-card-details { display: flex; flex-direction: column; gap: 2px; }

.hero-card-detail {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.hero-card-detail:hover { background: var(--gray-50); }
.hero-card-detail .label { color: var(--gray-500); display: flex; align-items: center; gap: 8px; }
.hero-card-detail .label i { font-size: 12px; color: var(--gray-400); }
.hero-card-detail .value { font-weight: 600; color: var(--gray-700); }

.hero-card-btn {
    margin-top: 20px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.card-security {
    text-align: center;
    margin-top: 14px;
    font-size: 11px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.card-security i { color: var(--success); }

/* ── Stats Bar ── */
.hero-stats-bar { position: relative; z-index: 2; }

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px 48px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 40px;
}

.stat-icon {
    width: 48px; height: 48px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-info { display: flex; flex-direction: column; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--secondary); line-height: 1.2; }
.stat-suffix { font-size: 22px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.stat-divider { width: 1px; height: 50px; background: var(--gray-200); flex-shrink: 0; }

/* ============================================
   FEATURES
   ============================================ */
.features { padding: 120px 0; background: var(--white); position: relative; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: var(--primary-50);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    border: 1px solid var(--primary-100);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-badge i { font-size: 11px; }

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 17px;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px);
}

.feature-icon-wrap {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-icon-wrap.blue { background: var(--primary-50); color: var(--primary); }
.feature-icon-wrap.cyan { background: #ecfeff; color: var(--accent); }
.feature-icon-wrap.green { background: var(--success-light); color: var(--success); }
.feature-icon-wrap.yellow { background: var(--warning-light); color: var(--warning); }
.feature-icon-wrap.red { background: var(--danger-light); color: var(--danger); }
.feature-icon-wrap.purple { background: var(--purple-light); color: var(--purple); }

.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--secondary); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; margin-bottom: 16px; }

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-8px);
}

.feature-card:hover .feature-link { opacity: 1; transform: translateX(0); }
.feature-link i { font-size: 11px; transition: var(--transition); }
.feature-link:hover i { transform: translateX(4px); }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: 120px 0;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.section-decoration {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.06);
}

.deco-circle-1 { width: 500px; height: 500px; top: -200px; right: -100px; }
.deco-circle-2 { width: 300px; height: 300px; bottom: -100px; left: -50px; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.step-card {
    text-align: center;
    padding: 0 24px;
    position: relative;
}

.step-number-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
}

.step-number {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-line {
    position: absolute;
    top: 50%;
    left: calc(50% + 32px);
    width: calc(100% - 16px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), rgba(37,99,235,0.2));
    z-index: 1;
}

.step-card:last-child .step-line { display: none; }

.step-icon {
    width: 72px; height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    font-size: 28px;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.step-card:hover .step-icon {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--accent);
}

.step-card h3 { font-size: 17px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ============================================
   PARTNERS / MARQUEE
   ============================================ */
.partners {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.partners-marquee {
    margin-top: 20px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 24px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}

.partner-item i { color: var(--primary); font-size: 16px; }
.partner-item:hover { border-color: var(--primary); background: var(--primary-50); }

/* ============================================
   OPEN API
   ============================================ */
.open-api {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.api-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.api-content h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.api-content p {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 28px;
}

.api-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }

.api-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
}

.api-feature i { color: var(--success); font-size: 16px; }

/* Code Window */
.code-window {
    background: #1e1e2e;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255,255,255,0.05);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.code-dots { display: flex; gap: 8px; }
.code-dots .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-family: 'JetBrains Mono', monospace;
}

.code-body { padding: 24px; overflow-x: auto; }

.code-body pre {
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #cdd6f4;
}

.code-keyword { color: #cba6f7; }
.code-var { color: #89b4fa; }
.code-func { color: #f9e2af; }
.code-string { color: #a6e3a1; }
.code-prop { color: #89dceb; }
.code-number { color: #fab387; }
.code-comment { color: #6c7086; font-style: italic; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: 120px 0; background: var(--white); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    padding: 36px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-100);
}

.testimonial-quote { color: var(--primary-100); font-size: 28px; margin-bottom: 16px; }
.testimonial-card p { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-bottom: 24px; }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.author-avatar {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info { flex: 1; }
.author-info strong { display: block; font-size: 14px; color: var(--secondary); }
.author-info span { font-size: 12px; color: var(--gray-400); }
.testimonial-rating { display: flex; gap: 2px; color: var(--warning); font-size: 12px; }

/* ============================================
   PRICING
   ============================================ */
.pricing { padding: 120px 0; background: var(--gray-50); }

.pricing-table-wrap {
    margin-bottom: 48px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.pricing-table { width: 100%; border-collapse: collapse; background: var(--white); }
.pricing-table thead { background: linear-gradient(135deg, var(--secondary), #1e3a5f); }

.pricing-table th {
    padding: 18px 28px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-table td {
    padding: 18px 28px;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.pricing-table td i { margin-right: 10px; font-size: 16px; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: var(--gray-50); }

.price-tag {
    display: inline-block;
    padding: 4px 16px;
    background: var(--primary-50);
    color: var(--primary);
    font-weight: 700;
    border-radius: var(--radius-full);
    font-size: 14px;
}

/* Settlement Grid */
.settlement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.settlement-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.settlement-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.settlement-card.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: var(--white);
}

.settlement-card.highlight h4,
.settlement-card.highlight .settlement-time { color: var(--white); }

.settlement-card.highlight .settlement-icon {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.settlement-icon {
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 20px;
}

.settlement-card h4 { font-size: 16px; font-weight: 700; color: var(--secondary); margin-bottom: 6px; }
.settlement-time { font-size: 14px; color: var(--gray-500); font-weight: 500; }

/* Plan Cards */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.plan-card {
    padding: 40px 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    position: relative;
}

.plan-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }

.plan-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--primary);
    transform: scale(1.04);
}

.plan-card.popular:hover { transform: scale(1.04) translateY(-4px); }

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.plan-header h3 { font-size: 22px; font-weight: 700; color: var(--secondary); margin-bottom: 6px; }
.plan-header p { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }

.plan-price {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.plan-price .amount { font-size: 42px; font-weight: 800; color: var(--secondary); }
.plan-price .period { font-size: 15px; color: var(--gray-500); font-weight: 500; }

.plan-features { margin-bottom: 32px; }

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-600);
}

.plan-features li i {
    color: var(--success);
    font-size: 12px;
    width: 20px; height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-light);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #0c2340 40%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.cta-decoration {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.cta-blob-1 {
    width: 400px; height: 400px;
    background: rgba(37,99,235,0.2);
    top: -100px; right: -50px;
    animation: blobPulse 8s ease-in-out infinite alternate;
}

.cta-blob-2 {
    width: 300px; height: 300px;
    background: rgba(6,182,212,0.15);
    bottom: -80px; left: -50px;
    animation: blobPulse 8s ease-in-out infinite alternate 3s;
}

.cta-content { text-align: center; position: relative; z-index: 1; }

.cta h2 {
    font-size: 44px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta p {
    font-size: 17px;
    color: var(--gray-400);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 72px 0 32px;
    background: var(--secondary);
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-about { max-width: 340px; }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
}

.footer-brand .brand-accent {
    color: var(--primary-light);
    -webkit-text-fill-color: var(--primary-light);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    color: var(--gray-400);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 15px;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer ul li { margin-bottom: 10px; }

.footer ul a {
    font-size: 14px;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer ul a:hover { color: var(--white); padding-left: 4px; }

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.footer-contact li i { color: var(--primary-light); font-size: 14px; width: 18px; }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--gray-500); transition: var(--transition); font-size: 13px; }
.footer-links a:hover { color: var(--white); }

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.floating-wa {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px; height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: waFloat 3s ease-in-out infinite;
}

.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes waFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 96px;
    width: 44px; height: 44px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    border: 1px solid var(--gray-200);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero h1 { font-size: 42px; }
    .text-muted-hero { font-size: 22px; }
    .hero .container { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-desc { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-card { width: 360px; }
    .stats-grid { flex-wrap: wrap; padding: 28px 24px; gap: 20px; }
    .stat-divider { display: none; }
    .stat-item { padding: 0 20px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .step-line { display: none; }
    .api-grid { grid-template-columns: 1fr; gap: 48px; }
    .api-content { text-align: center; }
    .api-features { align-items: center; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .settlement-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 64px; }
    .plans-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .plan-card.popular { transform: none; }
    .plan-card.popular:hover { transform: translateY(-4px); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
    .navbar-nav, .navbar-actions { display: none; }
    .mobile-toggle { display: flex; }
    .hero { padding: 120px 0 0; }
    .hero h1 { font-size: 32px; }
    .text-muted-hero { font-size: 18px; }
    .hero-desc { font-size: 15px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-card { width: 100%; max-width: 340px; padding: 24px; }
    .hero-card-amount .value { font-size: 28px; }
    .hero-floating-badge { display: none; }
    .hero-blob-1 { width: 300px; height: 300px; right: -100px; }
    .hero-blob-2 { width: 250px; height: 250px; left: -100px; }
    .hero-blob-3 { width: 200px; height: 200px; }
    .trust-logos { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .section-header h2 { font-size: 28px; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .code-window { max-width: 100%; }
    .code-body { padding: 16px; overflow-x: auto; }
    .code-body pre { font-size: 11px; white-space: pre; word-break: normal; }
    .code-body pre code { white-space: pre; }
    .api-content h2 { font-size: 28px; }
    .cta h2 { font-size: 28px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta { padding: 80px 0; }
    .pricing-table th, .pricing-table td { padding: 14px 16px; font-size: 13px; }
    .settlement-grid { grid-template-columns: 1fr; }
    .stats-grid { padding: 24px 16px; gap: 16px; }
    .stat-item { padding: 8px 12px; }
    .stat-icon { width: 40px; height: 40px; font-size: 16px; }
    .stat-number { font-size: 24px; }
    .stat-label { font-size: 11px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .footer-links { justify-content: center; }
    .floating-wa { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 22px; }
    .back-to-top { right: 80px; bottom: 20px; }
    .open-api { padding: 80px 0; }
    .features { padding: 80px 0; }
    .partners { padding: 60px 0; }
    .testimonials { padding: 80px 0; }
    .pricing { padding: 80px 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 24px; }
    .text-muted-hero { font-size: 16px; }
    .hero-badge { font-size: 11px; padding: 6px 12px; }
    .hero-card { max-width: 100%; padding: 20px; }
    .hero-card-amount .value { font-size: 24px; }
    .stat-number { font-size: 20px; }
    .stat-item { padding: 6px 8px; }
    .stat-icon { width: 36px; height: 36px; font-size: 14px; }
    .stats-grid { padding: 20px 12px; flex-direction: column; gap: 12px; }
    .stat-item { justify-content: center; }
    .section-header h2 { font-size: 24px; }
    .feature-card { padding: 24px; }
    .api-content h2 { font-size: 24px; }
    .code-body { padding: 12px; }
    .code-body pre { font-size: 10px; }
    .cta h2 { font-size: 24px; }
    .cta p { font-size: 14px; }
    .btn-lg { padding: 14px 24px; font-size: 14px; }
    .pricing-table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
    .footer-about { text-align: center; }
    .footer-social { justify-content: center; }
    .hero .container { padding-bottom: 40px; }
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-body {
    font-family: var(--font-main);
    background: var(--gray-50);
    min-height: 100vh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    flex: 0 0 480px;
    background: linear-gradient(150deg, var(--secondary) 0%, #0c2d4d 40%, #0f3460 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 70%);
    border-radius: 50%;
}

.auth-left::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
    border-radius: 50%;
}

.auth-left-content {
    padding: 48px;
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 60px;
}

.auth-brand .logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.auth-brand .brand-accent {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.auth-left-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-left-hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.auth-left-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 360px;
}

.auth-left-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.auth-feature-item i {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--accent);
    flex-shrink: 0;
}

.auth-left-footer {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    padding-top: 24px;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
}

.auth-form-header {
    margin-bottom: 32px;
}

.auth-form-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 6px;
}

.auth-form-header p {
    font-size: 14px;
    color: var(--gray-500);
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert i { font-size: 16px; flex-shrink: 0; }

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    color: var(--gray-400);
    font-size: 12px;
}

.form-group input {
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-main);
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-password-wrap {
    position: relative;
}

.input-password-wrap input {
    width: 100%;
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

.toggle-password:hover { color: var(--primary); }

.auth-footer {
    margin-top: 28px;
    text-align: center;
}

.auth-footer p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-400) !important;
    font-weight: 500 !important;
}

.back-home:hover { color: var(--gray-600) !important; }

/* Auth Responsive */
@media (max-width: 960px) {
    .auth-left { display: none; }
    .auth-right { padding: 32px 20px; }
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-body {
    font-family: var(--font-main);
    background: var(--gray-50);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Sidebar */
/* ============================================
   Sidebar — Professional Corporate Design
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: linear-gradient(180deg, #1e3a5f 0%, #172d4d 100%);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.developer-sidebar {
    background: #110c1f;
}

/* ── Brand Header ── */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-brand .logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(59,130,246,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sidebar-brand:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59,130,246,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.sidebar-brand .logo-icon.dev {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 4px 16px rgba(139,92,246,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

.brand-info {
    display: flex;
    flex-direction: column;
}
.brand-name {
    font-size: 17px;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.brand-accent {
    color: #38bdf8;
    -webkit-text-fill-color: #38bdf8;
}
.developer-sidebar .brand-accent {
    color: #a78bfa;
    -webkit-text-fill-color: #a78bfa;
}
.brand-sub {
    font-size: 10px;
    font-weight: 500;
    color: #475569;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

.sidebar-logo-img {
    width: 38px; height: 38px;
    border-radius: 10px;
    object-fit: contain;
    border: none;
    outline: none;
}

.navbar-logo-img {
    width: 34px; height: 34px;
    object-fit: contain;
}

.auth-logo-img {
    width: 34px; height: 34px;
    object-fit: contain;
}

.sidebar-close {
    display: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 6px 8px;
    transition: all 0.15s;
}
.sidebar-close:hover { color: #f1f5f9; background: rgba(255,255,255,0.1); }

.sidebar-collapse-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 6px 9px;
    transition: all 0.15s;
    flex-shrink: 0;
}
.sidebar-collapse-btn:hover { color: #f1f5f9; background: rgba(255,255,255,0.1); }
.sidebar-collapsed .sidebar-collapse-btn {
    margin: 0 auto;
}

/* ── User Profile Card ── */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin: 0 14px 6px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.sidebar-user:hover {
    background: rgba(255,255,255,0.05);
}

.sidebar-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.sidebar-avatar.dev {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.sidebar-user-info strong {
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.user-email {
    font-size: 11px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.role-badge.merchant {
    background: rgba(59,130,246,0.12);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,0.15);
}

.role-badge.developer {
    background: rgba(139,92,246,0.12);
    color: #a78bfa;
    border: 1px solid rgba(139,92,246,0.15);
}

/* ── Navigation ── */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 6px 14px 12px;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }

.nav-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 18px 10px 8px;
}
.nav-section-title i {
    font-size: 9px;
    opacity: 0.6;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    border-radius: 10px;
    transition: all 0.15s ease;
    margin-bottom: 2px;
    position: relative;
    text-decoration: none;
}

.sl-icon {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.sl-icon i {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    transition: color 0.15s;
}

.sidebar-link:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.04);
}
.sidebar-link:hover .sl-icon {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
}
.sidebar-link:hover .sl-icon i { color: #94a3b8; }

.sidebar-link.active {
    color: #f1f5f9;
    background: rgba(59,130,246,0.15);
    font-weight: 600;
    border-left: 3px solid #3b82f6;
    margin-left: -3px;
}
.sidebar-link.active .sl-icon {
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(6,182,212,0.15));
    border-color: rgba(59,130,246,0.2);
    box-shadow: 0 2px 8px rgba(59,130,246,0.15);
}
.sidebar-link.active .sl-icon i { color: #60a5fa; }

.developer-sidebar .sidebar-link.active {
    background: rgba(139,92,246,0.1);
}
.developer-sidebar .sidebar-link.active .sl-icon {
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(99,102,241,0.15));
    border-color: rgba(139,92,246,0.2);
    box-shadow: 0 2px 8px rgba(139,92,246,0.15);
}
.developer-sidebar .sidebar-link.active .sl-icon i { color: #a78bfa; }

/* ── Sidebar Footer ── */
.sidebar-footer {
    padding: 14px 14px 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.sidebar-switch-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.sidebar-switch-btn .switch-arrow {
    font-size: 10px;
    margin-left: auto;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s;
}
.sidebar-switch-btn:hover .switch-arrow {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-switch-btn.merchant-switch {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.1);
    color: #34d399;
}
.sidebar-switch-btn.merchant-switch:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

.sidebar-switch-btn.dev-switch {
    background: rgba(167,139,250,0.06);
    border: 1px solid rgba(167,139,250,0.1);
    color: #a78bfa;
}
.sidebar-switch-btn.dev-switch:hover {
    background: rgba(167,139,250,0.12);
    border-color: rgba(167,139,250,0.25);
}

.sidebar-switch-btn i:first-child {
    font-size: 13px;
}

.sidebar-notif-badge {
    margin-left: auto;
    min-width: 20px; height: 20px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

.sidebar-footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #334155;
    padding: 0 4px;
}
.status-dot {
    width: 7px; height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(16,185,129,0.5);
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(16,185,129,0.5); }
    50% { box-shadow: 0 0 12px rgba(16,185,129,0.8); }
}

/* ── Sidebar Collapsed State (desktop) ── */
.sidebar-collapsed .sidebar {
    width: 68px;
}
.sidebar-collapsed .dashboard-main {
    margin-left: 68px;
}
.sidebar-collapsed .sidebar-header {
    padding: 16px 14px 12px;
    justify-content: center;
}
.sidebar-collapsed .sidebar-brand .brand-info,
.sidebar-collapsed .sidebar-brand .sidebar-logo-img + .brand-info {
    display: none;
}
.sidebar-collapsed .sidebar-brand .logo-icon,
.sidebar-collapsed .sidebar-brand .sidebar-logo-img {
    width: 36px; height: 36px;
}
.sidebar-collapsed .sidebar-user {
    padding: 10px 8px;
    margin: 0 8px 6px;
    justify-content: center;
}
.sidebar-collapsed .sidebar-user-info,
.sidebar-collapsed .sidebar-user .role-badge {
    display: none;
}
.sidebar-collapsed .sidebar-avatar {
    width: 34px; height: 34px;
    font-size: 11px;
}
.sidebar-collapsed .sidebar-nav {
    padding: 6px 8px 12px;
}
.sidebar-collapsed .nav-section-title {
    justify-content: center;
    padding: 14px 0 6px;
}
.sidebar-collapsed .nav-section-title span,
.sidebar-collapsed .nav-section-title i + span {
    display: none;
}
/* Hide text content in nav-section-title but keep the line as separator */
.sidebar-collapsed .nav-section-title {
    font-size: 0;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 4px;
}
.sidebar-collapsed .nav-section-title i {
    display: none;
}
.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 9px 8px;
    gap: 0;
}
.sidebar-collapsed .sidebar-link > span {
    display: none;
}
.sidebar-collapsed .sidebar-link .sidebar-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    font-size: 8px;
    padding: 0 3px;
}
.sidebar-collapsed .sl-icon {
    width: 36px; height: 36px;
}
.sidebar-collapsed .sidebar-footer {
    padding: 10px 8px 12px;
}
.sidebar-collapsed .sidebar-switch-btn span,
.sidebar-collapsed .sidebar-switch-btn .switch-arrow {
    display: none;
}
.sidebar-collapsed .sidebar-switch-btn {
    justify-content: center;
    padding: 10px 8px;
}
.sidebar-collapsed .sidebar-footer-status span {
    display: none;
}
.sidebar-collapsed .sidebar-footer-status {
    justify-content: center;
}
.sidebar-collapsed .sidebar-close {
    display: none;
}

/* Tooltip on hover when collapsed */
.sidebar-collapsed .sidebar-link {
    position: relative;
}
.sidebar-collapsed .sidebar-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none;
}

/* Main */
.dashboard-main {
    margin-left: 240px;
    min-height: 100vh;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #e9ecf1;
    position: sticky;
    top: 0;
    z-index: 50;
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-title-group {
    display: flex;
    flex-direction: column;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 15px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}

.sidebar-toggle:hover { background: #f1f5f9; color: #1e293b; }

.sidebar-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 15px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}
.sidebar-mobile-toggle:hover { background: #f1f5f9; color: #1e293b; }

.dashboard-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.dashboard-subtitle {
    font-size: 12.5px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.3;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: 0.3px;
}

.header-badge.online {
    background: #ecfdf5;
    color: #059669;
}

.header-badge.online i { font-size: 8px; }

.header-badge.dev-badge {
    background: #f3f0ff;
    color: #7c3aed;
    border: 1px solid #ede9fe;
}

/* Mode Switcher (Production/Sandbox) - Duitku style */
.mode-switcher {
    position: relative;
}

.mode-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: all 0.2s;
    white-space: nowrap;
    background: #fff;
}

.mode-badge.mode-production {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.mode-badge.mode-sandbox {
    border: 2px solid #f59e0b;
    color: #d97706;
}

.mode-badge:hover {
    opacity: 0.85;
}

.mode-badge > i:first-child {
    font-size: 13px;
}

.mode-chevron {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.2s;
}

.mode-switcher.open .mode-chevron {
    transform: rotate(180deg);
}

.mode-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    overflow: hidden;
    animation: modeDropIn 0.15s ease;
}

@keyframes modeDropIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.mode-switcher.open .mode-dropdown {
    display: block;
}

.mode-dropdown-title {
    padding: 10px 16px 6px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.mode-dropdown form {
    padding: 0 6px 6px;
}

.mode-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    text-align: left;
    transition: background 0.15s;
}

.mode-option:hover {
    background: #f1f5f9;
}

.mode-option span {
    font-weight: 500;
}

.mode-option.active span {
    font-weight: 600;
    color: #1e293b;
}

.mode-option > i {
    color: var(--primary);
    font-size: 13px;
}

/* Header Right Controls */
.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    position: relative;
    background: transparent;
    border: 1px solid #e2e8f0;
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
    transition: all 0.15s;
    text-decoration: none;
}

.header-icon-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.notif-badge {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 18px; height: 18px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    line-height: 1;
}

.notif-dot {
    position: absolute;
    top: 7px; right: 7px;
    width: 7px; height: 7px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 4px 12px 4px 4px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
}

.profile-trigger:hover, .profile-trigger.active {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.profile-avatar {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-avatar.dev {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.profile-trigger-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.profile-trigger-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
}

.profile-trigger-role {
    font-size: 10.5px;
    color: #94a3b8;
}

.profile-chevron {
    font-size: 9px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.profile-trigger.active .profile-chevron {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    overflow: hidden;
}

.profile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
}

.profile-menu-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-menu-avatar.dev {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.profile-menu-header strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
}

.profile-menu-header span {
    font-size: 11.5px;
    color: #94a3b8;
}

.profile-menu-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 2px 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    transition: all 0.12s;
}

.profile-menu-item i {
    width: 18px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.profile-menu-item:hover {
    background: #f8fafc;
    color: #3b82f6;
}

.profile-menu-item:hover i { color: #3b82f6; }

.profile-menu-item.logout { color: var(--danger); }
.profile-menu-item.logout i { color: var(--danger); }
.profile-menu-item.logout:hover { background: var(--danger-light); }

.dashboard-content {
    padding: 32px;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    min-width: 0;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-card-icon.blue { background: var(--primary-50); color: var(--primary); }
.stat-card-icon.green { background: var(--success-light); color: var(--success); }
.stat-card-icon.cyan { background: #ecfeff; color: var(--accent); }
.stat-card-icon.yellow { background: var(--warning-light); color: var(--warning); }
.stat-card-icon.purple { background: var(--purple-light); color: var(--purple); }

.stat-card-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.stat-card-label { font-size: 12px; color: var(--gray-500); font-weight: 500; }
.stat-card-value { font-size: 20px; font-weight: 800; color: var(--secondary); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Dashboard Sections */
.dashboard-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i { color: var(--primary); font-size: 15px; }

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.quick-action-btn i { font-size: 22px; color: var(--primary); }

.quick-action-btn:hover {
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.dashboard-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.dashboard-table th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-100);
    white-space: nowrap;
}

.dashboard-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.dashboard-table tr:last-child td { border-bottom: none; }
.dashboard-table tr:hover td { background: var(--gray-50); }

.dashboard-table code {
    padding: 2px 8px;
    background: var(--gray-100);
    border-radius: 4px;
    font-size: 12px;
    color: var(--gray-600);
}

.empty-state {
    text-align: center;
    padding: 48px 16px !important;
    color: var(--gray-400) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-state i { font-size: 32px; }

.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.status-badge.success { background: var(--success-light); color: var(--success); }
.status-badge.pending { background: var(--warning-light); color: var(--warning); }
.status-badge.failed { background: var(--danger-light); color: var(--danger); }

/* System Info */
.system-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.sys-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

.sys-info-card i {
    font-size: 18px;
    color: var(--primary);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sys-label { display: block; font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.sys-value { display: block; font-size: 13px; color: var(--secondary); font-weight: 600; }

/* Dashboard Responsive */

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .stats-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .system-info-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-content { padding: 24px; }
    .dashboard-title { font-size: 18px; }
}

@media (max-width: 768px) {
    /* Sidebar mobile */
    .sidebar { transform: translateX(-100%); width: 240px !important; }
    .sidebar.open { transform: translateX(0); box-shadow: 8px 0 30px rgba(0,0,0,0.3); }
    .sidebar-close { display: flex; }
    .sidebar-collapse-btn { display: none; }
    .sidebar-mobile-toggle { display: flex; }
    .sidebar-collapsed .sidebar { width: 240px !important; }
    .sidebar-collapsed .dashboard-main { margin-left: 0; }

    /* Main layout */
    .dashboard-main { margin-left: 0 !important; }
    .dashboard-header { padding: 0 16px; height: 56px; }
    .dashboard-content { padding: 16px; }

    /* Header mobile */
    .profile-trigger-info { display: none; }
    .profile-trigger { padding: 4px; border-radius: 10px; }
    .profile-chevron { display: none; }
    .dashboard-title { font-size: 16px; }
    .dashboard-subtitle { font-size: 11px; }
    .header-icon-btn { width: 34px; height: 34px; font-size: 13px; border-radius: 8px; }

    /* Stats cards — 2 cols on tablet */
    .stats-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; gap: 10px; }
    .stat-card-icon { width: 38px; height: 38px; font-size: 14px; }
    .stat-card-value { font-size: 17px; }
    .stat-card-label { font-size: 11px; }

    /* Quick actions */
    .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .quick-action-btn { padding: 16px 12px; font-size: 12px; gap: 8px; }
    .quick-action-btn i { font-size: 18px; }

    /* System info */
    .system-info-grid { grid-template-columns: 1fr; }

    /* Dashboard sections */
    .dashboard-section { padding: 16px; margin-bottom: 16px; border-radius: 12px; }
    .section-title { font-size: 14px; margin-bottom: 14px; }

    /* Table responsive */
    .dashboard-table th { padding: 10px 12px; font-size: 11px; }
    .dashboard-table td { padding: 10px 12px; font-size: 12.5px; }
    .table-wrap { margin: 0 -16px; padding: 0 16px; }

    /* Alert */
    .alert { font-size: 12px; padding: 10px 14px; }

    /* Modal */
    .modal-box { margin: 16px; width: calc(100% - 32px); max-width: 100%; }
    .modal-box.modal-sm { width: calc(100% - 32px); }

    /* Buttons */
    .btn { font-size: 12.5px; padding: 8px 14px; }
    .btn-sm { font-size: 11px; padding: 5px 10px; }

    /* Notif */
    .notif-item { padding: 12px 14px; gap: 10px; }
    .notif-icon { width: 32px; height: 32px; min-width: 32px; font-size: 12px; }
    .notif-content strong { font-size: 13px; }
    .notif-content p { font-size: 12px; }
    .notif-time { font-size: 11px; }

    /* FAQ */
    .faq-question span { font-size: 13px; }
    .faq-answer p { font-size: 12.5px; }
}

@media (max-width: 480px) {
    .dashboard-content { padding: 12px; }
    .dashboard-header { padding: 0 12px; height: 52px; }

    /* Stats cards — 1 col on mobile */
    .stats-cards { grid-template-columns: 1fr; gap: 8px; }
    .stat-card { padding: 12px 14px; }
    .stat-card-value { font-size: 16px; }

    /* Quick actions — 2 cols even on small mobile */
    .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .quick-action-btn { padding: 14px 8px; font-size: 11px; }
    .quick-action-btn i { font-size: 16px; }

    /* Header */
    .header-badge { display: none; }
    .mode-badge { font-size: 11px; padding: 4px 10px; }
    .dashboard-title { font-size: 15px; }
    .dashboard-subtitle { display: none; }
    .sidebar-toggle { padding: 6px 8px; font-size: 14px; }
    .dashboard-header-left { gap: 10px; }

    /* Section */
    .dashboard-section { padding: 14px; margin-bottom: 12px; border-radius: 10px; }
    .section-title { font-size: 13px; margin-bottom: 12px; }
    .section-title i { font-size: 12px; }

    /* Table ultra-compact */
    .dashboard-table th { padding: 8px 10px; font-size: 10px; letter-spacing: 0.3px; }
    .dashboard-table td { padding: 8px 10px; font-size: 11.5px; }
    .dashboard-table code { font-size: 10px; padding: 2px 6px; }
    .status-badge { font-size: 10px; padding: 2px 8px; }
    .method-badge { font-size: 10px; }
    .table-wrap { margin: 0 -14px; padding: 0 14px; }

    /* Empty state */
    .empty-state { padding: 32px 12px !important; }
    .empty-state i { font-size: 24px; }

    /* Section header row stack */
    .section-header-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .section-header-row .btn { width: 100%; justify-content: center; }

    /* Filter bar mobile */
    .filter-bar { gap: 10px; }
    .filter-group label { font-size: 11px; }
    .filter-group select,
    .filter-group input { font-size: 12.5px; padding: 8px 10px; }

    /* Alert compact */
    .alert { font-size: 11.5px; padding: 10px 12px; border-radius: 10px; }
    .alert i { font-size: 12px; }

    /* Form compact */
    .form-group label { font-size: 12px; }
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 13px; padding: 10px 12px; }

    /* Profile menu */
    .profile-menu { width: calc(100vw - 24px); right: -8px; }

    /* Settings grid */
    .settings-card { padding: 16px; border-radius: 12px; }
    .settings-card-header h3 { font-size: 14px; }
    .settings-card-header p { font-size: 11.5px; }
    .settings-card-icon { width: 36px; height: 36px; font-size: 14px; }

    /* Info steps compact */
    .info-step { padding: 10px 12px; gap: 10px; }
    .info-step-num { width: 28px; height: 28px; font-size: 11px; }
    .info-step strong { font-size: 12.5px; }
    .info-step p { font-size: 11.5px; }
}

/* ============================================
   MERCHANT MANAGEMENT & SETTINGS PAGES
   ============================================ */

/* Section Header Row */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header-row .section-title { margin-bottom: 0; }

.btn-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-link:hover { gap: 10px; }

.section-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Table Search */
.table-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    transition: var(--transition);
}

.table-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    background: var(--white);
}

.table-search i { font-size: 13px; color: var(--gray-400); }

.table-search input {
    border: none;
    background: none;
    font-size: 13px;
    color: var(--secondary);
    width: 200px;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.table-search input::placeholder { color: var(--gray-400); }

/* Stats 3-col */
.stats-cards-3 { grid-template-columns: repeat(3, 1fr); }

/* Merchant Cell */
.merchant-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.merchant-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.merchant-cell .text-muted {
    display: block;
    font-size: 11px;
    color: var(--gray-400);
}

/* Action Buttons */
.action-btns {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: var(--gray-500);
    transition: var(--transition);
}

.action-btn:hover { border-color: var(--gray-300); }
.action-btn.view-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-50); }
.action-btn.edit-btn:hover { color: var(--warning); border-color: var(--warning); background: var(--warning-light); }
.action-btn.activate-btn:hover { color: var(--success); border-color: var(--success); background: var(--success-light); }
.action-btn.suspend-btn:hover { color: var(--warning); border-color: var(--warning); background: var(--warning-light); }
.action-btn.delete-btn:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-light); }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0,0,0,0.2);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show .modal-box {
    transform: scale(1) translateY(0);
}

.modal-box.modal-sm { max-width: 400px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h3 i { color: var(--primary); font-size: 15px; }
.modal-header.danger h3 i { color: var(--danger); }

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: var(--transition);
}

.modal-close:hover { color: var(--secondary); }

.modal-body {
    padding: 24px;
}

.confirm-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Detail Grid */
.detail-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.detail-avatar {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
}

.detail-info { width: 100%; }

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-50);
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
}

.detail-value {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 500;
    text-align: right;
}

.detail-value code {
    background: var(--gray-50);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 6px;
}

.form-group label i {
    width: 18px;
    color: var(--gray-400);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--secondary);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-600);
}

.btn-secondary:hover { background: var(--gray-200); }

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

.btn-outline {
    background: var(--white);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16,185,129,0.2);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.2);
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.settings-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    min-width: 0;
}

.settings-card:hover { box-shadow: var(--shadow-md); }

.settings-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.settings-card-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.settings-card-icon.purple { background: var(--purple-light); color: var(--purple); }
.settings-card-icon.blue { background: var(--primary-50); color: var(--primary); }
.settings-card-icon.cyan { background: #ecfeff; color: var(--accent); }
.settings-card-icon.green { background: var(--success-light); color: var(--success); }

.settings-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2px;
}

.settings-card-header p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

/* File Upload */
.file-upload-area {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--gray-50);
}

.file-preview {
    width: 80px; height: 80px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.file-preview i {
    font-size: 24px;
    color: var(--gray-300);
}

.file-preview span {
    font-size: 10px;
    color: var(--gray-400);
    margin-top: 4px;
}

.file-preview-sm {
    width: 48px; height: 48px;
}

.file-upload-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-hint {
    font-size: 11px;
    color: var(--gray-400);
}

/* Color Input */
.color-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input {
    width: 42px !important;
    height: 42px !important;
    padding: 2px !important;
    border: 2px solid var(--gray-200) !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer;
}

.color-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px !important;
    width: auto !important;
    flex: 1;
}

/* Profile Display */
.profile-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.profile-display-avatar {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

.profile-display-avatar.dev {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}

/* Settings Responsive */
@media (max-width: 1024px) {
    .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .stats-cards-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stats-cards-3 .stat-card { flex-direction: column; text-align: center; padding: 12px 8px; gap: 6px; }
    .stats-cards-3 .stat-card-icon { width: 32px; height: 32px; font-size: 13px; }
    .stats-cards-3 .stat-card-value { font-size: 18px; }
    .stats-cards-3 .stat-card-label { font-size: 10px; }
    .table-search input { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .action-btns { flex-wrap: wrap; gap: 6px; }
    .action-btns .btn-sm { flex: 1; min-width: 0; justify-content: center; }
    .settings-card-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
    .file-upload-area { flex-direction: column; text-align: center; }
}

/* ── GoMerchant Page ── */
.gomerchant-info {
    padding: 1.5rem 0 0;
}

.gomerchant-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gomerchant-info-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.gomerchant-info-item label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gomerchant-info-item label i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.gomerchant-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
    word-break: break-all;
}

.gomerchant-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn-danger-outline {
    background: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.input-group {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.8rem;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap;
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.7rem 0.8rem;
    color: #1e293b;
    font-size: 0.95rem;
    outline: none;
}

.otp-notice {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #ecfeff;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}

.otp-notice i {
    font-size: 1.3rem;
    color: var(--accent);
}

.otp-notice p {
    color: #475569;
    font-size: 0.88rem;
    margin: 0;
}

.otp-notice strong {
    color: #1e293b;
}

.token-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
}

.token-display code {
    flex: 1;
    font-size: 0.82rem;
    color: #475569;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.btn-icon {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.gomerchant-info-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
}

.info-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-step-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.info-step strong {
    color: #1e293b;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2px;
}

.info-step p {
    color: #64748b;
    font-size: 0.82rem;
    margin: 0;
}

.refresh-log {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.5rem;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.7rem;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #475569;
}

.log-entry:first-child {
    background: #ecfeff;
}

@media (max-width: 768px) {
    .gomerchant-info-grid { grid-template-columns: 1fr; }
    .gomerchant-actions { flex-direction: column; }
    .gomerchant-actions .btn { width: 100%; justify-content: center; }
    .gomerchant-info-box { padding: 4px 0; }
}

/* ── Filter Bar ── */
.filter-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--secondary);
    background: var(--white);
    min-width: 150px;
}

.method-badge {
    background: var(--primary-50);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-sm.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.btn-sm.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}

/* ── Notifikasi ── */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}

.notif-item:hover {
    background: var(--gray-50);
}

.notif-item.unread {
    background: rgba(37, 99, 235, 0.03);
    border-left: 3px solid var(--primary);
}

.notif-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.notif-icon.green { background: var(--success-light); color: var(--success); }
.notif-icon.yellow { background: #fef3c7; color: #f59e0b; }
.notif-icon.blue { background: var(--primary-50); color: var(--primary); }

.notif-content {
    flex: 1;
}

.notif-content strong {
    font-size: 0.88rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 2px;
}

.notif-content p {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin: 0;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 4px;
    display: block;
}

/* ── FAQ ── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
}

.faq-question i {
    font-size: 0.75rem;
    color: var(--gray-400);
    transition: transform 0.2s;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 0 14px;
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

.empty-state-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-header-row .section-title {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .filter-bar { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .filter-bar .filter-btn { flex: 1; min-width: 0; text-align: center; padding: 8px 6px; font-size: 11px; }
    .filter-group { width: 100%; }
    .filter-group select,
    .filter-group input { min-width: 100%; width: 100%; }
}

/* ── API Docs Page ── */
.api-docs-page .api-docs-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 22px;
    border: 1px solid #dbeafe;
    background:
        radial-gradient(circle at 10% 20%, rgba(14, 116, 144, 0.12), transparent 42%),
        radial-gradient(circle at 90% 80%, rgba(30, 64, 175, 0.12), transparent 40%),
        linear-gradient(135deg, #f8fbff 0%, #eef8ff 55%, #f0fdfa 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.api-docs-page .api-docs-hero h2 {
    margin: 0;
    font-size: 1.45rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.api-docs-page .api-docs-hero p {
    margin: 8px 0 0;
    color: #475569;
    max-width: 900px;
    line-height: 1.6;
}

.api-docs-page .api-meta {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.api-docs-page .api-meta-card {
    border: 1px solid #dbeafe;
    background: rgba(255, 255, 255, 0.84);
    border-radius: 12px;
    padding: 12px;
}

.api-docs-page .api-meta-card .label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.api-docs-page .api-meta-card .value {
    margin-top: 6px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    word-break: break-all;
}

.api-docs-page .docs-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.api-docs-page .docs-grid.two-col {
    grid-template-columns: 1.05fr 0.95fr;
}

.api-docs-page .docs-card {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    padding: 16px;
}

.api-docs-page .docs-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.api-docs-page .docs-card p {
    margin: 8px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}

.api-docs-page .api-h-icon {
    margin-right: 6px;
}

.api-docs-page .api-h-icon.route,
.api-docs-page .api-h-icon.rocket {
    color: #0284c7;
}

.api-docs-page .api-h-icon.key {
    color: #0891b2;
}

.api-docs-page .api-h-icon.plug {
    color: #2563eb;
}

.api-docs-page .api-h-icon.js {
    color: #eab308;
}

.api-docs-page .api-h-icon.file {
    color: #0ea5e9;
}

.api-docs-page .api-h-icon.folder {
    color: #0f766e;
}

.api-docs-page .step-list {
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}

.api-docs-page .step-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    background: #f8fafc;
}

.api-docs-page .step-num {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    flex-shrink: 0;
}

.api-docs-page .api-check-icon {
    font-size: 10px;
}

.api-docs-page .step-content strong {
    color: #0f172a;
    font-size: 13px;
}

.api-docs-page .step-content div {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 2px;
}

.api-docs-page .code-box {
    margin-top: 12px;
    position: relative;
    border-radius: 12px;
    border: 1px solid #1e293b;
    background: #0f172a;
    color: #e2e8f0;
    padding: 12px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}

.api-docs-page .copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.65);
    color: #e2e8f0;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}

.api-docs-page .copy-btn:hover {
    background: rgba(30, 41, 59, 0.95);
}

.api-docs-page .endpoint-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.api-docs-page .endpoint-table th,
.api-docs-page .endpoint-table td {
    font-size: 12px;
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.api-docs-page .endpoint-table.compact th {
    width: 140px;
    background: #f8fafc;
}

.api-docs-page .endpoint-table.compact td,
.api-docs-page .endpoint-table.compact th {
    font-size: 12px;
    padding: 8px 10px;
}

.api-docs-page .api-params {
    margin-top: 12px;
    font-size: 12px;
    color: #334155;
}

.api-docs-page .api-params strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
}

.api-docs-page .api-params ul {
    margin: 0;
    padding-left: 18px;
}

.api-docs-page .api-params li {
    margin-bottom: 4px;
    list-style: disc;
}

.api-docs-page .docs-details {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
}

.api-docs-page .docs-details summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-docs-page .docs-details[open] {
    padding-bottom: 14px;
}

.api-docs-page .docs-details .details-content {
    margin-top: 12px;
}

.api-docs-page .endpoint-table tr:last-child td {
    border-bottom: none;
}

.api-docs-page .endpoint-table th {
    background: #f8fafc;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
}

.api-docs-page .method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    padding: 4px 10px;
    color: #0f172a;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.api-docs-page .method.get {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.api-docs-page .method.post {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.api-docs-page .inline-code {
    display: inline-block;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    border-radius: 8px;
    padding: 3px 8px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 11px;
}

.api-docs-page .project-key-list {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.api-docs-page .project-key-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.api-docs-page .project-key-item h4 {
    margin: 0;
    color: #0f172a;
    font-size: 13px;
}

.api-docs-page .project-key-item p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #64748b;
}

.api-docs-page .project-key-line {
    margin-top: 8px;
    font-size: 12px;
    color: #1f2937;
    word-break: break-all;
}

.api-docs-page .project-key-line span {
    color: #64748b;
    margin-right: 6px;
    font-weight: 700;
}

.api-docs-page .empty-box {
    margin-top: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    color: #64748b;
    background: #f8fafc;
    font-size: 13px;
}

@media (max-width: 980px) {
    .api-docs-page .docs-grid.two-col {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CUSTOM POPUP / TOAST
   ============================================ */

/* ── Toast Notifications ── */
.tk-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.tk-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--gray-400);
    min-width: 300px;
    max-width: 420px;
    transform: translateX(120%);
    opacity: 0;
    animation: tkToastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    font-family: var(--font-main);
}

.tk-toast.closing {
    animation: tkToastOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.tk-toast.success { border-left-color: var(--success); }
.tk-toast.error { border-left-color: var(--danger); }
.tk-toast.warning { border-left-color: var(--warning); }
.tk-toast.info { border-left-color: var(--primary); }

.tk-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.tk-toast.success .tk-toast-icon { background: var(--success-light); color: var(--success); }
.tk-toast.error .tk-toast-icon { background: var(--danger-light); color: var(--danger); }
.tk-toast.warning .tk-toast-icon { background: var(--warning-light); color: var(--warning); }
.tk-toast.info .tk-toast-icon { background: var(--primary-100); color: var(--primary); }

.tk-toast-body {
    flex: 1;
    min-width: 0;
}

.tk-toast-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.tk-toast-msg {
    font-size: 12.5px;
    color: var(--gray-500);
    line-height: 1.4;
}

.tk-toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.tk-toast-close:hover {
    color: var(--gray-700);
    background: var(--gray-100);
}

.tk-toast-progress {
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}

.tk-toast-progress-bar {
    height: 100%;
    border-radius: 3px;
    animation: tkToastProgress linear forwards;
}

.tk-toast.success .tk-toast-progress-bar { background: var(--success); }
.tk-toast.error .tk-toast-progress-bar { background: var(--danger); }
.tk-toast.warning .tk-toast-progress-bar { background: var(--warning); }
.tk-toast.info .tk-toast-progress-bar { background: var(--primary); }

@keyframes tkToastIn {
    0% { transform: translateX(120%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes tkToastOut {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}

@keyframes tkToastProgress {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* ── Confirm Dialog ── */
.tk-confirm-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.tk-confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.tk-confirm-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.tk-confirm-overlay.show .tk-confirm-box {
    transform: scale(1) translateY(0);
}

.tk-confirm-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 8px;
}

.tk-confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: tkConfirmPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.tk-confirm-icon.warning { background: var(--warning-light); color: var(--warning); }
.tk-confirm-icon.danger { background: var(--danger-light); color: var(--danger); }
.tk-confirm-icon.info { background: var(--primary-100); color: var(--primary); }
.tk-confirm-icon.success { background: var(--success-light); color: var(--success); }

@keyframes tkConfirmPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.tk-confirm-content {
    text-align: center;
    padding: 16px 28px 4px;
}

.tk-confirm-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.tk-confirm-msg {
    font-size: 13.5px;
    color: var(--gray-500);
    line-height: 1.55;
}

.tk-confirm-actions {
    display: flex;
    gap: 10px;
    padding: 20px 28px 24px;
    justify-content: center;
}

.tk-confirm-actions .btn {
    min-width: 110px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.tk-confirm-actions .btn-secondary {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.tk-confirm-actions .btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.tk-confirm-actions .btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.tk-confirm-actions .btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.tk-confirm-actions .btn-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.tk-confirm-actions .btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.tk-confirm-actions .btn-primary {
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

@media (max-width: 480px) {
    .tk-toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }
    .tk-toast {
        min-width: auto;
        max-width: 100%;
    }
    .tk-confirm-box {
        width: 95%;
    }
}

/* ============================================
   API Documentation Page
   ============================================ */

/* ── Docs Layout ── */
.docs-layout { display: flex; min-height: 100vh; background: #f8fafc; }

/* ── Docs Sidebar ── */
.docs-sidebar {
    width: 280px;
    background: #0f172a;
    color: #cbd5e1;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.docs-sidebar-brand {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}
.docs-sidebar-brand .brand-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 700;
}
.docs-sidebar-brand .brand-text {
    font-size: 15px; font-weight: 700; color: #f1f5f9;
    display: flex; flex-direction: column;
}
.docs-sidebar-brand .brand-text small { font-size: 10.5px; font-weight: 500; color: #64748b; letter-spacing: 0.5px; text-transform: uppercase; }

.docs-sidebar-meta {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.docs-meta-item { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 11.5px; }
.docs-meta-item .meta-label { color: #64748b; }
.docs-meta-item .meta-value { color: #94a3b8; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 10.5px; }
.docs-meta-item .meta-badge {
    background: rgba(16, 185, 129, 0.15); color: #34d399;
    padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; text-transform: uppercase;
}

.docs-nav { padding: 12px 0; }
.docs-nav-group { margin-bottom: 4px; }
.docs-nav-label {
    padding: 8px 24px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
}
.docs-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 24px; font-size: 13px; font-weight: 500;
    color: #94a3b8; cursor: pointer; transition: all 0.15s; border-left: 3px solid transparent;
    text-decoration: none;
}
.docs-nav-item:hover { color: #e2e8f0; background: rgba(255,255,255,0.03); }
.docs-nav-item.active { color: #60a5fa; background: rgba(59,130,246,0.08); border-left-color: #3b82f6; }
.docs-nav-item i { width: 16px; text-align: center; font-size: 12px; opacity: 0.7; }
.docs-nav-item .method-badge {
    font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px;
    text-transform: uppercase; letter-spacing: 0.3px; margin-left: auto; flex-shrink: 0;
}
.docs-nav-item .method-badge.post { background: rgba(59,130,246,0.15); color: #60a5fa; }
.docs-nav-item .method-badge.get { background: rgba(16,185,129,0.15); color: #34d399; }

.docs-sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}
.docs-back-link {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: #64748b; text-decoration: none; transition: color 0.15s;
}
.docs-back-link:hover { color: #94a3b8; }

/* ── Docs Main ── */
.docs-main {
    margin-left: 280px;
    flex: 1;
    min-width: 0;
}

/* ── Docs Topbar ── */
.docs-topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0 40px;
    height: 56px;
    display: flex; align-items: center; justify-content: space-between;
}
.docs-topbar-left { display: flex; align-items: center; gap: 16px; }
.docs-topbar-title { font-size: 14px; font-weight: 600; color: #1e293b; }
.docs-topbar-version {
    font-size: 10.5px; font-weight: 600; color: #3b82f6;
    background: #dbeafe; padding: 2px 8px; border-radius: 4px;
}
.docs-topbar-right { display: flex; align-items: center; gap: 10px; }
.docs-topbar-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; font-size: 12.5px; font-weight: 600;
    border-radius: 6px; border: 1px solid #e2e8f0;
    background: #fff; color: #475569; cursor: pointer; transition: all 0.15s;
    text-decoration: none;
}
.docs-topbar-btn:hover { border-color: #3b82f6; color: #3b82f6; }
.docs-topbar-btn.primary { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.docs-topbar-btn.primary:hover { background: #2563eb; }
.docs-mobile-toggle { display: none; background: none; border: none; font-size: 20px; color: #475569; cursor: pointer; padding: 4px; }

/* ── Docs Content ── */
.docs-content { max-width: 900px; margin: 0 auto; padding: 32px 40px 80px; }

.docs-section { margin-bottom: 48px; scroll-margin-top: 72px; }
.docs-section-title {
    font-size: 22px; font-weight: 800; color: #0f172a;
    margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
    padding-bottom: 12px; border-bottom: 2px solid #e2e8f0;
}
.docs-section-title i { color: #3b82f6; font-size: 18px; }
.docs-section-desc { font-size: 14px; color: #64748b; line-height: 1.6; margin-bottom: 24px; }

/* ── Docs Cards ── */
.doc-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 24px; margin-bottom: 20px;
    transition: box-shadow 0.2s;
}
.doc-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.doc-card h4 { font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.doc-card h4 i { color: #3b82f6; font-size: 14px; }
.doc-card p { font-size: 13.5px; color: #64748b; line-height: 1.6; margin-bottom: 16px; }

.doc-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 20px; }

/* ── Meta Cards ── */
.docs-meta-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 28px; }
.docs-meta-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 16px; display: flex; flex-direction: column; gap: 4px;
}
.docs-meta-card .mc-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8; }
.docs-meta-card .mc-value { font-size: 13px; font-weight: 600; color: #1e293b; word-break: break-all; }

/* ── Endpoint Block ── */
.endpoint-block {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    overflow: hidden; margin-bottom: 20px;
}
.endpoint-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.ep-method {
    font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 5px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.ep-method.post { background: #dbeafe; color: #2563eb; }
.ep-method.get { background: #d1fae5; color: #059669; }
.ep-path { font-size: 14px; font-weight: 600; color: #1e293b; font-family: 'SF Mono', 'Fira Code', monospace; }
.ep-desc { font-size: 12px; color: #64748b; margin-left: auto; }
.endpoint-body { padding: 20px; }
.endpoint-body h5 { font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.endpoint-body h5 i { font-size: 11px; color: #94a3b8; }

.param-list { margin-bottom: 16px; }
.param-item {
    display: flex; align-items: baseline; gap: 8px;
    padding: 6px 0; font-size: 13px; border-bottom: 1px solid #f1f5f9;
}
.param-item:last-child { border-bottom: none; }
.param-name { font-family: 'SF Mono', 'Fira Code', monospace; font-weight: 600; color: #1e293b; font-size: 12.5px; }
.param-type { font-size: 11px; color: #94a3b8; background: #f1f5f9; padding: 1px 6px; border-radius: 3px; }
.param-req { font-size: 10px; color: #ef4444; font-weight: 700; text-transform: uppercase; }
.param-opt { font-size: 10px; color: #94a3b8; font-weight: 600; }
.param-desc { color: #64748b; font-size: 12.5px; }

/* ── Code Block ── */
.docs-code-block {
    position: relative; background: #0f172a; border-radius: 10px;
    margin-bottom: 16px; overflow: hidden;
}
.docs-code-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.docs-code-lang { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.docs-code-copy {
    font-size: 11px; font-weight: 600; color: #64748b; background: none;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
    padding: 3px 10px; cursor: pointer; transition: all 0.15s;
}
.docs-code-copy:hover { color: #e2e8f0; border-color: rgba(255,255,255,0.2); }
.docs-code-pre {
    padding: 16px; margin: 0; overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    font-size: 12.5px; line-height: 1.65; color: #e2e8f0;
    white-space: pre;
}
.code-key { color: #7dd3fc; }
.code-str { color: #86efac; }
.code-num { color: #fbbf24; }
.code-null { color: #f87171; }
.code-comment { color: #475569; font-style: italic; }

/* ── Status Badge ── */
.docs-status { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 5px; }
.docs-status.pending { background: #fef3c7; color: #d97706; }
.docs-status.success { background: #d1fae5; color: #059669; }
.docs-status.expired { background: #fee2e2; color: #dc2626; }
.docs-status.cancelled { background: #e2e8f0; color: #475569; }

/* ── Docs Table ── */
.docs-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 0; }
.docs-table th { text-align: left; padding: 10px 14px; background: #f8fafc; color: #475569; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.3px; border-bottom: 2px solid #e2e8f0; }
.docs-table td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.docs-table tr:hover td { background: #f8fafc; }
.docs-table code { font-size: 12px; background: #f1f5f9; padding: 1px 6px; border-radius: 3px; color: #1e293b; font-family: 'SF Mono', 'Fira Code', monospace; }

/* ── Step List ── */
.docs-steps { counter-reset: docs-step; }
.docs-list {
    margin: 0; padding-left: 20px; list-style: none;
}
.docs-list li {
    position: relative; padding: 5px 0; font-size: 13px; color: #475569; line-height: 1.6;
}
.docs-list li::before {
    content: '•'; position: absolute; left: -16px; color: #3b82f6; font-weight: 700;
}
.docs-step {
    display: flex; gap: 14px; padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.docs-step:last-child { border-bottom: none; }
.docs-step-num {
    counter-increment: docs-step;
    width: 28px; height: 28px; border-radius: 50%;
    background: #dbeafe; color: #2563eb;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.docs-step-num::before { content: counter(docs-step); }
.docs-step-body strong { display: block; font-size: 13.5px; color: #1e293b; margin-bottom: 2px; }
.docs-step-body span { font-size: 12.5px; color: #64748b; line-height: 1.5; }

/* ── Callout ── */
.docs-callout {
    display: flex; gap: 12px; padding: 14px 16px;
    border-radius: 8px; margin-bottom: 16px; font-size: 13px; line-height: 1.55;
}
.docs-callout.info { background: #eff6ff; color: #1e40af; border-left: 3px solid #3b82f6; }
.docs-callout.warning { background: #fffbeb; color: #92400e; border-left: 3px solid #f59e0b; }
.docs-callout.tip { background: #ecfdf5; color: #065f46; border-left: 3px solid #10b981; }
.docs-callout i { flex-shrink: 0; margin-top: 2px; }

/* ── Key Display ── */
.key-display {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 12px 16px; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: space-between;
}
.key-display .key-label { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; margin-bottom: 2px; }
.key-display .key-value { font-size: 12.5px; font-family: 'SF Mono', monospace; color: #1e293b; word-break: break-all; }

/* ── Docs Responsive ── */
@media (max-width: 900px) {
    .docs-sidebar { transform: translateX(-100%); }
    .docs-sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.3); }
    .docs-main { margin-left: 0; }
    .docs-content { padding: 24px 20px 60px; }
    .docs-mobile-toggle { display: block; }
    .docs-topbar { padding: 0 20px; }
    .doc-cards-grid { grid-template-columns: 1fr; }
    .docs-meta-cards { grid-template-columns: 1fr 1fr; }
    .docs-sidebar-overlay {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.4); z-index: 99;
        display: none;
    }
    .docs-sidebar-overlay.show { display: block; }
}

@media (max-width: 600px) {
    /* Topbar compact */
    .docs-topbar { padding: 0 12px; height: 50px; gap: 8px; }
    .docs-topbar-left { gap: 8px; }
    .docs-topbar-title { font-size: 12.5px; }
    .docs-topbar-version { font-size: 9px; padding: 2px 6px; }
    .docs-topbar-right { gap: 6px; }
    .docs-topbar-btn { padding: 5px 10px; font-size: 11px; gap: 4px; }
    .docs-topbar-btn i { font-size: 11px; }

    /* Content */
    .docs-content { padding: 16px 14px 48px; }

    /* Section titles */
    .docs-section { margin-bottom: 32px; }
    .docs-section-title { font-size: 17px; gap: 8px; padding-bottom: 10px; }
    .docs-section-title i { font-size: 14px; }
    .docs-section-desc { font-size: 13px; margin-bottom: 16px; }

    /* Meta cards */
    .docs-meta-cards { grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
    .docs-meta-card { padding: 12px 14px; border-radius: 8px; }
    .docs-meta-card .mc-label { font-size: 10px; }
    .docs-meta-card .mc-value { font-size: 12px; }

    /* Doc cards */
    .doc-cards-grid { gap: 10px; margin-bottom: 14px; }
    .doc-card { padding: 16px; border-radius: 10px; margin-bottom: 0; }
    .doc-card h4 { font-size: 13.5px; gap: 6px; }
    .doc-card h4 i { font-size: 12px; }
    .doc-card p { font-size: 12px; margin-bottom: 10px; }

    /* Endpoint block */
    .endpoint-header { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
    .ep-method { font-size: 10px; padding: 3px 8px; }
    .ep-path { font-size: 12px; word-break: break-all; }
    .ep-desc { margin-left: 0; width: 100%; font-size: 11px; margin-top: 4px; }
    .endpoint-body { padding: 14px; }
    .endpoint-body h5 { font-size: 12px; }

    /* Param list */
    .param-item { flex-wrap: wrap; gap: 4px; padding: 8px 0; font-size: 12px; }
    .param-name { font-size: 11.5px; }
    .param-type { font-size: 10px; }
    .param-desc { font-size: 11.5px; width: 100%; }

    /* Code block */
    .docs-code-block { border-radius: 8px; margin-left: -14px; margin-right: -14px; border-radius: 0; }
    .docs-code-header { padding: 8px 14px; }
    .docs-code-lang { font-size: 10px; }
    .docs-code-copy { font-size: 10px; padding: 2px 8px; }
    .docs-code-pre { padding: 12px 14px; font-size: 11px; line-height: 1.55; }

    /* Table */
    .endpoint-block .docs-table-wrap { overflow-x: auto; margin: 0 -14px; padding: 0 14px; }
    .docs-table th { padding: 8px 10px; font-size: 10px; }
    .docs-table td { padding: 8px 10px; font-size: 11.5px; }
    .docs-table code { font-size: 10.5px; padding: 1px 4px; }

    /* Callout */
    .docs-callout { padding: 12px; font-size: 12px; gap: 8px; border-radius: 8px; }
    .docs-callout i { font-size: 13px; }

    /* Key display */
    .key-display { padding: 10px 12px; border-radius: 8px; flex-direction: column; align-items: flex-start; gap: 2px; }
    .key-display .key-label { font-size: 10px; }
    .key-display .key-value { font-size: 11px; }

    /* Steps */
    .docs-step { gap: 10px; padding: 10px 0; }
    .docs-step-num { width: 24px; height: 24px; font-size: 11px; }
    .docs-step-body strong { font-size: 12.5px; }
    .docs-step-body span { font-size: 11.5px; }

    /* Status badges */
    .docs-status { font-size: 10px; padding: 2px 8px; }
}

/* ============================================
   Utility & Component Classes
   (Extracted from inline styles)
   ============================================ */

/* ── Layout Utilities ── */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.w-100 { width: 100%; }
.pos-relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── Gap ── */
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }

/* ── Margins ── */
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.m-0 { margin: 0 !important; }

/* ── Text ── */
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-22 { font-size: 22px; }
.fs-24 { font-size: 24px; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-muted { color: var(--gray-400); }
.text-muted-dark { color: var(--gray-500); }
.text-dark { color: var(--gray-800); }
.text-darkest { color: var(--gray-900); }
.text-white { color: #fff; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-purple { color: #7c3aed; }
.text-capitalize { text-transform: capitalize; }
.word-break-all { word-break: break-all; }

/* ── Padding ── */
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.px-24 { padding-left: 24px; padding-right: 24px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }

/* ── Grid Templates ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.grid-auto-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-auto-fit-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ── Image Utilities ── */
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-cover-rounded { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.img-thumb-32 { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; border: 1px solid var(--gray-200); }
.img-thumb-28 { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; vertical-align: middle; margin-right: 8px; border: 1px solid var(--gray-200); }

/* ── Icon Boxes ── */
.icon-box {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-box-48 {
    width: 48px; height: 48px; border-radius: 14px;
}
.icon-box-36 {
    width: 36px; height: 36px; border-radius: 10px;
}
.icon-box-32 {
    width: 32px; height: 32px; border-radius: 8px;
}
.icon-box-purple { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.icon-box-purple-light { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.icon-box-amber { background: linear-gradient(135deg, #f59e0b, #eab308); }
.icon-box-blue { background: #eef2ff; }
.icon-box-palette { background: linear-gradient(135deg, #f0abfc, #c084fc); color: #fff; }

/* ── Button Variants ── */
.btn-purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    color: #fff;
}
.btn-purple:hover {
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}
.btn-text-reset {
    background: none; border: none; color: var(--gray-400);
    font-size: 12px; cursor: pointer; padding: 0;
}
.btn-text-reset:hover { color: var(--gray-500); }
.btn-danger-outline {
    color: var(--danger) !important; border-color: var(--danger) !important;
}
.btn-sm-delete {
    background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
}

/* ── Card Utilities ── */
.card-p { padding: 24px; }
.card-p-sm { padding: 20px 24px; }
.card-header-flex {
    padding: 16px 24px; border-bottom: 1px solid var(--gray-200);
    display: flex; align-items: center; gap: 12px;
}
.card-header-simple {
    padding: 16px 24px; border-bottom: 1px solid var(--gray-200);
}
.card-body-flush { padding: 0; }
.card-body-p { padding: 16px 24px; }

/* ── Profile Photo ── */
.photo-preview-circle {
    width: 64px; height: 64px; border-radius: 50%; background: var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0; font-size: 20px; font-weight: 700; color: var(--gray-500);
}
.profile-separator {
    border: none; border-top: 1px solid var(--gray-200); margin: 20px 0;
}
.profile-pw-title {
    font-size: 13px; color: var(--gray-500); margin: 0 0 12px;
}
.photo-upload-hint {
    font-size: 11px; color: var(--gray-400); margin: 6px 0 0;
}

/* ── Project Stats ── */
.project-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px; margin-top: 1.5rem;
}
.project-stat-card {
    background: #fff; border-radius: 12px; padding: 16px 20px;
    border: 1px solid #e5e7eb;
}
.project-stat-value {
    font-size: 24px; font-weight: 700; color: var(--gray-800);
}
.project-stat-label {
    font-size: 12px; color: var(--gray-500);
}

/* ── Project Code Badge ── */
.code-badge-blue {
    background: #eef2ff; color: #1e40af; padding: 4px 8px;
    border-radius: 999px; font-size: 11px;
}

/* ── Project Detail: Info Sections ── */
.info-section {
    border-radius: 10px; padding: 16px; margin-top: 16px;
}
.info-section-blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
}
.info-section-green {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
}
.info-section-title {
    margin: 0 0 12px; font-size: 14px;
}
.info-section-title.blue { color: #1e40af; }
.info-section-title.green { color: #166534; }
.info-section-label-blue { font-size: 11px; color: #3b82f6; }
.info-section-label-green { font-size: 11px; color: #15803d; }

/* ── Alert Gradients ── */
.alert-warning-gradient {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d; color: #92400e; margin-bottom: 1.5rem;
}
.alert-danger-gradient {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fca5a5; color: #991b1b; margin-bottom: 1.5rem;
}

/* ── Color Picker ── */
.color-picker-row {
    display: flex; align-items: center; gap: 10px;
}
.color-picker-input {
    width: 44px; height: 38px; border: 1px solid var(--gray-200);
    border-radius: 8px; padding: 2px; cursor: pointer;
}

/* ── Theme Preview ── */
.theme-preview-box {
    height: 120px; border-radius: 14px; display: flex; align-items: center;
    justify-content: center; overflow: hidden; border: 1px solid var(--gray-200);
    position: relative;
}
.theme-preview-inner {
    position: relative; z-index: 1; text-align: center;
}
.theme-preview-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.95); margin: 0 auto 6px;
    display: flex; align-items: center; justify-content: center;
}
.theme-preview-btn {
    padding: 6px 20px; border-radius: 8px; color: #fff;
    font-size: 11px; font-weight: 600;
}

/* ── Drop Zone ── */
.drop-zone {
    border: 2px dashed var(--gray-200); border-radius: 12px; padding: 20px;
    text-align: center; cursor: pointer; transition: 0.2s;
}
.drop-zone:hover { border-color: var(--gray-300); background: var(--gray-50); }
.drop-zone-text { margin: 6px 0 2px; font-size: 13px; color: var(--gray-500); font-weight: 500; }
.drop-zone-hint { color: var(--gray-400); font-size: 11px; }

/* ── Bg Image Overlay Label ── */
.bg-preview-label {
    position: absolute; bottom: 6px; right: 6px;
    background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 11px;
    padding: 3px 10px; border-radius: 6px; cursor: pointer;
}

/* ── File Input Hidden ── */
.file-input-hidden { display: none; }

/* ── Status Badge Variants ── */
.status-badge-danger { background: #fef2f2; color: #dc2626; }
.status-badge-warning { background: #fef3c7; color: #d97706; }

/* ── Responsive for new utilities ── */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-auto-fit { grid-template-columns: 1fr 1fr; }
    .project-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .grid-auto-fit { grid-template-columns: 1fr; }
    .project-stats-grid { grid-template-columns: 1fr; }
}

/* ── Merchant Dashboard Quick Actions ── */
.quick-action-link {
    text-decoration: none;
}

/* ── Alert Info Blue ── */
.alert-info-blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd; color: #1e40af;
}

/* ── Required Star ── */
.req { color: #ef4444; }

/* ── Logo Upload ── */
.logo-dropzone {
    border: 2px dashed #cbd5e1; border-radius: 12px; padding: 24px;
    text-align: center; cursor: pointer; transition: all 0.2s;
}
.logo-dropzone:hover { border-color: #94a3b8; }
.logo-preview-img {
    max-width: 120px; max-height: 120px; border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.logo-upload-icon { font-size: 32px; color: #94a3b8; }

/* ── Security Box ── */
.security-box {
    margin-top: 20px; padding: 16px; background: #f0fdf4;
    border-radius: 10px; border: 1px solid #bbf7d0;
}
.security-box h4 {
    margin: 0 0 8px; font-size: 14px; color: #166534;
}
.security-box ul {
    margin: 0; padding-left: 18px; font-size: 13px;
    color: #15803d; line-height: 1.8;
}

/* ── PIC Header ── */
.pic-header {
    margin-top: 24px; padding-top: 20px; border-top: 1px solid #e5e7eb;
}

/* ── Terms ── */
.terms-scroll {
    background: var(--gray-50); border-radius: 10px; padding: 16px;
    font-size: 13px; color: #475569; line-height: 1.8;
    max-height: 200px; overflow-y: auto; border: 1px solid var(--gray-200);
}
.terms-agree {
    display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
    font-size: 14px; color: #334155;
}
.terms-agree input[type="checkbox"] {
    margin-top: 3px; width: 18px; height: 18px; accent-color: #2563eb;
}

/* ── Form Actions Footer ── */
.form-footer {
    display: flex; justify-content: flex-end; gap: 12px; margin-top: 1.5rem;
}

/* ── Settings Card Icon Colors ── */
.settings-card-icon.red { background: #fef2f2; color: #dc2626; }
.settings-card-icon.amber { background: #fef3c7; color: #d97706; }
.settings-card-icon.orange { background: rgba(234,88,12,0.12); color: #ea580c; }

/* ── Password Toggle ── */
.input-toggle-wrap { position: relative; }
.input-toggle-btn {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #64748b; cursor: pointer; font-size: 14px;
}

/* ── Info Callout ── */
.callout-info {
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px;
    padding: 12px 14px; margin-bottom: 16px; font-size: 12.5px; color: #1e40af;
    display: flex; align-items: flex-start; gap: 8px;
}
.callout-info a { color: #2563eb; }
.callout-info code { background: #dbeafe; padding: 2px 6px; border-radius: 4px; }

/* ── Email Test Row ── */
.email-test-row {
    display: flex; gap: 6px; align-items: center; flex: 1; min-width: 250px;
}
.email-test-input {
    flex: 1; padding: 8px 12px; border: 1px solid var(--gray-200);
    border-radius: 8px; font-size: 13px;
}

/* ── System Status Colors ── */
.text-emerald { color: #10b981; }
.text-red { color: #ef4444; }
.text-blue { color: #3b82f6; }
.text-violet { color: #8b5cf6; }
.text-amber { color: #f59e0b; }
.fs-24 { font-size: 24px; }

/* ── Cron Warning ── */
.cron-warning {
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
    border-radius: 10px; padding: 14px 18px; margin-top: 14px;
    font-size: 13px; color: #fca5a5;
}
.cron-warning code {
    background: #1e293b; padding: 4px 10px; border-radius: 6px;
    margin-top: 6px; display: inline-block; color: #94a3b8; font-size: 12px;
}

/* ── Chart Bar ── */
.chart-bar-row { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 12px; color: #64748b; }
.chart-bar-track { height: 10px; border-radius: 999px; background: #eef2ff; overflow: hidden; }
.chart-bar-fill { height: 100%; background: linear-gradient(90deg, #2563eb, #06b6d4); }

/* ── Laporan Filter Form ── */
.laporan-filter { display: flex; gap: 8px; align-items: center; }
.laporan-select { min-width: 180px; }

/* ── Withdraw Form Grid ── */
.wd-form { display: grid; gap: 6px; min-width: 220px; }
.wd-proof-form { display: grid; gap: 6px; margin-top: 8px; min-width: 220px; }

/* ── Link Blue ── */
.text-blue { color: #2563eb; }
.mt-4 { margin-top: 4px; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.align-center { align-items: center; }

/* ── API Docs Extra ── */
.ep-method { font-size: 10px; padding: 2px 7px; }
.table-section-header td {
    padding: 6px 14px; color: #94a3b8; font-size: 11px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    background: var(--gray-50);
}
.doc-card-flush { padding: 0; overflow: hidden; }

/* ── Docs Subtitle ── */
.docs-embed-title {
    font-size: 16px; font-weight: 700; color: #1e293b;
    margin: 28px 0 12px; display: flex; align-items: center; gap: 8px;
}
.docs-embed-title i { color: #3b82f6; }

/* ── Misc ── */
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 4px; }
.gap-8 { gap: 8px; }
.flex-wrap { flex-wrap: wrap; }

/* ── Filter Bar ── */
.filter-bar {
    display: flex; gap: 8px; margin-bottom: 1rem; flex-wrap: wrap;
}
.filter-btn {
    padding: 6px 14px; border-radius: 8px; font-size: 12px;
    font-weight: 600; border: 1px solid transparent; cursor: pointer;
    background: var(--gray-100); color: var(--gray-600);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.filter-btn-pending { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.filter-btn-approved { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.filter-btn-rejected { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Review Card ── */
.review-project-icon {
    width: 36px; height: 36px; border-radius: 8px; object-fit: cover;
}
.review-project-placeholder {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    display: flex; align-items: center; justify-content: center;
}
.review-project-placeholder i { color: #3b82f6; font-size: 14px; }

/* ── Button Colors ── */
.btn-approve { background: #22c55e; border-color: #22c55e; color: #fff; }
.btn-approve:hover { background: #16a34a; }
.btn-warn { background: #fef3c7; color: #d97706; border: 1px solid #fcd34d; }
.btn-warn:hover { background: #fde68a; }
.btn-success-subtle { background: rgba(16,185,129,0.1); color: #059669; border: 1px solid transparent; }
.btn-success-subtle:hover { background: rgba(16,185,129,0.2); }
.btn-danger-subtle { background: rgba(239,68,68,0.1); color: #dc2626; border: 1px solid transparent; }
.btn-danger-subtle:hover { background: rgba(239,68,68,0.2); }

/* ── Misc Utilities ── */
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.mb-10 { margin-bottom: 10px; }
.mt-12 { margin-top: 12px; }
.mr-8 { margin-right: 8px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.resize-v { resize: vertical; }
.w-full { width: 100%; }
.min-w-200 { min-width: 200px; }
.fw-600 { font-weight: 600; }
.text-darkest { color: #0f172a; }

/* ── Review Modal Detail ── */
.review-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.review-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid #e5e7eb; }
.review-logo-placeholder {
    width: 56px; height: 56px; border-radius: 12px; background: #eef2ff;
    display: flex; align-items: center; justify-content: center;
}
.review-logo-placeholder i { color: #3b82f6; font-size: 24px; }
.review-title { margin: 0; font-size: 18px; }
.review-code { background: #eef2ff; color: #1e40af; padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.review-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.review-card {
    padding: 12px; background: var(--gray-50); border-radius: 8px; border: 1px solid #e5e7eb;
}
.review-card-label { font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
.review-card-value { font-size: 13px; font-weight: 600; color: #1e293b; }
.review-card-sub { font-size: 11px; color: #64748b; }
.review-card-text { font-size: 13px; color: #334155; line-height: 1.6; }
.review-card-text-sm { font-size: 11px; color: #334155; word-break: break-all; }
.text-primary { color: #3b82f6; }
.text-primary-link { color: #3b82f6; text-decoration: none; }
.text-green-link { color: #16a34a; text-decoration: none; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-16 { font-size: 16px; }
.mb-8 { margin-bottom: 8px; }
.d-block { display: block; }
.d-none { display: none; }
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }

.stat-card-icon.red { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.stat-card-icon.orange { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; }

/* ── Bottom Navigation (Mobile) ── */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    z-index: 1000;
    padding: 4px 0 env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0 4px;
    min-width: 56px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.bottom-nav-item i {
    font-size: 18px;
    line-height: 1;
    transition: transform .15s;
}
.bottom-nav-item.active {
    color: #3b82f6;
}
.bottom-nav-item.active i {
    transform: scale(1.1);
}
.bottom-nav-item .bnav-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
/* More menu overlay */
.bottom-nav-more-menu {
    position: fixed;
    bottom: 60px;
    left: 8px;
    right: 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 -8px 40px rgba(0,0,0,.12);
    padding: 8px;
    z-index: 1001;
    display: none;
    max-height: 60vh;
    overflow-y: auto;
}
.bottom-nav-more-menu.show { display: block; }
.bottom-nav-more-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s;
}
.bottom-nav-more-menu a:hover,
.bottom-nav-more-menu a.active { background: #f1f5f9; color: #3b82f6; }
.bottom-nav-more-menu a i { width: 20px; text-align: center; font-size: 15px; color: #64748b; }
.bottom-nav-more-menu a.active i { color: #3b82f6; }
.bnav-more-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}
.bnav-more-overlay.show { display: block; }

/* Developer bottom nav accent */
.bottom-nav.dev .bottom-nav-item.active { color: #8b5cf6; }

@media (max-width: 768px) {
    .bottom-nav { display: block; }
    .dashboard-content { padding-bottom: 80px; }
    .sidebar-toggle { display: none !important; }
}
