/* ==========================================================
   Deal Bazar — Editorial/Appetite Aesthetic
   Warm cream background, deep aubergine text, saffron accent
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --cream: #f4ede1;
    --cream-deep: #ebe0cd;
    --ink: #1f1411;
    --ink-soft: #3a2a22;
    --saffron: #e8501f;
    --saffron-deep: #b83a12;
    --olive: #6b6841;
    --paper: #fbf6ec;
    --muted: #8b7d6e;
    --line: #d8c9b3;
    --success: #2d5e3e;
    --danger: #a8321a;
    
    --font-display: 'Fraunces', 'Times New Roman', serif;
    --font-body: 'Inter Tight', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.55;
    font-size: 16px;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 10%, rgba(232,80,31,0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(107,104,65,0.06) 0%, transparent 40%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAVIGATION ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 237, 225, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-dot {
    width: 10px; height: 10px;
    background: var(--saffron);
    border-radius: 50%;
    display: inline-block;
    margin-top: 8px;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.2s;
    position: relative;
}
.nav-links a:hover { color: var(--saffron); }
.btn-nav {
    padding: 10px 20px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream) !important;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-nav:hover { 
    background: var(--saffron);
    border-color: var(--saffron);
    color: var(--cream) !important;
    transform: translateY(-1px);
}
.btn-nav-outline {
    padding: 10px 20px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-nav-outline:hover {
    background: var(--ink);
    color: var(--cream) !important;
    
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

/* Default (desktop) */
.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

/* Hide toggle on desktop */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
}

/* 🔥 Mobile fix */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
    }

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

/* ===== HERO ===== */
.hero {
    padding: 80px 40px 100px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--saffron);
    margin-bottom: 24px;
}
.hero-badge::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--saffron);
}
.hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(48px, 9vw, 128px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    max-width: 1100px;
    margin-bottom: 32px;
    font-variation-settings: "opsz" 144;
}
.hero h1 em {
    font-style: italic;
    font-weight: 300;
    color: var(--saffron);
}
.hero-sub {
    font-size: clamp(17px, 1.5vw, 21px);
    color: var(--ink-soft);
    max-width: 620px;
    margin-bottom: 48px;
    line-height: 1.5;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 8px 8px 8px 28px;
    max-width: 720px;
    gap: 12px;
    box-shadow: 8px 8px 0 var(--ink);
    transition: all 0.2s;
}
.search-bar:focus-within {
    box-shadow: 4px 4px 0 var(--saffron);
    transform: translate(2px, 2px);
}
.search-icon {
    flex-shrink: 0;
    color: var(--muted);
}
.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 17px;
    padding: 14px 0;
    color: var(--ink);
    outline: none;
    min-width: 0;
}
.search-input::placeholder { color: var(--muted); }
.search-divider {
    width: 1px;
    height: 28px;
    background: var(--line);
}
.search-select {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    padding: 14px 4px;
}
.search-btn {
    background: var(--saffron);
    color: var(--cream);
    border: none;
    padding: 14px 32px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.search-btn:hover { background: var(--saffron-deep); }

.hero-tags {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.hero-tags span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.05em;
}
.hero-tag {
    padding: 6px 14px;
    background: var(--cream-deep);
    border-radius: 999px;
    font-size: 13px !important;
    color: var(--ink-soft) !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    transition: all 0.15s;
}
.hero-tag:hover {
    background: var(--ink);
    color: var(--cream) !important;
}

/* Decorative floating badge */
.floating-badge {
    position: absolute;
    top: 80px;
    right: 40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--saffron);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    transform: rotate(-12deg);
    animation: wobble 6s ease-in-out infinite;
    box-shadow: 8px 8px 0 var(--ink);
}
@keyframes wobble {
    0%, 100% { transform: rotate(-12deg); }
    50% { transform: rotate(-8deg) scale(1.03); }
}

/* ===== STATS STRIP ===== */
.stats-strip {
    background: var(--ink);
    color: var(--cream);
    padding: 24px 40px;
    overflow: hidden;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}
.stats-inner {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.stat {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 22px;
    white-space: nowrap;
}
.stat-num {
    color: var(--saffron);
    font-weight: 600;
    font-size: 28px;
}
.stat-star { color: var(--saffron); margin: 0 30px; font-size: 20px; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== SECTION HEADER ===== */
.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
}
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 56px;
    gap: 40px;
    flex-wrap: wrap;
}
.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--saffron);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.0;
    letter-spacing: -0.03em;
    max-width: 700px;
}
.section-title em {
    font-style: italic;
    color: var(--saffron);
    font-weight: 300;
}

/* ===== DEAL CARDS ===== */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}
.deal-card {
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}
.deal-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--ink);
}
.deal-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--cream-deep);
    border-bottom: 1.5px solid var(--ink);
}
.deal-image-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--cream-deep), var(--cream));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1.5px solid var(--ink);
    font-family: var(--font-display);
    font-size: 72px;
    color: var(--line);
}
.deal-discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--saffron);
    color: var(--cream);
    padding: 6px 14px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
    border: 1.5px solid var(--ink);
}
.deal-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.deal-restaurant {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.deal-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.deal-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.deal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.deal-prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}
.deal-price-now {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 28px;
    color: var(--saffron);
    letter-spacing: -0.02em;
}
.deal-price-old {
    font-size: 15px;
    text-decoration: line-through;
    color: var(--muted);
}

/* ===== FORMS ===== */
.form-container {
    max-width: 520px;
    margin: 80px auto;
    padding: 48px;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 12px;
    box-shadow: 8px 8px 0 var(--ink);
}
.form-container h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 40px;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.05;
}
.form-container .subtitle {
    color: var(--muted);
    margin-bottom: 36px;
    font-size: 15px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    background: var(--cream);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    transition: all 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--saffron);
    background: var(--paper);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--ink);
    color: var(--cream);
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
}
.btn:hover { background: var(--saffron); border-color: var(--saffron); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-saffron { background: var(--saffron); border-color: var(--saffron); }
.btn-saffron:hover { background: var(--saffron-deep); border-color: var(--saffron-deep); }
.btn-sm { padding: 8px 18px; font-size: 13px; width: auto; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #7d220f; border-color: #7d220f; }

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--muted);
}
.form-footer a {
    color: var(--saffron);
    font-weight: 600;
    border-bottom: 1px solid var(--saffron);
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1.5px solid;
}
.alert-success {
    background: #e8f0ea;
    color: var(--success);
    border-color: var(--success);
}
.alert-error {
    background: #f5e3df;
    color: var(--danger);
    border-color: var(--danger);
}

/* ===== DASHBOARD ===== */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 40px;
}
.dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--ink);
    flex-wrap: wrap;
    gap: 20px;
}
.dashboard-head h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 52px;
    letter-spacing: -0.03em;
    line-height: 1;
}
.dashboard-head h1 em { font-style: italic; color: var(--saffron); font-weight: 300; }
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}
.stat-card {
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    padding: 24px;
}
.stat-card .label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.stat-card .value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 48px;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}
.stat-card .value.accent { color: var(--saffron); }

/* Table */
.table-wrap {
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    overflow: hidden;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th {
    background: var(--cream-deep);
    padding: 16px 20px;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1.5px solid var(--ink);
}
td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--cream); }
.table-img {
    width: 60px; height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--line);
}
.table-actions { display: flex; gap: 8px; }
.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}
.status-active { background: #d9ebdf; color: var(--success); }
.status-inactive { background: #f5e3df; color: var(--danger); }

/* ===== DEAL DETAIL PAGE ===== */
.deal-detail {
    max-width: 1100px;
    margin: 48px auto;
    padding: 0 40px;
}
.deal-detail-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
}
.deal-detail-image {
    width: 100%;
    border-radius: 12px;
    border: 2px solid var(--ink);
    box-shadow: 10px 10px 0 var(--ink);
    aspect-ratio: 4/3;
    object-fit: cover;
}
.deal-detail-body h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 54px;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 14px 0 20px;
}
.deal-detail-price {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 24px 0;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
    margin: 24px 0;
}
.deal-detail-price .now {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 56px;
    color: var(--saffron);
    letter-spacing: -0.03em;
    line-height: 1;
}
.deal-detail-price .old {
    font-size: 22px;
    color: var(--muted);
    text-decoration: line-through;
}
.deal-detail-price .save {
    margin-left: auto;
    background: var(--ink);
    color: var(--cream);
    padding: 10px 16px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--ink);
    color: var(--cream);
    padding: 80px 40px 40px;
    margin-top: 100px;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(244,237,225,0.2);
}
.footer h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 56px;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.footer h3 em { color: var(--saffron); font-style: italic; font-weight: 300; }
.footer h5 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--saffron);
    margin-bottom: 18px;
    font-weight: 500;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
    color: rgba(244,237,225,0.75);
    font-size: 14px;
    transition: color 0.2s;
}
.footer ul a:hover { color: var(--saffron); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(244,237,225,0.5);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

/* ===== EMPTY STATE ===== */
.empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
}
.empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty h3 { font-family: var(--font-display); font-size: 28px; color: var(--ink); margin-bottom: 8px; font-weight: 500; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-inner { padding: 16px 20px; }
    .nav-links { display: none; }
    .nav-links.mobile { display: flex; gap: 12px; }
    .hero { padding: 60px 20px 80px; }
    .section { padding: 60px 20px; }
    .floating-badge { display: none; }
    .search-bar { flex-direction: column; border-radius: 16px; padding: 12px; gap: 0; }
    .search-divider { width: 100%; height: 1px; margin: 8px 0; }
    .search-input, .search-select { width: 100%; padding: 12px; }
    .search-btn { width: 100%; padding: 14px; }
    .form-row { grid-template-columns: 1fr; }
    .deal-detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .deal-detail { padding: 0 20px; }
    .footer { padding: 60px 20px 30px; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer h3 { font-size: 40px; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    .dashboard { padding: 32px 20px; }
    .dashboard-head h1 { font-size: 36px; }
    .form-container { padding: 32px 24px; margin: 32px 20px; }
    table { font-size: 13px; }
    th, td { padding: 12px 10px; }
    .table-img { width: 40px; height: 40px; }
}

/* Animation on load */
.fade-in { animation: fadeIn 0.6s ease-out both; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.category-card {
    padding: 32px 24px;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
    text-decoration: none;
    color: var(--ink);
}
.category-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--saffron);
    border-color: var(--saffron);
}
.category-icon {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 16px;
}
.category-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 8px;
}
.category-count {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-transform: uppercase;
}

/* ===== TYPE CHIPS (for categories page) ===== */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.type-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    transition: all 0.15s;
    text-decoration: none;
}
.type-chip:hover {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
    transform: translateX(3px);
}
.type-chip:hover .type-count { color: var(--saffron); }
.type-name {
    font-size: 14px;
    font-weight: 500;
}
.type-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    background: var(--cream-deep);
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 28px;
    text-align: center;
    transition: color 0.15s;
}
.type-chip:hover .type-count {
    background: rgba(244,237,225,0.15);
}

/* ===== DEAL TYPE BADGE (on deal card) ===== */
.deal-type-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(31, 20, 17, 0.88);
    color: var(--cream);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== OPTGROUP STYLING ===== */
optgroup {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--saffron);
    font-weight: 600;
    font-style: normal;
    padding-top: 8px;
}
optgroup option {
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    padding: 4px 0;
    font-weight: 400;
}

@media (max-width: 600px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card { padding: 20px 16px; }
    .category-icon { font-size: 32px; }
    .category-name { font-size: 17px; }
    .type-grid { grid-template-columns: 1fr; }
}

/* ===== PRICING PAGE ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.pricing-card {
    position: relative;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 12px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--ink); }
.pricing-card--featured {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--saffron);
    box-shadow: 8px 8px 0 var(--saffron);
    transform: translateY(-8px);
}
.pricing-card--featured:hover { transform: translateY(-12px); box-shadow: 12px 12px 0 var(--saffron); }
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--saffron);
    color: var(--cream);
    padding: 6px 18px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    border: 1.5px solid var(--ink);
    white-space: nowrap;
}
.pricing-name {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--saffron);
    margin-bottom: 16px;
    font-weight: 600;
}
.pricing-price {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}
.pricing-price .currency { font-size: 22px; vertical-align: top; display: inline-block; margin-right: 6px; margin-top: 14px; }
.pricing-price .amount { font-size: 72px; }
.pricing-per {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}
.pricing-card--featured .pricing-per { color: rgba(244,237,225,0.6); }
.pricing-main {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    padding: 18px 0 6px;
    border-top: 1px dashed var(--line);
}
.pricing-card--featured .pricing-main { border-color: rgba(244,237,225,0.2); }
.pricing-main strong { color: var(--saffron); font-weight: 700; }
.pricing-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}
.pricing-card--featured .pricing-sub { color: rgba(244,237,225,0.5); }
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    font-size: 14px;
    flex: 1;
}
.pricing-features li { padding: 6px 0; color: var(--ink-soft); }
.pricing-card--featured .pricing-features li { color: rgba(244,237,225,0.85); }
.pricing-card .btn { margin-top: auto; }

/* How step */
.how-step {
    padding: 28px 24px;
    background: var(--cream);
    border: 1.5px solid var(--ink);
    border-radius: 8px;
}
.how-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--saffron);
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    border: 1.5px solid var(--ink);
}
.how-step h4 { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.how-step p { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

/* FAQ */
.faq details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 12px;
    transition: all 0.15s;
}
.faq details[open] { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.faq summary {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    padding-right: 24px;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: -2px;
    font-size: 26px;
    color: var(--saffron);
    transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
    margin-top: 12px;
    color: var(--ink-soft);
    line-height: 1.6;
    font-size: 15px;
}

/* ===== PAY PAGE ===== */
.plan-summary {
    background: var(--ink);
    color: var(--cream);
    padding: 28px 32px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.plan-summary-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--saffron);
    margin-bottom: 6px;
}
.plan-summary-name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
}
.plan-summary-details {
    margin-top: 6px;
    color: rgba(244,237,225,0.7);
    font-size: 14px;
}
.plan-summary-price {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--saffron);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.pay-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.pay-method {
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}
.pay-method-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 14px;
}
.pay-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.15s;
}
.pay-row span { color: var(--muted); }
.pay-row.copyable { cursor: pointer; }
.pay-row.copyable:hover { background: var(--cream-deep); }
.pay-row strong em { font-style: normal; font-size: 10px; color: var(--muted); margin-left: 6px; font-weight: 400; letter-spacing: 0.05em; }

.wa-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: #25d366;
    color: white;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1.5px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    transition: all 0.2s;
    text-decoration: none;
}
.wa-button:hover {
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

/* ===== PLAN BANNERS ===== */
.plan-banner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 28px;
    border-radius: 12px;
    border: 1.5px solid;
}
.plan-banner h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin-bottom: 4px; }
.plan-banner p { font-size: 14px; line-height: 1.5; }
.plan-banner--active { background: #e8f0ea; border-color: var(--success); color: #1d3e29; }
.plan-banner--none { background: var(--cream-deep); border-color: var(--ink); color: var(--ink); }
.plan-banner--warning { background: #fff4e5; border-color: #d9a55c; color: #7a4d15; }
.plan-banner--expired { background: #f5e3df; border-color: var(--danger); color: #5d1d0d; }
.plan-banner--blocked { background: #2c1111; border-color: #5a2020; color: #f5d4ca; }

/* Progress bars */
.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--cream-deep);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.progress-fill {
    height: 100%;
    background: var(--saffron);
    border-radius: 999px;
    transition: width 0.3s;
}
.progress-fill--time {
    background: var(--ink);
}

/* ===== ADMIN ===== */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--ink);
    flex-wrap: wrap;
}
.admin-tabs a {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: all 0.15s;
}
.admin-tabs a:hover { background: var(--cream-deep); }
.admin-tabs a.active {
    background: var(--ink);
    color: var(--cream);
}
.tab-badge {
    display: inline-block;
    background: var(--saffron);
    color: var(--cream);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    font-family: var(--font-mono);
    font-weight: 600;
}

.payment-card {
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 12px;
    padding: 24px;
}
.payment-card-main {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.user-actions { position: relative; }
.user-actions-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    width: 280px;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    padding: 14px;
    box-shadow: 4px 4px 0 var(--ink);
    z-index: 50;
}

@media (max-width: 900px) {
    .admin-grid { grid-template-columns: 1fr !important; }
    .pricing-card--featured { transform: none; }
    .pricing-card--featured:hover { transform: translateY(-4px); }
    .user-actions-menu { position: static; width: auto; margin-top: 8px; }
}

/* ===== GOOGLE SIGN-IN BUTTON ===== */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 4px 4px 0 var(--ink);
    margin-bottom: 20px;
}
.google-btn:hover {
    transform: translate(-2px,-2px);
    box-shadow: 6px 6px 0 var(--ink);
    color: var(--ink);
}

/* OR divider */
.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 13px;
}
.or-divider::before,
.or-divider::after { content:''; flex:1; height:1px; background:var(--line); }
.or-divider span { white-space:nowrap; }

/* Email verified badge in dashboard */
.email-unverified-banner {
    background: #fff4e5;
    border: 1.5px solid #d9a55c;
    border-radius: 10px;
    padding: 18px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
    color: #7a4d15;
}
