/* ==========================================================================
   AUTOFB CLOUD ECOSYSTEM - UI/UX PRO MAX DESIGN SYSTEM
   Theme: Modern Clean SaaS & Bento Grid (Light Slate & Soft Gray Theme)
   Typography: Plus Jakarta Sans & JetBrains Mono
   Accessibility: WCAG AA Compliant (Text Contrast >= 4.5:1, Focus Rings)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* --- LAYER 1: PRIMITIVE COLOR TOKENS --- */
    --slate-950: #0F172A; /* Slate-900 / deepest dark text */
    --slate-900: #1E293B; /* Slate-800 */
    --slate-850: #334155; /* Slate-700 */
    --slate-800: #475569; /* Slate-600 */
    --slate-700: #64748B; /* Slate-500 */
    --slate-600: #94A3B8; /* Slate-400 */
    --slate-500: #CBD5E1; /* Slate-300 */
    --slate-400: #E2E8F0; /* Slate-200 */
    --slate-300: #E5E7EB; /* Gray-200 */
    --slate-200: #F1F5F9; /* Slate-100 */
    --slate-100: #F8FAFC; /* Slate-50 */
    --slate-50:  #FFFFFF; /* Pure White */

    /* --- LAYER 2: BRAND & SEMANTIC TOKENS --- */
    --color-primary: #2563EB;
    --color-primary-hover: #1D4ED8;
    --color-primary-light: rgba(37, 99, 235, 0.08);
    --color-primary-border: rgba(37, 99, 235, 0.25);

    --color-secondary: #3B82F6;
    --color-secondary-hover: #2563EB;

    /* High-contrast Conversion CTA Accent */
    --color-accent: #EA580C;
    --color-accent-hover: #C2410C;
    --color-accent-light: rgba(234, 88, 12, 0.1);
    --color-accent-border: rgba(234, 88, 12, 0.25);

    /* Status Tokens */
    --color-success: #059669;
    --color-success-hover: #047857;
    --color-success-bg: #ECFDF5;
    --color-success-border: #A7F3D0;

    --color-danger: #DC2626;
    --color-danger-hover: #B91C1C;
    --color-danger-bg: #FEF2F2;
    --color-danger-border: #FECACA;

    --color-warning: #D97706;
    --color-warning-hover: #B45309;
    --color-warning-bg: #FFFBEB;
    --color-warning-border: #FDE68A;

    --color-info: #0284C7;
    --color-info-bg: #F0F9FF;
    --color-info-border: #BAE6FD;

    /* --- SURFACES & BACKGROUNDS (LIGHT SLATE / SOFT WHITE-GRAY) --- */
    --bg-base: #F8FAFC;              /* Nền chủ đạo: Trắng xám nhẹ */
    --bg-surface: #FFFFFF;           /* Nền thẻ / card: Trắng tinh khiết */
    --bg-surface-elevated: #F1F5F9;  /* Nền nổi / section phụ: Xám nhạt */
    --bg-surface-hover: #F8FAFC;     /* Hover surface */
    --bg-surface-input: #FFFFFF;     /* Nền input */
    --bg-surface-input-focus: #FFFFFF;

    /* --- BORDERS & SHADOWS --- */
    --border-subtle: #F1F5F9;
    --border-card: #E2E8F0;
    --border-strong: #CBD5E1;
    --border-active: var(--color-primary);

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.12);

    /* --- TYPOGRAPHY (HIGH CONTRAST WCAG AA >= 4.5:1) --- */
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-tertiary: #94A3B8;
    --text-disabled: #CBD5E1;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Code', monospace;

    /* --- RADII --- */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;

    /* Backward compatibility mappings for existing HTML templates */
    --win-bg: var(--bg-base);
    --win-bg-card: var(--bg-surface);
    --win-bg-card-hover: var(--bg-surface-hover);
    --win-border: var(--border-card);
    --win-border-strong: var(--border-strong);
    --win-border-subtle: var(--border-subtle);
    --win-accent: var(--color-primary);
    --win-accent-primary: var(--color-primary);
    --win-accent-hover: var(--color-primary-hover);
    --win-accent-bg: var(--color-primary-light);
    --win-success: var(--color-success);
    --win-success-bg: var(--color-success-bg);
    --win-success-border: var(--color-success-border);
    --win-danger: var(--color-danger);
    --win-danger-bg: var(--color-danger-bg);
    --win-danger-border: var(--color-danger-border);
    --win-warning: var(--color-warning);
    --win-warning-bg: var(--color-warning-bg);
    --win-warning-border: var(--color-warning-border);
    --win-text: var(--text-primary);
    --win-text-secondary: var(--text-secondary);
    --win-text-tertiary: var(--text-muted);
    --win-radius-sm: var(--radius-sm);
    --win-radius-md: var(--radius-md);
    --win-radius-lg: var(--radius-lg);
    --win-radius-xl: var(--radius-xl);
    --win-shadow-card: var(--shadow-md);
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY STANDARDS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.05), transparent 70%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(16, 185, 129, 0.03), transparent 60%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

code, kbd, samp, pre, .mono {
    font-family: var(--font-mono);
}

/* Focus Visible for Keyboard Accessibility (WCAG 2.1) */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   SVG ICON SYSTEM (NO RAW EMOJI)
   ========================================================================== */
.svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
}

.svg-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 22px; height: 22px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 36px; height: 36px; }

/* ==========================================================================
   NAVIGATION BAR (STICKY FROSTED GLASS - LIGHT SLATE THEME)
   ========================================================================== */
.win-titlebar,
.navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-card);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.win-nav-container,
.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.win-brand,
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.win-brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.win-brand:hover .win-brand-logo {
    transform: scale(1.08);
}

.win-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1D4ED8, #3B82F6);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: #fff;
    flex-shrink: 0;
}

.win-badge-pill,
.nav-brand-badge {
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary-border);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.win-nav-menu,
.nav-menu {
    display: flex;
    align-items: center;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.win-nav-link,
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 7px 11px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.win-nav-link span,
.nav-link span {
    white-space: nowrap;
}

.win-nav-link:hover,
.nav-link:hover {
    color: var(--color-primary);
    background: var(--slate-200);
}

.win-nav-link.active,
.nav-link.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.win-actions,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.win-actions span,
.nav-actions span {
    white-space: nowrap;
}

.win-balance-tag,
.balance-pill {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-success);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: var(--shadow-sm);
    transition: all 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.win-balance-tag span,
.balance-pill span {
    white-space: nowrap;
}

.win-balance-tag:hover,
.balance-pill:hover {
    border-color: var(--color-success-border);
    background: var(--color-success-bg);
    transform: translateY(-1px);
}

.win-pulse-indicator,
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-success);
    display: inline-block;
    animation: pulseGlow 2.2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ==========================================================================
   LAYOUT CONTAINERS & BENTO GRID ARCHITECTURE
   ========================================================================== */
.container {
    max-width: 1380px;
    margin: 28px auto;
    padding: 0 24px;
    flex: 1;
    width: 100%;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.bento-col-12 { grid-column: span 12; }
.bento-col-8  { grid-column: span 8; }
.bento-col-6  { grid-column: span 6; }
.bento-col-4  { grid-column: span 4; }
.bento-col-3  { grid-column: span 3; }

/* ==========================================================================
   CARDS & SURFACES (BENTO BOX PATTERN)
   ========================================================================== */
.win-card,
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    margin-bottom: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
}

.win-card:hover,
.card:hover {
    border-color: var(--border-strong);
}

.win-card-header,
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.win-card-title,
.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.win-card-desc,
.card-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 4px;
}

/* ==========================================================================
   STATS KPI WIDGETS
   ========================================================================== */
.win-stats-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.win-stat-widget,
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.win-stat-widget::before,
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.win-stat-widget:hover,
.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow-md);
}

.win-stat-widget:hover::before,
.stat-card:hover::before {
    opacity: 1;
}

.win-stat-title,
.stat-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.02em;
}

.stat-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-200);
    border: 1px solid var(--border-card);
    color: var(--color-primary);
}

.win-stat-value,
.stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 12px 0 6px 0;
    letter-spacing: -0.03em;
    font-feature-settings: "tnum";
}

.win-stat-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   BUTTONS (INTENTIONAL COLOR ALLOCATION)
   ========================================================================== */
.win-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    user-select: none;
}

.win-btn:active,
.btn:active {
    transform: scale(0.98);
}

/* Primary Button (Brand Action) */
.win-btn-primary,
.btn-primary {
    background: var(--color-primary);
    border: 1px solid var(--color-primary-border);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.win-btn-primary:hover,
.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    color: #fff;
    transform: translateY(-1px);
}

/* Accent CTA Button (High-Conversion Highlights) */
.btn-accent,
.btn-cta {
    background: linear-gradient(180deg, #EA580C, #C2410C);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #fff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
    font-weight: 700;
}

.btn-accent:hover,
.btn-cta:hover {
    background: linear-gradient(180deg, #F97316, #EA580C);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
    transform: translateY(-1px);
}

/* Standard / Outline Button */
.win-btn-standard,
.btn-outline,
.btn-standard {
    background: #FFFFFF;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.win-btn-standard:hover,
.btn-outline:hover,
.btn-standard:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--slate-600);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Status Buttons */
.win-btn-success,
.btn-success {
    background: var(--color-success);
    color: #FFFFFF;
    font-weight: 700;
}
.win-btn-success:hover,
.btn-success:hover {
    background: var(--color-success-hover);
}

.win-btn-danger,
.btn-danger {
    background: var(--color-danger);
    color: #fff;
    font-weight: 700;
}
.win-btn-danger:hover,
.btn-danger:hover {
    background: var(--color-danger-hover);
}

/* Button Sizes */
.win-btn-sm,
.btn-sm {
    padding: 6px 12px;
    font-size: 0.84rem;
    border-radius: var(--radius-sm);
}

.win-btn-lg,
.btn-lg {
    padding: 13px 26px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.win-btn-block,
.btn-block {
    width: 100%;
}

/* ==========================================================================
   INPUTS & FORMS (WCAG AA ACCESSIBILITY)
   ========================================================================== */
.win-form-group,
.form-group {
    margin-bottom: 22px;
}

.win-form-label,
.win-label,
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.win-form-control,
.win-input,
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 11px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.94rem;
    font-family: var(--font-sans);
    outline: none;
    transition: all 0.18s ease;
}

select {
    cursor: pointer;
    background-color: #FFFFFF;
}

option {
    background-color: #FFFFFF;
    color: var(--text-primary);
}

.win-form-control:focus,
.win-input:focus,
.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    background: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.win-form-control,
textarea.win-input,
textarea.form-control,
textarea {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.5;
    resize: vertical;
}

/* ==========================================================================
   INTERACTIVE SERVICE TILES (ORDER CREATION CARDS)
   ========================================================================== */
.win-service-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.win-service-tile,
.service-tile {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    cursor: pointer;
    position: relative;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.win-service-tile:hover,
.service-tile:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.win-service-tile.selected,
.service-tile.selected {
    border-color: var(--color-primary);
    background: #EFF6FF;
    box-shadow: 0 0 0 1px var(--color-primary), 0 4px 16px rgba(37, 99, 235, 0.12);
}

.win-service-tile input[type="radio"],
.service-tile input[type="radio"] {
    accent-color: var(--color-primary);
    transform: scale(1.25);
    cursor: pointer;
    margin-top: 4px;
    flex-shrink: 0;
}

.win-service-title,
.service-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.win-service-price,
.service-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
}

.win-service-desc,
.service-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   TABLES & DATA GRIDS
   ========================================================================== */
.win-table-container,
.table-container {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.win-table,
.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.win-table th,
.table th {
    background: #F8FAFC;
    color: var(--text-muted);
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-card);
    white-space: nowrap;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.win-table td,
.table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    vertical-align: middle;
}

.win-table tr:hover td,
.table tr:hover td {
    background: #F8FAFC;
}

/* ==========================================================================
   BADGES & STATUS PILLS
   ========================================================================== */
.win-badge,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.win-badge-success,
.badge-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
}

.win-badge-danger,
.badge-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid var(--color-danger-border);
}

.win-badge-warning,
.badge-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    border: 1px solid var(--color-warning-border);
}

.win-badge-accent,
.badge-accent,
.badge-info {
    background: var(--color-info-bg);
    color: var(--color-info);
    border: 1px solid var(--color-info-border);
}

/* ==========================================================================
   PROGRESS BARS
   ========================================================================== */
.win-progress-track,
.progress-track {
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-full);
    height: 10px;
    overflow: hidden;
    position: relative;
}

.win-progress-indicator,
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563EB, #3B82F6);
    border-radius: var(--radius-full);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-success {
    background: linear-gradient(90deg, #059669, #10B981);
}

/* ==========================================================================
   TERMINAL & LIVE CONSOLE LOGS
   ========================================================================== */
.live-console {
    background: #080C14;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #A7F3D0;
    max-height: 320px;
    overflow-y: auto;
    line-height: 1.6;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.live-console .log-line {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.live-console .log-time {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.live-console .log-msg {
    color: #E2E8F0;
    word-break: break-all;
}

/* ==========================================================================
   ALERTS & INFOBARS
   ========================================================================== */
.win-infobar,
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.win-infobar-success,
.alert-success {
    background: var(--color-success-bg);
    border-color: var(--color-success-border);
    color: var(--color-success);
}

.win-infobar-danger,
.alert-danger {
    background: var(--color-danger-bg);
    border-color: var(--color-danger-border);
    color: var(--color-danger);
}

.win-infobar-warning,
.alert-warning {
    background: var(--color-warning-bg);
    border-color: var(--color-warning-border);
    color: var(--color-warning);
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-message {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 280px;
    max-width: 420px;
}

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

.toast-message.toast-danger {
    border-left: 4px solid var(--color-danger);
}

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

/* ==========================================================================
   FOOTER (LIGHT CLEAN THEME)
   ========================================================================== */
.win-footer,
.footer {
    border-top: 1px solid var(--border-card);
    background: #FFFFFF;
    padding: 26px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (375px, 768px, 1024px, 1440px)
   ========================================================================== */
.win-order-create-grid,
.order-create-grid {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 24px;
}


.win-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ==========================================================================
   LANDING PAGE ENHANCEMENTS (TIKSIGN INSPIRATION & BENEFITS SHOWCASE)
   ========================================================================== */

/* 1. Terminal Showcase / Code Box */
.terminal-showcase {
    background: #0D131F;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(37, 99, 235, 0.15);
    overflow: hidden;
    text-align: left;
    max-width: 980px;
    margin: 40px auto 0;
    font-family: var(--font-mono);
    position: relative;
}

.terminal-header {
    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

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

.terminal-title {
    font-size: 0.82rem;
    color: var(--slate-400);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.terminal-body {
    padding: 22px 24px;
    font-size: 0.86rem;
    line-height: 1.75;
    color: var(--slate-300);
    overflow-x: auto;
}

.term-line {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
    word-break: break-all;
}

.term-time {
    color: var(--slate-500);
    user-select: none;
    min-width: 80px;
}

.term-tag {
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.tag-cyan { background: rgba(6, 182, 212, 0.15); color: #38BDF8; }
.tag-green { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.tag-yellow { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.tag-purple { background: rgba(168, 85, 247, 0.15); color: #C084FC; }

.terminal-footer-bar {
    background: rgba(17, 24, 39, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--slate-400);
}

/* 2. Trust Proof Bar */
.trust-proof-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 32px auto 0;
    max-width: 900px;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

/* 3. Section Headers */
.landing-section {
    padding: 70px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary-border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* 4. TikSign-Style Features Section (Screenshot 1 Match) */
.tiksign-features-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 52px;
}

.tiksign-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    color: #E11D48;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
    display: inline-block;
}

.tiksign-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.tiksign-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

.tiksign-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1240px;
    margin: 0 auto;
}

.tiksign-card {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 28px 24px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.tiksign-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tiksign-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.icon-box-red { background: #FFE4E6; color: #E11D48; }
.icon-box-cyan { background: #E0F2FE; color: #0284C7; }
.icon-box-purple { background: #F3E8FF; color: #9333EA; }
.icon-box-amber { background: #FEF3C7; color: #D97706; }
.icon-box-blue { background: #DBEAFE; color: #2563EB; }
.icon-box-green { background: #D1FAE5; color: #059669; }

.tiksign-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.35;
}

.tiksign-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.62;
    margin: 0;
}

/* 4b. TikSign-Style Pricing Section (Screenshot 2 Match) */
.tiksign-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
    text-align: left;
}

.tiksign-pricing-card {
    background: #0B0F19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 36px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tiksign-pricing-card:hover {
    transform: translateY(-4px);
}

.card-cyan-accent {
    border-top: 2px solid #06B6D4;
}

.card-popular-accent {
    border: 1px solid #F43F5E;
    box-shadow: 0 0 35px rgba(244, 63, 94, 0.16);
}

.card-purple-accent {
    border-top: 2px solid #A855F7;
}

.popular-badge {
    position: absolute;
    top: 22px;
    right: 24px;
    background: #F43F5E;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.pricing-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.pricing-header-sub {
    font-size: 0.88rem;
    color: #94A3B8;
    margin-bottom: 24px;
}

.pricing-price-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-price-unit {
    font-size: 0.86rem;
    font-weight: 400;
    color: #94A3B8;
}

.pricing-tag-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 26px;
    width: fit-content;
}

.pricing-tag-cyan { background: rgba(6, 182, 212, 0.12); color: #38BDF8; }
.pricing-tag-red { background: rgba(244, 63, 94, 0.14); color: #FB7185; }
.pricing-tag-purple { background: rgba(168, 85, 247, 0.14); color: #C084FC; }

.pricing-btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    margin-bottom: 26px;
    cursor: pointer;
}

.pricing-btn-outline:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.28);
}

.pricing-btn-filled {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: #E11D48;
    border: 1px solid #E11D48;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    margin-bottom: 26px;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
    cursor: pointer;
}

.pricing-btn-filled:hover {
    background: #BE123C;
    border-color: #BE123C;
}

.pricing-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 22px;
    margin-top: auto;
}

.pricing-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #CBD5E1;
    margin-bottom: 12px;
    line-height: 1.5;
}

.pricing-checklist li:last-child {
    margin-bottom: 0;
}

.check-icon {
    color: #34D399;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

/* 5. Steps Grid (3 Bước Tinh Gọn) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}

.step-card {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
    color: rgba(15, 23, 42, 0.06);
    position: absolute;
    top: 20px;
    right: 24px;
    user-select: none;
}

.step-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--color-primary-light);
    color: var(--color-primary);
    margin-bottom: 18px;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* 6. FAQ Accordion (TikSign Style) */
.faq-container {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    border-color: var(--border-strong);
}

.faq-item.active {
    border-color: var(--color-primary-border);
    background: #F8FAFC;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    gap: 16px;
}

.faq-q-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: transform 0.24s ease, color 0.2s ease;
    flex-shrink: 0;
}

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

.faq-answer {
    padding: 0 24px 22px;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
    display: none;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0;
    padding-top: 16px;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 7. Bottom CTA Banner (Light Soft Modern Theme) */
.cta-banner {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 50%, #EFF6FF 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08), 0 0 24px rgba(37, 99, 235, 0.05);
    max-width: 1100px;
    margin: 40px auto 30px;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.08), transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

/* Responsive adjustments for Landing Page */
@media (max-width: 1024px) {
    .win-order-create-grid,
    .order-create-grid {
        grid-template-columns: 1fr;
    }
    .win-grid-2col {
        grid-template-columns: 1fr;
    }
    .bento-col-8,
    .bento-col-6,
    .bento-col-4,
    .bento-col-3 {
        grid-column: span 12;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tiksign-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tiksign-pricing-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .win-nav-container,
    .nav-container {
        flex-wrap: wrap;
        padding: 10px 16px;
    }
    .win-nav-menu,
    .nav-menu {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-top: 10px;
        border-top: 1px solid var(--border-subtle);
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .win-actions,
    .nav-actions {
        gap: 8px;
    }
    .win-stats-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 16px;
        margin: 16px auto;
    }
    .win-card,
    .card {
        padding: 18px 16px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .benefits-grid,
    .tiksign-features-grid,
    .tiksign-pricing-grid {
        grid-template-columns: 1fr;
    }
    .terminal-body {
        padding: 16px;
        font-size: 0.8rem;
    }
    .term-time {
        display: none;
    }
    .section-title,
    .tiksign-title {
        font-size: 1.85rem;
    }
    .pricing-price-num {
        font-size: 2.2rem;
    }
    .cta-banner {
        padding: 40px 20px;
    }
    .cta-title {
        font-size: 1.7rem;
    }
}

/* ==========================================================================
   VERTICAL SIDEBAR LAYOUT ARCHITECTURE (UNLOCK5S / MODERN SAAS PATTERN)
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-base);
}

/* SIDEBAR CONTAINER */
.app-sidebar {
    width: 260px;
    background: #0B1329;
    color: #F8FAFC;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.app-sidebar::-webkit-scrollbar {
    width: 5px;
}
.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

/* BRAND HEADER */
.sidebar-brand {
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #FFFFFF;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.35));
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand-text .brand-name {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    line-height: 1.2;
}

.sidebar-brand-text .brand-accent {
    color: #38BDF8;
}

.sidebar-brand-text .brand-sub {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #64748B;
    margin-top: 2px;
}

/* SIDEBAR NAVIGATION */
.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.sidebar-nav-group {
    margin-bottom: 18px;
}

.nav-group-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;
    padding: 6px 12px;
    margin-bottom: 4px;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.16s ease;
    cursor: pointer;
}

.sidebar-nav-item .svg-icon {
    color: #64748B;
    transition: color 0.16s ease;
}

.sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #F8FAFC;
}

.sidebar-nav-item:hover .svg-icon {
    color: #38BDF8;
}

.sidebar-nav-item.active {
    background: rgba(37, 99, 235, 0.18);
    color: #38BDF8;
    font-weight: 700;
}

.sidebar-nav-item.active .svg-icon {
    color: #38BDF8;
}

/* HELP WIDGET AT BOTTOM OF SIDEBAR */
.sidebar-help-widget {
    margin: 16px 12px 20px 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(14, 165, 233, 0.08) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.sidebar-help-widget::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.help-widget-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.help-widget-desc {
    font-size: 0.78rem;
    color: #94A3B8;
    line-height: 1.45;
    margin-bottom: 12px;
}

.help-widget-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #0284C7;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 7px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.16s ease;
    border: none;
    cursor: pointer;
}

.help-widget-btn:hover {
    background: #0369A1;
    color: #FFFFFF;
}

/* APP MAIN WRAPPER */
.app-main {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* APP TOPBAR */
.app-topbar {
    height: 64px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-toggle-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-card);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
}

.sidebar-toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
}

.breadcrumb-app {
    color: var(--text-muted);
}

.breadcrumb-sep {
    color: var(--slate-400);
}

.breadcrumb-page {
    color: var(--text-primary);
    font-weight: 700;
}

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

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-surface-elevated);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-card);
}

/* CONTENT AREA */
.app-content {
    flex: 1;
    width: 100%;
}

.app-footer {
    margin-top: auto;
}

/* BACKDROP OVERLAY FOR MOBILE */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 999;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.show {
        transform: translateX(0);
    }
    .sidebar-backdrop.show {
        display: block;
    }
    .app-main {
        margin-left: 0;
    }
    .sidebar-toggle-btn {
        display: inline-flex;
    }
    .app-topbar {
        padding: 0 16px;
    }
}

/* UI/UX Pro Max: Chống tràn toàn diện trên Mobile Phone (Màn hình PC giữ nguyên 100%) */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }
    .app-layout {
        overflow-x: hidden !important;
        max-width: 100%;
    }
    .app-main {
        overflow-x: hidden !important;
        max-width: 100%;
    }
    .app-content {
        overflow-x: hidden !important;
        max-width: 100%;
    }
    .app-topbar {
        padding: 0 12px !important;
        height: 56px !important;
    }
    .topbar-left {
        gap: 8px !important;
        min-width: 0 !important;
    }
    .topbar-breadcrumb {
        min-width: 0 !important;
    }
    .breadcrumb-app, .breadcrumb-sep {
        display: none !important;
    }
    .breadcrumb-page {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 110px !important;
        display: inline-block !important;
    }
    .topbar-right {
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    .win-balance-tag {
        padding: 4px 8px !important;
        font-size: 0.8rem !important;
        gap: 4px !important;
    }
    .user-profile-badge {
        display: none !important;
    }
    .topbar-logout-btn {
        padding: 6px 9px !important;
        min-height: 32px !important;
        min-width: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .topbar-logout-btn span:last-child {
        display: none !important;
    }
}


