/* ============================================
   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: 100px; 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: 96px;
    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; }
    .hero { min-height: auto; }
    .stats-grid { flex-wrap: wrap; padding: 28px 24px; gap: 20px; }
    .stat-divider { display: none; }
    .stat-item { padding: 0 20px; min-width: calc(50% - 20px); justify-content: center; }
    .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: 100px 0 0; min-height: auto; }
    .hero h1 { font-size: 28px; line-height: 1.2; }
    .text-muted-hero { font-size: 16px; margin-top: 4px; }
    .hero-badge { font-size: 11px; padding: 6px 12px; gap: 6px; }
    .hero-desc { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
    .hero-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-buttons .btn { justify-content: center; text-align: center; }
    .hero .container { padding-bottom: 32px; gap: 32px; }
    .hero-card { width: 100%; max-width: 320px; padding: 20px; }
    .hero-card-amount .value { font-size: 26px; }
    .hero-card-detail { padding: 8px 10px; font-size: 12px; }
    .hero-card-btn { padding: 12px; font-size: 14px; }
    .card-security { font-size: 10px; }
    .hero-floating-badge { display: none; }
    .hero-blob-1 { width: 250px; height: 250px; right: -80px; }
    .hero-blob-2 { width: 200px; height: 200px; left: -80px; }
    .hero-blob-3 { width: 150px; height: 150px; }
    .trust-logos { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .section-header h2 { font-size: 24px; line-height: 1.3; }
    .section-header p { font-size: 14px; }
    .section-badge { font-size: 11px; }
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 20px; }
    .feature-card h3 { font-size: 16px; }
    .feature-card p { font-size: 13px; }
    .steps-grid { grid-template-columns: 1fr; }
    .code-window { max-width: 100%; }
    .code-body { padding: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .code-body pre { font-size: 11px; white-space: pre; word-break: normal; }
    .code-body pre code { white-space: pre; }
    .api-content h2 { font-size: 24px; }
    .api-features { gap: 8px; }
    .api-feature { font-size: 13px; }
    .testimonials-grid { gap: 16px; }
    .testimonial-card p { font-size: 13px; }
    .cta h2 { font-size: 24px; line-height: 1.3; }
    .cta p { font-size: 14px; }
    .cta-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
    .cta-buttons .btn { justify-content: center; text-align: center; }
    .cta { padding: 60px 0; }
    .pricing-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
    .pricing-table th, .pricing-table td { padding: 12px 14px; font-size: 13px; }
    .pricing-table td i { display: none; }
    .settlement-grid { grid-template-columns: 1fr; gap: 12px; }
    .settlement-card { padding: 20px; }
    .settlement-card h4 { font-size: 15px; }
    .stats-grid { padding: 20px 16px; gap: 12px; flex-wrap: wrap; justify-content: center; }
    .stat-item { padding: 8px 12px; min-width: calc(50% - 12px); justify-content: center; }
    .stat-icon { width: 36px; height: 36px; font-size: 14px; }
    .stat-number { font-size: 22px; }
    .stat-label { font-size: 11px; }
    .stat-divider { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-about { text-align: center; }
    .footer-social { justify-content: center; }
    .footer h4 { font-size: 15px; }
    .footer ul li { font-size: 13px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
    .partners { padding: 40px 0; }
    .partner-item { font-size: 12px; padding: 8px 16px; }
    .floating-wa { bottom: 84px; right: 16px; width: 48px; height: 48px; font-size: 22px; }
    .has-chat-widget .floating-wa { bottom: 84px; }
    .back-to-top { right: 16px; bottom: 28px; width: 40px; height: 40px; }
    .open-api { padding: 60px 0; }
    .features { padding: 60px 0; }
    .testimonials { padding: 60px 0; }
    .pricing { padding: 60px 0; }
    .navbar-brand { font-size: 18px; }
    .navbar-brand .logo-icon { width: 32px; height: 32px; font-size: 14px; }
    .navbar-logo-img { height: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .hero { padding: 88px 0 0; }
    .hero h1 { font-size: 22px; letter-spacing: -0.5px; }
    .text-muted-hero { font-size: 14px; }
    .hero-badge { font-size: 10px; padding: 5px 10px; margin-bottom: 16px; }
    .hero-desc { font-size: 13px; margin-bottom: 20px; }
    .hero .container { gap: 24px; padding-bottom: 24px; }
    .hero-card { max-width: 100%; padding: 16px; border-radius: 12px; }
    .hero-card-header { margin-bottom: 16px; padding-bottom: 12px; }
    .hero-card-amount { margin-bottom: 16px; }
    .hero-card-amount .value { font-size: 22px; }
    .hero-card-amount .currency { font-size: 10px; }
    .hero-card-detail { padding: 6px 8px; font-size: 11px; }
    .hero-card-btn { padding: 10px; font-size: 13px; margin-top: 14px; }
    .stat-item { min-width: 100%; }
    .stat-number { font-size: 18px; }
    .stat-icon { width: 32px; height: 32px; font-size: 13px; }
    .stats-grid { padding: 16px 12px; flex-direction: column; gap: 10px; }
    .section-header h2 { font-size: 20px; }
    .section-header p { font-size: 13px; }
    .feature-card { padding: 18px; }
    .feature-icon-wrap { width: 44px; height: 44px; font-size: 18px; }
    .feature-card h3 { font-size: 15px; }
    .feature-card p { font-size: 12px; }
    .api-content h2 { font-size: 20px; }
    .code-body { padding: 10px; }
    .code-body pre { font-size: 9.5px; }
    .code-header { padding: 10px 14px; }
    .code-title { font-size: 11px; }
    .testimonial-card { padding: 20px; }
    .testimonial-card p { font-size: 12px; }
    .author-avatar { width: 36px; height: 36px; font-size: 12px; }
    .author-info strong { font-size: 13px; }
    .author-info span { font-size: 11px; }
    .cta h2 { font-size: 20px; }
    .cta p { font-size: 13px; }
    .cta { padding: 48px 0; }
    .btn-lg { padding: 12px 20px; font-size: 13px; }
    .btn-glow, .btn-glow-white { font-size: 13px; }
    .pricing-table-wrap { overflow-x: auto; margin: 0 -14px; padding: 0 14px; }
    .pricing-table th, .pricing-table td { padding: 10px 12px; font-size: 12px; }
    .settlement-card { padding: 16px; }
    .settlement-card h4 { font-size: 14px; }
    .settlement-time { font-size: 13px; }
    .partner-item { font-size: 11px; padding: 6px 12px; }
    .footer-desc { font-size: 13px; }
    .footer-contact li { font-size: 12px; }
    .footer-bottom span { font-size: 12px; }
    .footer-links a { font-size: 12px; }
    .floating-wa { bottom: 144px; right: 12px; width: 44px; height: 44px; font-size: 20px; }
    .back-to-top { right: 12px; bottom: 24px; width: 36px; height: 36px; font-size: 14px; }
    .navbar { padding: 12px 0; }
    .navbar-brand { font-size: 16px; gap: 6px; }
    .navbar-brand .logo-icon { width: 28px; height: 28px; font-size: 12px; }
    .navbar-logo-img { height: 24px; }
    .mobile-menu { width: 260px; padding-top: 72px; }
    .mobile-link { padding: 12px 14px; font-size: 14px; }
}

@media (max-width: 360px) {
    .hero h1 { font-size: 20px; }
    .text-muted-hero { font-size: 13px; }
    .hero-desc { font-size: 12px; }
    .hero-card { padding: 14px; }
    .hero-card-amount .value { font-size: 20px; }
    .hero-card-detail { font-size: 10px; padding: 5px 6px; }
    .section-header h2 { font-size: 18px; }
    .btn-lg { padding: 10px 16px; font-size: 12px; }
    .stats-grid { padding: 14px 10px; }
    .stat-number { font-size: 16px; }
    .stat-label { font-size: 10px; }
    .cta h2 { font-size: 18px; }
    .navbar-brand { font-size: 15px; }
}

/* ============================================
   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: 0;
}

.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;
    margin-top: auto;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    overflow-y: auto;
    max-height: 100vh;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
}

.auth-form-header {
    margin-bottom: 24px;
}

.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: 16px;
}

.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: 20px;
    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 — Duitku-inspired Dark Professional
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 230px;
    height: 100vh;
    background: #1a2332;
    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);
    overflow: hidden;
}

.developer-sidebar {
    background: #151222;
}

/* ── Sandbox Mode Sidebar ── */
.sandbox-sidebar {
    background: #2d1f0e;
}
.sandbox-sidebar .brand-accent {
    color: #f59e0b;
}
.sandbox-sidebar .sidebar-link.active {
    background: rgba(245, 158, 11, 0.12);
    color: #fff;
}
.sandbox-sidebar .sidebar-link:hover {
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
}
.sandbox-sidebar .nav-section-title {
    color: #8b6c3a;
}
.sandbox-sidebar .sidebar-avatar {
    background: #3d2e14;
    color: #c49a4e;
}
.sandbox-sidebar .role-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.sandbox-sidebar .sidebar-switch-btn.dev-switch {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}
.sandbox-sidebar .sidebar-switch-btn.dev-switch:hover {
    background: rgba(245, 158, 11, 0.14);
}

/* ── Brand Header ── */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px 18px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-info {
    display: flex;
    flex-direction: column;
}
.brand-name {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    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: #4b6584;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

.sidebar-logo-img {
    width: 34px; height: 34px;
    border-radius: 8px;
    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: none;
    border: none;
    color: #5a7184;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    transition: color 0.15s;
}
.sidebar-close:hover { color: #fff; }

.sidebar-collapse-btn {
    background: none;
    border: none;
    color: #5a7184;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    transition: color 0.15s;
    flex-shrink: 0;
}
.sidebar-collapse-btn:hover { color: #fff; }
.sidebar-collapsed .sidebar-collapse-btn {
    margin: 0 auto;
}

/* ── User Profile Card ── */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 12px 4px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    transition: background 0.15s;
}
.sidebar-user:hover {
    background: rgba(255,255,255,0.07);
}

.sidebar-avatar {
    width: 36px; height: 36px;
    background: #2d3d50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8fa3b8;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.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: #4b6584;
    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: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.role-badge.merchant {
    background: rgba(56,189,248,0.1);
    color: #38bdf8;
}

.role-badge.developer {
    background: rgba(139,92,246,0.12);
    color: #a78bfa;
}

.role-badge.admin {
    background: rgba(245,158,11,0.12);
    color: #f59e0b;
}

.role-badge.cs {
    background: rgba(16,185,129,0.12);
    color: #10b981;
}

/* ── Navigation ── */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 4px 12px 12px;
}
.sidebar-nav::-webkit-scrollbar { width: 0; }

.nav-section-title {
    font-size: 10px;
    font-weight: 600;
    color: #4b6584;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 20px 12px 8px;
}

/* Inline SVG icon in nav links */
.sb-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #8fa3b8;
    border-radius: 8px;
    transition: all 0.15s ease;
    margin-bottom: 1px;
    position: relative;
    text-decoration: none;
}

.sidebar-link:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.05);
}

.sidebar-link.active {
    color: #fff;
    background: rgba(56,189,248,0.12);
    font-weight: 600;
}
.developer-sidebar .sidebar-link.active {
    background: rgba(139,92,246,0.12);
}

/* ── Sidebar Footer ── */
.sidebar-footer {
    padding: 14px 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.sidebar-switch-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.sb-switch-arrow {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-left: auto;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s;
}
.sidebar-switch-btn:hover .sb-switch-arrow {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-switch-btn.merchant-switch {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
}
.sidebar-switch-btn.merchant-switch:hover {
    background: rgba(16, 185, 129, 0.14);
}

.sidebar-switch-btn.dev-switch {
    background: rgba(167,139,250,0.08);
    color: #a78bfa;
}
.sidebar-switch-btn.dev-switch:hover {
    background: rgba(167,139,250,0.14);
}

.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: 10px;
    color: #4b6584;
    padding: 0 4px;
}

/* ── Sidebar Collapsed State (desktop) ── */
.sidebar-collapsed .sidebar {
    width: 60px;
}
.sidebar-collapsed .dashboard-main {
    margin-left: 60px;
}
.sidebar-collapsed .sidebar-header {
    padding: 16px 12px 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 .sidebar-logo-img {
    width: 30px; height: 30px;
}
.sidebar-collapsed .sidebar-user {
    padding: 10px 6px;
    margin: 0 6px 4px;
    justify-content: center;
}
.sidebar-collapsed .sidebar-user-info,
.sidebar-collapsed .sidebar-user .role-badge {
    display: none;
}
.sidebar-collapsed .sidebar-avatar {
    width: 32px; height: 32px;
    font-size: 10px;
}
.sidebar-collapsed .sidebar-nav {
    padding: 4px 6px 12px;
}
.sidebar-collapsed .nav-section-title {
    font-size: 0;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4px;
}
.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 10px 6px;
    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 .sb-icon {
    width: 20px; height: 20px;
}
.sidebar-collapsed .sidebar-footer {
    padding: 10px 6px 12px;
}
.sidebar-collapsed .sidebar-switch-btn span,
.sidebar-collapsed .sidebar-switch-btn .sb-switch-arrow {
    display: none;
}
.sidebar-collapsed .sidebar-switch-btn {
    justify-content: center;
    padding: 10px 6px;
}
.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: #111827;
    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.3);
    pointer-events: none;
}

/* Main */
.dashboard-main {
    margin-left: 230px;
    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; }

.section-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.section-header-flex .section-title { margin-bottom: 0; }

/* 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; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 1rem; padding: 0.5rem 0; }
.pagination-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--gray-600); background: var(--white); border: 1px solid var(--gray-200); text-decoration: none; transition: all 0.2s; cursor: pointer; }
.pagination-btn:hover { background: var(--gray-50); border-color: var(--primary); color: var(--primary); }
.pagination-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination-dots { color: var(--gray-400); font-size: 13px; padding: 0 4px; }

/* Detail Modal Grid */
.detail-grid { display: flex; flex-direction: column; gap: 12px; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.detail-value { font-size: 13px; font-weight: 600; color: var(--gray-800); }

/* Cancel Button */
.btn-danger-outline { background: none; border: 1px solid #ef4444; color: #ef4444; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-danger-outline:hover { background: #fef2f2; }

/* Btn Small */
.btn-sm { padding: 6px 12px; font-size: 12px; }

.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; }

/* ── Chart Components ── */
.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.chart-section { display: flex; flex-direction: column; }
.chart-section-small { }
.chart-container { position: relative; height: 180px; width: 100%; }
.chart-container-donut { height: 180px; }
.mode-badge {
    display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
    vertical-align: middle; margin-left: 6px; letter-spacing: 0.3px; text-transform: uppercase;
}
.mode-production { background: #dbeafe; color: #2563eb; }
.mode-sandbox { background: #fef3c7; color: #d97706; }
.chart-toggle {
    display: flex; gap: 4px; background: var(--gray-50); border-radius: 8px; padding: 3px;
}
.chart-tab {
    padding: 5px 12px; font-size: 11px; font-weight: 600; border: none; background: none;
    border-radius: 6px; color: var(--gray-400); cursor: pointer; transition: all 0.2s;
    font-family: inherit;
}
.chart-tab.active {
    background: var(--white); color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.chart-tab:hover:not(.active) { color: var(--gray-600); }
.status-summary-list { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.status-summary-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    background: var(--gray-50); border-radius: 8px; font-size: 13px;
}
.status-summary-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-summary-label { flex: 1; color: var(--gray-600); font-weight: 500; }
.status-summary-count { font-weight: 700; color: var(--secondary); min-width: 32px; text-align: right; }
.status-summary-pct { font-size: 11px; color: var(--gray-400); font-weight: 600; min-width: 40px; text-align: right; }

/* 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; }
    .chart-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Sidebar mobile — hidden by default, bottom nav is primary */
    .sidebar { transform: translateX(-100%); width: 230px !important; }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.4); }
    .sidebar-close { display: flex; }
    .sidebar-collapse-btn { display: none; }
    .sidebar-mobile-toggle { display: none; }
    .sidebar-collapsed .sidebar { width: 230px !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; }

    /* Charts responsive */
    .chart-row { grid-template-columns: 1fr; gap: 12px; }
    .chart-container { height: 170px; }
    .chart-container-donut { height: 170px; }
    .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; }

}

@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;
}

.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 (ntf-) ── */
.ntf-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.ntf-header-left { display: flex; align-items: baseline; gap: 10px; }
.ntf-title { font-size: 20px; font-weight: 600; color: var(--gray-900); margin: 0; }
.ntf-unread-count { font-size: 12px; color: var(--primary); font-weight: 500; }
.ntf-btn-read {
    padding: 6px 14px; border: 1px solid var(--gray-200); border-radius: 6px;
    font-size: 12px; font-weight: 500; color: var(--gray-600); background: #fff;
    cursor: pointer; transition: border-color .15s, color .15s;
}
.ntf-btn-read:hover { border-color: var(--primary); color: var(--primary); }

.ntf-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden;
}
.ntf-empty { padding: 48px 20px; text-align: center; color: var(--gray-400); font-size: 13px; margin: 0; }
.ntf-list { display: flex; flex-direction: column; }

.ntf-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 20px; border-bottom: 1px solid var(--gray-50);
    transition: background .15s;
}
.ntf-item:last-child { border-bottom: none; }
.ntf-item:hover { background: #fafbfc; }
.ntf-unread { background: #f8faff; }

.ntf-dot {
    width: 8px; height: 8px; min-width: 8px; border-radius: 50%;
    margin-top: 5px; flex-shrink: 0;
}
.ntf-dot-ok { background: #059669; }
.ntf-dot-warn { background: #d97706; }
.ntf-dot-info { background: var(--primary); }

.ntf-body { flex: 1; min-width: 0; }
.ntf-item-title { display: block; font-size: 13px; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; }
.ntf-item-msg { display: block; font-size: 13px; color: var(--gray-500); line-height: 1.45; }
.ntf-item-time { font-size: 12px; color: var(--gray-400); white-space: nowrap; flex-shrink: 0; margin-top: 2px; }

@media (max-width: 640px) {
    .ntf-item { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
    .ntf-item-time { width: 100%; padding-left: 20px; margin-top: 0; }
}

/* ── Bantuan / Help (hlp-) ── */
.hlp-header { margin-bottom: 8px; }
.hlp-title { font-size: 20px; font-weight: 600; color: var(--gray-900); margin: 0 0 4px; }
.hlp-sub { font-size: 13px; color: var(--gray-500); margin: 0; }

.hlp-search-wrap { margin-bottom: 16px; }
.hlp-search {
    width: 100%; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 6px;
    font-size: 13px; color: var(--gray-800); background: #fff; box-sizing: border-box;
    transition: border-color .15s;
}
.hlp-search:focus { outline: none; border-color: var(--primary); }

.hlp-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: 8px;
    overflow: hidden; margin-bottom: 16px;
}
.hlp-card-head {
    padding: 14px 20px; border-bottom: 1px solid var(--gray-100);
}
.hlp-card-title { font-size: 14px; font-weight: 600; color: var(--gray-800); margin: 0; }

.hlp-faq-list { display: flex; flex-direction: column; }
.hlp-faq { border-bottom: 1px solid var(--gray-50); }
.hlp-faq:last-of-type { border-bottom: none; }
.hlp-faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 20px; cursor: pointer; transition: background .1s;
}
.hlp-faq-q:hover { background: #fafbfc; }
.hlp-faq-q span { font-size: 13px; font-weight: 500; color: var(--gray-800); }
.hlp-faq-arrow { color: var(--gray-400); flex-shrink: 0; transition: transform .2s; }
.hlp-faq.open .hlp-faq-arrow { transform: rotate(180deg); }
.hlp-faq-a {
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    padding: 0 20px;
}
.hlp-faq.open .hlp-faq-a { max-height: 300px; }
.hlp-faq-a p {
    font-size: 13px; color: var(--gray-500); line-height: 1.6; margin: 0 0 12px;
}
.hlp-faq-a p:last-child { margin-bottom: 14px; }
.hlp-faq-a strong { color: var(--gray-700); font-weight: 600; }

.hlp-no-result { padding: 24px 20px; text-align: center; color: var(--gray-400); font-size: 13px; }

.hlp-contact {
    display: flex; align-items: stretch; background: #fff;
    border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden;
}
.hlp-contact-block { flex: 1; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.hlp-contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); font-weight: 500; }
.hlp-contact-value { font-size: 13px; color: var(--gray-800); font-weight: 500; }
.hlp-contact-sep { width: 1px; background: var(--gray-100); }
.hlp-link { color: var(--primary); text-decoration: none; }
.hlp-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .hlp-contact { flex-direction: column; }
    .hlp-contact-sep { width: auto; height: 1px; background: var(--gray-100); }
    .hlp-contact-block { padding: 12px 16px; }
    .hlp-faq-q { padding: 12px 14px; }
    .hlp-faq-a { padding: 0 14px; }
}

.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
   ============================================ */

/* ── AP Layout (inside dashboard) ── */
.ap-layout { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: calc(100vh - 64px); }

.ap-nav {
    position: sticky; top: 64px; height: calc(100vh - 64px);
    background: #fff; border-right: 1px solid #e8ecf1;
    display: flex; flex-direction: column; overflow: hidden;
    font-family: inherit;
}

/* ── Nav Head ── */
.ap-nav-head {
    padding: 18px 20px 14px;
    border-bottom: 1px solid #edf0f4;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}
.ap-nav-title {
    font-size: 13px; font-weight: 700; color: #111827;
    letter-spacing: -0.01em;
}
.ap-nav-env {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 10px;
    letter-spacing: 0.01em;
}
.ap-nav-env.sandbox { background: #fef3c7; color: #92400e; }
.ap-nav-env.prod { background: #d1fae5; color: #065f46; }
.ap-env-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.ap-nav-env.sandbox .ap-env-dot { background: #d97706; }
.ap-nav-env.prod .ap-env-dot { background: #059669; animation: ap-pulse 2s infinite; }
@keyframes ap-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Nav Search ── */
.ap-nav-search {
    padding: 12px 16px 8px; flex-shrink: 0;
}
.ap-nav-search input {
    width: 100%; box-sizing: border-box;
    padding: 7px 10px; font-size: 12px;
    border: 1px solid #e5e7eb; border-radius: 6px;
    background: #f9fafb; color: #374151;
    outline: none; transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
}
.ap-nav-search input::placeholder { color: #9ca3af; }
.ap-nav-search input:focus { border-color: #93c5fd; background: #fff; }

/* ── Nav Scroll ── */
.ap-nav-scroll {
    flex: 1; overflow-y: auto; padding: 6px 0 16px;
}
.ap-nav-scroll::-webkit-scrollbar { width: 0; }
.ap-nav-scroll:hover::-webkit-scrollbar { width: 3px; }
.ap-nav-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* ── Nav Sections (collapsible) ── */
.ap-nav-section { border-bottom: 1px solid #f3f4f6; }
.ap-nav-section:last-child { border-bottom: none; }

.ap-section-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 10px 20px;
    font-size: 11px; font-weight: 700; color: #6b7280;
    text-transform: uppercase; letter-spacing: 0.04em;
    background: none; border: none; cursor: pointer;
    transition: color 0.12s;
    font-family: inherit;
}
.ap-section-toggle:hover { color: #374151; }
.ap-section-toggle svg {
    transition: transform 0.2s; flex-shrink: 0; color: #9ca3af;
}
.ap-nav-section.collapsed .ap-section-toggle svg { transform: rotate(-90deg); }
.ap-nav-section.collapsed .ap-section-links { display: none; }

.ap-section-links { padding: 0 0 6px; }

/* ── Nav Links ── */
.ap-link {
    display: flex; align-items: center; gap: 7px;
    padding: 6px 20px 6px 24px; font-size: 13px; font-weight: 450;
    color: #4b5563; text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.1s, background 0.1s, border-color 0.1s;
    line-height: 1.4;
}
.ap-link:hover { color: #111827; background: #f9fafb; }
.ap-link.active {
    color: #1d4ed8; font-weight: 600;
    border-left-color: #2563eb;
    background: #eff6ff;
}

/* ── Method Badges ── */
.ap-method {
    font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px;
    text-transform: uppercase; letter-spacing: 0.02em;
    flex-shrink: 0; font-family: 'SF Mono', 'Fira Code', monospace;
    line-height: 1.5;
}
.ap-method.get { background: #ecfdf5; color: #047857; }
.ap-method.post { background: #eff6ff; color: #1d4ed8; }

/* ── Nav Footer ── */
.ap-nav-foot {
    padding: 12px 20px; flex-shrink: 0;
    border-top: 1px solid #edf0f4;
    display: flex; flex-direction: column; gap: 6px;
    background: #fafbfc;
}
.ap-nav-meta {
    display: flex; align-items: center; justify-content: space-between;
}
.ap-meta-label { font-size: 10.5px; color: #9ca3af; font-weight: 500; }
.ap-meta-val {
    font-size: 11px; color: #6b7280; font-weight: 500;
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: none; border: none; padding: 0;
}

/* ── Main Body ── */
.ap-body { min-width: 0; background: #f8f9fb; }

/* ── Mobile Toggle ── */
.ap-nav-toggle {
    display: none; position: fixed; bottom: 80px; right: 16px; z-index: 60;
    background: #1e293b; color: #fff; border: none; border-radius: 8px;
    padding: 10px 16px; font-size: 12px; font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    font-family: inherit;
}

/* ── Docs Content ── */
.docs-content { max-width: 880px; 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;
    padding-bottom: 12px; border-bottom: 2px solid #e2e8f0;
}
.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; }
.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; }

.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;
    counter-increment: docs-step;
}
.docs-step:last-child { border-bottom: none; }
.docs-step::before {
    content: counter(docs-step);
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--gray-100); color: var(--gray-500);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
    border: 1px solid var(--gray-200);
}
.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 ── */

/* ── Bank Picker ── */
.bank-picker { position: relative; }
.bank-picker-selected {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 10px;
    background: #fff; cursor: pointer; font-size: 13.5px; color: #374151;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bank-picker-selected:hover { border-color: var(--primary); }
.bank-picker-selected.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.bank-picker-selected .fa-chevron-down { font-size: 11px; color: #9ca3af; transition: transform 0.2s; }
.bank-picker-selected.active .fa-chevron-down { transform: rotate(180deg); }
.bank-picker-selected-preview { display: flex; align-items: center; gap: 8px; }
.bank-picker-selected-preview img { width: 24px; height: 24px; object-fit: contain; }
.bank-picker-selected-preview .bank-fallback {
    width: 24px; height: 24px; border-radius: 6px; color: #fff;
    font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.bank-picker-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 100;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12); padding: 12px;
    display: none; max-height: 380px; overflow-y: auto;
}
.bank-picker-dropdown.show { display: block; }
.bank-picker-search {
    width: 100%; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px;
    font-size: 13px; outline: none; margin-bottom: 10px; background: #f9fafb;
    box-sizing: border-box;
}
.bank-picker-search:focus { border-color: var(--primary); background: #fff; }
.bank-picker-group-label {
    font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase;
    letter-spacing: 0.05em; margin: 8px 0 6px 2px;
}
.bank-picker-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 4px;
}
.bank-option {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 4px 8px; border: 1.5px solid #f3f4f6; border-radius: 10px;
    cursor: pointer; transition: all 0.15s; text-align: center; background: #fff;
}
.bank-option:hover { border-color: #bfdbfe; background: #eff6ff; }
.bank-option.selected { border-color: var(--primary); background: #eff6ff; box-shadow: 0 0 0 2px rgba(37,99,235,0.12); }
.bank-option.hidden { display: none; }
.bank-option img { width: 36px; height: 28px; object-fit: contain; }
.bank-option .bank-fallback {
    width: 36px; height: 28px; border-radius: 6px; color: #fff;
    font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center;
    letter-spacing: -0.02em;
}
.bank-option .bank-name { font-size: 11px; color: #4b5563; font-weight: 500; line-height: 1.2; }
.bank-option.selected .bank-name { color: var(--primary); font-weight: 600; }
@media (max-width: 480px) {
    .bank-picker-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .bank-option { padding: 8px 2px 6px; }
    .bank-option img { width: 30px; height: 22px; }
    .bank-option .bank-name { font-size: 10px; }
}
.docs-callout {
    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; }

/* ── 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) {
    .ap-layout { grid-template-columns: 1fr; }
    .ap-nav {
        display: none; position: fixed; top: 0; left: 0; bottom: 0;
        width: 280px; z-index: 200;
        box-shadow: 6px 0 28px rgba(0,0,0,0.12);
        height: 100vh; top: 0;
    }
    .ap-nav.open { display: flex; }
    .ap-nav-toggle { display: block; }
    .docs-content { padding: 24px 20px 60px; }
    .doc-cards-grid { grid-template-columns: 1fr; }
    .docs-meta-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .docs-content { padding: 16px 14px 48px; }
    .docs-section { margin-bottom: 32px; }
    .docs-section-title { font-size: 17px; padding-bottom: 10px; }
    .docs-section-desc { font-size: 13px; margin-bottom: 16px; }
    .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-grid { gap: 10px; margin-bottom: 14px; }
    .doc-card { padding: 16px; border-radius: 10px; margin-bottom: 0; }
    .doc-card h4 { font-size: 13.5px; }
    .doc-card p { font-size: 12px; margin-bottom: 10px; }
    .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-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%; }
    .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; }
    .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; }
    .docs-callout { padding: 12px; font-size: 12px; border-radius: 8px; }
    .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; }
    .docs-step { gap: 10px; padding: 10px 0; }
    .docs-step::before { width: 22px; height: 22px; font-size: 10px; }
    .docs-step-body strong { font-size: 12.5px; }
    .docs-step-body span { font-size: 11.5px; }
    .docs-status { font-size: 10px; padding: 2px 8px; }
}

/* ============================================
   Merchant Dashboard Page
   ============================================ */

/* ── Balance Strip ── */
.db-balance {
    display: flex; align-items: stretch;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    margin-bottom: 20px; overflow: hidden;
}
.db-bal-item {
    flex: 1; padding: 18px 22px;
    display: flex; flex-direction: column; gap: 2px;
    min-width: 0;
}
.db-bal-divider { width: 1px; background: #f0f1f3; flex-shrink: 0; margin: 12px 0; }
.db-bal-label { font-size: 11.5px; font-weight: 500; color: #6b7280; letter-spacing: 0.01em; }
.db-bal-amount {
    font-size: 19px; font-weight: 800; color: #111827;
    line-height: 1.3; letter-spacing: -0.02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.db-bal-pending { color: #d97706; }
.db-bal-hint { font-size: 10.5px; color: #9ca3af; font-weight: 400; }

/* ── Cards ── */
.db-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 22px 24px; margin-bottom: 16px; min-width: 0; overflow: hidden;
}
.db-card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.db-card-title {
    font-size: 14px; font-weight: 700; color: #111827;
    display: flex; align-items: center; gap: 8px;
    margin: 0;
}
.db-card-sub { font-size: 11px; font-weight: 500; color: #9ca3af; }
.db-card-action {
    font-size: 12.5px; font-weight: 600; color: #2563eb;
    text-decoration: none; transition: opacity 0.15s;
}
.db-card-action:hover { opacity: 0.7; }

/* ── Env Tag ── */
.db-env-tag {
    font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
    text-transform: uppercase; letter-spacing: 0.03em; vertical-align: middle;
}
.db-env-tag.sandbox { background: #fef3c7; color: #92400e; }
.db-env-tag.prod { background: #dbeafe; color: #1d4ed8; }

/* ── Tabs ── */
.db-tabs {
    display: flex; gap: 2px; background: #f3f4f6; border-radius: 7px; padding: 3px;
}
.db-tab {
    padding: 5px 13px; font-size: 11.5px; font-weight: 600; border: none; background: none;
    border-radius: 5px; color: #6b7280; cursor: pointer; transition: all 0.15s;
    font-family: inherit;
}
.db-tab.active { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.db-tab:hover:not(.active) { color: #374151; }

/* ── Chart Wrap ── */
.db-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
.db-charts .db-card { margin-bottom: 16px; }
.db-chart-wrap { position: relative; height: 180px; width: 100%; }

/* ── Status Row ── */
.db-status-row { display: grid; grid-template-columns: 300px 1fr; gap: 16px; margin-bottom: 0; }
.db-card-narrow { display: flex; flex-direction: column; }
.db-card-wide { display: flex; flex-direction: column; }
.db-donut-wrap { position: relative; height: 180px; width: 100%; flex: 1; }

/* ── Breakdown (status bars) ── */
.db-breakdown { display: flex; flex-direction: column; gap: 8px; }
.db-bd-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; padding: 4px 0;
}
.db-bd-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.db-bd-name { width: 64px; color: #374151; font-weight: 500; flex-shrink: 0; }
.db-bd-bar {
    flex: 1; height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden;
    min-width: 60px;
}
.db-bd-bar span { display: block; height: 100%; border-radius: 3px; transition: width 0.4s; }
.db-bd-count { min-width: 28px; text-align: right; font-weight: 700; color: #111827; font-size: 12.5px; }
.db-bd-pct { min-width: 36px; text-align: right; color: #9ca3af; font-size: 11.5px; font-weight: 500; }

/* ── Empty State ── */
.db-empty {
    text-align: center; padding: 40px 16px; color: #9ca3af;
    font-size: 13px; font-weight: 500;
}

/* ── Dashboard Responsive ── */
@media (max-width: 900px) {
    .db-balance { flex-direction: column; }
    .db-bal-divider { width: auto; height: 1px; margin: 0 16px; }
    .db-charts { grid-template-columns: 1fr; }
    .db-status-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .db-bal-item { padding: 14px 16px; }
    .db-bal-amount { font-size: 16px; }
    .db-card { padding: 16px; border-radius: 8px; }
    .db-card-title { font-size: 13px; }
    .db-chart-wrap { height: 160px; }
    .db-donut-wrap { height: 160px; }
    .db-bd-name { width: 52px; font-size: 12px; }
    .db-bd-bar { min-width: 40px; }
}

/* ============================================
   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 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; }
}
@media (max-width: 480px) {
    .grid-auto-fit { grid-template-columns: 1fr; }
}

/* ── Merchant Dashboard Quick Actions ── */
.quick-action-link {
    text-decoration: none;
}

/* ── Required Star ── */
.req { color: #ef4444; }

/* ══════════════════════════════════════
   Project Create - Professional Form
   ══════════════════════════════════════ */

.pc-topbar {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}
.pc-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 13px;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
    text-decoration: none;
}
.pc-back:hover {
    background: var(--gray-50);
    color: var(--gray-700);
}
.pc-topbar-text h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 2px;
}
.pc-topbar-text p {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0;
}

.pc-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 12.5px;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.5;
}
.pc-notice-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.pc-form { max-width: 720px; }

.pc-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
}
.pc-section-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}
.pc-section-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 3px;
}
.pc-section-head p {
    font-size: 12.5px;
    color: var(--gray-400);
    margin: 0;
    line-height: 1.5;
}

.pc-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.pc-field { display: flex; flex-direction: column; gap: 5px; }
.pc-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}
.pc-field input,
.pc-field select,
.pc-field textarea {
    padding: 9px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color 0.15s;
    font-family: inherit;
    width: 100%;
}
.pc-field input:focus,
.pc-field select:focus,
.pc-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.pc-field input::placeholder,
.pc-field textarea::placeholder {
    color: var(--gray-300);
}
.pc-field small {
    font-size: 11.5px;
    color: var(--gray-400);
    line-height: 1.4;
}
.pc-opt {
    font-weight: 400;
    color: var(--gray-400);
    font-size: 12px;
}

.pc-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pc-sub-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gray-100);
}
.pc-hint-muted {
    font-size: 11.5px;
    color: var(--gray-400);
}

/* Logo Upload */
.pc-logo-upload {
    width: 88px;
    height: 88px;
    border: 1px dashed var(--gray-300);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}
.pc-logo-upload:hover,
.pc-logo-upload.dragging {
    border-color: var(--primary);
    background: var(--primary-50);
}
.pc-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.pc-logo-placeholder i {
    font-size: 18px;
    color: var(--gray-300);
}
.pc-logo-placeholder span {
    font-size: 10px;
    color: var(--gray-400);
    font-weight: 500;
}
.pc-logo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
}

/* Note Box */
.pc-note-box {
    padding: 14px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
}
.pc-note-box strong {
    display: block;
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 6px;
}
.pc-note-box ul {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.9;
}

/* Terms */
.pc-section-terms .pc-section-head {
    margin-bottom: 14px;
    padding-bottom: 0;
    border-bottom: none;
}
.pc-terms-content {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12.5px;
    color: var(--gray-500);
    line-height: 1.8;
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 14px;
}
.pc-terms-content p { margin: 0 0 2px; }
.pc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}
.pc-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* Footer */
.pc-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
}
.pc-btn-cancel {
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.pc-btn-cancel:hover {
    background: var(--gray-50);
    color: var(--gray-700);
}
.pc-btn-submit {
    padding: 9px 28px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.pc-btn-submit:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Responsive */
@media (max-width: 640px) {
    .pc-section { padding: 18px 16px; }
    .pc-row-2 { grid-template-columns: 1fr; }
    .pc-topbar-text h2 { font-size: 15px; }
    .pc-footer { flex-direction: column-reverse; }
    .pc-btn-cancel, .pc-btn-submit { width: 100%; justify-content: center; text-align: center; }
}

/* ══════════════════════════════════════
   Payments Page - Professional Layout
   ══════════════════════════════════════ */

.pay-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
    align-items: start;
}

/* Form Column */
.pay-form-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 20px;
}
.pay-form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 22px;
}
.pay-form-head {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-100);
}
.pay-form-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 3px;
}
.pay-form-head p {
    font-size: 12.5px;
    color: var(--gray-400);
    margin: 0;
}
.pay-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pay-fields .pc-field input,
.pay-fields .pc-field select {
    padding: 9px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color 0.15s;
    font-family: inherit;
    width: 100%;
}
.pay-fields .pc-field input:focus,
.pay-fields .pc-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.pay-input-prefix,
.pay-input-suffix {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.pay-input-prefix:focus-within,
.pay-input-suffix:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.pay-input-prefix span,
.pay-input-suffix span {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: var(--gray-50);
    color: var(--gray-400);
    font-size: 12px;
    font-weight: 600;
    border-right: 1px solid var(--gray-200);
    white-space: nowrap;
}
.pay-input-suffix span {
    border-right: none;
    border-left: 1px solid var(--gray-200);
    order: 2;
}
.pay-input-prefix input,
.pay-input-suffix input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
    min-width: 0;
}

.pay-fee-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 12px;
    color: var(--gray-500);
}
.pay-fee-info strong {
    color: var(--gray-700);
}

.pay-submit-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.pay-submit-btn:hover {
    background: var(--primary-dark);
}

.pay-empty-project {
    text-align: center;
    padding: 20px 10px;
}
.pay-empty-project p {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 14px;
}

/* Lifecycle */
.pay-lifecycle {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px 18px;
}
.pay-lifecycle-head {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}
.pay-lifecycle-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pay-lc-step {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pay-lc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pay-lc-pending { background: var(--warning); }
.pay-lc-success { background: var(--success); }
.pay-lc-expired { background: var(--gray-300); }
.pay-lc-step strong {
    font-size: 12px;
    color: var(--gray-700);
    display: block;
    line-height: 1;
}
.pay-lc-step span {
    font-size: 11px;
    color: var(--gray-400);
}

/* List Column */
.pay-list-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    overflow: hidden;
}
.pay-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-100);
}
.pay-list-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}
.pay-list-count {
    font-size: 12px;
    color: var(--gray-400);
}
.pay-clear-btn {
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    background: transparent;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.pay-clear-btn:hover {
    background: #fef2f2;
    color: var(--danger);
    border-color: #fecaca;
}

.pay-empty-list {
    padding: 40px 20px;
    text-align: center;
}
.pay-empty-list p {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0;
}

/* Payment Items */
.pay-items {
    display: flex;
    flex-direction: column;
}
.pay-item {
    padding: 16px 22px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.1s;
}
.pay-item:last-child { border-bottom: none; }
.pay-item:hover { background: var(--gray-50); }

.pay-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.pay-item-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1;
}
.pay-item-id {
    font-size: 11px;
    color: var(--gray-400);
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-top: 3px;
}
.pay-item-right {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Status Badges */
.pay-status {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.pay-status-pending { background: #fffbeb; color: #d97706; }
.pay-status-paid,
.pay-status-success { background: #ecfdf5; color: #059669; }
.pay-status-expired { background: var(--gray-100); color: var(--gray-400); }
.pay-status-cancelled,
.pay-status-failed { background: #fef2f2; color: #dc2626; }
.pay-mode-sandbox {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
}

/* Meta */
.pay-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 10px;
}
.pay-item-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-600);
}
.pay-meta-label {
    color: var(--gray-400);
    min-width: 50px;
}

/* Actions */
.pay-item-footer {
    display: flex;
    gap: 8px;
}
.pay-link-btn,
.pay-copy-btn {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
    border: none;
}
.pay-link-btn {
    background: var(--primary-50);
    color: var(--primary);
}
.pay-link-btn:hover { background: var(--primary-100); }
.pay-copy-btn {
    background: transparent;
    color: var(--gray-400);
    border: 1px solid var(--gray-200);
}
.pay-copy-btn:hover {
    background: var(--gray-50);
    color: var(--gray-600);
}
.pay-copy-btn.copied {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

/* Pagination */
.pay-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px;
    border-top: 1px solid var(--gray-100);
}
.pay-pg-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}
.pay-pg-btn:hover { background: var(--gray-50); }
.pay-pg-btn.active {
    background: var(--primary);
    color: #fff;
}
.pay-pg-dots {
    color: var(--gray-300);
    font-size: 12px;
    padding: 0 2px;
}

/* Responsive */
@media (max-width: 900px) {
    .pay-layout {
        grid-template-columns: 1fr;
    }
    .pay-form-col {
        position: static;
    }
}
@media (max-width: 640px) {
    .pay-form-card { padding: 16px; }
    .pay-list-head { padding: 14px 16px; }
    .pay-item { padding: 14px 16px; }
    .pay-item-meta { flex-direction: column; gap: 4px; }
    .pay-fields .pc-row-2 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   Transactions Page
   ══════════════════════════════════════ */

.tx-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.tx-header-left h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 6px;
}
.tx-counts {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tx-count-item {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
}
.tx-c-success { color: var(--success); }
.tx-c-pending { color: var(--warning); }
.tx-c-failed { color: var(--danger); }
.tx-count-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gray-300);
}
.tx-header-right {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.tx-export-btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.tx-export-btn:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}
.tx-danger-btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    background: transparent;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.tx-danger-btn:hover {
    background: #fef2f2;
    color: var(--danger);
    border-color: #fecaca;
}

/* Filters */
.tx-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.tx-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}
.tx-filter-search { flex: 1; min-width: 0; }
.tx-filter label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tx-filter select,
.tx-filter input {
    padding: 8px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-700);
    background: var(--white);
    font-family: inherit;
    transition: border-color 0.15s;
}
.tx-filter select:focus,
.tx-filter input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* List Card */
.tx-list-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    overflow: hidden;
}
.tx-empty {
    padding: 48px 20px;
    text-align: center;
}
.tx-empty p {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0;
}

/* Table */
.tx-table-wrap { overflow-x: auto; }
.tx-table {
    width: 100%;
    border-collapse: collapse;
}
.tx-table thead th {
    padding: 12px 18px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
    white-space: nowrap;
}
.tx-table tbody tr {
    transition: background 0.1s;
}
.tx-table tbody tr:hover { background: var(--gray-50); }
.tx-table tbody td {
    padding: 13px 18px;
    font-size: 13px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
.tx-table tbody tr:last-child td { border-bottom: none; }

.tx-cell-id {
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--gray-500);
}
.tx-cell-source {
    font-size: 11px;
    color: var(--primary);
    margin-top: 2px;
}

.tx-method {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}
.tx-amount {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
}
.tx-date {
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
}

/* Status */
.tx-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.tx-st-success { background: #ecfdf5; color: #059669; }
.tx-st-paid { background: #ecfdf5; color: #059669; }
.tx-st-pending { background: #fffbeb; color: #d97706; }
.tx-st-failed { background: #fef2f2; color: #dc2626; }
.tx-st-expired { background: var(--gray-100); color: var(--gray-400); }
.tx-st-refund { background: #ede9fe; color: #7c3aed; }
.tx-st-cancelled { background: #fef2f2; color: #dc2626; }

.tx-detail-btn {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-50);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.tx-detail-btn:hover { background: var(--primary-100); }

/* Detail Modal Grid */
.tx-detail-grid {
    display: flex;
    flex-direction: column;
}
.tx-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}
.tx-detail-row:last-child { border-bottom: none; }
.tx-dl {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
}
.tx-dv {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
}
.tx-dv code {
    font-size: 12px;
    background: var(--gray-50);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--gray-600);
}

/* Responsive */
@media (max-width: 768px) {
    .tx-header {
        flex-direction: column;
        gap: 12px;
    }
    .tx-header-right { width: 100%; }
    .tx-header-right .tx-export-btn,
    .tx-header-right .tx-danger-btn {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
    .tx-filters {
        flex-direction: column;
        gap: 8px;
    }
    .tx-filter { min-width: 0; }
    .tx-table thead th { padding: 10px 12px; font-size: 10px; }
    .tx-table tbody td { padding: 10px 12px; font-size: 12px; }
}
@media (max-width: 480px) {
    .tx-counts { gap: 6px; }
    .tx-count-item { font-size: 11px; }
}

/* ── 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;
}

/* ── Laporan / Report (rpt-) ── */
.rpt-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rpt-header-left { display: flex; align-items: baseline; gap: 12px; }
.rpt-title { font-size: 20px; font-weight: 600; color: var(--gray-900); margin: 0; }
.rpt-period { font-size: 13px; color: var(--gray-500); }
.rpt-header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rpt-period-form { display: flex; align-items: center; gap: 6px; }
.rpt-select {
    height: 34px; padding: 0 10px; border: 1px solid var(--gray-200); border-radius: 6px;
    font-size: 13px; color: var(--gray-700); background: #fff; min-width: 100px;
}
.rpt-btn-apply {
    height: 34px; padding: 0 14px; border: 1px solid var(--gray-200); border-radius: 6px;
    font-size: 13px; font-weight: 500; color: var(--gray-700); background: #fff; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.rpt-btn-apply:hover { border-color: var(--gray-400); background: var(--gray-50); }
.rpt-btn-export {
    height: 34px; padding: 0 14px; border: 1px solid var(--primary); border-radius: 6px;
    font-size: 13px; font-weight: 500; color: var(--primary); background: #fff; cursor: pointer;
    transition: background .15s, color .15s;
}
.rpt-btn-export:hover { background: var(--primary); color: #fff; }

.rpt-summary {
    display: flex; gap: 0; border: 1px solid var(--gray-200); border-radius: 8px;
    background: #fff; margin-bottom: 20px; overflow: hidden;
}
.rpt-metric {
    flex: 1; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px;
    border-right: 1px solid var(--gray-100);
}
.rpt-metric:last-child { border-right: none; }
.rpt-metric-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); font-weight: 500; }
.rpt-metric-value { font-size: 17px; font-weight: 600; color: var(--gray-900); }

.rpt-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: 8px;
    margin-bottom: 16px; overflow: hidden;
}
.rpt-card-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--gray-100);
}
.rpt-card-title { font-size: 14px; font-weight: 600; color: var(--gray-800); margin: 0; }
.rpt-card-sub { font-size: 12px; color: var(--gray-400); }

.rpt-chart { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.rpt-bar-row { display: flex; align-items: center; gap: 10px; }
.rpt-bar-date { font-size: 12px; color: var(--gray-500); width: 72px; flex-shrink: 0; }
.rpt-bar-track { flex: 1; height: 6px; background: var(--gray-100); border-radius: 3px; overflow: hidden; }
.rpt-bar-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width .3s; }
.rpt-bar-val { font-size: 12px; font-weight: 500; color: var(--gray-700); width: 110px; text-align: right; flex-shrink: 0; }
.rpt-bar-count { font-size: 11px; color: var(--gray-400); width: 48px; text-align: right; flex-shrink: 0; }

.rpt-empty { padding: 32px 20px; text-align: center; color: var(--gray-400); font-size: 13px; margin: 0; }

.rpt-table-wrap { overflow-x: auto; }
.rpt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rpt-table thead th {
    text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500);
    background: var(--gray-50); border-bottom: 1px solid var(--gray-100);
}
.rpt-table tbody td { padding: 10px 16px; color: var(--gray-700); border-bottom: 1px solid var(--gray-50); }
.rpt-table tbody tr:hover { background: #f8fafc; }
.rpt-mono { font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace; font-size: 12px; color: var(--gray-500); }
.rpt-status {
    display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500;
}
.rpt-st-ok { background: #ecfdf5; color: #059669; }
.rpt-st-wait { background: #fffbeb; color: #d97706; }
.rpt-st-exp { background: var(--gray-100); color: var(--gray-500); }
.rpt-st-fail { background: #fef2f2; color: #dc2626; }

@media (max-width: 900px) {
    .rpt-summary { flex-wrap: wrap; }
    .rpt-metric { flex: 1 1 calc(50% - 1px); min-width: 140px; }
    .rpt-metric:nth-child(2) { border-right: none; }
    .rpt-bar-val { width: 90px; }
    .rpt-bar-count { display: none; }
}
@media (max-width: 640px) {
    .rpt-header { flex-direction: column; align-items: flex-start; }
    .rpt-header-right { width: 100%; }
    .rpt-period-form { flex: 1; }
    .rpt-select { flex: 1; }
    .rpt-summary { flex-direction: column; }
    .rpt-metric { border-right: none; border-bottom: 1px solid var(--gray-100); padding: 12px 16px; }
    .rpt-metric:last-child { border-bottom: none; }
    .rpt-bar-date { width: 56px; font-size: 11px; }
    .rpt-bar-val { width: 80px; font-size: 11px; }
    .rpt-table thead th, .rpt-table tbody td { padding: 8px 10px; }
}

/* ── Withdraw (wd-) ── */
.wd-header { margin-bottom: 16px; }
.wd-title { font-size: 20px; font-weight: 600; color: var(--gray-900); margin: 0; }

.wd-alert { padding: 10px 16px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
.wd-alert-ok { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; }
.wd-alert-err { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.wd-balance-strip {
    display: flex; align-items: stretch; background: #fff;
    border: 1px solid var(--gray-200); border-radius: 8px;
    margin-bottom: 20px; overflow: hidden;
}
.wd-bal { flex: 1; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.wd-bal-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); font-weight: 500; }
.wd-bal-value { font-size: 17px; font-weight: 600; color: var(--gray-900); }
.wd-val-muted { color: var(--gray-500); }
.wd-bal-sep { width: 1px; background: var(--gray-100); }

.wd-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-bottom: 20px; }

.wd-form-panel, .wd-info-panel, .wd-history {
    background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden;
}
.wd-panel-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 14px 20px; border-bottom: 1px solid var(--gray-100);
}
.wd-panel-title { font-size: 14px; font-weight: 600; color: var(--gray-800); margin: 0; }
.wd-panel-sub { font-size: 12px; color: var(--gray-400); }
.wd-panel-body { padding: 20px; }

.wd-field { margin-bottom: 14px; }
.wd-field:last-child { margin-bottom: 0; }
.wd-label { display: block; font-size: 12px; font-weight: 500; color: var(--gray-600); margin-bottom: 5px; }
.wd-input {
    width: 100%; padding: 9px 12px; border: 1px solid var(--gray-200); border-radius: 6px;
    font-size: 13px; color: var(--gray-800); background: #fff; box-sizing: border-box;
    transition: border-color .15s;
}
.wd-input:focus { outline: none; border-color: var(--primary); }
.wd-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.wd-calc { background: var(--gray-50); border-radius: 6px; padding: 10px 14px; margin-top: 8px; }
.wd-calc-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: var(--gray-600); }
.wd-calc-total { border-top: 1px solid var(--gray-200); margin-top: 4px; padding-top: 6px; font-weight: 600; color: var(--gray-800); }
.wd-field-err { font-size: 12px; color: #dc2626; margin-top: 4px; }

.wd-form-footer { padding-top: 6px; }
.wd-btn-submit {
    width: 100%; padding: 10px; border: none; border-radius: 6px;
    font-size: 13px; font-weight: 600; color: #fff; background: var(--primary);
    cursor: pointer; transition: background .15s;
}
.wd-btn-submit:hover { background: #1d4ed8; }
.wd-btn-submit:disabled { opacity: .5; cursor: not-allowed; }

.wd-empty-msg { color: var(--gray-400); font-size: 13px; margin: 0; }

.wd-rules { display: flex; flex-direction: column; gap: 0; }
.wd-rule {
    display: flex; justify-content: space-between; padding: 10px 0;
    border-bottom: 1px solid var(--gray-50); font-size: 13px;
}
.wd-rule:last-child { border-bottom: none; }
.wd-rule-label { color: var(--gray-500); }
.wd-rule-value { color: var(--gray-800); font-weight: 500; }
.wd-note { font-size: 12px; color: var(--gray-400); margin: 14px 0 0; line-height: 1.5; }

.wd-table-wrap { overflow-x: auto; }
.wd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wd-table thead th {
    text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500);
    background: var(--gray-50); border-bottom: 1px solid var(--gray-100);
}
.wd-table tbody td { padding: 10px 16px; color: var(--gray-700); border-bottom: 1px solid var(--gray-50); vertical-align: top; }
.wd-table tbody tr:hover { background: #f8fafc; }
.wd-dest-bank { display: block; font-weight: 500; color: var(--gray-800); font-size: 13px; }
.wd-dest-acc { display: block; font-size: 12px; color: var(--gray-400); margin-top: 1px; }
.wd-status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.wd-st-ok { background: #ecfdf5; color: #059669; }
.wd-st-wait { background: #fffbeb; color: #d97706; }
.wd-st-fail { background: #fef2f2; color: #dc2626; }
.wd-st-cancel { background: var(--gray-100); color: var(--gray-500); }
.wd-link { font-size: 12px; color: var(--primary); text-decoration: none; font-weight: 500; }
.wd-link:hover { text-decoration: underline; }
.wd-btn-cancel {
    padding: 4px 10px; border: 1px solid var(--gray-300); border-radius: 4px;
    font-size: 12px; color: var(--gray-600); background: #fff; cursor: pointer;
    transition: border-color .15s, color .15s;
}
.wd-btn-cancel:hover { border-color: #dc2626; color: #dc2626; }
.wd-no-action { color: var(--gray-300); font-size: 12px; }

@media (max-width: 900px) {
    .wd-layout { grid-template-columns: 1fr; }
    .wd-balance-strip { flex-wrap: wrap; }
    .wd-bal { flex: 1 1 calc(50% - 1px); min-width: 140px; }
    .wd-bal-sep { display: none; }
    .wd-bal { border-bottom: 1px solid var(--gray-100); }
}
@media (max-width: 640px) {
    .wd-balance-strip { flex-direction: column; }
    .wd-bal { border-bottom: 1px solid var(--gray-100); padding: 12px 16px; }
    .wd-bal:last-child { border-bottom: none; }
    .wd-row-2 { grid-template-columns: 1fr; }
    .wd-table thead th, .wd-table tbody td { padding: 8px 10px; }
}

/* ── 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; }
}

/* ══════════════════════════════════════
   Projects Page - Professional Layout
   ══════════════════════════════════════ */

/* Overview Bar */
.prj-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 16px;
}
.prj-overview-left { flex: 1; min-width: 0; }
.prj-overview-greeting h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
}
.prj-overview-greeting p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
}
.prj-metrics {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 18px;
}
.prj-metric { text-align: center; }
.prj-metric-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1;
}
.prj-metric-label {
    display: block;
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.prj-metric-active { color: var(--success); }
.prj-metric-pending { color: var(--warning); }
.prj-metric-rejected { color: var(--danger); }
.prj-metric-divider {
    width: 1px;
    height: 32px;
    background: var(--gray-200);
}
.prj-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.prj-create-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}
.prj-create-btn i { font-size: 12px; }

/* Flow Strip */
.prj-flow-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    overflow-x: auto;
}
.prj-flow-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.prj-flow-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.prj-flow-text span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.2;
}
.prj-flow-text small {
    font-size: 11px;
    color: var(--gray-400);
}
.prj-flow-arrow {
    color: var(--gray-300);
    font-size: 10px;
    flex-shrink: 0;
    padding: 0 2px;
}

/* Empty State */
.prj-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
}
.prj-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gray-50);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.prj-empty-icon i {
    font-size: 24px;
    color: var(--gray-300);
}
.prj-empty h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.prj-empty p {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 20px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* List Header */
.prj-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.prj-list-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}
.prj-list-header h3 i {
    color: var(--primary);
    font-size: 14px;
}
.prj-list-count {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
}

/* Project Cards Grid */
.prj-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 14px;
}
.prj-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 20px;
    transition: var(--transition);
    position: relative;
}
.prj-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}
.prj-card-active {
    border-color: rgba(16, 185, 129, 0.2);
}
.prj-card-active:hover {
    border-color: rgba(16, 185, 129, 0.35);
}

/* Card Top */
.prj-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.prj-card-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.prj-card-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--gray-100);
}
.prj-card-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.prj-card-logo-placeholder i {
    font-size: 15px;
    color: var(--primary);
}
.prj-card-info { min-width: 0; }
.prj-card-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prj-card-id {
    font-size: 11px;
    color: var(--gray-400);
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 0.01em;
}

/* Badges */
.prj-card-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.prj-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.prj-badge i { font-size: 10px; }
.prj-badge-active { background: #ecfdf5; color: #059669; }
.prj-badge-pending { background: #fffbeb; color: #d97706; }
.prj-badge-rejected { background: #fef2f2; color: #dc2626; }
.prj-badge-suspended { background: #fef3c7; color: #92400e; }
.prj-badge-production { background: #ecfdf5; color: #059669; }
.prj-badge-sandbox { background: #fef3c7; color: #b45309; }

/* Meta Info */
.prj-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--gray-100);
}
.prj-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-500);
    min-width: 0;
}
.prj-card-meta-item i {
    font-size: 11px;
    color: var(--gray-400);
    flex-shrink: 0;
}
.prj-card-meta-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Review Note */
.prj-card-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #fef2f2;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #991b1b;
    line-height: 1.5;
}
.prj-card-note i {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 12px;
}

/* Card Actions */
.prj-card-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}
.prj-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: inherit;
}
.prj-action-detail {
    background: var(--primary-50);
    color: var(--primary);
}
.prj-action-detail:hover {
    background: var(--primary-100);
}
.prj-action-delete {
    background: transparent;
    color: var(--gray-400);
}
.prj-action-delete:hover {
    background: #fef2f2;
    color: var(--danger);
}

/* Responsive */
@media (max-width: 900px) {
    .prj-overview {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .prj-overview-right {
        width: 100%;
    }
    .prj-create-btn {
        width: 100%;
        justify-content: center;
    }
    .prj-cards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .prj-overview { padding: 16px; }
    .prj-overview-greeting h2 { font-size: 16px; }
    .prj-metrics { gap: 14px; }
    .prj-metric-num { font-size: 18px; }
    .prj-flow-strip {
        padding: 12px 14px;
        gap: 4px;
    }
    .prj-flow-text span { font-size: 11px; }
    .prj-flow-text small { display: none; }
    .prj-flow-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    .prj-card { padding: 16px; }
    .prj-card-top { flex-direction: column; }
    .prj-card-badges { justify-content: flex-start; }
}

/* ==============================================
   PROJECT DETAIL (pd-)
   ============================================== */
.pd-alert {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 6px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.pd-alert--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.pd-alert--danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Header */
.pd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.pd-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.pd-header-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.pd-header-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pd-header-name {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}
.pd-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}
.pd-header-id {
    font-size: 12px;
    color: #6b7280;
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.pd-back {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all .15s;
}
.pd-back:hover {
    color: #111827;
    border-color: #d1d5db;
    background: #f9fafb;
}

/* Status Badge */
.pd-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.01em;
}
.pd-status--active { background: #f0fdf4; color: #166534; }
.pd-status--pending { background: #fffbeb; color: #92400e; }
.pd-status--rejected { background: #fef2f2; color: #991b1b; }
.pd-status--suspended { background: #fff7ed; color: #9a3412; }

/* Banner */
.pd-banner {
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 6px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.pd-banner--warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.pd-banner--danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Section Card */
.pd-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}
.pd-section-head {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}
.pd-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.pd-section-sub {
    font-size: 12.5px;
    color: #6b7280;
    margin-top: 2px;
    display: block;
}

/* 2-column layout */
.pd-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}
.pd-cols .pd-section {
    margin-bottom: 0;
}

/* Field Grid */
.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}
.pd-field {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.pd-field:nth-last-child(-n+3):nth-child(3n+1),
.pd-field:nth-last-child(-n+3):nth-child(3n+1) ~ .pd-field {
    border-bottom: none;
}
.pd-field--full {
    grid-column: 1 / -1;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.pd-field--full:last-child { border-bottom: none; }
.pd-field-label {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.pd-field-value {
    font-size: 13.5px;
    color: #111827;
    word-break: break-all;
}
.pd-field-text {
    font-size: 13.5px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}
.pd-mono {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12.5px;
}

/* Subsection */
.pd-subsection {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.pd-subsection-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
}

/* Timestamps */
.pd-timestamps {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    font-size: 11.5px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-ts-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d1d5db;
}

/* Form Stack */
.pd-form-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pd-form-stack .form-group {
    margin-bottom: 0;
}
.pd-form-foot {
    padding-top: 4px;
}

/* Color Picker */
.pd-color-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.pd-color-pick {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pd-color-pick input[type="color"] {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
    background: none;
}
.pd-color-text {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
}

/* Dropzone */
.pd-dropzone {
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s;
}
.pd-dropzone:hover {
    border-color: #d1d5db;
}
.pd-dropzone-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 4px 0;
}
.pd-dropzone-hint {
    font-size: 11.5px;
    color: #9ca3af;
}

/* BG Preview */
.pd-bg-preview {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}
.pd-bg-preview img {
    width: 100%;
    max-height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.pd-bg-change {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Theme Preview */
.pd-theme-preview {
    border-radius: 10px;
    padding: 32px 20px;
    background: linear-gradient(160deg, #0f172a, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.pd-theme-preview-inner {
    text-align: center;
}
.pd-theme-preview-qr {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    margin: 0 auto 14px;
}
.pd-theme-preview-btn {
    display: inline-block;
    padding: 8px 28px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #3b82f6;
    transition: background .2s;
}

/* API Key Block */
.pd-key-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pd-key-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.pd-key-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    min-width: 80px;
}
.pd-key-value {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12.5px;
    color: #111827;
    background: #f9fafb;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #f3f4f6;
    word-break: break-all;
    flex: 1;
}
.pd-key-meta {
    font-size: 11.5px;
    color: #9ca3af;
    margin-top: 2px;
}
.pd-key-empty {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}
.pd-key-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}
.pd-inline-form {
    display: inline;
}
.pd-link-docs {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}
.pd-link-docs:hover {
    text-decoration: underline;
}

/* IP Whitelist */
.pd-field-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 8px 0;
}
.pd-ip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pd-ip-tag {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11.5px;
    color: #374151;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 4px;
}
.pd-ip-note {
    font-size: 12.5px;
    color: #9ca3af;
    margin: 0;
}

/* Danger Section */
.pd-section--danger {
    border-color: #fecaca;
}
.pd-section--danger .pd-section-title {
    color: #991b1b;
}
.pd-section--danger .pd-section-sub {
    color: #b91c1c;
}
.pd-btn-delete {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #dc2626;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}
.pd-btn-delete:hover {
    background: #b91c1c;
}

/* Delete Confirm Modal */
.pd-confirm-text {
    font-size: 14px;
    color: #111827;
    line-height: 1.5;
    margin: 0 0 6px 0;
}
.pd-confirm-sub {
    font-size: 12.5px;
    color: #6b7280;
    margin: 0 0 16px 0;
}
.pd-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 1024px) {
    .pd-cols {
        grid-template-columns: 1fr;
    }
    .pd-cols .pd-section {
        margin-bottom: 20px;
    }
}
@media (max-width: 768px) {
    .pd-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .pd-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pd-field:nth-last-child(-n+2):nth-child(2n+1),
    .pd-field:nth-last-child(-n+2):nth-child(2n+1) ~ .pd-field {
        border-bottom: none;
    }
    .pd-section {
        padding: 18px;
    }
    .pd-color-row {
        grid-template-columns: 1fr;
    }
    .pd-key-row {
        flex-direction: column;
        gap: 4px;
    }
    .pd-key-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 480px) {
    .pd-header-name {
        font-size: 17px;
    }
    .pd-grid {
        grid-template-columns: 1fr;
    }
    .pd-field {
        border-bottom: 1px solid #f3f4f6;
    }
    .pd-field:last-child { border-bottom: none; }
    .pd-section {
        padding: 14px;
    }
    .pd-confirm-actions {
        flex-direction: column;
    }
    .pd-confirm-actions .btn,
    .pd-confirm-actions .pd-btn-delete {
        width: 100%;
        text-align: center;
    }
}
