:root {
    --bg-color: #020617;
    --surface-color: #0f172a;
    --surface-hover: #1e293b;
    --border-color: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.local-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.local-time svg {
    width: 14px;
    height: 14px;
}

/* STATUS HERO */
.status-hero {
    width: 100%;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: var(--status-bg-glow);
    border-bottom: 1px solid var(--border-color);
    padding: 80px 20px 40px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.pulse-dot {
    width: 28px;
    height: 28px;
    background-color: var(--status-color);
    border-radius: 50%;
    box-shadow: 0 0 24px var(--status-glow), 0 0 40px var(--status-glow);
}

body.is-online .pulse-dot {
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.status-text {
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: var(--status-color);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.delivery-msg {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 500;
    max-width: 600px;
}

.updated-at {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-bottom: 20px;
    margin-top: -20px;
}

.stat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-pill svg {
    color: var(--status-color);
    width: 18px;
    height: 18px;
}

/* MAIN */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LISTINGS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-img-wrap {
    position: relative;
}

.card-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #1e293b;
    display: block;
}

.card-watchers-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.7), 0 0 24px rgba(239, 68, 68, 0.4);
    animation: badge-pulse 1.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(239,68,68,0.7), 0 0 22px rgba(239,68,68,0.3); }
    50%       { box-shadow: 0 0 18px rgba(239,68,68,0.9), 0 0 36px rgba(239,68,68,0.5); }
}

.card-watchers-badge svg {
    width: 13px;
    height: 13px;
    color: #fff;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--status-color);
    font-family: 'Outfit', sans-serif;
}

.card-price--range {
    font-size: 1.25rem;
}

.price-sep {
    margin: 0 3px;
    opacity: 0.5;
    font-weight: 400;
}

.btn-buy {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--text-main);
    color: var(--bg-color);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: auto;
    transition: background 0.2s;
}

.btn-buy:hover {
    background: #e2e8f0;
}

.no-listings {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

/* HOW IT WORKS */
.flow-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    background: var(--surface-color);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.flow-line {
    position: absolute;
    top: 70px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.flow-step {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.flow-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.flow-icon svg {
    width: 24px;
    height: 24px;
}

.flow-step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.flow-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.flow-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.flow-note svg {
    width: 14px;
    height: 14px;
}

/* REVIEWS */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
}

.stars {
    display: flex;
    gap: 4px;
    color: #fbbf24;
    margin-bottom: 12px;
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.review-quote {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 16px;
    color: #cbd5e1;
}

.review-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.review-author span:first-child {
    font-weight: 600;
    color: var(--text-main);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

details {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

summary {
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.2s;
}

details[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 15px 20px 20px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* FLOATING CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4), 0 0 0 0 rgba(59, 130, 246, 0.6);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cta-pulse 2s infinite;
}

.floating-cta svg {
    width: 32px;
    height: 32px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cta:hover {
    transform: translateY(-8px) scale(1.1);
    background: var(--accent-hover);
    animation: none;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.6), 0 0 0 15px rgba(59, 130, 246, 0);
}

.floating-cta:hover svg {
    transform: scale(1.1) rotate(-10deg);
}

@keyframes cta-pulse {
    0% {
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4), 0 0 0 0 rgba(59, 130, 246, 0.5);
    }

    70% {
        box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5), 0 0 0 25px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4), 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        padding: 16px 20px;
    }

    .status-text {
        font-size: 3.5rem;
    }

    .delivery-msg {
        font-size: 1rem;
        padding: 0 20px;
    }

    .flow-container {
        flex-direction: column;
        gap: 40px;
        padding: 30px 20px;
    }

    .flow-line {
        display: none;
    }

    .flow-note {
        margin-top: 25px;
        padding: 0 10px;
        font-size: 0.85rem;
    }

    .flow-note svg {
        display: none;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .floating-cta svg {
        width: 26px;
        height: 26px;
    }
}