/* ============================================================
   SLC SCOOP - Complete Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Roboto+Condensed:wght@400;700&display=swap');

/* --- Variables --- */
:root {
    --primary: #EF1C2E;
    --primary-dark: #d4182a;
    --primary-light: #ff3347;
    --dark: #1a1a1a;
    --dark-lighter: #2a2a2a;
    --white: #ffffff;
    --bg: #f5f5f5;
    --text: #1a1a1a;
    --text-light: #777;
    --border: #e0e0e0;
    --card: #ffffff;
    --accent: #1976D2;
    --success: #2e7d32;
    --error: #c62828;
    --warning: #f57c00;
    --info: #1976D2;
    --font-body: 'Roboto', sans-serif;
    --font-heading: 'Roboto Condensed', 'Roboto', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 0px;
    --radius: 0px;
    --radius-lg: 0px;
    --container: 1260px;
}

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

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--text); }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

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

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #333;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar__date { display: flex; align-items: center; gap: 6px; }
.top-bar__date .material-icons { font-size: 14px; }
.top-bar__right { display: flex; align-items: center; gap: 16px; }
.top-bar__weather { display: flex; align-items: center; gap: 4px; color: var(--text-light); font-weight: 500; }
.top-bar__weather .material-icons { font-size: 15px; color: #ffc107; }
.top-bar__weather:hover { color: #fff; }
.top-bar__social { display: flex; gap: 14px; }
.top-bar__social a { color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 4px; font-size: 12px; }
.top-bar__social a:hover { color: #fff; }
.top-bar__social .material-icons { font-size: 14px; }
.top-bar__social .fa-brands { font-size: 13px; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    background: var(--white);
    padding: 14px 0;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; gap: 20px; }
.site-header__logo img { max-height: 50px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
.site-header__search { flex: 1; max-width: 480px; margin-left: auto; }
.site-header__actions { display: flex; gap: 6px; align-items: center; }
.site-header__actions a {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 24px;
    transition: background .2s, color .2s;
}
.site-header__actions a:hover { background: var(--bg); color: var(--primary); }
.site-header__actions a .material-icons { font-size: 20px; }
/* Account link (not the sign-in button) */
.site-header__actions a:first-child:not(.btn) { background: var(--bg); }
/* Logout icon button */
.site-header__actions a[href*="logout"] {
    padding: 7px;
    color: var(--text-light);
    background: none;
}
.site-header__actions a[href*="logout"]:hover { color: var(--primary); background: #ffebee; }
/* Sign in button */
.site-header__actions a.btn { color: #fff; font-size: 13px; padding: 8px 20px; }
.site-header__actions a.btn:hover { color: #fff; background: var(--primary-dark); }

/* User dropdown */
.user-dropdown { position: relative; }
.user-dropdown__trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 7px 7px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.user-dropdown__trigger:hover, .user-dropdown.open .user-dropdown__trigger { border-color: var(--primary); }
.user-dropdown__trigger > .material-icons:first-child { font-size: 28px; color: var(--text-light); order: 3; }
.user-dropdown__name { order: 1; }
.user-dropdown__arrow { font-size: 16px !important; color: var(--text-light); transition: transform .2s; order: 2; }
.user-dropdown.open .user-dropdown__arrow { transform: rotate(180deg); }
.user-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 36px rgba(0,0,0,.15);
    min-width: 240px;
    z-index: 200;
    overflow: hidden;
    animation: dropIn .15s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.user-dropdown.open .user-dropdown__menu { display: block; }
.user-dropdown__header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}
.user-dropdown__header strong { display: block; font-size: 14px; color: var(--text); }
.user-dropdown__header span { font-size: 12px; color: var(--text-light); }
.user-dropdown__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: background .15s;
}
.user-dropdown__menu a:hover { background: var(--bg); color: var(--primary); }
.user-dropdown__menu a .material-icons { font-size: 18px; color: var(--text-light); }
.user-dropdown__menu a:hover .material-icons { color: var(--primary); }
.user-dropdown__divider { height: 1px; background: var(--border); margin: 6px 0; }
.user-dropdown__menu a.user-dropdown__logout { color: var(--text-light); font-size: 13px; }
.user-dropdown__menu a.user-dropdown__logout:hover { background: #ffebee; color: #c62828; }
.user-dropdown__menu a.user-dropdown__logout:hover .material-icons { color: #c62828; }

/* Mobile user dropdown */
.user-dropdown--mobile { position: static; }
.user-dropdown--mobile .user-dropdown__trigger { background: none; border: none; padding: 4px; }
.user-dropdown--mobile .user-dropdown__menu { right: 14px; left: 14px; min-width: 0; width: auto; top: calc(100% + 12px); border-radius: var(--radius-lg); }

/* Search form */
.search-form {
    display: flex;
    background: var(--bg);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color .2s;
}
.search-form:focus-within { border-color: var(--primary); }
.search-form input {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 16px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    min-width: 0;
}
.search-form input::placeholder { color: #999; }
.search-form button {
    background: none;
    border: none;
    padding: 8px 14px;
    color: var(--text-light);
}
.search-form button:hover { color: var(--primary); }

/* Mobile header icons */
.mobile-header-icons { display: none; align-items: center; gap: 8px; margin-left: auto; }
.mobile-weather-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}
.mobile-weather-badge .material-icons { font-size: 18px; color: var(--warning); }
.mobile-weather-badge:hover { color: var(--primary); }
.mobile-user-icon { color: var(--text-light); display: flex; align-items: center; padding: 4px; }
.mobile-user-icon .material-icons { font-size: 26px; }
.mobile-user-icon:hover { color: var(--primary); }

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    padding: 6px;
}
.hamburger .material-icons { font-size: 28px; }

/* Nav overlay & scroll lock */
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; opacity: 0; visibility: hidden; transition: opacity .3s cubic-bezier(.4,0,.2,1), visibility .3s; }
.nav-overlay.active { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ============================================================
   MAIN NAV
   ============================================================ */
.main-nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    overflow: visible;
}
.main-nav .container { display: flex; }
.main-nav__list {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}
.main-nav__list li { flex-shrink: 0; }
.main-nav__list a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
    transition: background .2s;
}
.main-nav__list a:hover { background: rgba(0,0,0,.15); color: #fff; }
.main-nav__list a.active { background: rgba(0,0,0,.2); color: #fff; font-weight: 700; }
.main-nav__list a .material-icons { font-size: 15px; }
.mobile-search { display: none; }
.nav-mobile-only { display: none; }
.mobile-nav-divider { display: none; }
.nav-account { display: none; }

/* Marketplace dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger { cursor: pointer; }
.nav-dropdown__arrow { font-size: 16px !important; margin-left: -2px; transition: transform .2s; }
.nav-dropdown:hover .nav-dropdown__arrow { transform: rotate(180deg); }
.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    min-width: 200px;
    z-index: 200;
    overflow: hidden;
}
.nav-dropdown:hover .nav-dropdown__menu { display: block; }
.nav-dropdown__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--text) !important;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 500 !important;
    border-bottom: 1px solid var(--border);
}
.nav-dropdown__menu a:last-child { border-bottom: none; }
.nav-dropdown__menu a:hover { background: var(--bg); color: var(--primary) !important; }
.nav-dropdown__menu a .material-icons { font-size: 20px; color: var(--text-light); }
.nav-dropdown__menu a:hover .material-icons { color: var(--primary); }

/* Nav divider (desktop) */
.nav-divider { display: none; }

/* ============================================================
   BREAKING TICKER
   ============================================================ */
.breaking-ticker {
    background: var(--dark);
    color: var(--text);
    overflow: hidden;
    padding: 8px 0;
    border-bottom: 3px solid var(--primary);
}
.breaking-ticker .container { display: flex; align-items: center; gap: 16px; }
.breaking-ticker__label {
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    white-space: nowrap;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .7; } }
.breaking-ticker__content { flex: 1; overflow: hidden; position: relative; }
.breaking-ticker__scroll {
    display: flex;
    gap: 60px;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}
.breaking-ticker__scroll:hover { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.breaking-ticker__item a { color: rgba(255,255,255,.9); font-size: 13px; }
.breaking-ticker__item a:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 420px;
    width: calc(100% - 40px);
}
.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    animation: toastIn .4s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
}
.flash:hover { opacity: .9; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.flash .material-icons { font-size: 22px; flex-shrink: 0; }
.flash--success { background: #2e7d32; color: #fff; }
.flash--error { background: #c62828; color: #fff; }
.flash--warning { background: #e65100; color: #fff; }
.flash--info { background: #1565c0; color: #fff; }

/* ============================================================
   LAYOUT
   ============================================================ */
.main-content { padding: 24px 0 48px; min-height: 60vh; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.content-area { min-width: 0; }

/* Section Header */
.section-header { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.section-header__title {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.section-header__title .material-icons { color: var(--primary); font-size: 22px; }

/* ============================================================
   FEATURED SECTION
   ============================================================ */
.featured-section { margin-bottom: 36px; }
.featured-section__heading {
    font-size: 1.3rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}
.featured-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; min-height: 420px; }
.featured-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--dark);
}
.featured-card__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .5s;
}
.featured-card:hover .featured-card__image { transform: scale(1.03); }
.featured-card--no-image .featured-card__image {
    background: var(--bg);
}
.featured-card__overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
}
.featured-card__category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text);
    border-radius: 3px;
    margin-bottom: 10px;
    align-self: flex-start;
}
.featured-card__title { margin: 0; }
.featured-card--hero .featured-card__title { font-size: 1.7rem; }
.featured-card--side .featured-card__title { font-size: 1.1rem; }
.featured-card__title a { color: #fff; }
.featured-card__title a:hover { text-decoration: underline; }
.featured-card__excerpt { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 8px; line-height: 1.5; }
.featured-card__meta { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.6); }
.featured-card__meta span { display: flex; align-items: center; gap: 4px; }
.featured-card__meta .material-icons { font-size: 14px; }
.featured-side { display: flex; flex-direction: column; gap: 16px; }
.featured-card--side { min-height: 200px; }

/* ============================================================
   ARTICLE CARDS & GRID
   ============================================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.article-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card__image {
    display: block;
    position: relative;
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}
.article-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-card__image img { transform: scale(1.05); }
.article-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}
.article-card__image--placeholder .material-icons { font-size: 48px; color: rgba(255,255,255,.3); }
.article-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    border-radius: 3px;
    z-index: 1;
}
.article-card__body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.article-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.article-card__title a { color: var(--text); }
.article-card__title a:hover { color: var(--primary); }
.article-card__excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.article-card__author, .article-card__time { display: flex; align-items: center; gap: 4px; }
.article-card__meta .material-icons { font-size: 14px; }

/* ============================================================
   ARTICLE DETAIL
   ============================================================ */
.article-header {
    position: relative;
    height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}
.article-header--no-image { height: 120px; }
.article-header__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.article-header--no-image .article-header__image {
    background: #fff !important; border-bottom: 1px solid var(--border) !important;
}
.article-header__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.4), transparent);
}
.article-detail { background: var(--card); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.article-detail__category {
    display: inline-block;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text);
    border-radius: 3px;
    margin-bottom: 12px;
}
.article-detail__title { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
.article-detail__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article-detail__meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-light); }
.article-detail__meta-item .material-icons { font-size: 16px; }
.article-detail__share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-light);
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all .2s;
}
.share-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.share-btn .material-icons { font-size: 18px; }
.article-detail__content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.article-detail__content p { margin-bottom: 1.2em; }
.article-detail__content h2, .article-detail__content h3 { margin-top: 1.5em; margin-bottom: .6em; }
.article-detail__content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: var(--bg);
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-detail__content img { border-radius: var(--radius); margin: 1em 0; }
.related-articles { margin-top: 40px; }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-header { margin-bottom: 24px; padding: 24px 0; }
.category-header__title {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.category-header__accent {
    display: inline-block;
    width: 6px;
    height: 36px;
    border-radius: 3px;
    flex-shrink: 0;
}
.category-header__count { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 70px; }
.sidebar-widget {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.sidebar-widget__header {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.sidebar-widget__header .material-icons { font-size: 18px; color: var(--primary); }
.sidebar-widget__body { padding: 16px 18px; }

/* Weather Widget */
.weather-widget { text-align: center; }
.weather-widget__temp { font-size: 2.5rem; font-weight: 900; color: var(--text); }
.weather-widget__desc { font-size: 14px; color: var(--text-light); text-transform: capitalize; margin-bottom: 12px; }
.weather-widget__details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.weather-widget__detail { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-light); }
.weather-widget__detail .material-icons { font-size: 16px; color: var(--primary); }
.weather-widget__placeholder { text-align: center; padding: 10px 0; }
.weather-widget__placeholder .material-icons { font-size: 48px; color: #ccc; margin-bottom: 8px; }
.weather-widget__placeholder p { font-size: 13px; color: var(--text-light); }
.weather-widget__link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* Trending */
.trending-list { counter-reset: trending; }
.trending-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.trending-list li:last-child { border-bottom: none; }
.trending-list__number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--bg);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.trending-list__title a { color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.4; }
.trending-list__title a:hover { color: var(--primary); }

/* Classifieds Promo */
.classifieds-promo { text-align: center; }
.classifieds-promo > .material-icons { font-size: 40px; color: var(--primary); margin-bottom: 8px; display: block; }
.classifieds-promo p { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.btn .material-icons { font-size: 18px; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--small { padding: 7px 14px; font-size: 13px; }
.btn--large { padding: 14px 28px; font-size: 15px; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 36px;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
}
.pagination a { color: var(--text); background: var(--card); box-shadow: var(--shadow-sm); }
.pagination a:hover { background: var(--primary); color: #fff; }
.pagination .active, .pagination .current { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.pagination .disabled, .pagination .dots { background: none; box-shadow: none; color: var(--text-light); }

/* ============================================================
   AUTH PAGES (Login/Register)
   ============================================================ */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 40px 20px;
}
.auth-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
}
.auth-card__logo { text-align: center; margin-bottom: 24px; }
.auth-card__logo img { height: 56px; margin: 0 auto; }
.auth-card__title { text-align: center; font-size: 1.5rem; margin-bottom: 4px; }
.auth-card__subtitle { text-align: center; font-size: 14px; color: var(--text-light); margin-bottom: 24px; }
.auth-card__error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #ffebee;
    color: #c62828;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid #ef9a9a;
}
.auth-card__error .material-icons { font-size: 20px; flex-shrink: 0; }
.auth-card__footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-light); }
.auth-card__footer a { color: var(--primary); font-weight: 600; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(204,0,0,.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.form-actions { display: flex; gap: 12px; padding-top: 8px; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-results__header { margin-bottom: 20px; }
.search-results__query { font-size: 1.8rem; margin-bottom: 4px; }
.search-results__count { font-size: 14px; color: var(--text-light); }
.search-results__section { margin-bottom: 40px; }
.search-results__section-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.search-results__section-title .material-icons { color: var(--primary); }
.search-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--card);
    border-radius: var(--radius-lg);
}
.search-no-results .material-icons { font-size: 64px; color: #ddd; margin-bottom: 12px; }
.search-no-results h2 { font-size: 1.3rem; margin-bottom: 8px; }
.search-no-results p { color: var(--text-light); }

/* Classified card (BEM version used in search) */
.classified-card__image {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8eaf0, #dde0e8);
}
.classified-card__image img { width: 100%; height: 100%; object-fit: cover; }
.classified-card__image .material-icons { font-size: 48px; color: #bbb; }
.classified-card__body { padding: 14px 16px; }
.classified-card__category { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-light); text-transform: uppercase; margin-bottom: 6px; }
.classified-card__category .material-icons { font-size: 14px; }
.classified-card__title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.classified-card__title a { color: var(--text); }
.classified-card__title a:hover { color: var(--primary); }
.classified-card__price { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.classified-card__location { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-light); }
.classified-card__location .material-icons { font-size: 14px; }

/* ============================================================
   WEATHER PAGE
   ============================================================ */
.weather-page { max-width: 100%; }
.weather-current {
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.weather-current::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,193,7,.12) 0%, transparent 70%);
    pointer-events: none;
}
.weather-current__city { font-size: 14px; opacity: .7; margin-bottom: 8px; letter-spacing: .5px; }
.weather-current__temp { font-size: 5rem; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.weather-current__desc { font-size: 18px; opacity: .85; text-transform: capitalize; margin-bottom: 32px; }
.weather-current__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 24px;
}
.weather-current__detail { padding: 12px 8px; border-right: 1px solid rgba(255,255,255,.08); }
.weather-current__detail:last-child { border-right: none; }
.weather-current__detail-label { font-size: 10px; opacity: .5; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.weather-current__detail-value { font-size: 17px; font-weight: 700; }
.weather-forecast { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 30px; }
.weather-forecast__day {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 24px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.weather-forecast__day:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.weather-forecast__day-name { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--text-light); margin-bottom: 10px; letter-spacing: .5px; }
.weather-forecast__day-icon .material-icons { font-size: 36px; color: #f59e0b; }
.weather-forecast__day-temp { font-size: 20px; font-weight: 700; margin-top: 10px; }
.weather-forecast__day-temp span { font-weight: 400; color: var(--text-light); font-size: 14px; }
/* Hourly forecast */
.weather-hourly-scroll { overflow-x: auto; margin-bottom: 8px; scrollbar-width: thin; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.weather-hourly { display: flex; gap: 0; }
.weather-hourly__item {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    padding: 20px 10px;
    background: var(--card);
    border-right: 1px solid var(--border);
    transition: background .2s;
}
.weather-hourly__item:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.weather-hourly__item:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; border-right: none; }
.weather-hourly__item:hover { background: #f0f4ff; }
.weather-hourly__time { font-size: 11px; font-weight: 700; color: var(--text-light); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.weather-hourly__icon { font-size: 26px; color: #f59e0b; display: block; }
.weather-hourly__temp { font-size: 18px; font-weight: 700; margin-top: 8px; }
.weather-hourly__precip { font-size: 11px; color: var(--accent); margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 2px; }

/* 7-Day forecast */
.weather-7day { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.weather-7day__row {
    display: grid;
    grid-template-columns: 110px 44px 1.3fr 75px 90px 90px 1.2fr;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    transition: background .15s;
}
.weather-7day__row:last-child { border-bottom: none; }
.weather-7day__row--today { background: linear-gradient(90deg, #f0f4ff, #fff); }
.weather-7day__row:hover { background: #f8f9fb; }
.weather-7day__day strong { display: block; font-size: 15px; font-weight: 700; }
.weather-7day__day span { font-size: 12px; color: var(--text-light); }
.weather-7day__icon .material-icons { font-size: 28px; color: #f59e0b; }
.weather-7day__desc { font-size: 13px; color: var(--text-light); }
.weather-7day__precip { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--accent); }
.weather-7day__wind { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-light); }
.weather-7day__temps { text-align: right; white-space: nowrap; }
.weather-7day__high { font-weight: 700; font-size: 16px; }
.weather-7day__low { color: var(--text-light); margin-left: 8px; font-size: 14px; }
.weather-7day__bar { padding: 0 4px; }
.weather-7day__bar-track { height: 8px; background: #e5e7eb; border-radius: 4px; position: relative; }
.weather-7day__bar-fill { position: absolute; top: 0; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #3b82f6, #f59e0b, #ef4444); }

.weather-placeholder {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.weather-placeholder .material-icons { font-size: 64px; color: #90caf9; margin-bottom: 16px; }
.weather-placeholder h2 { font-size: 1.5rem; margin-bottom: 12px; }
.weather-placeholder p { color: var(--text-light); max-width: 600px; margin: 0 auto 16px; line-height: 1.7; }
.weather-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.weather-info-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
}
.weather-info-card .material-icons { font-size: 28px; color: var(--accent); margin-bottom: 8px; }
.weather-info-card__label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.weather-info-card__value { font-size: 1.3rem; font-weight: 700; color: var(--text); }

/* ============================================================
   CLASSIFIEDS LISTING PAGE
   ============================================================ */
.classifieds-hero {
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 44px 0 40px;
    color: var(--text);
}
.classifieds-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.classifieds-hero p { color: var(--text-light); font-size: 15px; }
.hero-search { margin-top: 22px; display: flex; max-width: 600px; }
.hero-search input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 15px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color .2s;
}
.hero-search input::placeholder { color: #aaa; }
.hero-search input:focus { border-color: var(--primary); }
.hero-search button {
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .2s;
    cursor: pointer;
}
.hero-search button:hover { background: var(--primary-dark); }

.merch-hero {
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 44px 0 40px;
    color: var(--text);
}
.merch-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.merch-hero__eyebrow .material-icons { font-size: 16px; }
.merch-hero h1 { font-size: 36px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.merch-hero p {
    max-width: 700px;
    color: var(--text-light);
    font-size: 16px;
}

.merch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
    gap: 28px;
    padding: 32px 0 60px;
}
.merch-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.merch-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--text-light);
}
.merch-card__header .material-icons { color: var(--primary); font-size: 18px; }
.merch-card__body { padding: 24px 22px 26px; }
.merch-card__body h2 { font-size: 26px; margin-bottom: 10px; }
.merch-card__body p { color: var(--text-light); margin-bottom: 18px; max-width: 60ch; }

.merch-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.merch-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff4f4;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}
.merch-pill .material-icons { font-size: 16px; }

.merch-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.merch-preview {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 14px;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.merch-preview__art {
    display: grid;
    place-items: center;
    min-height: 120px;
    border-radius: var(--radius);
    margin-bottom: 14px;
    background:
        radial-gradient(circle at top, rgba(204,0,0,.18), transparent 48%),
        linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
    color: var(--text);
}
.merch-preview__art .material-icons { font-size: 42px; }
.merch-preview strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}
.merch-preview span {
    display: block;
    color: var(--text-light);
    font-size: 13px;
}

.merch-note {
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: #fff7f7;
    padding: 18px 18px 18px 16px;
}
.merch-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}
.merch-note p:last-child { margin-bottom: 0; }

.merch-toolbar {
    display: grid;
    gap: 14px;
    margin: 28px 0 24px;
}
.merch-status-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.merch-status-note .material-icons { color: var(--accent); font-size: 22px; }
.merch-status-note strong { display: block; font-size: 14px; margin-bottom: 2px; }
.merch-status-note span:last-child { color: var(--text-light); font-size: 14px; }
.merch-status-note--warning .material-icons { color: var(--warning); }

.merch-empty {
    text-align: center;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 56px 24px;
    margin-bottom: 60px;
}
.merch-empty .material-icons { font-size: 64px; color: #d1d5db; margin-bottom: 16px; }
.merch-empty h2 { font-size: 28px; margin-bottom: 10px; }
.merch-empty p { color: var(--text-light); max-width: 640px; margin: 0 auto; }

.merch-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 60px;
}
.merch-product-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.merch-product-card__image {
    background: linear-gradient(180deg, #f7fafc 0%, #eef2f7 100%);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.merch-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    background: #fff;
}
.merch-product-card__image .material-icons { font-size: 58px; color: #9ca3af; }
.merch-product-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.merch-product-card__body h2 { font-size: 22px; }
.merch-product-card__body p { color: var(--text-light); font-size: 14px; }
.merch-product-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    font-size: 14px;
}
.merch-product-card__meta strong { font-size: 18px; }
.merch-buy-btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}
.merch-buy-btn[disabled] { opacity: .6; cursor: not-allowed; }

.merch-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}
.merch-modal.open { display: block; }
.merch-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .6);
}
.merch-modal__panel {
    position: relative;
    max-width: 1100px;
    width: calc(100% - 32px);
    margin: 32px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
    max-height: calc(100vh - 64px);
    overflow: auto;
}
.merch-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text);
    z-index: 2;
}
.merch-modal__content { padding: 28px; }

.merch-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
    gap: 24px;
}
.merch-checkout-main,
.merch-checkout-sidebar {
    background: #fff;
}
.merch-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.merch-section-heading .material-icons { color: var(--primary); }
.merch-section-heading h2,
.merch-section-heading h3 { margin: 0; }
.merch-section-heading--small { margin: 22px 0 14px; }
.merch-section-heading--small h3 { font-size: 18px; }

.merch-inline-product {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 18px;
}
.merch-inline-product__media {
    width: 88px;
    height: 88px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    display: grid;
    place-items: center;
}
.merch-inline-product__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background: #fff;
}
.merch-inline-product__media .material-icons { font-size: 36px; color: #9ca3af; }
.merch-inline-product__content strong { display: block; font-size: 18px; margin-bottom: 4px; }
.merch-inline-product__content span { color: var(--text-light); font-size: 14px; }

.merch-checkout-form { display: block; }
.merch-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.merch-field-grid--compact { grid-template-columns: 2fr 1fr; }
.merch-field--full { grid-column: 1 / -1; }
.merch-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.merch-field input,
.merch-field select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    background: #fff;
}
.merch-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text);
}
.merch-checkbox input { width: 18px; height: 18px; }

.merch-card-element {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    background: #fff;
}
.merch-alert {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 14px;
}
.merch-alert--error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}
.merch-alert--success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}
.merch-submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 18px;
}

.merch-summary {
    position: sticky;
    top: 0;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.merch-summary__line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}
.merch-summary__line--total {
    font-size: 18px;
    font-weight: 700;
}
.merch-summary__hint {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.classifieds-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding: 30px 0 60px; }
.classifieds-sidebar {}
.sidebar-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.sidebar-card-header {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}
.cat-list {}
.cat-list a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: all .2s;
    gap: 12px;
}
.cat-list li:last-child a { border-bottom: none; }
.cat-list a:hover { background: var(--bg); color: var(--primary); }
.cat-list a.active {
    background: #fff0f0;
    color: var(--primary);
    font-weight: 600;
}
.cat-list a .material-icons {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 8px;
    flex-shrink: 0;
}
.cat-list a.active .material-icons { background: #ffebee; color: var(--primary); }
.cat-count {
    margin-left: auto;
    background: var(--bg);
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 26px;
    text-align: center;
}
.cat-list a.active .cat-count { background: var(--primary); color: #fff; }

/* Collapsible category groups */
.cat-group { border-bottom: 1px solid var(--border); }
.cat-group:last-child { border-bottom: none; }
.cat-group__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: background .15s;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.cat-group__toggle:hover { background: var(--bg); }
.cat-group__arrow { transition: transform .2s; }
.cat-group[data-open="1"] .cat-group__arrow { transform: rotate(180deg); }
.cat-group__list { display: none; }
.cat-group[data-open="1"] .cat-group__list { display: block; }
.cat-group__list a { padding-left: 28px; font-size: 13px; }
.post-btn-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: var(--primary);
    color: var(--text);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: background .2s;
}
.post-btn-sidebar:hover {
    background: var(--primary-dark);
    color: var(--text);
}
.classifieds-grid-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.classifieds-grid-header h2 { font-size: 18px; font-weight: 700; }
.results-count { font-size: 13px; color: var(--text-light); }
.classifieds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.classified-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .3s;
    display: flex;
    flex-direction: column;
}
.classified-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.classified-card-img {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #e5e7eb;
    display: block;
}
.classified-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.classified-card:hover .classified-card-img img { transform: scale(1.05); }
.classified-card-img .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8eaf0, #dde0e8);
}
.classified-card-img .placeholder-img .material-icons { font-size: 48px; color: #bbb; }
.price-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.price-badge.free { background: #2e7d32; color: #fff; }
.classified-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.classified-card-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.classified-card-body h3 a { color: inherit; }
.classified-card-body h3 a:hover { color: var(--primary); }
.classified-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 10px;
}
.classified-meta span { display: flex; align-items: center; gap: 5px; }
.classified-meta .material-icons { font-size: 14px; }
.cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.active-filters { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff0f0;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.filter-tag a { color: var(--primary); display: flex; align-items: center; }
.clear-all { font-size: 13px; color: var(--text-light); }
.empty-state { text-align: center; padding: 60px 20px; background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.empty-state > .material-icons { font-size: 64px; color: #ddd; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.empty-state .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}
.empty-state .btn:hover { }
.empty-state .btn .material-icons { font-size: 20px; color: #fff; }

/* ============================================================
   SINGLE CLASSIFIED
   ============================================================ */
.classified-breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}
.classified-breadcrumb a { color: var(--text-light); }
.classified-breadcrumb a:hover { color: var(--primary); }
.classified-breadcrumb .material-icons { font-size: 16px; }
.classified-detail { display: grid; grid-template-columns: 1fr 360px; gap: 30px; padding-bottom: 60px; min-width: 0; }
.classified-detail > div { min-width: 0; }
.gallery-section { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-main {
    position: relative;
    width: 100%;
    height: 450px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.gallery-main .no-image { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #bbb; }
.gallery-main .no-image .material-icons { font-size: 72px; }
.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    background: #fafafa;
    border-top: 1px solid var(--border);
}
.gallery-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    flex-shrink: 0;
}
.gallery-thumbs img:hover { border-color: var(--text-light); }
.gallery-thumbs img.active { border-color: var(--primary); }
.image-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.6);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.image-counter .material-icons { font-size: 14px; }
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all .2s;
    z-index: 2;
}
.gallery-nav:hover { background: #fff; box-shadow: var(--shadow-lg); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.classified-info { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 28px; margin-top: 20px; overflow: hidden; }
.classified-info h1 { font-size: 24px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; word-break: break-word; }
.classified-price-large {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.classified-price-large.free { color: #2e7d32; }
.status-badge { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: 3px 10px; border-radius: 4px; background: #e8f5e9; color: #2e7d32; }
.status-badge.sold { background: #ffebee; color: #c62828; }
.status-badge.pending { background: #fff3e0; color: #e65100; }
.status-badge.expired { background: #f5f5f5; color: #757575; }
.info-divider { height: 1px; background: var(--border); margin: 18px 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-item { display: flex; align-items: center; gap: 10px; }
.info-item .material-icons { font-size: 20px; color: var(--text-light); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 8px; flex-shrink: 0; }
.info-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }
.info-value { font-size: 14px; font-weight: 600; color: var(--text); }
.info-value a { color: var(--primary); }
.description-section { margin-top: 20px; }
.description-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.description-text { font-size: 14px; line-height: 1.8; color: #444; white-space: pre-wrap; word-break: break-word; }
.sidebar-sticky { position: sticky; top: 90px; }
.contact-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.contact-card-header { background: var(--bg); color: var(--text); padding: 20px 24px; text-align: center; }
.seller-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.seller-avatar .material-icons { font-size: 28px; color: var(--text-light); }
.contact-card-header h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.contact-card-header p { font-size: 12px; opacity: .7; }
.contact-card-body { padding: 20px 24px; }
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    margin-bottom: 10px;
}
.contact-btn:last-child { margin-bottom: 0; }
.contact-btn-primary { background: var(--primary); color: #fff; }
.contact-btn-primary:hover { background: var(--primary-dark); color: #fff; }
.contact-btn-secondary { background: var(--bg); color: var(--text); }
.contact-btn-secondary:hover { background: #e5e7eb; color: var(--text); }
.contact-info-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .material-icons { font-size: 20px; color: var(--primary); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #ffebee; border-radius: 8px; flex-shrink: 0; }
.owner-actions { background: #fff8e1; border: 1px solid #ffe082; border-radius: var(--radius); padding: 16px 20px; margin-top: 16px; }
.owner-actions h4 { font-size: 13px; font-weight: 700; color: #f57f17; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.owner-actions-btns { display: flex; gap: 8px; }
.btn-edit, .btn-delete { display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }
.btn-edit { background: var(--accent); color: #fff; text-decoration: none; }
.btn-edit:hover { background: #1565c0; color: #fff; }
.btn-delete { background: #ef5350; color: #fff; }
.btn-delete:hover { background: #c62828; }
.similar-section { margin-top: 50px; padding-top: 40px; border-top: 2px solid var(--border); }
.similar-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.similar-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s; display: block; color: var(--text); }
.similar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text); }
.similar-card-img { height: 150px; background: #e5e7eb; overflow: hidden; }
.similar-card-img img { width: 100%; height: 100%; object-fit: cover; }
.similar-card-img .placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e8eaf0, #dde0e8); }
.similar-card-img .placeholder-img .material-icons { font-size: 36px; color: #bbb; }
.similar-card-body { padding: 14px 16px; }
.similar-card-body h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.similar-card-body h4 a { color: var(--text); }
.similar-card-body h4 a:hover { color: var(--primary); }
.similar-card-price { font-size: 16px; font-weight: 700; color: var(--primary); }
.similar-card-price.free { color: #2e7d32; }
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; align-items: center; justify-content: center; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 16px; right: 20px; background: var(--border); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ============================================================
   POST CLASSIFIED
   ============================================================ */
.post-hero { background: #fff; border-bottom: 1px solid var(--border); padding: 40px 0; color: var(--text); }
.post-hero h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.post-hero p { color: var(--text-light); font-size: 14px; }
.form-container { max-width: 780px; margin: 24px auto 60px; }
.form-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.form-card-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.form-card-header > .material-icons { font-size: 24px; color: var(--primary); background: #ffebee; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.form-card-header h2 { font-size: 18px; font-weight: 700; margin-bottom: 0; }
.form-card-header p { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.form-card-body { padding: 32px; }
.error-list { background: #ffebee; border: 1px solid #ef9a9a; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.error-list li { font-size: 13px; color: #c62828; padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.error-list li::before { content: '\e000'; font-family: 'Material Icons'; font-size: 16px; }
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--text);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.btn-submit:hover { background: var(--primary-dark); }
.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 24px;
    background: var(--bg);
    color: var(--text);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.btn-cancel:hover { background: #e5e7eb; color: var(--text); }
.price-input-wrap { position: relative; }
.price-input-wrap .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; font-weight: 600; color: var(--text-light); pointer-events: none; }
.price-input-wrap input { padding-left: 28px !important; }
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    background: #fafbfc;
}
.image-upload-area:hover { border-color: var(--primary); background: #fff5f5; }
.image-upload-area .material-icons { font-size: 40px; color: #ccc; margin-bottom: 8px; }
.image-upload-area p { font-size: 14px; color: var(--text-light); margin-bottom: 4px; }
.image-upload-area .small { font-size: 12px; color: #bbb; }
.image-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.existing-images { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.existing-image { position: relative; width: 90px; height: 90px; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); }
.existing-image img { width: 100%; height: 100%; object-fit: cover; }
.existing-image .remove-img { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; background: rgba(200,0,0,.85); color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; padding: 0; }
.image-preview-area { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.image-preview-item { width: 90px; height: 90px; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 48px 0 0; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer-col {}
.footer-col__title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer-col p { font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul a { color: rgba(255,255,255,.6); font-size: 13px; display: flex; align-items: center; gap: 4px; transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-col ul a .material-icons { font-size: 14px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 0; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: all .2s; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-social a .material-icons { font-size: 18px; color: #fff; }
.footer-social a .fa-brands { font-size: 16px; color: #fff; }
.footer-contact {}
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.footer-contact .material-icons { font-size: 18px; color: var(--primary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    font-size: 12px;
    text-align: center;
    color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   ADMIN: LOGIN PAGE
   ============================================================ */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 20px;
}
.admin-login-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.admin-login-card__logo { text-align: center; margin-bottom: 24px; }
.admin-login-card__logo img { height: 56px; margin: 0 auto; }
.admin-login-card__title { text-align: center; color: var(--text); font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.admin-login-card__subtitle { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 28px; }
.admin-login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 18px;
}
.admin-login-card .form-group label { color: var(--text); }
.admin-login-card .form-group input {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}
.admin-login-card .form-group input::placeholder { color: #aaa; }
.admin-login-card .form-group input:focus { border-color: var(--primary); }
.btn--login {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--text);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background .2s;
    margin-top: 8px;
}
.btn--login:hover { background: var(--primary-dark); }

/* ============================================================
   ADMIN: LAYOUT
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform .3s;
}
.admin-sidebar__logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-sidebar__logo img { height: 36px; }
.admin-sidebar__logo a { display: flex; align-items: center; }
.admin-sidebar__logo span { color: var(--text-light); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.admin-sidebar__nav { padding: 12px 0; }
.admin-sidebar__nav ul { }
.admin-sidebar__nav li { }
.admin-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
}
.admin-sidebar__nav a:hover { background: var(--bg); color: var(--text); }
.admin-sidebar__nav a.active {
    background: #ffebee;
    color: var(--primary);
    font-weight: 600;
}
.admin-sidebar__nav .material-icons { font-size: 20px; }
.admin-sidebar__divider { height: 1px; background: var(--border); margin: 8px 16px; }
.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
}
.admin-overlay.active { display: block; }
.admin-main { flex: 1; margin-left: 240px; background: var(--bg); min-height: 100vh; }
.admin-topbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-topbar__title { font-size: 1.2rem; margin: 0; }
.admin-topbar__user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-light); }
.admin-topbar__user .material-icons { font-size: 24px; }
.admin-mobile-toggle { display: none; background: none; border: none; padding: 4px; color: var(--text); }
.admin-content { padding: 24px; }

/* Admin Flash */
.admin-flash { margin-bottom: 20px; }
.admin-flash__message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 8px;
}
.admin-flash__message .material-icons { font-size: 20px; }
.admin-flash__message--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.admin-flash__message--error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.admin-flash__message--warning { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.admin-flash__message--info { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* Admin Stats */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}
.admin-stat-card--articles .admin-stat-card__icon { background: #e3f2fd; }
.admin-stat-card--articles .admin-stat-card__icon .material-icons { color: var(--accent); }
.admin-stat-card--published .admin-stat-card__icon { background: #e8f5e9; }
.admin-stat-card--published .admin-stat-card__icon .material-icons { color: var(--success); }
.admin-stat-card--classifieds .admin-stat-card__icon { background: #fff3e0; }
.admin-stat-card--classifieds .admin-stat-card__icon .material-icons { color: var(--warning); }
.admin-stat-card--users .admin-stat-card__icon { background: #f3e5f5; }
.admin-stat-card--users .admin-stat-card__icon .material-icons { color: #9c27b0; }
.admin-stat-card--views .admin-stat-card__icon { background: #ffebee; }
.admin-stat-card--views .admin-stat-card__icon .material-icons { color: var(--primary); }
.admin-stat-card__icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.admin-stat-card__icon .material-icons { font-size: 24px; color: var(--text-light); }
.admin-stat-card__number { font-size: 1.5rem; font-weight: 700; line-height: 1; margin-bottom: 2px; }
.admin-stat-card__label { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }

/* Admin Panels */
.admin-panel {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}
.admin-panel__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-panel__title { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.admin-panel__title .material-icons { font-size: 20px; color: var(--primary); }
.admin-panel__actions { display: flex; gap: 8px; }
.admin-panel__body { padding: 0; }
.admin-panel__body--padded { padding: 20px; }

/* Admin Tables */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-light); background: var(--bg); border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table__title { font-weight: 600; color: var(--text); }
.admin-table__title a { color: var(--text); }
.admin-table__title a:hover { color: var(--primary); }

/* Admin Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    border-radius: 0;
    white-space: nowrap;
}
.badge--published, .badge--active { background: #e8f5e9; color: #2e7d32; }
.badge--draft, .badge--pending { background: #fff3e0; color: #e65100; }
.badge--sold { background: #e3f2fd; color: #1565c0; }
.badge--expired { background: #f5f5f5; color: #757575; }
.badge--admin { background: #ffebee; color: var(--primary); }
.badge--user { background: #e3f2fd; color: #1565c0; }
.badge--pending_payment, .badge--payment_failed { background: #fff3e0; color: #e65100; }
.badge--paid, .badge--sent_to_printful { background: #e3f2fd; color: #1565c0; }
.badge--fulfilled { background: #e8f5e9; color: #2e7d32; }
.badge--canceled, .badge--refunded { background: #f5f5f5; color: #757575; }

/* Admin Action Buttons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-icon .material-icons { font-size: 15px; }
.btn-icon--edit { background: #e3f2fd; color: #1565c0; }
.btn-icon--edit:hover { background: #bbdefb; color: #1565c0; }
.btn-icon--view { background: var(--bg); color: var(--text-light); }
.btn-icon--view:hover { background: #e0e0e0; color: var(--text); }
.btn-icon--delete { background: #ffebee; color: #c62828; }
.btn-icon--delete:hover { background: #ef9a9a; color: #fff; }
.btn-icon--approve { background: #e8f5e9; color: #2e7d32; }
.btn-icon--approve:hover { background: #a5d6a7; color: #fff; }
.btn--secondary { background: var(--bg); color: var(--text); border: none; }
.btn--secondary:hover { background: #e0e0e0; }

/* Admin Filter Bar */
.admin-filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}
.search-input {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    outline: none;
    min-width: 200px;
}
.search-input:focus { border-color: var(--primary); }

/* Admin Quick Actions */
.admin-quick-actions { display: flex; gap: 10px; margin-bottom: 24px; }

/* Admin Inline Form */
.admin-inline-form {
    padding: 20px;
    background: #fafafa;
    border-top: 1px solid var(--border);
}
.admin-form { }

/* Admin Categories Grid */
.admin-categories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Color Swatch */
.color-swatch { display: inline-block; width: 20px; height: 20px; border-radius: 4px; vertical-align: middle; border: 1px solid var(--border); }

/* Admin Empty */
.admin-empty { text-align: center; padding: 40px 20px; color: var(--text-light); }
.admin-empty .material-icons { font-size: 48px; color: #ddd; margin-bottom: 12px; }

/* Image Preview (admin) */
.image-preview { margin-top: 10px; }
.image-preview img { max-width: 200px; border-radius: var(--radius); }
.image-preview__current { margin-bottom: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .featured-grid { grid-template-columns: 1fr; min-height: auto; }
    .featured-card--hero { min-height: 350px; }
    .featured-side { flex-direction: row; }
    .featured-card--side { min-height: 250px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .classified-detail { grid-template-columns: 1fr; }
    .sidebar-sticky { position: static; }
    .weather-current__details { grid-template-columns: repeat(2, 1fr); }
    .admin-categories-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .site-header__logo img { max-height: 40px; max-width: 150px; }
    .site-header__search { display: none; }
    .site-header__actions { display: none; }
    .mobile-header-icons { display: flex; }
    .hamburger { display: block; }
    .main-nav { position: fixed; top: 0; left: 0; width: 300px; height: 100vh; background: var(--white); z-index: 200; overflow-y: auto; overflow-x: hidden; transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1); will-change: transform; box-shadow: none; }
    .main-nav.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.1); }
    .main-nav .container { padding: 0; }
    .main-nav__list { flex-direction: column; flex-wrap: nowrap; overflow: hidden; }
    .mobile-nav-logo { display: block !important; padding: 20px 20px 16px; }
    .mobile-nav-logo a { border-bottom: none !important; padding: 0 !important; }
    .mobile-nav-logo img { height: 40px; width: auto; }
    .main-nav__list a { padding: 12px 20px; color: var(--text); font-size: 14px; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--border); font-weight: 500; }
    .main-nav__list a:hover { background: var(--bg); color: var(--primary); }
    .main-nav__list a.active { background: #fff0f0; color: var(--primary); font-weight: 600; }
    .main-nav__list a .material-icons { color: var(--text-light); }
    .mobile-search { display: block; padding: 12px 20px; }
    .mobile-search .search-form { border-radius: var(--radius); background: var(--bg); border-color: var(--border); }
    .mobile-search .search-form input { color: var(--text); }
    .mobile-search .search-form input::placeholder { color: #999; }
    .mobile-search .search-form button { color: var(--text-light); }
    .nav-dropdown { display: none; }
    .nav-mobile-only { display: block; }
    .nav-mobile-only a .material-icons { display: inline-block; font-size: 20px; }
    .mobile-nav-divider { display: block; padding: 14px 20px 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-light); }
    .mobile-nav-divider + li a { border-top: none !important; }
    .nav-account { display: block; }
    .featured-side { flex-direction: column; }
    .articles-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-header { height: 200px; }
    .article-detail__title { font-size: 1.5rem; }
    .article-detail { padding: 24px; }
    .classifieds-hero { padding: 24px 0 !important; }
    .classifieds-hero h1 { font-size: 22px; }
    .hero-search { max-width: 100%; }
    .merch-hero { padding: 34px 0 30px; }
    .merch-hero h1 { font-size: 28px; }
    .merch-layout { grid-template-columns: 1fr; gap: 18px; }
    .merch-preview-grid { grid-template-columns: 1fr; }
    .merch-product-grid { grid-template-columns: 1fr 1fr; }
    .merch-checkout-grid { grid-template-columns: 1fr; }
    .merch-summary { position: static; }
    .classifieds-layout { grid-template-columns: 1fr; }
    .classifieds-sidebar { order: 2; }
    .classifieds-grid { grid-template-columns: 1fr 1fr; }
    .gallery-main { height: 300px; }
    .info-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-card-body { padding: 20px; }
    .form-actions { flex-direction: column; }
    .btn-submit, .btn-cancel { width: 100%; justify-content: center; }
    .weather-forecast { grid-template-columns: repeat(3, 1fr); }
    .weather-info-grid { grid-template-columns: repeat(2, 1fr); }
    .weather-current__details { grid-template-columns: 1fr 1fr; }
    .weather-7day__row { grid-template-columns: 80px 32px 1fr 60px 70px; font-size: 13px; padding: 12px 14px; }
    .weather-7day__desc, .weather-7day__bar { display: none; }
    /* Admin */
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-mobile-toggle { display: block; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .admin-table { font-size: 13px; }
    .admin-table th, .admin-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .classifieds-hero h1 { font-size: 20px; }
    .hero-search input { padding: 10px 12px; font-size: 13px; min-width: 0; }
    .hero-search button { padding: 10px 14px; font-size: 0; }
    .hero-search button .material-icons { font-size: 20px; }
    .merch-hero__eyebrow { margin-bottom: 12px; }
    .merch-hero h1 { font-size: 24px; }
    .merch-hero p { font-size: 14px; }
    .merch-card__body { padding: 20px 18px 22px; }
    .merch-card__body h2 { font-size: 22px; }
    .merch-product-grid { grid-template-columns: 1fr; }
    .merch-modal__panel { width: calc(100% - 18px); margin: 10px auto; max-height: calc(100vh - 20px); }
    .merch-modal__content { padding: 20px 16px 18px; }
    .merch-field-grid,
    .merch-field-grid--compact { grid-template-columns: 1fr; }
    .merch-inline-product { grid-template-columns: 1fr; }
    .merch-inline-product__media { width: 100%; height: 180px; }
    .classifieds-grid { grid-template-columns: 1fr; }
    .gallery-main { height: 220px; }
    .classified-info h1 { font-size: 20px; }
    .classified-price-large { font-size: 22px; }
    .auth-card { padding: 28px 20px; }
    .admin-stats { grid-template-columns: 1fr; }
    .weather-forecast { grid-template-columns: repeat(2, 1fr); }
    .weather-info-grid { grid-template-columns: 1fr; }
    .weather-7day__row { grid-template-columns: 70px 28px 1fr 60px; }
    .weather-7day__wind { display: none; }
    .category-header__title { font-size: 1.5rem; }
}
