:root {
    --bg-main: #0f0b08;
    --bg-surface: rgba(29, 21, 16, 0.78);
    --bg-card: linear-gradient(145deg, rgba(42, 30, 22, 0.92), rgba(24, 17, 13, 0.96));
    --text-primary: #fdf8f3;
    --text-muted: #c2ab96;
    --accent: #e58e3c;
    --accent-glow: rgba(229, 142, 60, 0.35);
    --accent-secondary: #ffbe76;
    --border-subtle: rgba(229, 142, 60, 0.22);
    --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.48);
    --badge-bg: rgba(229, 142, 60, 0.16);
}
body.light-theme {
    --bg-main: #f8f3ec;
    --bg-surface: rgba(255, 255, 255, 0.88);
    --bg-card: linear-gradient(145deg, #ffffff, #f5ebe0);
    --text-primary: #24170f;
    --text-muted: #6e5544;
    --accent: #c46218;
    --accent-glow: rgba(196, 98, 24, 0.22);
    --accent-secondary: #8a3f08;
    --border-subtle: rgba(196, 98, 24, 0.22);
    --shadow-card: 0 10px 26px rgba(60, 35, 15, 0.09);
    --badge-bg: rgba(196, 98, 24, 0.12);
}
* { box-sizing: border-box; transition: background-color 0.25s ease, color 0.2s ease, border-color 0.25s ease; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    background-image:
        radial-gradient(circle at 12% 15%, var(--accent-glow), transparent 32%),
        radial-gradient(circle at 88% 80%, rgba(168, 85, 32, 0.18), transparent 36%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.55;
}
.navbar {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 24px;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; color: var(--text-primary); text-decoration: none; }
.brand-logo {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(135deg, #e58e3c, #a84810);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav-link {
    color: var(--text-muted); text-decoration: none; padding: 8px 14px;
    border-radius: 999px; font-size: 14px; font-weight: 600;
}
.nav-link:hover, .nav-link.active {
    background: linear-gradient(135deg, var(--accent), #a84810);
    color: #fff; box-shadow: 0 4px 14px var(--accent-glow);
}
.theme-toggle {
    background: var(--badge-bg); color: var(--accent-secondary);
    border: 1px solid var(--border-subtle); padding: 8px 14px;
    border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.hero {
    max-width: 1080px; margin: 28px auto 20px; padding: 38px 32px;
    border-radius: 24px;
    background: linear-gradient(125deg, rgba(64, 36, 18, 0.92), rgba(22, 14, 10, 0.96));
    border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card);
    position: relative; overflow: hidden; color: #fff;
}
.hero::after { content: "☕"; position: absolute; right: 28px; bottom: -18px; font-size: 140px; opacity: 0.1; pointer-events: none; }
.hero-tag {
    display: inline-block; background: rgba(229, 142, 60, 0.22);
    border: 1px solid rgba(229, 142, 60, 0.5); color: #ffbe76;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.hero p { margin: 0; color: #decab8; max-width: 640px; font-size: 15.5px; }
main { max-width: 1080px; margin: 0 auto; padding: 0 20px 48px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow-card);
    display: flex; align-items: center; gap: 14px;
}
.stat-icon {
    width: 46px; height: 46px; border-radius: 14px; background: var(--badge-bg);
    color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.stat-label { font-size: 12.5px; color: var(--text-muted); display: block; }
.stat-value { font-size: 21px; font-weight: 800; color: var(--text-primary); }
.controls-panel {
    background: var(--bg-surface); backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle); border-radius: 18px; padding: 16px 20px;
    margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 14px;
    align-items: center; justify-content: space-between; box-shadow: var(--shadow-card);
}
.search-box { display: flex; gap: 8px; flex: 1 1 260px; }
.search-box input, .form-field {
    background: rgba(0, 0, 0, 0.22); color: var(--text-primary);
    border: 1px solid var(--border-subtle); border-radius: 12px; padding: 10px 14px; font-size: 14px;
}
body.light-theme .search-box input, body.light-theme .form-field { background: #fff; }
.pill-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill-label { font-size: 12.5px; color: var(--text-muted); margin-right: 4px; font-weight: 600; }
.pill {
    background: transparent; color: var(--text-muted); border: 1px solid var(--border-subtle);
    padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none;
}
.pill:hover, .pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 36px; }
.card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 20px; padding: 22px; box-shadow: var(--shadow-card);
    display: flex; flex-direction: column; justify-content: space-between;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 18px 38px var(--accent-glow); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.badge {
    background: var(--badge-bg); color: var(--accent-secondary); border: 1px solid var(--border-subtle);
    font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.vol-tag { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.card h3 { margin: 4px 0 8px; font-size: 19px; font-weight: 800; }
.card p { margin: 0 0 16px; color: var(--text-muted); font-size: 14px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.price { font-size: 22px; font-weight: 800; color: var(--accent-secondary); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #a84810); color: #fff; border: none;
    padding: 9px 16px; border-radius: 12px; font-weight: 700; font-size: 13.5px;
    cursor: pointer; text-decoration: none; box-shadow: 0 4px 12px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.1); }
.reviews-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.review-form-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-card); }
.form-field { width: 100%; margin-bottom: 12px; font-family: inherit; }
.message-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow-card); }
.msg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.msg-author { font-weight: 700; color: var(--accent-secondary); }
.msg-date { font-size: 12px; color: var(--text-muted); }
.error { color: #ff6b6b; font-weight: 700; margin-bottom: 10px; }
.table-wrap { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); }
table.luxury-table { width: 100%; border-collapse: collapse; }
table.luxury-table th, table.luxury-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
table.luxury-table th { background: rgba(229, 142, 60, 0.15); color: var(--accent-secondary); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
footer { text-align: center; padding: 28px 20px; margin-top: 40px; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 13.5px; }
footer a { color: var(--accent-secondary); font-weight: 700; text-decoration: none; margin: 0 8px; }
