/* ========================================
   Flow Project - Design System
   Tong mau: Dark theme voi accent vang/cam
======================================== */

:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-hover: #252525;

    /* Accent Colors */
    --accent-primary: #f5a623;
    --accent-secondary: #ff6b35;
    --accent-gradient: linear-gradient(135deg, #f5a623 0%, #ff6b35 100%);
    --accent-glow: 0 0 20px rgba(245, 166, 35, 0.3);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    /* Status Colors */
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Borders */
    --border-color: #2a2a2a;
    --border-hover: #3a3a3a;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Global Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    box-shadow: var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(245, 166, 35, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-small {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.85rem;
}

.btn-large {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Elements */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input[readonly] {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    cursor: default;
    font-family: 'Fira Code', monospace;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.card-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding-top: var(--spacing-md);
}

.page-header {
    margin-bottom: var(--spacing-lg);
}

.page-header h1 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

/* Shop page - tách icon và text */
.shop-page .page-header h1 {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--text-primary);
}

/* Page icon và text - tách riêng để style */
.page-icon {
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.4));
    opacity: 0.8;
}

.page-text {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.7) 0%, rgba(255, 107, 53, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guide-page .page-header h1,
.price-page .page-header h1,
.home-page .page-header h1,
.flow-page .page-header h1,
.contact-page .page-header h1 {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--text-primary);
}

.shop-icon {
    display: inline-block;
    color: var(--text-primary);
    -webkit-text-fill-color: unset;
}

.shop-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) var(--spacing-xl);
    transition: transform 0.3s ease-in-out;
}

.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--spacing-xl);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
}

/* Logo icon box ⚡ */
.navbar-logo-icon {
    width: 40px;
    height: 40px;
    background: #9e3f06;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(158,63,6,0.14);
    flex-shrink: 0;
}

/* STUDIO highlight cam */
.brand-highlight {
    color: #9e3f06;
}

/* Xóa gradient text cũ trên brand span */
.navbar-brand span.brand-highlight {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #9e3f06;
    color: #9e3f06;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-links li {
    position: relative;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    position: relative;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--accent-primary);
    background: rgba(245, 166, 35, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(245, 166, 35, 0.1);
    border-color: var(--accent-primary);
}

.nav-link-button {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: all var(--transition-normal);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
}

.nav-link-button:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
    background: rgba(245, 166, 35, 0.1);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.navbar-auth-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Account Dropdown */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.account-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.account-button:hover,
.account-button.active {
    background: rgba(245, 166, 35, 0.15);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.15);
    color: var(--accent-primary);
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-button.active .dropdown-icon {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.account-dropdown.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.account-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-header .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.account-info {
    flex: 1;
    min-width: 0;
}

.account-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.account-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: var(--spacing-xs) 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 12px 20px;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-weight: 500;
    border-left: 2px solid transparent;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-left-color: var(--accent-primary);
    padding-left: 24px;
    /* Slight shift effect */
}

.dropdown-item-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    transition: transform 0.2s;
}

.dropdown-item:hover .dropdown-item-icon {
    transform: scale(1.1);
}

.dropdown-item.danger {
    color: #ff4757;
}

.dropdown-item.danger:hover {
    background: rgba(255, 71, 87, 0.1);
    color: #ff6b81;
    border-left-color: #ff4757;
}

/* Pricing Dropdown (hover menu in navbar) */
.nav-item-pricing-dropdown {
    position: relative;
}

.nav-item-pricing-dropdown > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-item-pricing-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.pricing-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 160px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
    padding: 6px 0;
}

.nav-item-pricing-dropdown:hover .pricing-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.pricing-dropdown-item {
    display: block;
    padding: 10px 18px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pricing-dropdown-item:hover {
    background: rgba(245, 166, 35, 0.1);
    color: var(--accent-primary);
    padding-left: 22px;
}

/* Auth Modal */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--spacing-xl);
    animation: fadeIn 0.2s ease;
}

.auth-modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1;
    transition: all var(--transition-fast);
    z-index: 10;
}

.auth-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.auth-modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 0 var(--spacing-xl);
    margin-top: var(--spacing-md);
}

.auth-modal-tab {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

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

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

.auth-modal-content {
    padding: var(--spacing-xl);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.auth-modal-header h2 {
    margin-bottom: var(--spacing-sm);
}

.auth-modal-header .text-muted {
    font-size: 0.9rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.page-content {
    padding-top: 100px;
    min-height: 100vh;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

/* Table */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-tertiary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.table tr:hover td {
    background: var(--bg-hover);
}

/* Alerts */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

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

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.text-accent {
    color: var(--accent-primary);
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: var(--spacing-sm);
}

.gap-2 {
    gap: var(--spacing-md);
}

.gap-3 {
    gap: var(--spacing-lg);
}

/* Copy Button */
.copy-btn {
    padding: 4px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    white-space: nowrap;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.input-with-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}

.input-with-copy input {
    flex: 1;
    min-width: 0;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stats Card */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Pricing page: two groups (Video top, Image bottom) */
.pricing-section {
    margin-bottom: 80px;
}

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

.pricing-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-normal);
    /* Chiều cao: padding (24*2) + border (1*2) + content (~65px) = ~115px */
    min-height: 115px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

/* Product Card - Cùng chiều cao với stat-card */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    height: 115px;
    min-height: 115px;
    max-height: 115px;
    gap: var(--spacing-md);
    box-sizing: border-box;
}

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

/* Product Card Left - Thông tin bên trái */
.product-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
    height: 100%;
    padding: 0;
    margin: 0;
    max-width: calc(100% - 110px);
    min-width: 0;
}

.product-info-item {
    display: flex;
    align-items: flex-start;
    line-height: 1.3;
    width: 100%;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.product-info-item:first-child {
    align-items: flex-start;
    margin-top: 0;
    padding-top: 0;
    align-self: flex-start;
}

.product-info-item:last-child {
    align-items: flex-start;
    margin-bottom: 0;
    padding-bottom: 0;
    margin-top: auto;
    align-self: flex-start;
}

.info-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    min-width: 0;
    overflow-wrap: break-word;
}

.product-name {
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-note {
    color: var(--text-secondary);
    text-align: left;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.product-price-text {
    color: var(--success);
    font-weight: 600;
}

/* Product Card Right - Giá và icon bên phải */
.product-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    flex-shrink: 0;
    width: 90px;
    align-self: stretch;
    height: 100%;
    padding: 0;
    margin: 0;
}

.product-price-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 0;
    margin: 0;
    margin-top: 0;
    align-self: flex-end;
}

/* Price page - Căn giữa giá tiền theo chiều dọc */
.price-page .product-right {
    justify-content: center;
}

.price-page .product-price-large {
    align-self: center;
}

/* Guide page - Căn giữa button theo chiều dọc */
.guide-page .product-right {
    justify-content: center;
}

/* Guide View Button */
.guide-view-btn {
    width: 90px;
    height: 36px;
    background: var(--accent-primary);
    color: var(--text-primary);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-view-btn:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--accent-glow);
}

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

/* Guide Modal */
.guide-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.guide-modal.show {
    display: flex;
    opacity: 1;
}

.guide-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.guide-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    margin: auto;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.guide-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.guide-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.guide-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.guide-modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.guide-modal-body {
    padding: var(--spacing-lg);
    overflow-y: auto;
    flex: 1;
    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-primary);
}

/* Webkit scrollbar (Chrome, Safari, Edge) */
.guide-modal-body::-webkit-scrollbar {
    width: 8px;
}

.guide-modal-body::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.guide-modal-body::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 1px solid var(--bg-primary);
}

.guide-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}

.guide-modal-description {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

.guide-modal-description p {
    margin: 0 0 var(--spacing-sm) 0;
}

.guide-modal-video {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}

.guide-modal-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.guide-modal-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.guide-modal-extended-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

.guide-modal-extended-description p {
    margin: 0;
}

.guide-modal-download-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.guide-modal-download-link .download-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.guide-modal-download-link .download-anchor {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.95rem;
    word-break: break-all;
    transition: color var(--transition-fast);
}

.guide-modal-download-link .download-anchor:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .guide-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .guide-modal-header {
        padding: var(--spacing-md);
    }

    .guide-modal-header h2 {
        font-size: 1.2rem;
    }

    .guide-modal-body {
        padding: var(--spacing-md);
    }
}

.price-value-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
    line-height: 1.2;
    text-align: center;
}

.price-unit-large {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

.product-buy-btn {
    width: 90px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    border: none;
    color: var(--bg-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    flex-shrink: 0;
    padding: 0 var(--spacing-sm);
    margin: 0;
    margin-top: auto;
    margin-bottom: 0;
    align-self: flex-end;
}

.product-buy-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--accent-glow);
}

.product-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.buy-icon {
    font-size: 1rem;
    line-height: 1;
}

.buy-text {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}

.loading-placeholder {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-2xl);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
}

/* Tab Navigation */
.tabs {
    display: flex;
    gap: var(--spacing-xs);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.tab {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.tab.active {
    background: var(--bg-card);
    color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

/* User Dropdown Menu - Legacy (deprecated, using account-dropdown now) */

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.dropdown-item-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.dropdown-item-text {
    flex: 1;
    font-weight: 500;
}

.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .navbar-brand {
        justify-self: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-right {
        justify-self: center;
    }

    .account-dropdown {
        right: auto;
        left: 0;
        min-width: 200px;
    }

    .account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .nav-links {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

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

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-2xl) var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

/* ========== Chat (user - Hỗ trợ) ========== */
.container--chat {
    max-width: 100%;
    padding: var(--spacing-md);
    height: calc(100vh - 120px);
    min-height: 400px;
}

.chat-loading {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.chat-layout {
    display: flex;
    height: 100%;
    min-height: 360px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.chat-sidebar {
    width: 280px;
    min-width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
}

.chat-sidebar-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.chat-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.chat-conv-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.chat-conv-item {
    padding: var(--spacing-md);
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.chat-conv-item:hover,
.chat-conv-item.active {
    background: var(--bg-hover);
}

.chat-conv-name {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.chat-conv-preview {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.chat-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.chat-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.chat-header-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.chat-date-sep {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: var(--spacing-sm) 0;
}

.chat-msg {
    display: flex;
    animation: chat-msg-in 0.2s ease-out;
}

@keyframes chat-msg-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg--me {
    justify-content: flex-end;
}

.chat-msg--other {
    justify-content: flex-start;
}

.chat-msg-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
}

.chat-msg--me .chat-msg-bubble {
    background: var(--accent-gradient);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg--other .chat-msg-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-msg-content {
    display: block;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-msg-time {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 4px;
}

.chat-input-wrap {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.chat-input:focus {
    border-color: var(--accent-primary);
}

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--accent-gradient);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.1s, box-shadow var(--transition-fast);
}

.chat-send:hover {
    box-shadow: var(--accent-glow);
}

.chat-send:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .chat-layout {
        flex-direction: column;
    }

    .chat-sidebar {
        width: 100%;
        max-height: 120px;
    }
}

/* Floating chat button - góc phải dưới, đồng bộ tông màu trang */
.chat-fab {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    color: var(--text-primary);
    border: none;
    box-shadow: var(--shadow-lg), var(--accent-glow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform var(--transition-fast), box-shadow var(--transition-normal);
    text-decoration: none;
    font-size: 1.5rem;
}

.chat-fab:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 24px rgba(245, 166, 35, 0.45);
}

.chat-fab:active {
    transform: scale(0.98);
}

.chat-fab svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.chat-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #f85149;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.chat-fab-badge.has-unread {
    display: flex;
    animation: fab-badge-pop 0.3s ease-out;
}

@keyframes fab-badge-pop {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* ========================================
   Mobile Responsiveness & UX Improvements
   Added by Agent
======================================== */

/* Base Responsive Adjustments */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .navbar-content {
        padding: 0 var(--spacing-sm);
    }
}

/* Mobile Layout */
@media (max-width: 768px) {

    /* Navbar content spacing */
    .navbar-content {
        justify-content: space-between;
    }

    /* Dashboard */
    .stats-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
        gap: var(--spacing-md);
    }

    .quick-actions-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for actions */
        gap: var(--spacing-md);
    }

    .quick-action-card,
    .btn {
        width: 100%;
        justify-content: center;
    }

    /* History & Tables */
    .table th,
    .table td {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
    }

    .status-badge {
        padding: 2px 8px;
        font-size: 0.7rem;
    }

    /* Filters */
    #filter-status,
    #filter-endpoint,
    button {
        width: 100% !important;
        margin-bottom: var(--spacing-sm);
    }

    .flex.gap-2 {
        flex-direction: column;
        align-items: stretch;
    }

    /* Page specific */
    .auth-wrapper {
        padding: var(--spacing-md);
    }

    .page-content {
        padding-top: 200px;
        /* Increased padding to avoid navbar overlap */
    }

    .card {
        padding: var(--spacing-md);
    }
}

/* ========================================
   Premium Footer Styles
   Added by Agent
======================================== */

.footer.premium-footer {
    position: relative;
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 40px;
    margin-top: 100px;
    overflow: hidden;
}

.footer-decoration {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.3);
}

.premium-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
    gap: 60px;
}

.premium-footer .footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.premium-footer .brand-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFF 0%, #AAA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    display: inline-block;
}

.premium-footer .footer-desc {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.6;
    max-width: 300px;
}

.premium-footer .footer-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    font-weight: 700;
    margin-bottom: 5px;
}

.premium-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-footer .footer-links.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.premium-footer .footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.premium-footer .footer-links a:hover {
    color: var(--accent-primary, #f5a623);
    transform: translateX(4px);
    text-shadow: 0 0 10px rgba(245, 166, 35, 0.3);
}

.premium-footer .footer-info-item {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.premium-footer .footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    color: #22c55e;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 10px;
    width: fit-content;
    transition: all 0.3s ease;
}

.premium-footer .footer-status:hover {
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.premium-footer .status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1024px) {
    .premium-footer .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .premium-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .premium-footer .brand-section,
    .premium-footer .footer-section,
    .premium-footer .footer-info-item,
    .premium-footer .footer-status {
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .premium-footer .footer-links.two-columns {
        text-align: center;
        /* Keep grid on mobile for links to save space? Or stack? */
        /* Let's stack for better tap targets on mobile, or keeep grid if space allows */
        grid-template-columns: 1fr 1fr;
        /* Keep 2 columns even on mobile looks good for links */
    }

    .footer-decoration {
        width: 80%;
    }
}