/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f0f4f8;
    color: #1a202c;
    min-height: 100vh;
}

/* Layout */
.app {
    display: flex;
    min-height: 100vh;
}

/* ====== SIDEBAR ====== */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0b1f49 0%, #1a3a6b 100%);
    color: #ffffff;
    padding: 1.8rem 1.2rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* ====== BRAND ====== */
.sidebar-brand-wrap {
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ====== NAVIGATION ====== */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.3);
    padding: 0.6rem 0.8rem 0.3rem 0.8rem;
}

.nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ====== LOGOUT ====== */
.nav-link.logout-link {
    color: rgba(255, 150, 150, 0.7);
    margin-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.8rem;
}

.nav-link.logout-link:hover {
    color: #ff6b6b;
    background: rgba(255, 80, 80, 0.1);
}

/* ====== ZALO ====== */
.support-group {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link.zalo-link {
    background: rgba(0, 104, 255, 0.12);
    border: 1px solid rgba(0, 104, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.nav-link.zalo-link:hover {
    background: rgba(0, 104, 255, 0.25);
    border-color: rgba(0, 104, 255, 0.3);
    color: #ffffff;
}

/* ====== SIDEBAR SCROLLBAR ====== */
.sidebar::-webkit-scrollbar {
    width: 3px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        padding: 1.5rem 1rem;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
}

.sidebar-nav a .icon {
    width: 20px;
    text-align: center;
}


/* Main Content */
.main {
    margin-left: 260px;
    flex: 1;
    padding: 2rem;
}

/* Top Bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.topbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b1f49;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0b1f49;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-primary {
    background: #0b1f49;
    color: #fff;
}

.btn-primary:hover {
    background: #1a3a6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11,31,73,0.3);
}

.btn-outline {
    background: transparent;
    color: #0b1f49;
    border: 2px solid #0b1f49;
}

.btn-outline:hover {
    background: #0b1f49;
    color: #fff;
}

.btn-success {
    background: #0d9488;
    color: #fff;
}

.btn-success:hover {
    background: #0f766e;
}

.btn-light {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-light:hover {
    background: #e2e8f0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: #f1f5f9; color: #475569; }

/* License Cards */
.license-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.license-key {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b1f49;
    letter-spacing: 1px;
}

.copy-btn {
    background: #f1f5f9;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #475569;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #e2e8f0;
}

.license-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.meta-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.license-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Pricing */
.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border-color: #0b1f49;
    background: #f8fafc;
}

.pricing-card .badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #0b1f49;
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0b1f49;
    margin: 1rem 0;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.pricing-features li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '✓';
    color: #0d9488;
    font-weight: 700;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #0b1f49;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* QR */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.qr-code {
    max-width: 280px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .license-meta {
        grid-template-columns: 1fr 1fr;
    }
}

/* ====== SUPPORT LINKS TRONG SIDEBAR ====== */
.sidebar-nav a.support-zalo-link {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 104, 255, 0.15);
    border: 1px solid rgba(0, 104, 255, 0.2);
    margin-top: 0.25rem;
}

.sidebar-nav a.support-zalo-link:hover {
    background: rgba(0, 104, 255, 0.25);
    color: #fff;
    border-color: #0068ff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Misc */
.text-center { text-align: center; }
.text-muted { color: #94a3b8; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-1 { gap: 1rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
/* ====== LANGUAGE SWITCHER ====== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1rem;
}

.lang-switcher a {
    color: #94a3b8;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.85rem;
}

.lang-switcher a:hover {
    background: #f1f5f9;
    color: #0b1f49;
}

.lang-switcher a.active {
    background: #0b1f49;
    color: #fff;
}

/* ====== HINIKEN WEB APP DESIGN SYSTEM ====== */
:root {
    --hk-deep-navy: #071A3A;
    --hk-navy: #0B1F49;
    --hk-blue: #1877F2;
    --hk-green: #32D583;
    --hk-bg: #F4F9FD;
    --hk-surface: rgba(255, 255, 255, 0.88);
    --hk-border: #D8E7F5;
    --hk-text: #101828;
    --hk-muted: #667085;
    --hk-shadow: 0 16px 44px rgba(11, 31, 73, 0.10);
    --hk-soft-shadow: 0 8px 24px rgba(24, 119, 242, 0.10);
    --hk-radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(24, 119, 242, 0.14), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(50, 213, 131, 0.10), transparent 30rem),
        var(--hk-bg);
    color: var(--hk-text);
    overflow-x: hidden;
}

a {
    color: var(--hk-blue);
}

.app {
    background: transparent;
}

.sidebar {
    width: 286px;
    background:
        linear-gradient(180deg, rgba(7, 26, 58, 0.98) 0%, rgba(11, 31, 73, 0.98) 55%, rgba(4, 22, 50, 0.98) 100%);
    border-right: 1px solid rgba(216, 231, 245, 0.14);
    box-shadow: 18px 0 48px rgba(7, 26, 58, 0.24);
    padding: 1.35rem 1rem;
    z-index: 50;
}

.sidebar-brand-wrap {
    padding: 0.4rem 0.35rem 1.25rem;
    border-bottom: 1px solid rgba(216, 231, 245, 0.14);
    margin-bottom: 1.1rem;
}

.sidebar-brand {
    gap: 0.85rem;
}

.sidebar-logo {
    width: 54px;
    height: 54px;
    border-radius: var(--hk-radius);
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-name {
    font-size: 1.25rem;
    letter-spacing: 0;
}

.brand-sub {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.sidebar-nav {
    gap: 0.95rem;
}

.nav-group {
    gap: 0.24rem;
}

.nav-label {
    padding: 0.3rem 0.55rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.nav-link {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.58rem 0.62rem;
    border-radius: var(--hk-radius);
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(216, 231, 245, 0.12);
    transform: translateX(2px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.92), rgba(24, 119, 242, 0.58));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 26px rgba(24, 119, 242, 0.28);
}

.nav-link-muted {
    opacity: 0.76;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

.platform-fb {
    background: #1877F2;
}

.platform-tt {
    background: #111827;
}

.nav-pill {
    margin-left: auto;
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-pill-ready {
    background: rgba(50, 213, 131, 0.18);
    color: #8ff0bc;
}

.logout-link {
    color: #fecaca;
}

.sidebar-support-card {
    margin-top: 0.25rem;
    padding: 1rem;
    border-radius: var(--hk-radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(216, 231, 245, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.support-kicker {
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.support-copy {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 0.8rem;
}

.main {
    margin-left: 286px;
    padding: 1.75rem;
    max-width: 100%;
}

.topbar {
    margin-bottom: 1.35rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(216, 231, 245, 0.82);
    border-radius: var(--hk-radius);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: var(--hk-soft-shadow);
}

.topbar-kicker {
    color: var(--hk-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.topbar-title {
    color: var(--hk-navy);
    font-size: clamp(1.25rem, 2.3vw, 1.8rem);
    letter-spacing: 0;
}

.topbar-user {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-avatar {
    background: linear-gradient(135deg, var(--hk-blue), var(--hk-green));
    box-shadow: 0 10px 22px rgba(24, 119, 242, 0.20);
}

.lang-switcher {
    padding: 0.25rem;
    border-radius: var(--hk-radius);
    background: #eef6ff;
    border: 1px solid var(--hk-border);
}

.lang-switcher a {
    border-radius: 6px;
    color: var(--hk-muted);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    background: var(--hk-blue);
    color: #fff;
}

.card,
.pricing-card,
.download-card,
.feature-card,
.license-card,
.order-item,
.support-card,
.usdt-card,
.info-card,
.payment-card {
    border-radius: var(--hk-radius);
    background: var(--hk-surface);
    border: 1px solid rgba(216, 231, 245, 0.92);
    box-shadow: var(--hk-soft-shadow);
    backdrop-filter: blur(16px);
}

.card:hover,
.pricing-card:hover,
.download-card:hover,
.feature-card:hover,
.license-card:hover,
.order-item:hover,
.support-card:hover {
    box-shadow: var(--hk-shadow);
    transform: translateY(-2px);
}

.grid {
    gap: 1rem;
}

h1, h2, h3, h4 {
    color: var(--hk-navy);
    letter-spacing: 0;
}

p,
.text-muted {
    color: var(--hk-muted);
    line-height: 1.65;
}

.btn {
    border-radius: var(--hk-radius);
    min-height: 40px;
    justify-content: center;
    box-shadow: none;
}

.btn-small {
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--hk-blue), #0f5ed8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 28px rgba(24, 119, 242, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2f86f4, #0d5dcc);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(24, 119, 242, 0.30);
}

.btn-secondary,
.btn-outline {
    background: #fff;
    color: var(--hk-navy);
    border: 1px solid var(--hk-border);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: #eef6ff;
    color: var(--hk-blue);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--hk-green), #18a969);
    color: var(--hk-deep-navy);
}

.btn-usdt {
    background: linear-gradient(135deg, #f7931a, #d97706);
    color: #fff;
}

.form-label {
    color: var(--hk-navy);
}

.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    border-radius: var(--hk-radius);
    border: 1px solid var(--hk-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--hk-text);
}

.form-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--hk-blue);
    box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.12);
    outline: none;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    color: var(--hk-navy);
    background: #eef6ff;
    font-weight: 800;
}

td,
th {
    border-bottom: 1px solid var(--hk-border);
}

.pricing-card {
    overflow: hidden;
}

.pricing-card.featured {
    border-color: rgba(24, 119, 242, 0.45);
    background:
        linear-gradient(180deg, rgba(24, 119, 242, 0.08), rgba(255, 255, 255, 0.94)),
        #fff;
}

.pricing-card .badge-top {
    background: linear-gradient(135deg, var(--hk-green), #16a66a);
    color: var(--hk-deep-navy);
}

.pricing-price {
    color: var(--hk-blue);
}

.pricing-features li::before {
    content: "✓";
    color: var(--hk-green);
}

.license-key {
    border-radius: var(--hk-radius);
    background: #eef6ff;
    border: 1px dashed rgba(24, 119, 242, 0.28);
}

.copy-btn {
    border-radius: 7px;
    background: #e9f4ff;
    color: var(--hk-navy);
}

.copy-btn:hover {
    background: var(--hk-blue);
    color: #fff;
}

.alert {
    border-radius: var(--hk-radius);
    border-width: 1px;
}

.alert-success {
    background: #e9fbf2;
    color: #067647;
    border-color: rgba(50, 213, 131, 0.38);
}

.alert-danger {
    background: #fff1f1;
    color: #b42318;
    border-color: #fecdca;
}

.alert-info {
    background: #eef6ff;
    color: #175cd3;
    border-color: var(--hk-border);
}

.qr-code {
    border-radius: var(--hk-radius);
    border: 1px solid var(--hk-border);
}

.disclaimer-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--hk-radius);
    background: linear-gradient(135deg, #fff8eb, #fff);
    border: 1px solid #fedf89;
    box-shadow: var(--hk-soft-shadow);
}

.disclaimer-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    border-radius: 7px;
    background: #fffaeb;
    color: #b54708;
    font-weight: 900;
    border: 1px solid #fedf89;
}

.disclaimer-card h4 {
    margin-bottom: 0.25rem;
    color: #92400e;
    font-size: 0.92rem;
}

.disclaimer-card p {
    margin: 0;
    color: #854d0e;
    font-size: 0.84rem;
}

.platform-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: clamp(1.2rem, 3vw, 2rem);
    border-radius: var(--hk-radius);
    background:
        radial-gradient(circle at 80% 20%, rgba(50, 213, 131, 0.22), transparent 22rem),
        linear-gradient(135deg, var(--hk-deep-navy), var(--hk-navy) 48%, #0d5dcc);
    color: #fff;
    box-shadow: var(--hk-shadow);
    overflow: hidden;
}

.platform-hero h2,
.platform-hero p {
    color: #fff;
}

.platform-hero h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 0.75rem 0;
}

.platform-hero p {
    color: rgba(255, 255, 255, 0.76);
    max-width: 640px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-dark {
    color: #a7f3d0;
    background: rgba(50, 213, 131, 0.13);
    border: 1px solid rgba(50, 213, 131, 0.24);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.platform-preview-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    border-radius: var(--hk-radius);
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.platform-logo-large {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: var(--hk-radius);
    background: rgba(255, 255, 255, 0.90);
    padding: 0.9rem;
}

.preview-lines {
    display: grid;
    gap: 0.55rem;
    width: min(240px, 72%);
}

.preview-lines span {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.preview-lines span:nth-child(2) {
    width: 76%;
}

.preview-lines span:nth-child(3) {
    width: 58%;
}

.feature-card h3 {
    margin: 0.55rem 0 0.35rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--hk-radius);
    color: var(--hk-navy);
    background: linear-gradient(135deg, rgba(50, 213, 131, 0.22), rgba(24, 119, 242, 0.12));
    font-weight: 900;
}

.zalo-float-btn,
.zalo-float {
    border-radius: 999px;
    box-shadow: 0 18px 34px rgba(24, 119, 242, 0.32);
}

.page-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.page-title-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: var(--hk-radius);
}

.app-symbol {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    border-radius: var(--hk-radius);
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.13), rgba(50, 213, 131, 0.18));
    color: var(--hk-navy);
    font-weight: 900;
    font-size: 0.78rem;
}

.stat-card,
.stat-card-orders {
    border-radius: var(--hk-radius);
    border: 1px solid var(--hk-border);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: var(--hk-soft-shadow);
}

.stat-card-dark {
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(50, 213, 131, 0.20), transparent 11rem),
        linear-gradient(135deg, var(--hk-deep-navy), var(--hk-blue));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-card-green {
    color: #052e1a;
    background: linear-gradient(135deg, #dffbec, #7ce7ad);
}

.stat-card-amber {
    color: #713f12;
    background: linear-gradient(135deg, #fff7db, #fedf89);
}

.stat-card-red {
    color: #7a271a;
    background: linear-gradient(135deg, #fff1f1, #fecdca);
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
}

.auth-card h2 {
    margin-bottom: 0.35rem;
}

.auth-card .btn {
    width: 100%;
}

.dashboard-stat-number {
    font-size: 2rem;
    font-weight: 900;
}

.dashboard-stat-label {
    margin-top: 0.2rem;
    color: inherit;
    opacity: 0.72;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
}

.product-badge img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.app-symbol img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: currentColor;
}

.support-actions,
.contact-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-zalo,
.btn-zalo-custom {
    background: linear-gradient(135deg, #1877F2, #0068ff);
    color: #fff;
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--hk-green), #19b66f);
    color: var(--hk-deep-navy);
}

.btn-zalo:hover,
.btn-zalo-custom:hover,
.btn-whatsapp:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.payment-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
    gap: 1.2rem;
    align-items: start;
}

.readonly-field {
    background: #f8fbff !important;
    border-color: var(--hk-border) !important;
}

.amount-field {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--hk-navy);
}

.mono-field {
    font-family: "Courier New", monospace;
    font-weight: 800;
}

.zalo-float-btn {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(24, 119, 242, 0.24);
    z-index: 9999;
    animation: zalo-pulse 2s infinite;
}

.zalo-float-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

@keyframes zalo-pulse {
    0% { box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.32); }
    70% { box-shadow: 0 0 0 15px rgba(24, 119, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(24, 119, 242, 0); }
}

@media (max-width: 1200px) {
    .sidebar {
        width: 270px;
    }

    .main {
        margin-left: 270px;
        padding: 1.35rem;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
    }

    .platform-hero {
        grid-template-columns: 1fr;
    }

    .payment-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 1rem;
    }

    .topbar {
        align-items: flex-start;
        gap: 0.85rem;
        flex-direction: column;
    }

    .topbar-user,
    .hero-actions,
    .license-actions {
        width: 100%;
    }

    .btn,
    .hero-actions .btn {
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .platform-preview-card {
        min-height: 220px;
    }

    .support-actions .btn,
    .contact-actions .btn {
        width: 100%;
    }

    .zalo-float-btn {
        right: 18px;
        bottom: 18px;
        width: 50px;
        height: 50px;
    }

    .zalo-float-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 520px) {
    .main {
        padding: 0.75rem;
    }

    .card,
    .pricing-card,
    .download-card,
    .feature-card,
    .license-card,
    .order-item,
    .support-card,
    .usdt-card,
    .info-card,
    .payment-card {
        padding: 1rem;
    }

    .platform-hero {
        padding: 1rem;
    }

    .platform-hero h2 {
        font-size: 2rem;
    }

    .disclaimer-card {
        flex-direction: column;
    }
}

/* ====== INDEX-MATCHED WEB SHELL ====== */
.app-shell {
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at 85% 4%, rgba(24, 119, 242, 0.10), transparent 32rem),
        linear-gradient(180deg, #ffffff 0%, #F4F9FD 42%, #ffffff 100%);
}

.desktop-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 292px;
    padding: 28px 20px;
    overflow-y: auto;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(7, 26, 58, 0.98), rgba(11, 31, 73, 0.98));
    border-right: 1px solid rgba(216, 231, 245, 0.16);
    z-index: 30;
}

.brand-block {
    display: grid;
    gap: 10px;
    margin-bottom: 30px;
}

.brand-logo-large {
    width: 112px;
    max-width: 120px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 18px 34px rgba(50, 213, 131, 0.20));
}

.brand-title {
    margin: 0;
    font-size: 27px;
    line-height: 1;
    font-weight: 900;
    color: #ffffff;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
}

.side-section {
    margin-top: 24px;
}

.side-label {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.side-link,
.platform-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.side-link:hover,
.platform-link:hover,
.side-link.active,
.platform-link.active {
    transform: translateX(3px);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.95), rgba(18, 92, 214, 0.92));
    box-shadow: 0 10px 24px rgba(24, 119, 242, 0.25);
}

.side-ico,
.platform-ico {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.10);
    font-size: 13px;
    font-weight: 900;
}

.platform-ico img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.side-ico img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.platform-link .pro-tag,
.platform-link .coming-tag,
.platform-link .progress-tag {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.platform-link .pro-tag {
    color: #7ff0b1;
    background: rgba(50, 213, 131, 0.16);
}

.platform-link .coming-tag {
    color: #b8d7ff;
    background: rgba(24, 119, 242, 0.16);
}

.platform-link .progress-tag {
    color: #99F6C8;
    background: rgba(50, 213, 131, 0.16);
}

.desktop-sidebar .support-card {
    margin-top: 28px;
    padding: 18px;
    border: 1px solid rgba(216, 231, 245, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.desktop-sidebar .support-card strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
}

.desktop-sidebar .support-card p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.6;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #1877F2, #0f5fe8);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.page-main {
    width: calc(100% - 292px);
    min-width: 0;
    margin-left: 292px;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 36px;
    color: #ffffff;
    background: rgba(7, 26, 58, 0.96);
    border-bottom: 1px solid rgba(216, 231, 245, 0.18);
    backdrop-filter: blur(18px);
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 22px;
    cursor: pointer;
}

.top-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    white-space: nowrap;
    text-decoration: none;
}

.top-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex: 1;
}

.top-nav a {
    position: relative;
    padding: 29px 0 25px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.top-nav a:hover,
.top-nav a.active {
    color: #ffffff;
}

.top-nav a.active::after,
.top-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 15px;
    height: 3px;
    border-radius: 999px;
    background: #32D583;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.login-btn,
.account-chip {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #1877F2, #0f5fe8);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.account-chip .avatar {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.content-wrap {
    width: min(100%, 1660px);
    margin: 0 auto;
    padding: 36px;
}

.platform-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 4vw, 56px);
    border-radius: 8px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 18%, rgba(50, 213, 131, 0.24), transparent 24rem),
        linear-gradient(135deg, #071A3A, #0B1F49 48%, #0d5dcc);
    box-shadow: 0 24px 70px rgba(11, 31, 73, 0.16);
    overflow: hidden;
}

.platform-page-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1;
}

.platform-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0;
}

.platform-title img {
    width: clamp(44px, 5vw, 62px);
    height: clamp(44px, 5vw, 62px);
    object-fit: contain;
    flex: 0 0 auto;
}

.platform-page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.78);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #82efb2;
    background: rgba(50, 213, 131, 0.12);
    border: 1px solid rgba(50, 213, 131, 0.22);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.platform-page-hero .btn-primary,
.platform-page-hero .btn-secondary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.platform-page-hero .btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #1877F2, #0f5fe8);
}

.platform-page-hero .btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.platform-logo-card {
    display: grid;
    place-items: center;
    min-height: 300px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.platform-logo-card img {
    width: min(220px, 52%);
    object-fit: contain;
    filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.20));
}

.platform-app-preview {
    display: grid;
    place-items: center;
    min-height: 300px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.platform-app-preview img {
    width: min(680px, 100%);
    max-height: 360px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.22));
}

.platform-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.platform-feature-card {
    position: relative;
    padding: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid #D8E7F5;
    box-shadow: 0 12px 34px rgba(24, 119, 242, 0.10);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-feature-card .badge-pro {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #071A3A;
    background: #32D583;
    font-size: 0.68rem;
    font-weight: 900;
}

.platform-feature-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 54px;
}

.platform-feature-head h3 {
    margin: 0;
    min-width: 0;
}

.platform-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 54px rgba(11, 31, 73, 0.12);
}

.platform-feature-card > h3 {
    margin: 14px 0 8px;
    color: #0B1F49;
}

.platform-feature-card .platform-feature-head + .desc,
.platform-feature-card .platform-feature-head + p {
    margin-top: 12px;
}

.platform-feature-card .desc,
.platform-feature-card p {
    color: #667085;
}

.feature-asset-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef6ff;
}

.feature-asset-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.platform-feature-list {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #D8E7F5;
}

.platform-feature-list li {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 4px 0;
    color: #475467;
    font-size: 0.9rem;
}

.platform-feature-list li::before {
    content: "✓";
    color: #32D583;
    font-weight: 900;
}

.platform-tag {
    display: inline-flex;
    margin-top: 12px;
    margin-right: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #067647;
    background: #dcfce7;
    font-size: 0.68rem;
    font-weight: 900;
}

.platform-version-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #D8E7F5;
    box-shadow: 0 12px 34px rgba(24, 119, 242, 0.08);
}

.platform-version-card .version {
    color: #0B1F49;
    font-weight: 900;
}

.platform-version-card .developer {
    color: #667085;
}

@media (max-width: 1200px) {
    .desktop-sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-open .desktop-sidebar {
        transform: translateX(0);
    }

    .page-main {
        width: 100%;
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .top-nav {
        display: none;
    }

    .platform-page-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 0 16px;
    }

    .top-brand span,
    .account-chip .name-text {
        display: none;
    }

    .content-wrap {
        padding: 18px;
    }

    .platform-logo-card {
        min-height: 220px;
    }
}

/* ====== PHASE 2: AUTH & CHECKOUT ====== */
.phase-page {
    display: grid;
    gap: 24px;
}

.phase-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 24px;
    align-items: stretch;
}

.phase-hero-panel,
.phase-card {
    border-radius: 8px;
    border: 1px solid #D8E7F5;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 18px 48px rgba(11, 31, 73, 0.10);
    backdrop-filter: blur(16px);
}

.phase-hero-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 44px);
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 12%, rgba(50, 213, 131, 0.22), transparent 24rem),
        linear-gradient(135deg, #071A3A 0%, #0B1F49 48%, #1877F2 100%);
}

.phase-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #99F6C8;
    background: rgba(50, 213, 131, 0.12);
    border: 1px solid rgba(50, 213, 131, 0.24);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.phase-hero-panel h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1;
}

.phase-hero-panel p {
    max-width: 660px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.phase-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.phase-trust-item {
    min-height: 92px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.phase-trust-item strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

.phase-trust-item span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.5;
}

.phase-card {
    padding: clamp(22px, 3vw, 32px);
}

.auth-panel {
    align-self: start;
}

.auth-panel h2,
.phase-card h2 {
    margin: 0 0 6px;
    color: #0B1F49;
    font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}

.auth-panel .text-muted,
.phase-card .text-muted {
    margin-bottom: 20px;
}

.phase-form {
    display: grid;
    gap: 16px;
}

.phase-form .form-group {
    margin-bottom: 0;
}

.phase-form .btn {
    width: 100%;
}

.auth-footnote {
    margin: 18px 0 0;
    text-align: center;
    color: #667085;
}

.auth-footnote a {
    font-weight: 900;
    text-decoration: none;
}

.phase-alert {
    border-radius: 8px;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    gap: 22px;
    align-items: start;
}

.payment-qr-card {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
}

.payment-qr-frame {
    width: min(320px, 100%);
    padding: 16px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #D8E7F5;
    box-shadow: 0 14px 34px rgba(24, 119, 242, 0.10);
}

.payment-qr-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.payment-detail-grid,
.usdt-info-grid {
    display: grid;
    gap: 12px;
}

.payment-detail-row,
.usdt-info-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.85fr) minmax(0, 1.15fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: #F8FBFF;
    border: 1px solid #D8E7F5;
}

.payment-detail-row .label,
.usdt-info-row .label {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.payment-detail-row .value,
.usdt-info-row .value {
    min-width: 0;
    color: #0B1F49;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.payment-amount {
    font-size: 1.3rem;
}

.payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.payment-actions .btn {
    flex: 1 1 180px;
}

.payment-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.payment-divider::before,
.payment-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #D8E7F5;
}

.redirect-progress {
    width: 100%;
    height: 6px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #EAF2FA;
}

.redirect-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #1877F2, #32D583);
    transition: width 1s linear;
}

.usdt-shell {
    max-width: 980px;
    margin: 0 auto;
}

.usdt-card {
    padding: clamp(24px, 4vw, 40px);
}

.usdt-icon-card {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.16), rgba(50, 213, 131, 0.14));
    color: #0B1F49;
    font-weight: 900;
}

.contact-stack {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 8px;
    background: #F8FBFF;
    border: 1px solid #D8E7F5;
}

.contact-row img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.contact-row strong {
    display: block;
    color: #0B1F49;
}

.contact-row span {
    color: #667085;
    font-size: 13px;
}

@media (max-width: 992px) {
    .phase-hero,
    .payment-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .phase-trust-grid {
        grid-template-columns: 1fr;
    }

    .payment-detail-row,
    .usdt-info-row {
        grid-template-columns: 1fr;
    }
}

/* ====== AUTH/PAYMENT REFINEMENT ====== */
.auth-workspace {
    width: min(100%, 1120px);
    min-height: calc(100vh - 170px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    gap: 24px;
    align-items: center;
}

.auth-visual-panel {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 3vw, 36px);
    border-radius: 8px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 18%, rgba(50, 213, 131, 0.24), transparent 24rem),
        linear-gradient(135deg, #071A3A 0%, #0B1F49 52%, #1877F2 100%);
    box-shadow: 0 26px 70px rgba(11, 31, 73, 0.18);
}

.auth-visual-panel::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth-visual-logo {
    width: 68px;
    max-width: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 32px rgba(50, 213, 131, 0.22));
}

.auth-visual-panel h1 {
    max-width: 560px;
    margin: 18px 0 10px;
    color: #ffffff;
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1;
}

.auth-visual-panel p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
}

.auth-benefit-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.auth-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
}

.auth-benefit .dot {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    border-radius: 50%;
    color: #071A3A;
    background: #32D583;
    font-size: 12px;
    font-weight: 950;
}

.auth-form-card {
    width: 100%;
    max-width: 460px;
    justify-self: center;
    padding: clamp(24px, 3vw, 34px);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #D8E7F5;
    box-shadow: 0 20px 56px rgba(11, 31, 73, 0.12);
}

.auth-form-card img {
    max-width: 220px;
    height: auto;
    object-fit: contain;
}

.auth-form-card h2 {
    margin: 0;
    color: #0B1F49;
    font-size: clamp(1.6rem, 2.3vw, 2.25rem);
}

.auth-form-card .text-muted {
    margin: 8px 0 22px;
}

.auth-form-card .form-input {
    min-height: 46px;
    padding: 0.72rem 0.9rem;
    font-size: 0.96rem;
}

.auth-form-card .form-label {
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
}

.auth-form-card .phase-form {
    gap: 14px;
}

.checkout-workspace {
    width: min(100%, 1180px);
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

.checkout-title-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(20px, 2.5vw, 30px);
    border-radius: 8px;
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 18%, rgba(50, 213, 131, 0.20), transparent 24rem),
        linear-gradient(135deg, #071A3A 0%, #0B1F49 54%, #1877F2 100%);
    box-shadow: 0 22px 60px rgba(11, 31, 73, 0.16);
}

.checkout-title-card h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.75rem, 2.6vw, 2.55rem);
}

.checkout-title-card p {
    max-width: 760px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.76);
}

.checkout-lock {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    flex: 0 0 62px;
    border-radius: 8px;
    color: #071A3A;
    background: #32D583;
    font-weight: 950;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(360px, 1.12fr);
    gap: 22px;
    align-items: start;
}

.checkout-panel {
    padding: clamp(18px, 2.2vw, 26px);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #D8E7F5;
    box-shadow: 0 18px 46px rgba(11, 31, 73, 0.10);
}

.checkout-panel h2 {
    margin: 0 0 8px;
}

.checkout-qr-box {
    display: grid;
    place-items: center;
    margin: 18px auto;
    width: min(312px, 100%);
    padding: 16px;
    border-radius: 8px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(24, 119, 242, 0.58), rgba(50, 213, 131, 0.58)) border-box;
    border: 1px solid transparent;
}

.checkout-qr-box img {
    display: block;
    width: min(280px, 100%);
    max-width: 280px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
}

.checkout-status-card {
    margin-top: 14px;
}

.instruction-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.instruction-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #475467;
    font-weight: 700;
}

.instruction-list .num {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    border-radius: 50%;
    color: #ffffff;
    background: #1877F2;
    font-size: 12px;
    font-weight: 950;
}

.summary-card {
    display: grid;
    gap: 12px;
}

.summary-row {
    display: grid;
    grid-template-columns: minmax(118px, 0.82fr) minmax(0, 1.18fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    background: #F8FBFF;
    border: 1px solid #D8E7F5;
}

.summary-row .label {
    color: #667085;
    font-size: 13px;
    font-weight: 850;
}

.summary-row .value {
    min-width: 0;
    color: #0B1F49;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.summary-row .amount {
    color: #067647;
    font-size: 1.2rem;
}

.payment-note-box {
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    color: #0B1F49;
    background: #ECFDF3;
    border: 1px solid rgba(50, 213, 131, 0.34);
    font-weight: 800;
}

.checkout-support-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: 8px;
    background: #F8FBFF;
    border: 1px solid #D8E7F5;
}

.checkout-support-box strong {
    display: block;
    color: #0B1F49;
}

.checkout-support-box span {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .auth-workspace,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .auth-visual-panel {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .auth-benefit-list {
        grid-template-columns: 1fr;
    }

    .checkout-title-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-row {
        grid-template-columns: 1fr;
    }
}
