/* =========================
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", system-ui, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa, #e4ebf5);
    color: #111827;
}

/* =========================
   DASHBOARD LAYOUT
========================= */
.dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* =========================
   SNAPSHOT ROW
========================= */
.snapshot {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.snapshot-card {
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.snapshot-title {
    font-size: 12px;
    color: #6b7280;
}

.snapshot-main {
    font-size: 16px;
    font-weight: 700;
}

.snapshot-sub {
    font-size: 13px;
    color: #2563eb;
}

/* =========================
   MAIN GRID
========================= */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.left-panel,
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================
   CARDS
========================= */
.container {
    background: #ffffff;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* =========================
   FORMS
========================= */
label {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 11px 14px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
}

.price-row {
    display: flex;
    gap: 8px;
}

.price-row select {
    border-radius: 10px;
    padding: 10px;
}

button {
    margin-top: 14px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

/* =========================
   SEARCH RESULT
========================= */
.result {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 14px;
}

/* =========================
   TRENDING FAIR PRICES
========================= */
.featured-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    overflow: hidden; /* ✅ FIX */
}

.featured-header {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
}

.featured-item {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.featured-item:last-child {
    border-bottom: none;
}

.product-name {
    font-weight: 600;
    font-size: 14px;
    text-transform: capitalize;
}

.fair-price {
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0;
}

.meta {
    font-size: 12px;
    color: #6b7280;
}

.crowd-badge {
    margin-top: 6px;
    display: inline-block;
    font-size: 11px;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 999px;
}

/* =========================
   CHART SAFETY
========================= */
canvas {
    max-width: 100%;
    display: block;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .snapshot {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   QUIRKY PRICE PROMPT POPUP
========================= */
.quirky-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 320px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
    z-index: 1000;
    overflow: hidden;
}

.quirky-hidden {
    display: none;
}

.quirky-header {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #ffffff;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quirky-close {
    cursor: pointer;
    font-size: 18px;
}

.quirky-body {
    padding: 16px;
}

.quirky-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f4f6;
    margin-bottom: 12px;
}

.quirky-question {
    font-weight: 600;
    margin-bottom: 12px;
}

.quirky-body input,
.quirky-body select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
}

.quirky-body button {
    margin-top: 10px; /* ✅ FIX */
}

/* =========================
   DID YOU KNOW BLOCK (STEP 1)
========================= */
.did-you-know {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid #e5e7eb;
}

.dyk-title {
    font-size: 13px;
    font-weight: 700;
    color: #4338ca;
    margin-bottom: 6px;
}

.dyk-text {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
}
