/* =============================================================
   HeyBud - Premium USA Flowers
   Complete Stylesheet
   ============================================================= */

/* ===== 1. CSS VARIABLES ===== */
:root {
    --bg-darkest: #0a1a0f;
    --bg-dark: #0f2518;
    --bg-card: #132e1b;
    --bg-card-hover: #1a3d24;
    --green-primary: #2d6b3f;
    --green-accent: #4caf50;
    --green-light: #6fbf73;
    --green-leaf: #5cb85c;
    --copper: #b8864e;
    --copper-light: #d4a76a;
    --copper-dark: #8c6239;
    --gold: #c9a96e;
    --cream: #f5e6c8;
    --cream-light: #faf3e6;
    --white: #ffffff;
    --text-primary: #f5e6c8;
    --text-secondary: #a8c4a0;
    --text-muted: #6b8f6b;
    --border: rgba(184, 134, 78, 0.2);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 40px rgba(76, 175, 80, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 2. RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== 3. ANIMATED BACKGROUND ===== */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(76, 175, 80, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(184, 134, 78, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(45, 107, 63, 0.03) 0%, transparent 70%);
}

.floating-leaf {
    position: fixed;
    font-size: 20px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    animation: floatLeaf 20s infinite linear;
}

@keyframes floatLeaf {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.04; }
    90% { opacity: 0.04; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* ===== 4. SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darkest); }
::-webkit-scrollbar-thumb { background: var(--copper-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--copper); }

/* ===== 5. NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 26, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    height: 60px;
    background: rgba(10, 26, 15, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 35%;
    border: 2px solid var(--copper);
    transition: var(--transition);
}

.nav-brand:hover img {
    border-color: var(--copper-light);
    box-shadow: 0 0 15px rgba(184, 134, 78, 0.3);
}

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

.nav-brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cream);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.nav-brand-tag {
    font-size: 0.6rem;
    color: var(--copper-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--copper), var(--green-accent));
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.cart-btn {
    position: relative;
    background: linear-gradient(135deg, var(--copper-dark), var(--copper));
    border: none;
    color: var(--cream);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 134, 78, 0.4);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--green-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-darkest);
    transition: var(--transition);
}

.cart-badge.pulse {
    animation: badgePulse 0.4s ease;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--cream);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== 6. HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem 80px;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-darkest), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 35%;
    border: 3px solid var(--copper);
    margin-bottom: 2rem;
    box-shadow: 0 0 60px rgba(184, 134, 78, 0.2), 0 0 120px rgba(76, 175, 80, 0.1);
    animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { box-shadow: 0 0 40px rgba(184, 134, 78, 0.2), 0 0 80px rgba(76, 175, 80, 0.05); }
    100% { box-shadow: 0 0 60px rgba(184, 134, 78, 0.35), 0 0 120px rgba(76, 175, 80, 0.15); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--cream), var(--copper-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--copper-light);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(184, 134, 78, 0.1);
    border: 1px solid rgba(184, 134, 78, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--copper-light);
    font-weight: 500;
}

/* ===== 7. BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--copper-dark), var(--copper));
    color: var(--cream);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(184, 134, 78, 0.3);
    background: linear-gradient(135deg, var(--copper), var(--copper-light));
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: transparent;
    color: var(--green-light);
    border: 2px solid var(--green-primary);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.5px;
    margin-left: 1rem;
    font-family: 'Poppins', sans-serif;
}

.btn-secondary:hover {
    background: var(--green-primary);
    color: var(--cream);
    transform: translateY(-3px);
}

.add-to-cart {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--green-primary), var(--green-accent));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.add-to-cart.added {
    background: linear-gradient(135deg, var(--copper-dark), var(--copper));
}

/* ===== 8. CRYPTO BANNER ===== */
.crypto-banner {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(45, 107, 63, 0.15), rgba(184, 134, 78, 0.1));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.crypto-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.crypto-icon svg {
    display: block;
}

/* ===== 9. SECTION STYLES ===== */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--copper), var(--green-accent));
    margin: 1rem auto 0;
    border-radius: 3px;
}

/* ===== 10. CATEGORIES ===== */
.categories {
    padding: 5rem 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-card:hover, .category-card.active {
    background: var(--bg-card-hover);
    border-color: var(--copper);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.category-card.active {
    border-color: var(--green-accent);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.category-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 0.3rem;
}

.category-card p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===== 11. PRODUCTS ===== */
.products {
    padding: 3rem 2rem 5rem;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.products-grid .product-card {
    width: 280px;
    flex-shrink: 0;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    border-color: rgba(184, 134, 78, 0.4);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 220px;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.tag-indica { background: rgba(138, 79, 255, 0.2); color: #b48eff; border: 1px solid rgba(138, 79, 255, 0.3); }
.tag-sativa { background: rgba(76, 175, 80, 0.2); color: var(--green-light); border: 1px solid rgba(76, 175, 80, 0.3); }
.tag-hybrid { background: rgba(184, 134, 78, 0.2); color: var(--copper-light); border: 1px solid rgba(184, 134, 78, 0.3); }
.tag-cbd { background: rgba(33, 150, 243, 0.2); color: #64b5f6; border: 1px solid rgba(33, 150, 243, 0.3); }
.tag-new { background: rgba(244, 67, 54, 0.2); color: #ef5350; border: 1px solid rgba(244, 67, 54, 0.3); }
.tag-edible { background: rgba(255, 152, 0, 0.2); color: #ffb74d; border: 1px solid rgba(255, 152, 0, 0.3); }

.product-thc {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.65rem;
    color: var(--green-light);
    font-weight: 600;
    z-index: 2;
}

.product-info {
    padding: 1.2rem 1.5rem 1.5rem;
}

.product-strain {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.3rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 0.4rem;
}

.product-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-effects {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.effect-tag {
    font-size: 0.6rem;
    padding: 3px 8px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: 50px;
    color: var(--text-secondary);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--copper-light);
}

.product-price .unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== 12. FEATURES ===== */
.features {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(45, 107, 63, 0.05), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--copper);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== 13. AGE VERIFICATION MODAL ===== */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.age-modal.hidden {
    display: none;
}

.age-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--copper);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 0 80px rgba(184, 134, 78, 0.15);
}

.age-modal-content img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 35%;
    border: 2px solid var(--copper);
    margin-bottom: 1.5rem;
}

.age-modal-content h2 {
    color: var(--cream);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.age-modal-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-yes {
    padding: 12px 36px;
    background: linear-gradient(135deg, var(--green-primary), var(--green-accent));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.age-no {
    padding: 12px 36px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.age-yes:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4); }
.age-no:hover { border-color: var(--copper); color: var(--cream); }

/* ===== 14. CART SIDEBAR ===== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: var(--bg-dark);
    border-left: 1px solid var(--border);
    z-index: 5001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

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

.cart-header h3 {
    font-size: 1.1rem;
    color: var(--cream);
    font-weight: 600;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.cart-close:hover {
    background: rgba(255,255,255,0.05);
    color: var(--cream);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 0.2rem;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--copper-light);
    font-weight: 500;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-delete-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 6px;
    margin-left: 4px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.cart-delete-btn:hover {
    color: #e74c3c;
    background: rgba(231,76,60,0.1);
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--cream);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    border-color: var(--copper);
    background: var(--bg-card-hover);
}

.qty-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cream);
    min-width: 20px;
    text-align: center;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.cart-total-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.cart-total-amount {
    color: var(--copper-light);
    font-weight: 700;
    font-size: 1.2rem;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--copper-dark), var(--copper));
    border: none;
    border-radius: 50px;
    color: var(--cream);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.checkout-btn:hover {
    box-shadow: 0 4px 20px rgba(184, 134, 78, 0.4);
    transform: translateY(-2px);
}

/* ===== 15. CHECKOUT MODAL ===== */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.checkout-modal.open {
    opacity: 1;
    visibility: visible;
}

.checkout-content {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-content h2 {
    color: var(--cream);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.checkout-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.crypto-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.crypto-option {
    padding: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.crypto-option:hover, .crypto-option.selected {
    border-color: var(--copper);
    background: var(--bg-card-hover);
}

.crypto-option.selected {
    border-color: var(--green-accent);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.15);
}

.crypto-option-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.crypto-option-icon svg {
    display: block;
    margin: 0 auto;
}

.crypto-option-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cream);
}

.crypto-option-ticker {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.wallet-address {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.wallet-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.wallet-addr {
    font-size: 0.75rem;
    color: var(--green-light);
    word-break: break-all;
    font-family: monospace;
    background: rgba(0,0,0,0.3);
    padding: 0.8rem;
    border-radius: 8px;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: var(--green-primary);
    border: none;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.copy-btn:hover {
    background: var(--green-accent);
}

.checkout-amount {
    text-align: center;
    padding: 1.2rem;
    background: rgba(184, 134, 78, 0.1);
    border: 1px solid rgba(184, 134, 78, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.checkout-amount-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-amount-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--copper-light);
}

.checkout-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.checkout-actions {
    display: flex;
    gap: 1rem;
}

.checkout-confirm {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, var(--green-primary), var(--green-accent));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
}

.checkout-cancel {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
}

.checkout-confirm:hover { box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4); transform: translateY(-2px); }
.checkout-cancel:hover { border-color: var(--copper); color: var(--cream); }

/* ===== 16. NEWSLETTER ===== */
.newsletter {
    padding: 5rem 2rem;
    text-align: center;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
}

.newsletter-box h2 {
    font-size: 1.5rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.newsletter-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.8rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--cream);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.newsletter-form input:focus {
    border-color: var(--copper);
}

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

.newsletter-form button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--copper-dark), var(--copper));
    border: none;
    border-radius: 50px;
    color: var(--cream);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
}

.newsletter-form button:hover {
    box-shadow: 0 4px 15px rgba(184, 134, 78, 0.3);
}

/* ===== 17. FOOTER ===== */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 35%;
    border: 2px solid var(--copper);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--cream);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--copper-light);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===== 18. TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--green-accent);
    border-radius: var(--radius-sm);
    color: var(--cream);
    font-size: 0.85rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===== 19. RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 26, 15, 0.98);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .crypto-banner {
        gap: 1.5rem;
    }

    .products-grid .product-card {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .checkout-content {
        padding: 1.5rem;
    }

    .crypto-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

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

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

    .age-modal-content {
        padding: 2rem 1.5rem;
    }

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

/* ===== 20. ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================================
   NEW SECTIONS - Auth, Profile, Admin, etc.
   ============================================================= */

/* ===== 21. AUTH FORMS - Login/Register ===== */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
}

.auth-card h2 {
    color: var(--cream);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--cream);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--copper);
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--cream);
    padding: 8px;
}

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

.form-error {
    color: #ef5350;
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

.form-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--copper-dark), var(--copper));
    border: none;
    border-radius: 50px;
    color: var(--cream);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    margin-top: 0.5rem;
}

.form-btn:hover {
    box-shadow: 0 4px 20px rgba(184, 134, 78, 0.4);
    transform: translateY(-2px);
}

.form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--copper-light);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    color: var(--cream);
}

/* ===== 22. PROFILE PAGE ===== */
.profile-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-header {
    margin-bottom: 2rem;
}

.profile-header h2 {
    color: var(--cream);
    font-size: 1.5rem;
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-section h3 {
    color: var(--cream);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* ===== 23. ORDER HISTORY ===== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.order-card:hover {
    border-color: var(--copper);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-id {
    font-weight: 600;
    color: var(--cream);
    font-size: 0.9rem;
}

.order-status {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd54f;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-paid {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.status-on_hold {
    background: rgba(156, 39, 176, 0.2);
    color: #ce93d8;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.status-shipped {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-delivered {
    background: rgba(76, 175, 80, 0.2);
    color: var(--green-light);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.2);
    color: #ef5350;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.order-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 1.5rem;
}

.order-total {
    color: var(--copper-light);
    font-weight: 600;
}

/* ===== 24. ADMIN PANEL ===== */

/* Admin persistent nav bar */
.admin-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(18, 25, 18, 0.97);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav-item {
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    background: linear-gradient(135deg, #8B6914, #C8963C);
    border: none;
}
.admin-nav-item:hover {
    opacity: 0.88;
}
.admin-nav-item.active {
    background: linear-gradient(135deg, #C8963C, #E8B960);
    box-shadow: 0 0 12px rgba(200,150,60,0.3);
}

.admin-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    padding-top: 140px !important;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h2 {
    color: var(--cream);
    font-size: 1.5rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--copper-light);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.admin-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.admin-table th {
    background: rgba(0,0,0,0.3);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.admin-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.admin-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card-hover);
    color: var(--cream);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.admin-btn:hover {
    border-color: var(--copper);
}

.admin-btn-primary {
    background: linear-gradient(135deg, var(--copper-dark), var(--copper));
    border-color: transparent;
}

.admin-btn-primary:hover {
    box-shadow: 0 4px 15px rgba(184, 134, 78, 0.3);
}

.admin-btn-danger {
    border-color: rgba(244, 67, 54, 0.3);
    color: #ef5350;
}

.admin-btn-danger:hover {
    background: rgba(244, 67, 54, 0.15);
}

.admin-filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.admin-filter-btn {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.admin-filter-btn.active,
.admin-filter-btn:hover {
    background: var(--bg-card-hover);
    color: var(--cream);
    border-color: var(--copper);
}

/* ===== 25. PRODUCT DETAIL PAGE ===== */
.product-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.product-detail-img {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-card));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    height: 400px;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-card));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

.product-gallery-emoji {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    padding-bottom: 2px;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid transparent;
    background: rgba(255,255,255,0.04);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumb:hover {
    opacity: 0.85;
}

.gallery-thumb.active {
    border-color: var(--copper-light);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    color: var(--cream);
}

.product-detail-info h1 {
    font-size: 1.8rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.product-detail-info .product-price {
    font-size: 1.8rem;
}

.product-detail-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.product-detail-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 1.5rem 0;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.5rem 0;
}

.qty-selector .qty-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}

.qty-selector .qty-value {
    font-size: 1.1rem;
    min-width: 30px;
}

/* ===== 26. CHECKOUT PAGE (full page) ===== */
.checkout-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
}

.checkout-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-section h3 {
    color: var(--cream);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.checkout-items {
    margin-bottom: 1rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

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

.checkout-summary {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.checkout-summary .total-label {
    font-weight: 600;
    color: var(--cream);
}

.checkout-summary .total-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--copper-light);
}

/* ===== 27. CART PAGE (full page) ===== */
.cart-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.cart-page h2 {
    color: var(--cream);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.cart-page-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    align-items: center;
}

.cart-page-item .cart-item-img {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    border-radius: var(--radius-sm);
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-page-item .cart-item-info {
    flex: 1;
}

.cart-page-item .cart-item-name {
    font-size: 1rem;
}

.cart-page-item .cart-item-price {
    font-size: 0.9rem;
}

.cart-page-total {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.cart-empty-page {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty-page .cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty-page p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ===== 28. LOADING & MISC ===== */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top-color: var(--copper);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

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

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--copper-light);
}

/* Page transitions */
.page-enter {
    opacity: 0;
    transform: translateY(15px);
}

.page-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Shop page filters */
.shop-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.shop-search {
    display: flex;
    gap: 0.8rem;
}

.shop-search input {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--cream);
    font-size: 0.85rem;
    outline: none;
    width: 240px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.shop-search input:focus {
    border-color: var(--copper);
}

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

/* Responsive - Admin & Product Detail */
@media (max-width: 768px) {
    .admin-table-wrap {
        overflow-x: auto;
    }

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

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

    .product-detail-img {
        height: 280px;
        font-size: 4rem;
    }

    .gallery-thumb {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* ===== 29. USER NAV DROPDOWN ===== */
.user-menu {
    position: relative;
}

.user-menu-btn {
    background: linear-gradient(135deg, var(--green-primary), var(--green-accent));
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.user-menu-btn:hover {
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 180px;
    box-shadow: var(--shadow);
    z-index: 100;
    display: none;
}

.user-dropdown.open {
    display: block;
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--bg-card-hover);
    color: var(--cream);
}

.user-dropdown .divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ===== 30. ADMIN NOTIFICATION BADGE ===== */
.admin-nav-link {
    position: relative;
}

.admin-badge {
    position: absolute;
    top: -10px;
    right: -14px;
    background: #e53935;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-darkest);
    line-height: 1;
}

/* ===== 31. ANALYTICS CHARTS ===== */
.analytics-period {
    display: flex;
    gap: 0.4rem;
}

.analytics-period .admin-btn.active {
    background: linear-gradient(135deg, var(--copper-dark), var(--copper));
    border-color: transparent;
    color: var(--cream);
}

/* Vertical bar chart */
.analytics-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 180px;
    padding-top: 20px;
}

.analytics-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}

.analytics-col-value {
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    white-space: nowrap;
}

.analytics-col-bar {
    width: 100%;
    max-width: 28px;
    min-height: 2px;
    background: linear-gradient(to top, var(--copper-dark), var(--copper-light));
    border-radius: 3px 3px 0 0;
    transition: height 0.5s ease;
}

.analytics-col-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Horizontal bar chart */
.analytics-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.analytics-bar-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    min-width: 100px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.analytics-bar-track {
    flex: 1;
    height: 22px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.analytics-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-primary), var(--green-accent));
    border-radius: 4px;
    min-width: 2px;
    transition: width 0.5s ease;
}

.analytics-bar-value {
    font-size: 0.75rem;
    color: var(--copper-light);
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}

.analytics-chart-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 2rem 0;
}

/* Live activity pulse dot */
.analytics-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--green-accent);
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
}

/* Analytics responsive */
@media (max-width: 768px) {
    .analytics-chart {
        height: 140px;
    }

    .analytics-col-value {
        display: none;
    }

    .analytics-bar-label {
        min-width: 70px;
        max-width: 90px;
        font-size: 0.7rem;
    }

    .analytics-period {
        order: -1;
    }
}

/* ===== 32. TRACKING TIMELINE ===== */
.tracking-section {
    position: relative;
}

.tracking-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: left;
}

.tracking-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--cream);
}

.tracking-timeline {
    position: relative;
    padding-left: 24px;
}

.tracking-event {
    position: relative;
    padding-bottom: 1.2rem;
    padding-left: 16px;
}

.tracking-event:last-child {
    padding-bottom: 0;
}

.tracking-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 1;
}

.tracking-dot.delivered {
    background: var(--green-accent);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

.tracking-dot.active {
    background: var(--copper-light);
    box-shadow: 0 0 8px rgba(200, 150, 80, 0.4);
}

.tracking-dot.past {
    background: rgba(255, 255, 255, 0.15);
}

.tracking-line {
    position: absolute;
    left: -19px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.tracking-info {
    min-height: 24px;
}

.tracking-info-status {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 2px;
}

.tracking-info-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.tracking-info-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .tracking-timeline {
        padding-left: 20px;
    }

    .tracking-dot {
        left: -20px;
        width: 10px;
        height: 10px;
    }

    .tracking-line {
        left: -16px;
    }
}

/* ===== Language Selector ===== */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 1001;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
    text-align: left;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--cream);
}

.lang-option.active {
    background: rgba(200, 150, 80, 0.12);
    color: var(--copper-light);
    font-weight: 600;
}

.lang-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-name {
    flex: 1;
}

/* ===== SHIPPING OPTIONS (Admin Settings) ===== */
.ship-name,
.ship-price,
.ship-desc {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--cream);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: var(--transition);
}

.ship-name:focus,
.ship-price:focus,
.ship-desc:focus {
    border-color: var(--copper);
    box-shadow: 0 0 0 2px rgba(184, 134, 78, 0.15);
}

.ship-name::placeholder,
.ship-price::placeholder,
.ship-desc::placeholder {
    color: var(--text-muted);
}

.ship-force-email {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.ship-del {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 80, 80, 0.1);
    color: #ff5050;
    border: 1px solid rgba(255, 80, 80, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.ship-del:hover {
    background: rgba(255, 80, 80, 0.25);
    border-color: rgba(255, 80, 80, 0.4);
}

.ship-col-header {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== PROFILE LANGUAGE SELECTOR ===== */
.profile-lang-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.profile-lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--cream);
}

.profile-lang-btn.active {
    background: rgba(200, 150, 80, 0.12);
    border-color: var(--copper-light);
    color: var(--copper-light);
    font-weight: 600;
}

.profile-lang-btn .lang-flag {
    font-size: 1.2rem;
}

/* ===== MESSAGE BADGE (Navbar) ===== */
.msg-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef5350;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.msg-badge-dropdown {
    background: #ef5350;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    margin-left: auto;
}

.user-menu-btn {
    position: relative;
}

/* ===== AUTOCOMPLETE DROPDOWN ===== */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 10px 16px;
    color: var(--cream);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}

.autocomplete-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.autocomplete-item[data-id] {
    color: var(--copper-light);
    font-weight: 500;
}

.autocomplete-item.autocomplete-active,
.autocomplete-item.autocomplete-active:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--cream);
}

/* ===== CUSTOMER MESSAGES ===== */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.message-card {
    position: relative;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.message-card.unread {
    background: rgba(200, 150, 80, 0.06);
    border-color: rgba(200, 150, 80, 0.25);
}

.message-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-from {
    font-size: 0.8rem;
    color: var(--copper-light);
    font-weight: 600;
}

.message-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.message-content {
    font-size: 0.9rem;
    color: var(--cream);
    line-height: 1.5;
    word-break: break-word;
}

.message-new-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: #ef5350;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== MESSAGES CONVERSATION ===== */
.messages-conversation {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.5rem 0 1rem;
}

.msg-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    word-break: break-word;
}

.msg-bubble-admin {
    align-self: flex-start;
    background: rgba(184, 134, 78, 0.1);
    border: 1px solid rgba(184, 134, 78, 0.25);
}

.msg-bubble-user {
    align-self: flex-end;
    background: rgba(80, 180, 100, 0.08);
    border: 1px solid rgba(80, 180, 100, 0.2);
}

.msg-bubble-content {
    font-size: 0.9rem;
    color: var(--cream);
    line-height: 1.5;
}

.msg-bubble-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.messages-reply-form {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1rem;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reviews-header h2 {
    color: var(--cream);
    font-size: 1.4rem;
    margin: 0;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.reviews-summary .review-star {
    font-size: 1.3rem;
}
.reviews-summary .review-star.filled {
    color: #FFD700;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.4);
}

.reviews-avg {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--copper-light);
}

.reviews-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stars {
    display: inline-flex;
    gap: 2px;
}

.review-star {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.review-star.filled {
    color: #FFD700;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.4);
}

.review-stars-input .review-star {
    cursor: pointer;
    font-size: 1.4rem;
    transition: color 0.15s, transform 0.15s;
}

.review-stars-input .review-star:hover {
    transform: scale(1.15);
    color: #FFD700;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
}

.review-card.review-own {
    background: rgba(200, 150, 80, 0.06);
    border-color: rgba(200, 150, 80, 0.2);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.review-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--copper-light);
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.4rem;
    word-break: break-word;
}

.review-actions {
    display: flex;
    gap: 0.5rem;
}

.review-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.review-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cream);
}

.review-action-delete:hover {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.3);
    color: #ef5350;
}

.review-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.review-form-wrap h3 {
    color: var(--cream);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.review-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    margin-top: 0.8rem;
}

.review-form label:first-child {
    margin-top: 0;
}

.review-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--cream);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    resize: vertical;
    min-height: 70px;
    transition: var(--transition);
}

.review-form textarea:focus {
    border-color: var(--copper);
    box-shadow: 0 0 0 2px rgba(184, 134, 78, 0.15);
}

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

.review-form-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1rem;
}

.review-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 1rem 0;
}

.review-notice a {
    color: var(--copper-light);
    text-decoration: none;
}

.review-notice a:hover {
    text-decoration: underline;
}

.reviews-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 1rem 0;
}

.reviews-list {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== RANK SYSTEM (BudClub) ===== */

/* Navbar badge - override default user-menu-btn style */
.user-menu-btn svg {
    display: block;
    border-radius: 50%;
}

.user-menu-btn.rank-seed { background: linear-gradient(135deg, #3e2723, #6d4c41); }
.user-menu-btn.rank-sprout { background: linear-gradient(135deg, #1b5e20, #43a047); }
.user-menu-btn.rank-plant { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.user-menu-btn.rank-tree { background: linear-gradient(135deg, #1a3a1a, #2e7d32); border: 1.5px solid var(--gold); }
.user-menu-btn.rank-og_grower { background: linear-gradient(135deg, #1a1a2e, #2a2a4e); border: 1.5px solid #ffd700; box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
.user-menu-btn.rank-admin { background: linear-gradient(135deg, #1a1a2e, #2a2a4e); border: 1.5px solid var(--copper-light); box-shadow: 0 0 8px rgba(200, 160, 100, 0.3); }

/* Profile rank section */
.rank-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.rank-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.rank-badge-large svg {
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.rank-info {
    flex: 1;
}

.rank-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rank-color-seed { color: #a1887f; }
.rank-color-sprout { color: #81c784; }
.rank-color-plant { color: #4caf50; }
.rank-color-tree { color: var(--gold); }
.rank-color-og_grower { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }

.rank-benefit {
    font-size: 0.9rem;
    color: var(--green-light);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.rank-spent {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.rank-spent strong {
    color: var(--copper-light);
}

.rank-progress-container {
    max-width: 350px;
}

.rank-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.rank-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rank-bg-seed { background: linear-gradient(90deg, #6d4c41, #a1887f); }
.rank-bg-sprout { background: linear-gradient(90deg, #43a047, #81c784); }
.rank-bg-plant { background: linear-gradient(90deg, #2e7d32, #4caf50); }
.rank-bg-tree { background: linear-gradient(90deg, #1a3a1a, var(--gold)); }
.rank-bg-og_grower { background: linear-gradient(90deg, #c9a96e, #ffd700); }

.rank-progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rank-max {
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: 600;
    margin-top: 0.3rem;
}

/* Rank advantages grid */
.rank-advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rank-advantages-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    transition: border-color 0.3s;
}

.rank-advantages-current {
    border-color: rgba(255, 255, 255, 0.12);
}

.rank-advantages-next {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.85;
}

.rank-advantages-next:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.2);
}

.rank-advantages-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.rank-advantages-header svg {
    flex-shrink: 0;
    border-radius: 50%;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.rank-advantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rank-advantages-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.advantage-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.rank-advantages-unlock {
    margin-top: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

@media (max-width: 600px) {
    .rank-advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin rank tags */
.rank-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.rank-tag-seed { background: rgba(109, 76, 65, 0.25); color: #a1887f; }
.rank-tag-sprout { background: rgba(102, 187, 106, 0.2); color: #81c784; }
.rank-tag-plant { background: rgba(76, 175, 80, 0.2); color: #4caf50; }
.rank-tag-tree { background: rgba(201, 169, 110, 0.2); color: #c9a96e; }
.rank-tag-og_grower { background: rgba(255, 215, 0, 0.15); color: #ffd700; }

/* Checkout rank discount line */
#rankDiscountLine {
    font-weight: 500;
}

@media (max-width: 768px) {
    .rank-display {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .rank-progress-container {
        max-width: 100%;
        width: 100%;
    }
}

/* ===== Where to Find Us ===== */
.findus { padding: 4rem 2rem; max-width: 1000px; margin: 0 auto; }
.findus-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.findus-card { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.5rem 1rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; transition: all 0.3s ease; }
.findus-card:hover { border-color: var(--copper, #c9a96e); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.findus-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; filter: grayscale(20%); transition: filter 0.3s; }
.findus-card:hover .findus-logo { filter: grayscale(0%); }
.findus-name { font-size: 0.9rem; font-weight: 600; color: var(--cream, #f5f0e8); letter-spacing: 0.3px; }
.findus-handle { font-size: 0.75rem; color: var(--copper, #c9a96e); opacity: 0.85; }
@media (max-width: 600px) { .findus-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } .findus-logo { width: 48px; height: 48px; } }

/* ===== Forum Styles ===== */
.forum-page { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.forum-breadcrumb { padding: 0 1rem; margin-bottom: 1rem; font-size: 0.85rem; color: var(--text-muted, #999); max-width: 900px; margin-left: auto; margin-right: auto; }
.forum-breadcrumb a { color: var(--copper, #c9a96e); text-decoration: none; }
.forum-breadcrumb a:hover { text-decoration: underline; }
.forum-categories-list, .forum-threads-list { display: flex; flex-direction: column; gap: 0.5rem; }
.forum-category-card { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; background: var(--card-bg, rgba(255,255,255,0.05)); border: 1px solid var(--border, rgba(255,255,255,0.1)); border-radius: 8px; text-decoration: none; color: inherit; transition: border-color 0.2s; }
.forum-category-card:hover { border-color: var(--copper, #c9a96e); }
.forum-category-card h3 { margin: 0 0 0.25rem; color: var(--cream, #f5f0e8); font-size: 1.1rem; }
.forum-category-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted, #999); }
.forum-category-stats { display: flex; gap: 1.5rem; font-size: 0.8rem; color: var(--text-muted, #999); white-space: nowrap; }
.forum-thread-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: var(--card-bg, rgba(255,255,255,0.05)); border: 1px solid var(--border, rgba(255,255,255,0.1)); border-radius: 6px; text-decoration: none; color: inherit; transition: border-color 0.2s; }
.forum-thread-row:hover { border-color: var(--copper, #c9a96e); }
.forum-thread-row.pinned { border-left: 3px solid var(--copper, #c9a96e); }
.forum-thread-title { color: var(--cream, #f5f0e8); font-weight: 500; }
.forum-thread-meta { font-size: 0.8rem; color: var(--text-muted, #999); margin-top: 0.25rem; }
.forum-thread-stats { font-size: 0.8rem; color: var(--text-muted, #999); white-space: nowrap; }
.forum-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; margin-right: 0.4rem; }
.forum-badge.pinned { background: rgba(201,169,110,0.2); color: #c9a96e; }
.forum-badge.locked { background: rgba(244,67,54,0.15); color: #ef5350; }
.forum-toolbar { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.forum-thread-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.forum-thread-header h2 { margin: 0; color: var(--cream, #f5f0e8); }
.forum-mod-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.forum-posts { display: flex; flex-direction: column; gap: 0; }
.forum-post { padding: 1rem 1.25rem; border: 1px solid var(--border, rgba(255,255,255,0.1)); border-bottom: none; background: var(--card-bg, rgba(255,255,255,0.05)); }
.forum-post:last-child { border-bottom: 1px solid var(--border, rgba(255,255,255,0.1)); }
.forum-post-op { background: var(--card-bg, rgba(255,255,255,0.05)); border-radius: 8px; border-bottom: 1px solid var(--border, rgba(255,255,255,0.1)); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; border-left: 3px solid var(--copper, #c9a96e); }
.forum-op-label { display: inline-block; background: var(--copper, #c9a96e); color: #1a1a2e; font-size: 0.65rem; font-weight: 700; padding: 1px 6px; border-radius: 3px; margin-right: 0.4rem; vertical-align: middle; text-transform: uppercase; }
.forum-post-reply { margin-left: 1.5rem; }
.forum-post-reply:first-of-type { border-radius: 8px 8px 0 0; }
.forum-post-reply:last-child { border-radius: 0 0 8px 8px; }
.forum-post-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.forum-post-author strong { color: var(--cream, #f5f0e8); }
.forum-post-date { font-size: 0.8rem; color: var(--text-muted, #999); }
.forum-post-content { line-height: 1.6; color: var(--text, #d4c5a9); word-break: break-word; }
.forum-post-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--border, rgba(255,255,255,0.06)); }
.forum-role-tag { display: inline-block; padding: 1px 5px; border-radius: 3px; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; margin-left: 0.4rem; vertical-align: middle; }
.forum-role-tag.admin { background: rgba(201,169,110,0.25); color: #c9a96e; }
.forum-role-tag.mod { background: rgba(76,175,80,0.2); color: #81c784; }
.forum-reply-box { margin-top: 1.5rem; padding: 1.25rem; background: var(--card-bg, rgba(255,255,255,0.05)); border: 1px solid var(--border, rgba(255,255,255,0.1)); border-radius: 8px; }
.forum-reply-box h3 { margin: 0 0 0.75rem; color: var(--cream, #f5f0e8); }
.forum-locked-notice { text-align: center; padding: 1.5rem; color: var(--text-muted, #999); font-style: italic; margin-top: 1rem; }
.btn-sm.btn-danger { background: rgba(244,67,54,0.15); color: #ef5350; border: 1px solid rgba(244,67,54,0.3); padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }
.btn-sm.btn-danger:hover { background: rgba(244,67,54,0.25); }
.btn-sm.btn-secondary { background: rgba(255,255,255,0.08); color: var(--cream, #f5f0e8); border: 1px solid var(--border, rgba(255,255,255,0.15)); padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; }
.btn-sm.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.form-textarea { width: 100%; padding: 0.75rem; background: var(--input-bg, rgba(0,0,0,0.3)); border: 1px solid var(--border, rgba(255,255,255,0.15)); border-radius: 6px; color: var(--cream, #f5f0e8); font-family: inherit; font-size: 0.9rem; resize: vertical; }
.form-error { color: #ef5350; margin-top: 0.5rem; font-size: 0.85rem; }
.admin-user-list { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-user-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border, rgba(255,255,255,0.06)); }
.search-results { margin-top: 0.5rem; }
.search-result-item { display: block; width: 100%; text-align: left; padding: 0.5rem 0.75rem; background: var(--card-bg, rgba(255,255,255,0.05)); border: 1px solid var(--border, rgba(255,255,255,0.1)); border-radius: 4px; color: var(--cream, #f5f0e8); cursor: pointer; margin-bottom: 0.25rem; }
.search-result-item:hover { border-color: var(--copper, #c9a96e); }
.search-empty { padding: 0.5rem; color: var(--text-muted, #999); font-size: 0.85rem; }
.forum-post-image { margin-top: 0.75rem; }
.forum-post-image img { max-width: 100%; max-height: 400px; border-radius: 8px; cursor: pointer; }
@media (max-width: 600px) {
    .forum-category-card { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .forum-thread-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .forum-thread-header { flex-direction: column; }
}
