/* ============================================================
   Locket Gold SaaS Portal - Premium Design System (Notion/Stripe style)
   ============================================================ */

:root {
    /* Color System */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    
    --primary: #0EA5E9;
    --primary-hover: #0284C7;
    --primary-light: #E0F2FE;
    
    --gold: #F59E0B;
    --gold-hover: #D97706;
    --gold-light: #FEF3C7;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    --border-color: #E2E8F0;
    
    --success: #10B981;
    --success-light: #D1FAE5;
    --error: #EF4444;
    --error-light: #FEE2E2;
    
    /* Layout Constants */
    --sidebar-width: 260px;
    --navbar-height: 70px;
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
    
    /* Premium Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 15px -3px rgba(15, 23, 42, 0.03), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --shadow-card-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    --shadow-toast: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    
    /* Font Stack */
    --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, "Liberation Mono", Menlo, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================================
   App Core Layout
   ============================================================ */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

.brand-logo i {
    width: 20px;
    height: 20px;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-item:hover {
    background-color: var(--bg-secondary);
    color: var(--primary);
}

.nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.nav-divider {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 16px 8px 16px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-logout:hover {
    background-color: var(--error-light);
    color: var(--error);
}

/* Main Content Panel */
.main-layout {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Navbar */
.navbar {
    height: var(--navbar-height);
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wallet-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-pill:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.wallet-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
}

.wallet-info {
    display: flex;
    flex-direction: column;
}

.wallet-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.wallet-amount {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.wallet-add {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

/* View Container */
.viewport {
    flex: 1;
    padding: 32px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.tab-view {
    display: none;
}

.tab-view.active {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Buttons & Core Elements
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
    padding: 10px 20px;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.btn-white {
    background-color: #FFFFFF;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-1px);
}

.btn-glass {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.btn-success {
    background-color: var(--success);
    color: #FFFFFF;
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-label-big {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-control-lg {
    padding: 16px 24px;
    font-size: 1.1rem;
}

.form-control-sm {
    padding: 8px 12px;
    font-size: 0.88rem;
}

.max-w-500 { max-width: 500px; margin-left: auto; margin-right: auto; }
.max-w-600 { max-width: 600px; }
.center-block { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.bold { font-weight: 700; }
.font-mono { font-family: var(--font-mono) !important; font-size: 0.88rem !important; }

.input-icon-group {
    position: relative;
}

.input-icon-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-icon-group .form-control {
    padding-left: 48px;
}

/* ============================================================
   Bento Cards
   ============================================================ */

.dash-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dash-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.xl-card {
    padding: 40px;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #FFFFFF;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.welcome-left {
    max-width: 65%;
    z-index: 5;
}

.welcome-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.welcome-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.welcome-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    line-height: 1.5;
}

.welcome-actions {
    display: flex;
    gap: 12px;
}

.welcome-illustration {
    position: absolute;
    right: 30px;
    bottom: -10px;
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    transform: rotate(-15deg);
}

.welcome-illustration i {
    width: 140px;
    height: 140px;
}

/* Stats Card */
.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 12px 0 4px 0;
}

.stat-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-ice-blue {
    background-color: #F0F9FF;
    border-color: #BAE6FD;
}

.card-ice-blue .stat-icon {
    background-color: var(--primary-light);
    color: var(--primary);
}

.card-ice-blue .stat-number {
    color: var(--primary-hover);
}

.card-gold {
    background-color: #FEF3C7;
    border-color: #FDE68A;
}

.card-gold .stat-icon {
    background-color: var(--gold-light);
    color: var(--gold);
}

.card-gold .stat-number {
    color: var(--gold-hover);
}

.card-purple {
    background-color: #FAF5FF;
    border-color: #E9D5FF;
}

.card-purple .stat-icon {
    background-color: #F3E8FF;
    color: #9333EA;
}

.card-purple .stat-number {
    color: #7E22CE;
}

.card-green {
    background-color: #ECFDF5;
    border-color: #A7F3D0;
}

.card-green .stat-icon {
    background-color: #D1FAE5;
    color: var(--success);
}

.card-green .stat-number {
    color: #047857;
}

/* ============================================================
   Bento Grids
   ============================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
}

.stats-mini-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.system-info-card {
    grid-column: span 2;
}

.system-info-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.status-label {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ============================================================
   View Specific Elements
   ============================================================ */

/* Hero Landing */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Phone Mockup */
.phone-mockup {
    background-color: #0f172a;
    padding: 12px;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    border: 4px solid #334155;
    max-width: 280px;
    margin: 0 auto;
}

.phone-screen {
    background-color: #f8fafc;
    border-radius: 32px;
    height: 480px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #1e293b;
}

.phone-app-header {
    background-color: #FFFFFF;
    padding: 14px;
    font-weight: 800;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.phone-app-body {
    flex: 1;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-gold-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #FFFFFF;
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mock-crown {
    font-size: 2rem;
    margin-bottom: 10px;
}

.mock-gold-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 4px;
}

.mock-gold-card p {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.mock-features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
    text-align: left;
}

/* Features grid */
.features-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
}

.section-header p {
    color: var(--text-muted);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.bento-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.bento-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bento-icon i {
    width: 24px;
    height: 24px;
}

.icon-blue { background-color: #E0F2FE; color: var(--primary); }
.icon-gold { background-color: #FEF3C7; color: var(--gold); }
.icon-purple { background-color: #F3E8FF; color: #9333EA; }
.icon-green { background-color: #D1FAE5; color: var(--success); }

.bento-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.bento-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   Auth View
   ============================================================ */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-card-hover);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: var(--primary);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form-panel {
    display: none;
}

.auth-form-panel.active {
    display: block;
}

.auth-error-msg, .form-error-msg, .sim-error-msg, .admin-settings-error {
    background-color: var(--error-light);
    color: var(--error);
    border: 1px solid #FECACA;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   Upgrade view
   ============================================================ */

.upgrade-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-indicator-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.step-point {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.step-point.active {
    color: var(--primary);
}

.step-point.completed {
    color: var(--success);
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.step-point.active .step-num {
    background-color: var(--primary);
    color: #FFFFFF;
}

.step-point.completed .step-num {
    background-color: var(--success);
    color: #FFFFFF;
}

.step-txt {
    font-size: 0.9rem;
}

.step-divider {
    flex: 1;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 16px;
}

.step-divider.active {
    background-color: var(--primary);
}

.step-pane {
    display: none;
}

.step-pane.active {
    display: block;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-holder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.avatar-holder i {
    width: 28px;
    height: 28px;
}

/* Confirm panel */
.confirm-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.user-avatar-big {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
    border: 2px solid var(--border-color);
}

.user-avatar-big i {
    width: 32px;
    height: 32px;
}

.confirm-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
}

.detail-row span {
    color: var(--text-secondary);
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 16px;
}

.action-buttons .btn {
    flex: 1;
}

/* Terminal Console Layout */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.hacker-terminal {
    background-color: #0B0F19;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #1E293B;
    overflow: hidden;
}

.terminal-header {
    background-color: #121824;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1E293B;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.btn-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.btn-dot.red { background-color: #EF4444; }
.btn-dot.yellow { background-color: #F59E0B; }
.btn-dot.green { background-color: #10B981; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #64748B;
    text-transform: uppercase;
}

.terminal-body {
    padding: 20px;
    height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terminal-line {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    word-break: break-all;
}

.terminal-line.text-info { color: #38BDF8; }
.terminal-line.text-success { color: #34D399; }
.terminal-line.text-error { color: #F87171; }
.terminal-line.text-warn { color: #FBBF24; }
.terminal-line.text-white { color: #F1F5F9; }

/* Success Pane */
.result-success-card {
    padding: 40px;
    border: 2px solid var(--success);
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--success-light);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.success-icon i {
    width: 32px;
    height: 32px;
}

.result-username-p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.success-badge-container {
    margin-bottom: 30px;
}

.success-badge-gold {
    background-color: var(--gold-light);
    color: var(--gold-hover);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #FDE68A;
}

.dns-config-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: left;
}

.dns-config-box h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.dns-config-box p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 18px;
}

.dns-tabs {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-primary);
    overflow: hidden;
    margin-bottom: 16px;
}

.dns-tab-item {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dns-tab-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.dns-panel-content {
    display: none;
}

.dns-panel-content.active {
    display: block;
}

.dns-instruction {
    font-size: 0.85rem !important;
    color: var(--text-secondary);
    margin-bottom: 12px !important;
}

.dns-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: block;
    line-height: 1.4;
}

.copy-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px 4px 4px 12px;
    background-color: var(--bg-primary);
}

.copy-text {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* ============================================================
   Wallet View & Tables
   ============================================================ */

.deposit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.payment-box {
    display: flex;
    flex-direction: column;
}

.qr-code-wrapper {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    width: 220px;
    height: 220px;
    margin: 20px auto;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
}

.qr-code-wrapper img {
    max-width: 100%;
    max-height: 100%;
}

.qr-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.qr-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.bank-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.bank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.bank-row span {
    color: var(--text-secondary);
}

.amount-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.amount-pill {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.amount-pill.active {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Data Tables */
.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.table-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background-color: var(--success-light); color: var(--success); }
.badge-danger { background-color: var(--error-light); color: var(--error); }
.badge-warning { background-color: var(--gold-light); color: var(--gold-hover); }

/* ============================================================
   Admin Panel Specifics
   ============================================================ */

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.admin-layout-columns {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
}

.admin-settings-form-box {
    display: flex;
    flex-direction: column;
}

.admin-settings-form-box h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* ============================================================
   Toast Alerts
   ============================================================ */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-toast);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.3s, transform 0.3s;
}

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-success .toast-icon { background-color: var(--success-light); color: var(--success); }

.toast-error { border-left: 4px solid var(--error); }
.toast-error .toast-icon { background-color: var(--error-light); color: var(--error); }

.toast-info { border-left: 4px solid var(--primary); }
.toast-info .toast-icon { background-color: var(--primary-light); color: var(--primary); }

.toast-content {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Footer style */
.app-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 60px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ============================================================
   Animations & Transitions
   ============================================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   Responsive adaptation (Media queries)
   ============================================================ */

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .system-info-card {
        grid-column: span 1;
    }
    .admin-layout-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0,0,0,0.15);
    }
    
    .mobile-close {
        display: block;
    }
    
    .main-layout {
        margin-left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-preview {
        order: -1;
    }
    
    .viewport {
        padding: 20px;
    }
    
    .deposit-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .amount-pills {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   Pricing & Packages Grid
   ============================================================ */

.dashboard-packages-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.section-header-inline {
    margin-bottom: 24px;
}

.section-header-inline h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-header-inline p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.pricing-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary);
}

.pricing-card.featured {
    border-color: var(--gold);
    box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.1);
}

.pricing-card.featured:hover {
    box-shadow: 0 20px 35px -5px rgba(245, 158, 11, 0.15);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), #fbbf24);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.plan-header {
    margin-bottom: 24px;
}

.plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.plan-icon i {
    width: 22px;
    height: 22px;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-duration {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.plan-features li i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pricing-card.featured .btn-primary {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: #FFFFFF;
}

.pricing-card.featured .btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-hover), #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* ============================================================
   Guest Mode & Landing Page Extensions
   ============================================================ */

/* Guest Mode overrides để hiển thị landing page full-width */
.app-layout.guest-mode .sidebar {
    display: none !important;
}

.app-layout.guest-mode .main-layout {
    margin-left: 0 !important;
}

.app-layout.guest-mode .navbar {
    display: none !important;
}

.app-layout.guest-mode .viewport {
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

.guest-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

@media (max-width: 768px) {
    .guest-container {
        padding: 0 20px;
    }
}

.guest-navbar {
    width: 100%;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 95;
    padding: 16px 0;
}

.guest-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guest-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guest-brand-logo {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

.guest-brand-logo i {
    width: 18px;
    height: 18px;
}

.guest-brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.guest-nav-links {
    display: flex;
    gap: 24px;
}

.guest-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.guest-nav-links a:hover {
    color: var(--primary);
}

.guest-actions {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .guest-nav-links {
        display: none;
    }
}

.faq-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px 24px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    background-color: var(--bg-secondary);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.faq-question i {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s ease;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* ============================================================
   Social Sign-In Buttons & Divider
   ============================================================ */

.auth-social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0 16px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-social-divider::before,
.auth-social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-social-divider:not(:empty)::before {
    margin-right: 12px;
}

.auth-social-divider:not(:empty)::after {
    margin-left: 12px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--bg-primary);
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-google:hover {
    background-color: var(--bg-secondary);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-google:active {
    transform: translateY(0);
}

.google-icon {
    flex-shrink: 0;
}

/* ============================================================
   DNS Guide Styles — Animated Banner, Guide Cards, Steps
   ============================================================ */

/* Sidebar Nav Pulse Badge */
.nav-badge-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--error);
    border-radius: 50%;
    margin-left: auto;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { opacity: 0.8; transform: scale(1.3); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* Guest Navbar DNS Guide Link */
.dns-guide-nav-link {
    color: var(--gold) !important;
    font-weight: 600 !important;
    animation: shimmer-text 3s ease-in-out infinite;
}

@keyframes shimmer-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* DNS Landing Banner (Eye-Catching) */
.dns-banner {
    position: relative;
    margin: 40px 0;
    padding: 28px 30px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dns-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px -8px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.dns-banner-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(239, 68, 68, 0.08) 0%, transparent 50%);
    animation: banner-glow-move 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes banner-glow-move {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, -5%); }
}

.dns-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dns-banner-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: icon-shake 4s ease-in-out infinite;
}

.dns-banner-icon svg,
.dns-banner-icon i {
    width: 28px;
    height: 28px;
    color: #FFFFFF;
}

@keyframes icon-shake {
    0%, 85%, 100% { transform: rotate(0deg); }
    87% { transform: rotate(-8deg); }
    89% { transform: rotate(8deg); }
    91% { transform: rotate(-5deg); }
    93% { transform: rotate(5deg); }
    95% { transform: rotate(0deg); }
}

.dns-banner-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.dns-banner-text p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

.dns-banner-arrow {
    margin-left: auto;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dns-banner:hover .dns-banner-arrow {
    background: rgba(239, 68, 68, 0.3);
    transform: translateX(4px);
}

.dns-banner-arrow svg,
.dns-banner-arrow i {
    width: 20px;
    height: 20px;
    color: #FFFFFF;
}

/* DNS Guide Page Styles */
.dns-guide-header {
    text-align: center;
    padding: 40px 20px 30px;
}

.dns-guide-header-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--success), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 30px -4px rgba(16, 185, 129, 0.3);
}

.dns-guide-header-icon svg,
.dns-guide-header-icon i {
    width: 40px;
    height: 40px;
    color: #FFFFFF;
}

.dns-guide-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.dns-guide-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Guide Cards */
.dns-guide-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease;
}

.dns-guide-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.dns-guide-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.dns-guide-card-header svg,
.dns-guide-card-header i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.dns-guide-card-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dns-guide-card-header.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.02));
}
.dns-guide-card-header.danger svg,
.dns-guide-card-header.danger i { color: #EF4444; }

.dns-guide-card-header.ios {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.02));
}
.dns-guide-card-header.ios svg,
.dns-guide-card-header.ios i { color: var(--primary); }

.dns-guide-card-header.android {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
}
.dns-guide-card-header.android svg,
.dns-guide-card-header.android i { color: var(--success); }

.dns-guide-card-header.faq {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
}
.dns-guide-card-header.faq svg,
.dns-guide-card-header.faq i { color: var(--gold); }

.dns-guide-card-body {
    padding: 24px;
}

.dns-guide-card-body > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* DNS Warning Box */
.dns-warning-box {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    margin-top: 16px;
}

.dns-warning-box > svg,
.dns-warning-box > i {
    width: 24px;
    height: 24px;
    color: #EF4444;
    flex-shrink: 0;
    margin-top: 2px;
}

.dns-warning-box strong {
    color: #EF4444;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.dns-warning-box p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Step-by-Step Guide */
.dns-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dns-step {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.dns-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dns-step:first-child {
    padding-top: 0;
}

.dns-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dns-step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.dns-step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 4px;
}

.dns-step-content code {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
}

.dns-step-note {
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(14, 165, 233, 0.12);
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
    margin-top: 8px !important;
}

/* DNS FAQ Items */
.dns-faq-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.dns-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dns-faq-item:first-child {
    padding-top: 0;
}

.dns-faq-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.dns-faq-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Responsive DNS Banner */
@media (max-width: 768px) {
    .dns-banner {
        padding: 20px;
    }
    .dns-banner-content {
        flex-wrap: wrap;
        gap: 14px;
    }
    .dns-banner-arrow {
        display: none;
    }
    .dns-banner-text h3 {
        font-size: 1rem;
    }
    .dns-banner-text p {
        font-size: 0.85rem;
    }
    .dns-guide-header h1 {
        font-size: 1.4rem;
    }
}
