/* ============================================
   MAKERSPAGE - Redesigned Stylesheet
   Navy + Teal + Cream luxury palette
   ============================================ */

:root {
    /* Core Brand Colors */
    --navy:         #0F2340;
    --navy-mid:     #1A3558;
    --navy-light:   #2A4F7A;
    --teal:         #1D8A7A;
    --teal-dark:    #156B5E;
    --teal-light:   #E8F5F3;
    --gold:         #C9A84C;
    --gold-light:   #F5EDD6;

    /* Neutrals */
    --cream:        #FAF8F5;
    --white:        #FFFFFF;
    --off-white:    #F5F3EF;
    --border:       #E4E1DC;
    --border-dark:  #C8C4BC;

    /* Text */
    --text-dark:    #0F2340;
    --text-mid:     #3D4E63;
    --text-light:   #6B7A8D;
    --text-muted:   #9AA5B4;

    /* Status */
    --success:      #1D8A7A;
    --danger:       #C0392B;
    --warning:      #C9A84C;

    /* Legacy aliases for compatibility */
    --primary:      #1D8A7A;
    --primary-dark: #156B5E;
    --primary-light:#E8F5F3;
    --secondary:    #C9A84C;
    --dark:         #0F2340;
    --gray-900:     #0F2340;
    --gray-700:     #3D4E63;
    --gray-500:     #6B7A8D;
    --gray-400:     #9AA5B4;
    --gray-300:     #C8C4BC;
    --gray-100:     #F5F3EF;

    /* Shadows */
    --shadow-sm:    0 1px 4px rgba(15,35,64,0.06);
    --shadow:       0 2px 16px rgba(15,35,64,0.08);
    --shadow-lg:    0 8px 40px rgba(15,35,64,0.12);
    --shadow-xl:    0 20px 60px rgba(15,35,64,0.16);

    /* Shape */
    --radius-sm:    8px;
    --radius:       14px;
    --radius-lg:    24px;
    --font:         'Inter', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-y: scroll; }
body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    font-size: 16px;
}
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }

/* ============================================
   LAYOUT
   ============================================ */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 680px;  margin: 0 auto; padding: 0 24px; }
.page-wrapper { min-height: calc(100vh - 140px); padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.flex         { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.mt-1{margin-top:8px;} .mt-2{margin-top:16px;} .mt-3{margin-top:24px;} .mt-4{margin-top:32px;}
.mb-1{margin-bottom:8px;} .mb-2{margin-bottom:16px;} .mb-3{margin-bottom:24px;} .mb-4{margin-bottom:32px;}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.nav-container {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-size: 1.5rem; font-weight: 800; color: var(--navy);
    letter-spacing: -0.5px;
}
.nav-logo span { color: var(--teal); }
.nav-logo:hover { color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-mid); font-weight: 500; font-size: 0.92rem; }
.nav-links a:hover { color: var(--teal); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.92rem; cursor: pointer;
    border: none; transition: all 0.2s; font-family: var(--font); text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary  { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }

.btn-navy     { background: var(--navy); color: #FFFFFF !important; }
.btn-navy:hover { background: var(--navy-mid); color: #FFFFFF !important; }

.btn-gold     { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #b8953e; color: var(--white); }

.btn-outline  { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }

.btn-outline-dark { background: transparent; color: var(--navy); border: 2px solid var(--border); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.btn-white    { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--cream); color: var(--navy); }

.btn-dark     { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-mid); color: var(--white); }

.btn-danger   { background: var(--danger); color: var(--white); }
.btn-success  { background: var(--success); color: var(--white); }
.btn-secondary { background: var(--gold); color: var(--white); }
.btn-secondary:hover { background: #b8953e; color: var(--white); }

.btn-ghost    { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.btn-lg  { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm  { padding: 7px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--text-mid); }
.form-control {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.92rem; font-family: var(--font); color: var(--text-dark);
    background: var(--white); transition: border-color 0.2s; outline: none;
}
.form-control:focus { border-color: var(--teal); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint  { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 4px; }

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.card-sm { padding: 18px; }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; color: var(--navy); }

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash { padding: 14px 20px; text-align: center; font-weight: 500; font-size: 0.92rem; }
.flash-success { background: #E8F5F3; color: #0D6B5E; border-bottom: 1px solid #B8DDD8; }
.flash-error   { background: #FDECEA; color: #8B1A12; border-bottom: 1px solid #F5C6C2; }
.flash-info    { background: #EAF0F8; color: #1A3558; border-bottom: 1px solid #C0CEDF; }

/* ============================================
   HOMEPAGE - HERO
   ============================================ */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 100px 24px 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-mid) 0%, #0D3D5C 100%);
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(29,138,122,0.2);
    border: 1px solid rgba(29,138,122,0.4);
    color: #5ECFBE;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px; border-radius: 20px;
    margin-bottom: 20px;
}
.hero h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero h1 span { color: #5ECFBE; }
.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 32px; margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--white); }
.hero-stat-lbl { font-size: 0.78rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.hero-image-wrap {
    position: relative;
}
.hero-mockup {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-badge {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem;
}
.hero-badge-1 { bottom: -16px; left: -20px; }
.hero-badge-2 { top: -16px; right: -16px; }
.hero-badge-icon { font-size: 1.4rem; }
.hero-badge-text { font-weight: 700; color: var(--navy); line-height: 1.2; }
.hero-badge-sub  { font-size: 0.72rem; color: var(--text-light); }

/* ============================================
   HOMEPAGE - TRUSTED BY
   ============================================ */
.trusted-bar {
    background: var(--off-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
}
.trusted-bar p {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   HOMEPAGE - FEATURES
   ============================================ */
.features-section { padding: 96px 24px; background: var(--white); }
.section-eyebrow {
    display: inline-block;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; color: var(--text-light); max-width: 560px; margin: 0 auto 56px; line-height: 1.7; }

.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }

.feature-card {
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: var(--white);
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--navy));
    opacity: 0;
    transition: opacity 0.25s;
}
.feature-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
    width: 52px; height: 52px;
    background: var(--teal-light);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--navy); }
.feature-card p  { font-size: 0.88rem; color: var(--text-light); margin: 0; line-height: 1.7; }

/* ============================================
   HOMEPAGE - HOW IT WORKS
   ============================================ */
.how-section { padding: 96px 24px; background: var(--cream); }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; position: relative; }
.steps-grid::before {
    content: '';
    position: absolute;
    top: 36px; left: 20%;
    width: 60%; height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--navy));
    opacity: 0.15;
}
.step-card { text-align: center; padding: 0 16px; }
.step-num {
    width: 72px; height: 72px;
    background: var(--navy);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800; color: var(--white);
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(15,35,64,0.2);
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--navy); }
.step-card p  { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin: 0; }

/* ============================================
   HOMEPAGE - CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 24px;
    background: var(--navy);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(29,138,122,0.2) 0%, transparent 70%);
}
.cta-section h2 { color: var(--white); font-size: 2.4rem; margin-bottom: 16px; position: relative; }
.cta-section p  { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 36px; position: relative; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    min-height: calc(100vh - 68px);
}
.dashboard-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: fit-content;
    position: sticky;
    top: 88px;
}
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 2px; }
.sidebar-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--text-mid); font-weight: 500; font-size: 0.9rem;
    transition: all 0.15s;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
    background: var(--teal-light);
    color: var(--teal);
}
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 10px 0; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat-card-label { font-size: 0.8rem; color: var(--text-light); margin-bottom: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card-value { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.stat-card-sub   { font-size: 0.78rem; color: var(--teal); margin-top: 4px; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-wrapper {
    min-height: calc(100vh - 68px);
    display: flex; align-items: center; justify-content: center;
    padding: 48px 24px;
    background: var(--cream);
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px;
    width: 100%; max-width: 460px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo a { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.auth-logo a span { color: var(--teal); }
.auth-title    { text-align: center; margin-bottom: 6px; font-size: 1.5rem; }
.auth-subtitle { text-align: center; color: var(--text-light); margin-bottom: 28px; font-size: 0.9rem; }
.auth-footer   { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text-light); }

/* ============================================
   CREATOR / PUBLIC PROFILE
   ============================================ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 20px; }
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-cover { height: 180px; background: var(--off-white); object-fit: cover; width: 100%; }
.product-info  { padding: 16px; }
.product-title { font-weight: 600; margin-bottom: 8px; font-size: 0.92rem; color: var(--navy); }
.product-price { color: var(--teal); font-weight: 700; font-size: 1.05rem; }

.post-card {
    background: var(--white); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    margin-bottom: 20px;
}
.post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.post-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--teal-light); }
.post-meta { flex: 1; }
.post-author { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.post-time   { font-size: 0.78rem; color: var(--text-muted); }
.post-title  { font-size: 1.1rem; margin-bottom: 10px; color: var(--navy); }
.post-content{ color: var(--text-mid); line-height: 1.75; margin-bottom: 0; }
.post-image  { width: 100%; border-radius: var(--radius-sm); margin-top: 16px; }
.members-badge {
    display: inline-block;
    background: var(--teal-light); color: var(--teal);
    font-size: 0.72rem; font-weight: 600;
    padding: 2px 10px; border-radius: 20px; margin-left: 8px;
}

/* ============================================
   TIP BOX
   ============================================ */
.tip-box {
    background: var(--white); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border);
    position: sticky; top: 88px;
}
.tip-amounts { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.tip-amount-btn {
    padding: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--white); cursor: pointer; font-weight: 600; font-size: 0.92rem;
    transition: all 0.2s; font-family: var(--font); color: var(--navy);
}
.tip-amount-btn:hover, .tip-amount-btn.active {
    border-color: var(--teal); background: var(--teal-light); color: var(--teal);
}

/* ============================================
   CART
   ============================================ */
.cart-nav-btn {
    position: relative; display: inline-flex; align-items: center;
    padding: 4px; color: var(--text-mid); text-decoration: none; transition: color 0.2s;
}
.cart-nav-btn:hover { color: var(--teal); }

.add-to-cart-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; background: var(--white); color: var(--teal);
    border: 2px solid var(--teal); border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.85rem; cursor: pointer;
    transition: all 0.2s; font-family: var(--font);
}
.add-to-cart-btn:hover { background: var(--teal); color: var(--white); }
.add-to-cart-btn.in-cart { background: var(--teal); color: var(--white); border-color: var(--teal); }

.cart-toast {
    position: fixed; bottom: 24px; right: 24px;
    background: var(--navy); color: var(--white);
    padding: 14px 20px; border-radius: var(--radius);
    font-size: 0.88rem; font-weight: 500; z-index: 9999;
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}
.cart-toast a { color: #5ECFBE; font-weight: 700; text-decoration: underline; }
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.55);
    padding: 48px 24px 28px;
}
.footer-container { max-width: 1100px; margin: 0 auto; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 48px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 28px;
}
.footer-brand strong { color: var(--white); font-size: 1.2rem; display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin: 0; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #5ECFBE; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; flex-wrap: wrap; gap: 12px; }

/* ============================================
   FLASH
   ============================================ */
.flash { padding: 14px 20px; text-align: center; font-weight: 500; font-size: 0.92rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-image-wrap { display: none; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }

    /* Hero */
    .hero { padding: 48px 20px; }
    .hero h1 { font-size: 2rem; }

    /* Grids collapse to single column */
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }

    /* Dashboard: sidebar stacks above main content */
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .dashboard-sidebar {
        position: static;
        border-radius: 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 16px;
    }
    /* Sidebar menu goes horizontal on mobile */
    .dashboard-sidebar .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 0;
    }
    .dashboard-sidebar .sidebar-menu li { list-style: none; }
    .dashboard-sidebar .sidebar-menu li a {
        display: inline-flex;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.78rem;
        white-space: nowrap;
    }
    .dashboard-sidebar .sidebar-menu hr { display: none; }

    /* Stat cards: 2-up on mobile */
    .stat-cards { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Navigation */
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 0.85rem; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; }

    /* Cards: less padding on mobile */
    .card { padding: 16px; }

    /* Page wrapper padding */
    .page-wrapper .container { padding: 16px; }

    /* Tables: allow horizontal scroll */
    .card table { font-size: 0.8rem; }
    .card [style*="overflow-x:auto"] { -webkit-overflow-scrolling: touch; }

    /* Hide less-critical table columns on mobile */
    .hide-mobile { display: none !important; }

    /* Forms: stack grid-2 on mobile */
    .form-group .grid-2 { grid-template-columns: 1fr; }

    /* Product detail: stack columns */
    [style*="grid-template-columns:1fr 380px"],
    [style*="grid-template-columns: 1fr 380px"] {
        display: block !important;
    }

    /* Shop page: smaller product cards */
    [style*="grid-template-columns:repeat(auto-fill,minmax(200px"] {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }

    /* Checkout: stack columns */
    [style*="grid-template-columns:1fr 300px"],
    [style*="grid-template-columns: 1fr 300px"] {
        display: block !important;
    }

    /* Admin tables: horizontal scroll */
    .card [style*="overflow-x"] { overflow-x: auto; }

    /* Upgrade pricing: stack cards */
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Buttons: full width in tight spots */
    .btn-block { width: 100%; }

    /* Explore page grid */
    .grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

    /* Fan dashboard two-column layout */
    [style*="grid-template-columns:1fr 280px"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: 1fr 280px"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    .stat-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 14px 12px; }
    .stat-card-value { font-size: 1.5rem; }
    .nav-logo { font-size: 1.1rem; }
    /* Hide nav links on very small screens, just show logo + auth */
    .nav-links { display: none; }
    .card { padding: 14px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    /* Single column on very small screens */
    [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr 1fr !important; }
}


/* Force shop card cover images to stay contained */
.card a > div > img {
    height: 140px !important;
    max-height: 140px !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
