/* ================================================================
   Sumato Search — Premium Design System
   Tokyo Apartment Comparison Platform
   ================================================================ */

/* ---- Language Toggle (CSS-only hide, no JS needed) ---- */
html.lang-ja .lang-en { display: none !important; }
html.lang-en .lang-ja { display: none !important; }
.lang-en, .lang-ja { }

/* ---- Variables — Sun Microsystems 1994 ---- */
:root {
    --bg: 270 10% 97%;          /* subtle lavender tint */
    --surface: 0 0% 100%;
    --surface-hover: 0 0% 95%;
    --border: 270 8% 88%;
    --text: 0 0% 13%;           /* near black */
    --text-secondary: 0 0% 30%;
    --text-muted: 0 0% 50%;     /* #808080 */
    --primary: 270 54% 37%;     /* #5C2D91 — Sun purple */
    --primary-700: 270 60% 28%;
    --primary-50: 270 30% 96%;
    --primary-light: 270 30% 93%;
    --accent: 270 54% 37%;
    --accent-600: 270 60% 28%;
    --danger: 0 72% 51%;
    --danger-bg: 0 95% 97%;
    --success: 142 71% 45%;
    --success-bg: 141 79% 96%;
    --gray-300: 0 0% 75%;
    --gray-500: 0 0% 50%;
    --shadow-sm: 0 1px 3px rgba(92,45,145,0.06);
    --shadow: 0 2px 8px rgba(92,45,145,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 30px rgba(92,45,145,0.08), 0 2px 8px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --font: 'Roboto', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
    --font-heading: 'Poppins', 'Roboto', 'Noto Sans JP', sans-serif;
    /* Predator bug tracker — Sun Microsystems orange accent pair */
    --sun-orange: #E07B00;
    --sun-orange-soft: #F5B056;
    --sun-cream: #FFF6E0;
    --sun-ink: #2E1607;
}

/* ---- Predator bug tracker ---- */
.predator-page { max-width: 1100px; margin: 2rem auto; padding: 0 1.25rem; }
.predator-page h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem; font-weight: 600;
    color: hsl(var(--primary));
    display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.25rem;
}
.predator-page h1 .predator-icon { width: 32px; height: 32px; }
.predator-page .subtitle { color: hsl(var(--text-muted)); margin-bottom: 1.5rem; }

.predator-card {
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.predator-card--accent {
    border-left: 4px solid var(--sun-orange);
}

.predator-form label {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    color: hsl(var(--text-secondary));
    margin: 0.75rem 0 0.25rem;
}
.predator-form input[type="text"],
.predator-form input[type="url"],
.predator-form select,
.predator-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    background: #fff;
}
.predator-form textarea { min-height: 120px; resize: vertical; }
.predator-form input:focus, .predator-form textarea:focus, .predator-form select:focus {
    outline: none;
    border-color: var(--sun-orange);
    box-shadow: 0 0 0 3px rgba(224, 123, 0, 0.18);
}

.predator-lang-tabs { display: flex; gap: 0.25rem; margin-bottom: 0.5rem; }
.predator-lang-tabs button {
    border: 1px solid hsl(var(--border));
    background: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
}
.predator-lang-tabs button.is-active {
    background: hsl(var(--primary));
    color: #fff;
    border-color: hsl(var(--primary));
}
.predator-lang-pane { display: none; }
.predator-lang-pane.is-active { display: block; }

.predator-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--sun-orange);
    color: #fff; border: none; font-weight: 600;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer; font-size: 0.9rem;
    text-decoration: none;
}
.predator-btn:hover { background: #C26700; }
.predator-btn--ghost {
    background: transparent; color: hsl(var(--primary));
    border: 1px solid hsl(var(--border));
}
.predator-btn--ghost:hover { background: var(--sun-cream); }
.predator-btn--danger { background: hsl(var(--danger)); }

.predator-pill {
    display: inline-block; padding: 0.15rem 0.55rem;
    border-radius: 999px; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.03em; text-transform: uppercase;
}
.predator-pill--new        { background: var(--sun-cream); color: var(--sun-ink); }
.predator-pill--triaged    { background: #E3EAF5; color: #1E3A8A; }
.predator-pill--approved_for_fix { background: #DBF1E2; color: #065F46; }
.predator-pill--fix_proposed    { background: #F5E6C8; color: #92400E; }
.predator-pill--fixing     { background: #E0F2FE; color: #075985; }
.predator-pill--fixed      { background: #D1FAE5; color: #065F46; }
.predator-pill--rejected   { background: #FEE2E2; color: #991B1B; }
.predator-pill--duplicate  { background: #EDE9FE; color: #5B21B6; }
.predator-pill--wontfix    { background: #F3F4F6; color: #374151; }

.predator-pill--sev-critical { background: #7F1D1D; color: #fff; }
.predator-pill--sev-high     { background: #DC2626; color: #fff; }
.predator-pill--sev-normal   { background: #94A3B8; color: #fff; }
.predator-pill--sev-low      { background: #CBD5E1; color: #334155; }

.predator-table { width: 100%; border-collapse: collapse; }
.predator-table th, .predator-table td {
    padding: 0.7rem 0.6rem; text-align: left; vertical-align: top;
    border-bottom: 1px solid hsl(var(--border));
    font-size: 0.9rem;
}
.predator-table th { font-weight: 600; color: hsl(var(--text-secondary)); background: var(--sun-cream); }
.predator-table tr:hover td { background: #FAFAFA; }

.predator-triage-box {
    background: var(--sun-cream);
    border: 1px solid var(--sun-orange-soft);
    border-left: 4px solid var(--sun-orange);
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
}
.predator-triage-box h3 { margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--sun-ink); }

.predator-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }
.predator-download-card {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-sm);
    padding: 1rem; background: #fff;
    display: flex; flex-direction: column; gap: 0.4rem;
}
.predator-download-card h4 { font-size: 0.95rem; color: hsl(var(--primary)); }
.predator-download-card .os-name { font-weight: 600; }
.predator-download-card .checksum {
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 0.65rem; color: hsl(var(--text-muted));
    word-break: break-all;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Without this, any single element wider than the viewport (often the
   chat widget or a stray fixed-width block) makes iOS Firefox "shrink
   to fit" the whole page — it renders desktop-zoomed-out instead of
   respecting the width=device-width viewport meta tag, same fix
   already applied on yokan.biz (styles-v8.css). */
html, body { width: 100%; overflow-x: hidden; }
body {
    font-family: var(--font);
    line-height: 1.6;
    color: hsl(var(--text));
    background: hsl(var(--bg));
    -webkit-font-smoothing: antialiased;
    /* Sticky footer: body is a flex column so the footer stays pinned
       to the bottom of the viewport on short pages, and naturally sits
       after the content on long pages. Resizes dynamically. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.page-main {
    flex: 1 0 auto;
}
.footer {
    flex-shrink: 0;
}
a { color: #5C2D91; text-decoration: none; transition: color 0.15s; }
a:hover { color: #7B68AE; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-heading); letter-spacing: -0.02em; color: #333; font-weight: 600; }

/* ---- Navbar ---- */
.navbar {
    background: rgba(40,30,55,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #7B68AE;
    box-shadow: 0 2px 12px rgba(92,45,145,0.15);
}
.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-brand {
    font-weight: 600;
    font-size: 0.8rem;
    color: #fff !important;
    text-decoration: none !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-primary {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}
.nav-primary a {
    color: #bbb !important;
    text-decoration: none !important;
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
}
.nav-primary a:hover { color: #fff !important; }
.nav-btn-listings {
    background: #5C2D91 !important;
    color: #fff !important;
    padding: 0.3rem 0.75rem !important;
    border-radius: var(--radius-sm);
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    transition: background 0.15s;
}
.nav-btn-listings:hover { background: #7B68AE !important; }
.nav-links { display: none; /* replaced by nav-primary + dropdown */ }
.dropdown { position: relative; }
.dropdown { position: relative; margin-left: auto; flex-shrink: 0; }
.dropdown-toggle {
    background: #5C2D91;
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.3rem 0.9rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    letter-spacing: 0.02em;
    transition: background 0.15s;
}
.dropdown-toggle:hover { background: #7B68AE; }
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    min-width: 180px;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    border-bottom: 1px solid hsl(var(--border));
    transition: background 0.12s;
}
.dropdown-item:hover { background: #F0EBF5; color: #333 !important; }
.dropdown-item:last-child { border-bottom: none; }

/* ---- Language Switcher ---- */
.lang-switcher {
    position: fixed;
    top: 56px;
    right: 1.5rem;
    z-index: 999;
    background: rgba(92,45,145,0.9);
    color: #fff;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font);
    box-shadow: 0 2px 8px rgba(92,45,145,0.2);
}
.lang-switcher:hover {
    background: #7B68AE;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(92,45,145,0.3);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none !important;
    font-family: var(--font);
}
.btn-primary {
    background: #5C2D91;
    color: #fff;
    border-color: #5C2D91;
    box-shadow: 0 2px 8px rgba(92,45,145,0.25);
}
.btn-primary:hover { background: #7B68AE; border-color: #7B68AE; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(92,45,145,0.3); }
.btn-ghost {
    background: transparent;
    color: hsl(var(--text-secondary));
    border-color: hsl(var(--border));
}
.btn-ghost:hover { background: hsl(var(--surface-hover)); color: hsl(var(--text)); }
.btn-outline {
    background: transparent;
    color: #5C2D91;
    border: 2px solid #5C2D91;
}
.btn-outline:hover { background: #5C2D91; color: #fff; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn-danger { background: hsl(var(--danger)); color: #fff; border-color: hsl(var(--danger)); }
.btn-danger:hover { background: hsl(var(--danger) / 0.85); color: #fff; }

/* ---- Hero ---- */
.hero {
    background: linear-gradient(160deg, #F0EBF5 0%, #E8E0F0 50%, #DDD5E8 100%);
    color: #000;
    padding: 3.5rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(92,45,145,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(123,104,174,0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; }
.hero-logo { max-width: 120px; margin: 0 auto 1rem; filter: none; }
.hero h1 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; margin-bottom: 0.75rem; color: #5C2D91; background: none; -webkit-text-fill-color: unset; line-height: 1.35; }
.hero p { font-size: clamp(0.88rem, 2vw, 0.95rem); color: #555; margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---- Section ---- */
.section { padding: 3.5rem 0; }
.section-title-center { text-align: center; font-size: 1.75rem; font-weight: 800; margin-bottom: 0.4rem; }
.section-subtitle { text-align: center; color: hsl(var(--text-muted)); margin-bottom: 2rem; }
.section-title { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 1rem; }

/* ---- Container ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 1.5rem 2rem; }

/* ---- Listings Grid ---- */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.listing-card {
    background: hsl(var(--surface));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: hsl(var(--primary) / 0.3); }
.card-img {
    height: 200px;
    background: linear-gradient(135deg, hsl(var(--primary-50)), hsl(var(--border)));
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}
.card-badge {
    position: absolute; top: 10px; left: 10px;
    background: hsl(0 0% 15%);
    color: #fff;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.card-price {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, hsl(0 0% 0% / 0.8));
    color: #fff;
    padding: 2.5rem 1rem 0.8rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.card-body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.card-title { font-weight: 700; font-size: 0.95rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; font-size: 0.78rem; color: hsl(var(--text-secondary)); }
.card-meta span { display: inline-flex; align-items: center; gap: 3px; }
.card-features { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.4rem; }
.feature-tag {
    background: hsl(var(--primary-50));
    color: hsl(var(--primary-700));
    padding: 0.22rem 0.55rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ---- JPY + USD price display ---- */
.price-display { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.price-jpy { font-size: 1.7rem; font-weight: 800; color: hsl(var(--primary)); letter-spacing: -0.04em; }
.price-usd {
    font-size: 0.55em; font-weight: 500; color: hsl(var(--text-muted));
    border-left: 2px solid hsl(var(--border)); padding-left: 0.7rem;
}
.card-price .price-usd { font-size: 0.65em; color: hsl(0 0% 100% / 0.6); border-left-color: hsl(0 0% 100% / 0.25); padding-left: 0.6rem; }

/* ---- Forms ---- */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.82rem; margin-bottom: 0.3rem; color: hsl(var(--text-secondary)); }
.form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid hsl(var(--border));
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.15s ease;
    font-family: var(--font);
    background: hsl(var(--surface));
}
.form-input:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12); }
textarea.form-input { min-height: 90px; resize: vertical; }

/* ---- Detail Page ---- */
.detail-header {
    background: hsl(var(--surface));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}
.detail-header > div:first-child { display: flex; flex-direction: column; gap: 0; }
.detail-inner { padding: 2rem; }
.detail-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.25rem; }
.detail-meta { font-size: 0.85rem; color: hsl(var(--text-secondary)); margin-bottom: 1rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.detail-item label { display: block; font-size: 0.7rem; color: hsl(var(--text-muted)); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 0.25rem; }
.detail-item p { font-size: 0.95rem; font-weight: 500; }

/* ---- Cost Table ---- */
.cost-table { width: 100%; border-collapse: collapse; background: hsl(var(--surface)); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin: 1rem 0; }
.cost-table thead tr { background: hsl(220 13% 17%); }
.cost-table th { padding: 0.85rem 1rem; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: hsl(210 20% 98%); }
.cost-table td { padding: 0.75rem 1rem; border-top: 1px solid hsl(var(--border)); }
.cost-table tbody tr:hover { background: hsl(var(--primary-50)); }
.cost-table tbody tr:last-child { border-bottom: 3px solid hsl(var(--primary)); }
.cost-table tbody tr:last-child td { font-weight: 700; color: hsl(var(--primary)); background: hsl(var(--primary-50)); font-size: 1rem; }
.cost-table input[type="number"] { width: 90px; padding: 0.4rem 0.5rem; border: 1.5px solid hsl(var(--border)); border-radius: var(--radius-sm); font-size: 0.85rem; font-family: var(--font); }
.cost-table input[type="number"]:focus { outline: none; border-color: hsl(var(--primary)); }

/* ---- Rating Stars ---- */
.rating-stars { display: inline-flex; gap: 3px; }
.rating-stars .star { cursor: pointer; font-size: 1.6rem; color: hsl(var(--border)); transition: all 0.15s ease; }
.rating-stars .star:hover, .rating-stars .star:hover ~ .star { color: hsl(var(--accent)); }

/* ---- Flash ---- */
.flash-messages { max-width: 1280px; margin: 0 auto; padding: 0.75rem 2rem; }
.flash { padding: 0.75rem 1.1rem; border-radius: var(--radius); margin-bottom: 0.4rem; font-size: 0.88rem; font-weight: 500; }
.flash-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash-danger { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.flash-success { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: center; gap: 0.4rem; margin: 2rem 0; }
.pagination a, .pagination span { padding: 0.45rem 0.8rem; border-radius: var(--radius-sm); border: 1.5px solid hsl(var(--border)); font-size: 0.85rem; }
.pagination .current { background: hsl(var(--primary)); color: #fff; border-color: hsl(var(--primary)); }

/* ---- Footer ---- */
.footer {
    background: hsl(222 47% 11%);
    color: hsl(215 16% 70%);
    padding: 2.5rem 2rem;
    margin-top: 3.5rem;
    border-top: 3px solid hsl(var(--primary-700));
}
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer a { color: hsl(var(--primary)); }
.footer a:hover { color: hsl(var(--accent)); }

/* ---- Admin ---- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 58px); }
.admin-sidebar { background: hsl(222 47% 11%); padding: 1.5rem 0; }
.admin-sidebar a { display: block; padding: 0.7rem 1.5rem; color: hsl(215 16% 70%); font-size: 0.85rem; font-weight: 500; transition: all 0.15s ease; border-left: 4px solid transparent; text-decoration: none !important; }
.admin-sidebar a:hover { background: hsl(220 13% 18%); color: hsl(210 20% 98%); }
.admin-sidebar a.active { background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); border-left-color: hsl(var(--primary)); font-weight: 600; }
.admin-content { padding: 2rem; }
.admin-content h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.25rem; }

/* ---- Auth ---- */
.auth-card { max-width: 420px; margin: 3.5rem auto; background: hsl(var(--surface)); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-lg); border: 1px solid hsl(var(--border)); }
.auth-card h2 { text-align: center; margin-bottom: 1.5rem; font-size: 1.5rem; font-weight: 800; }

/* ---- Profile ---- */
.profile-header { display: flex; align-items: center; gap: 1.5rem; background: hsl(var(--surface)); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); border: 1px solid hsl(var(--border)); margin-bottom: 2rem; }
.profile-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid hsl(var(--primary-700)); flex-shrink: 0; }
.profile-avatar-placeholder { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--primary-700)), hsl(var(--primary))); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; font-weight: 700; flex-shrink: 0; }

/* ---- Rejected Listings ---- */
.rejected-row { background: hsl(var(--surface)); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); border: 1px solid hsl(var(--border)); }
.rejected-reason { font-size: 0.82rem; color: hsl(var(--danger)); font-weight: 500; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-inner { padding: 0 0.75rem; height: 42px; gap: 0.75rem; }
    .nav-primary a { font-size: 0.72rem; padding: 0.25rem 0.4rem; }
    .hero { padding: 2.5rem 1rem 2rem; }
    .hero h1 { font-size: 1.3rem; }
    .hero-logo { max-width: 100px; }
    .container { padding: 1rem; }
    .listings-grid { grid-template-columns: 1fr; padding: 0 0.5rem; }
    .detail-grid { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: flex; flex-wrap: wrap; padding: 0.5rem; }
    .admin-content { padding: 0.75rem; }
    .lang-switcher { top: auto; bottom: 0.75rem; right: 0.75rem; font-size: 0.65rem; }
    .profile-header { flex-direction: column; text-align: center; }
    .auth-card { margin: 1rem; padding: 1.5rem; }
}
@media (max-width: 480px) {
    .nav-primary { display: none; }
    .nav-brand { font-size: 0.75rem; }
    .hero { padding: 2rem 0.75rem 1.5rem; }
}
