*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    /* New fresh color palette – deep teal & vibrant coral accent */
    --primary: #0f2b3d;      /* deep marine / navy-teal */
    --primary-dark: #0a1e2c;
    --primary-light: #2a4b6e;
    --accent: #ff6b4a;       /* vibrant coral */
    --accent-dark: #e05535;
    --secondary: #1a7f6b;    /* teal accent */
    --red: #e74c3c;
    --green: #27ae60;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #5b6e8c;
    --text-light: #94a3b8;
    --border: #e2edf2;
    --shadow: 0 8px 20px rgba(15,43,61,0.08);
    --shadow-hover: 0 20px 30px -12px rgba(15,43,61,0.2);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', sans-serif;
  }
  html { scroll-behavior: smooth; }
  body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; display: block; }
  ul { list-style: none; }
  button { font-family: var(--font); cursor: pointer; border: none; background: none; }

  /* ===== TOPBAR ===== */
  .topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .topbar-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .topbar-left { display: flex; align-items: center; gap: 20px; }
  .topbar-left a { color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 6px; transition: color .2s; font-weight: 450; }
  .topbar-left a:hover { color: var(--accent); }
  .topbar-right { display: flex; align-items: center; gap: 12px; }
  .topbar-right a {
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9);
    padding: 3px 12px; border-radius: 40px; font-size: 12px; transition: all .2s;
  }
  .topbar-right a:hover { background: var(--accent); color: #fff; }

  /* ===== HEADER ===== */
  .header {
    background: rgba(255,255,255,0.96); backdrop-filter: blur(4px);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 20px rgba(15,43,61,0.06);
  }
  .header-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 24px; height: 68px;
  }
  .logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .logo-text { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
  .logo-text span { color: var(--accent); background: linear-gradient(135deg, #ff6b4a, #ff9068); background-clip: text; -webkit-background-clip: text; color: transparent; }
  .header-search {
    flex: 1; max-width: 380px;
    display: flex; align-items: center; gap: 0;
    background: var(--bg); border: 1px solid var(--border); border-radius: 60px;
    overflow: hidden; transition: all .2s;
  }
  .header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,74,0.1); }
  .header-search input {
    flex: 1; border: none; background: transparent; padding: 10px 18px;
    font-family: var(--font); font-size: 13.5px; color: var(--text); outline: none;
  }
  .header-search button {
    background: var(--secondary); color: #fff; padding: 10px 22px;
    font-size: 15px; transition: background .2s; border-radius: 0 60px 60px 0;
  }
  .header-search button:hover { background: var(--primary); }
  .header-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .nav-item { position: relative; }
  .nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 40px;
    font-size: 14px; font-weight: 500; color: var(--text);
    transition: background .2s, color .2s; cursor: pointer; white-space: nowrap;
  }
  .nav-link:hover { background: rgba(15,43,61,0.06); color: var(--primary); }
  .nav-link .arrow { font-size: 11px; transition: transform .2s; }
  .nav-item:hover .arrow { transform: rotate(180deg); }
  .nav-link.hot { color: var(--accent); position: relative; }
  .nav-link.hot::after {
    content: 'HOT'; background: var(--accent); color: #fff;
    font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 30px;
    margin-left: 6px; letter-spacing: 0;
  }
  .dropdown {
    position: absolute; top: calc(100% + 12px); left: 0;
    background: #fff; border-radius: 20px; padding: 12px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15); border: 1px solid var(--border);
    min-width: 240px; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all .2s; z-index: 100;
  }
  .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .dropdown a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 14px;
    font-size: 13.5px; font-weight: 500; color: var(--text); transition: all .2s;
  }
  .dropdown a:hover { background: #f1f5f9; color: var(--accent); }
  .dropdown-icon {
    width: 32px; height: 32px; border-radius: 12px; background: #f1f5f9;
    display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
  }
  .dropdown.wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 480px; gap: 6px; }
  .header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .action-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--bg); color: var(--text-muted);
    font-size: 19px; transition: all .2s;
  }
  .action-btn:hover { background: var(--secondary); color: #fff; transform: scale(0.96); }
  .action-badge {
    position: absolute; top: 2px; right: 4px;
    background: var(--accent); color: #fff; font-size: 9px; font-weight: 800;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .btn-login {
    display: flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff;
    padding: 8px 22px; border-radius: 40px;
    font-size: 13.5px; font-weight: 600;
    transition: all .2s;
  }
  .btn-login:hover { background: var(--accent); transform: translateY(-2px); }

  /* ===== HERO ===== */
  .hero { max-width: 1280px; margin: 28px auto 0; padding: 0 24px; }
  .hero-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 20px; }
  .hero-main {
    position: relative; border-radius: 28px; overflow: hidden;
    background: linear-gradient(125deg, #0f2b3d 0%, #1e4a6e 100%);
    min-height: 310px; display: flex; align-items: center; padding: 40px;
    cursor: pointer;
  }
  .hero-main-content { color: #fff; z-index: 2; position: relative; }
  .hero-badge {
    background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.2px; padding: 5px 14px; border-radius: 40px;
    display: inline-block; margin-bottom: 16px;
  }
  .hero-main h1 { font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.3px; }
  .hero-main p { font-size: 14px; opacity: 0.88; margin-bottom: 24px; max-width: 340px; }
  .hero-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: #fff;
    padding: 12px 28px; border-radius: 40px; font-size: 14px; font-weight: 700;
    transition: all .2s;
  }
  .hero-cta:hover { background: var(--accent-dark); transform: translateY(-3px); box-shadow: 0 10px 20px -5px rgba(255,107,74,0.4); }
  .hero-deco { position: absolute; right: -10px; bottom: -20px; font-size: 200px; opacity: 0.06; user-select: none; }
  .hero-side { display: flex; flex-direction: column; gap: 16px; }
  .hero-card {
    flex: 1; border-radius: 24px; overflow: hidden;
    display: flex; align-items: center; padding: 22px 26px;
    color: #fff; cursor: pointer; position: relative;
    transition: transform .2s, box-shadow .2s;
  }
  .hero-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
  .hero-card-1 { background: linear-gradient(135deg, #1a7f6b, #0e5c4d); }
  .hero-card-2 { background: linear-gradient(135deg, #ff6b4a, #d94c2c); }
  .hero-card-content h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
  .hero-card-content p { font-size: 12px; opacity: 0.9; }
  .hero-card-emoji { font-size: 48px; margin-right: 20px; flex-shrink: 0; }

  /* ===== NOTICE ===== */
  .notice-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff; padding: 12px 0; margin-top: 28px;
  }
  .notice-bar-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 14px;
  }
  .notice-icon { font-size: 20px; }
  .notice-text { font-size: 13px; font-weight: 500; letter-spacing: 0.2px; }

  /* ===== SECTION & CARDS ===== */
  .section { max-width: 1280px; margin: 40px auto 0; padding: 0 24px; }
  .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
  .section-title { font-size: 20px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
  .section-title::before { content: ''; display: block; width: 5px; height: 26px; background: var(--accent); border-radius: 4px; }
  .section-link { color: var(--secondary); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: gap .2s; }
  .section-link:hover { gap: 10px; color: var(--accent); }

  .cat-tabs { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
  .cat-tab {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: 28px;
    background: var(--bg-card); border: 1px solid var(--border);
    cursor: pointer; flex-shrink: 0; transition: all .2s; min-width: 90px;
    font-size: 13px; font-weight: 600; color: var(--text-muted);
  }
  .cat-tab:hover, .cat-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px -8px rgba(15,43,61,0.3); }
  .cat-tab-icon { font-size: 28px; line-height: 1; }

  /* PRODUCTS GRID */
  .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
  .product-card {
    background: var(--bg-card); border-radius: 20px; overflow: hidden;
    border: 1px solid var(--border); transition: all 0.25s ease; cursor: pointer;
    position: relative;
  }
  .product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1); border-color: var(--secondary); }
  .product-img {
    width: 100%; aspect-ratio: 16/10; background: #f0f6fa;
    display: flex; align-items: center; justify-content: center;
    font-size: 52px; position: relative;
  }
  .product-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 800; padding: 4px 12px; border-radius: 30px;
  }
  .product-fav {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--text-light); transition: all .2s;
    opacity: 0;
  }
  .product-card:hover .product-fav { opacity: 1; }
  .product-fav:hover { background: #fff; color: var(--accent); transform: scale(1.1); }
  .product-info { padding: 14px 16px 18px; }
  .product-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
  .product-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product-price-row { display: flex; align-items: center; justify-content: space-between; }
  .product-price { font-size: 17px; font-weight: 800; color: var(--primary); }
  .product-price-old { font-size: 11px; color: var(--text-light); text-decoration: line-through; }
  .product-add {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--secondary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; transition: all .2s;
  }
  .product-add:hover { background: var(--accent); transform: rotate(90deg) scale(1.08); }
  .product-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
  .product-tag { font-size: 10px; padding: 3px 10px; border-radius: 40px; font-weight: 600; background: rgba(26,127,107,0.08); color: var(--secondary); }

  /* FEATURES */
  .features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .feature-card {
    background: var(--bg-card); border-radius: 24px;
    border: 1px solid var(--border); padding: 28px 20px;
    text-align: center; transition: all .2s;
  }
  .feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--secondary); }
  .feature-icon { width: 60px; height: 60px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 16px; background: rgba(15,43,61,0.05); }
  .feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
  .feature-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

  /* HOT DEAL */
  .hot-deal {
    background: linear-gradient(115deg, #0f2b3d, #1e4a6e);
    border-radius: 28px; padding: 32px 36px; color: #fff;
    display: flex; align-items: center; gap: 40px; position: relative;
  }
  .hot-deal-left { flex: 1; }
  .hot-deal-badge { background: var(--accent); display: inline-block; padding: 4px 14px; border-radius: 40px; font-size: 12px; font-weight: 800; margin-bottom: 12px; }
  .hot-deal-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.3px; }
  .hot-deal-sub { font-size: 14px; opacity: 0.85; margin-bottom: 24px; }
  .deal-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
    color: #fff; padding: 12px 24px; border-radius: 40px; font-size: 13px; font-weight: 700;
    transition: all .2s;
  }
  .deal-btn.primary-btn { background: var(--accent); border-color: var(--accent); }
  .deal-btn:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
  .hot-deal-right { display: flex; gap: 16px; }
  .deal-card { background: rgba(255,255,255,0.12); border-radius: 18px; padding: 18px; width: 130px; text-align: center; backdrop-filter: blur(5px); transition: all .2s; }
  .deal-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
  .deal-card-icon { font-size: 36px; margin-bottom: 8px; }
  .deal-card-name { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
  .deal-card-price { font-size: 16px; font-weight: 800; color: var(--accent); }
  .deal-card-old { font-size: 10px; opacity: 0.6; text-decoration: line-through; }

  /* FOOTER */
  footer {
    background: #0a1a24; color: rgba(255,255,255,0.7); margin-top: 60px;
    padding: 50px 0 0;
  }
  .footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 40px; }
  .footer-brand .logo-text { color: #fff; margin-bottom: 18px; display: block; font-size: 26px; }
  .footer-brand p { font-size: 13px; line-height: 1.6; margin-bottom: 20px; color: rgba(255,255,255,0.6); }
  .social-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; transition: .2s; color: #fff; }
  .social-btn:hover { background: var(--accent); }
  .footer-col h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 20px; }
  .footer-col ul li { margin-bottom: 12px; }
  .footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 13px; transition: .2s; display: flex; align-items: center; gap: 8px; }
  .footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0; display: flex; justify-content: space-between;
    font-size: 12px; color: rgba(255,255,255,0.4);
  }
  .footer-bottom a { color: var(--accent); }

  /* FLOATING */
  .float-chat { position: fixed; bottom: 28px; right: 28px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
  .float-btn { background: var(--secondary); color: #fff; padding: 12px 24px; border-radius: 50px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,0.2); transition: all .2s; display: flex; align-items: center; gap: 10px; }
  .float-btn:hover { background: var(--accent); transform: scale(1.02); }
  .float-up { width: 44px; height: 44px; border-radius: 50%; background: rgba(15,43,61,0.8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; transition: all .2s; backdrop-filter: blur(4px); }
  .float-up:hover { background: var(--accent); transform: translateY(-4px); }

  .toast { position: fixed; top: 90px; right: 28px; z-index: 9999; background: var(--secondary); color: #fff; padding: 14px 24px; border-radius: 60px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,0.1); transform: translateX(150%); transition: transform .3s ease; display: flex; align-items: center; gap: 10px; }
  .toast.show { transform: translateX(0); }
  @media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2,1fr); } .footer-grid { grid-template-columns: 1fr 1fr; } .hot-deal-right { display: none; } }
  @media (max-width: 768px) { .hero-grid { grid-template-columns: 1fr; } .hero-side { flex-direction: row; } .header-search { display: none; } .topbar { display: none; } .products-grid { grid-template-columns: repeat(2,1fr); } .footer-grid { grid-template-columns: 1fr; } }

  /* Modal Auth */
  .modal-auth {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-auth-container {
    position: relative;
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-auth-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.modal-auth-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal-auth-close:hover {
    color: var(--accent);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Auth Forms */
.auth-form {
    display: block;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: var(--text);
}

.auth-form-group input,
.auth-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: var(--font);
    font-size: 14px;
    transition: all 0.2s;
}

.auth-form-group input:focus,
.auth-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(64, 81, 137, 0.1);
}

.auth-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: var(--text-light);
}

.auth-form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.auth-form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-form-checkbox label {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.auth-message {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
}

/* Custom Toast */
.custom-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--green);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: toastSlideIn 0.3s ease;
}

.custom-toast.error {
    background: var(--red);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* User Avatar & Dropdown */
.user-avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.user-avatar-btn:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.user-info {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
    margin-top: 10px;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-header {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
}

.user-dropdown-header .user-fullname {
    font-weight: 600;
    color: var(--text);
}

.user-dropdown-header .user-email {
    font-size: 11px;
    color: var(--text-muted);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s;
}

.user-dropdown-item:hover {
    background: var(--bg);
}

.user-dropdown-item.text-danger {
    color: var(--red);
}

.user-dropdown-item.text-danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

.hidden {
    display: none !important;
}
/* Responsive cho giỏ hàng trên mobile */
@media (max-width: 768px) {
    .modal-auth-container {
        width: 95%;
        padding: 20px;
    }
    
    #cartContent table,
    #cartContent thead,
    #cartContent tbody,
    #cartContent th,
    #cartContent td,
    #cartContent tr {
        display: block;
    }
    
    #cartContent thead {
        display: none;
    }
    
    #cartContent tr {
        margin-bottom: 20px;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 12px;
    }
    
    #cartContent td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0 !important;
        border-bottom: none !important;
    }
    
    #cartContent td:before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: auto;
    }
}
/* ==================== CHECKOUT & ORDER RESULT ==================== */

/* Checkout Container rộng hơn */
#checkoutModal .modal-auth-container {
    max-width: 600px;
}

#orderResultModal .modal-auth-container {
    max-width: 550px;
}

/* Order Summary - Tóm tắt đơn hàng */
.order-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.order-summary h4 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 16px;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2edf2;
}

.order-summary-item:last-child {
    border-bottom: none;
}

/* Payment Methods - Phương thức thanh toán */
.payment-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.payment-method {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    background: white;
}

.payment-method:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.payment-method.selected {
    border-color: var(--accent);
    background: #fff5f2;
}

.payment-method .icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.payment-method .name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.payment-method .balance-amount {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Key Box - Hiển thị key/tài khoản */
.key-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.key-box h4 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-list {
    background: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    word-break: break-all;
}

.key-list pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text);
}

/* Copy button */
.copy-key-btn {
    margin-top: 10px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.copy-key-btn:hover {
    background: var(--accent);
}

/* Success/Error messages */
.checkout-success {
    background: #f0fdf4;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid var(--green);
}

.checkout-error {
    background: #fef2f2;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid var(--red);
    color: #991b1b;
}

.checkout-warning {
    background: #fef3c7;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

/* Disabled button */
.auth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Note textarea */
#orderNote {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: var(--font);
    font-size: 13px;
    resize: vertical;
    transition: all 0.2s;
}

#orderNote:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,107,74,0.1);
}