/* ═══════════════════════════════════════════════
   Antika Salonu — Design System
   Light & Airy Premium Auction House
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Variables ──────────────────────────────── */
:root {
    --bg-primary:      #faf9f7;
    --bg-secondary:    #f3f1ed;
    --bg-card:         #ffffff;
    --bg-card-hover:   #fefefe;
    --bg-elevated:     #ffffff;
    --bg-input:        #f5f4f1;
    --bg-nav:          rgba(255, 255, 255, 0.88);

    --accent-primary:  #8b5e3c;
    --accent-warm:     #a0714f;
    --accent-deep:     #6b4226;
    --accent-red:      #c0392b;
    --accent-red-soft: rgba(192, 57, 43, 0.08);
    --accent-emerald:  #27ae60;
    --accent-gold:     #c8a45e;
    --accent-gold-soft: rgba(200, 164, 94, 0.1);

    --text-primary:    #1a1a1a;
    --text-secondary:  #5a5a5a;
    --text-muted:      #9a9a9a;
    --text-inverse:    #ffffff;

    --border:          rgba(0, 0, 0, 0.07);
    --border-hover:    rgba(0, 0, 0, 0.14);
    --border-accent:   rgba(139, 94, 60, 0.25);

    --shadow-sm:       0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md:       0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg:       0 10px 30px rgba(0,0,0,0.08);
    --shadow-xl:       0 20px 50px rgba(0,0,0,0.1);

    --radius-sm:       8px;
    --radius-md:       12px;
    --radius-lg:       16px;
    --radius-xl:       20px;
    --radius-full:     9999px;

    --font-body:       'Inter', -apple-system, sans-serif;
    --font-heading:    'Outfit', -apple-system, sans-serif;
    --font-serif:      'Playfair Display', Georgia, serif;

    --transition:      0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --container:       1240px;
    --nav-height:      68px;
}

/* ── Base ───────────────────────────────────── */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* ── Container ──────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navigation ─────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--text-primary);
}

.nav__logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-deep));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav__logo-text span {
    color: var(--accent-primary);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
}

.nav__link {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.nav__link--active {
    color: var(--accent-primary);
    background: var(--accent-gold-soft);
    font-weight: 600;
}

.nav__link--live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav__live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(231, 76, 60, 0.5);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.nav__search {
    position: relative;
}

.nav__search-input {
    width: 190px;
    padding: 0.45rem 0.9rem 0.45rem 2.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.825rem;
    outline: none;
    transition: all var(--transition);
}

.nav__search-input::placeholder { color: var(--text-muted); }

.nav__search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
    width: 240px;
    background: var(--bg-card);
}

.nav__search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    pointer-events: none;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 26px;
    padding: 4px 0;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 110;
}

.nav__toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile drawer */
.nav__mobile-drawer {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    z-index: 105;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav__mobile-drawer.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.nav__mobile-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.nav__mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav__mobile-links a {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
}

.nav__mobile-links a:hover,
.nav__mobile-links a.active {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    font-weight: 600;
}

.nav__mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0;
}

.nav__mobile-actions {
    display: flex;
    gap: 0.5rem;
}

.nav__mobile-user {
    padding: 0.25rem 0;
}

.nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 100;
    backdrop-filter: blur(2px);
}

.nav__overlay.open {
    display: block;
}

.nav__desktop-only { }

.nav__mobile-right {
    display: none;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn--primary {
    background: var(--accent-primary);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(139, 94, 60, 0.2);
}

.btn--primary:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 94, 60, 0.25);
}

.btn--danger {
    background: var(--accent-red);
    color: var(--text-inverse);
}

.btn--danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.2);
}

.btn--gold {
    background: linear-gradient(135deg, var(--accent-gold), #b8944e);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(200, 164, 94, 0.25);
}

.btn--gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 164, 94, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

.btn--sm { padding: 0.38rem 0.9rem; font-size: 0.8rem; }
.btn--lg { padding: 0.8rem 1.8rem; font-size: 0.95rem; border-radius: var(--radius-md); }
.btn--block { width: 100%; }

/* ── Hero Section ────────────────────────────── */
.hero {
    position: relative;
    padding: calc(var(--nav-height) + 4rem) 0 4rem;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #faf9f7 0%, #f0ece4 40%, #e8e0d4 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 500px 400px at 75% 40%, rgba(200, 164, 94, 0.12), transparent),
        radial-gradient(ellipse 400px 300px at 25% 70%, rgba(139, 94, 60, 0.06), transparent);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 164, 94, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: var(--accent-red-soft);
    border: 1px solid rgba(192, 57, 43, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.hero__badge .pulse {
    width: 7px;
    height: 7px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.6); }
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.hero__title span {
    color: var(--accent-primary);
    font-style: italic;
}

.hero__desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero__stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero__stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* ── Section ─────────────────────────────────── */
.section { padding: 3.5rem 0; }

.section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
}

.section__title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section__title-icon { margin-right: 0.4rem; }

.section__link {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap var(--transition);
    white-space: nowrap;
}

.section__link:hover { gap: 0.55rem; }

/* ── Grid ────────────────────────────────────── */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Stream Card ─────────────────────────────── */
.stream-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
}

.stream-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stream-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    overflow: hidden;
}

.stream-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.stream-card:hover .stream-card__thumb img { transform: scale(1.04); }

.stream-card__live {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    background: var(--accent-red);
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: white;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

.stream-card__live .dot {
    width: 5px; height: 5px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.stream-card__viewers {
    position: absolute;
    bottom: 0.65rem;
    right: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    font-size: 0.72rem;
    color: white;
}

.stream-card__category {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.18rem 0.55rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.private-badge {
    position: absolute;
    bottom: 0.65rem;
    left: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #ffd700;
    letter-spacing: 0.02em;
    z-index: 2;
}

.stream-card__body { padding: 0.9rem 1.1rem 1.1rem; }

.stream-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    color: var(--text-primary);
}

.stream-card__meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.stream-card__avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.stream-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.stream-card__user {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Category Card ──────────────────────────── */
.category-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-card__icon {
    font-size: 1.75rem;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.category-card__info { flex: 1; min-width: 0; }

.category-card__name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

.category-card__count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── Auctioneer Card ────────────────────────── */
.auctioneer-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.auctioneer-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.auctioneer-card__avatar {
    width: 68px; height: 68px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    overflow: hidden;
}

.auctioneer-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.auctioneer-card__name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.auctioneer-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.78rem;
    color: var(--accent-gold);
    margin-bottom: 0.4rem;
}

.auctioneer-card__live {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.55rem;
    background: var(--accent-red-soft);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-red);
}

/* ── Footer ──────────────────────────────────── */
.footer {
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    background: var(--bg-secondary);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__brand-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 0.6rem;
    max-width: 280px;
}

.footer__title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer__links a {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.footer__links a:hover {
    color: var(--accent-primary);
    padding-left: 3px;
}

.footer__bottom {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── Form Elements ──────────────────────────── */
.form-group { margin-bottom: 1.1rem; }

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
    transition: all var(--transition);
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
    background: var(--bg-card);
}

.form-input--error { border-color: var(--accent-red); }

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.form-error {
    font-size: 0.78rem;
    color: var(--accent-red);
    margin-top: 0.3rem;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    max-width: 440px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.form-card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.35rem;
}

.form-card__subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.75rem;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Alert / Toast ──────────────────────────── */
.alert {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    border: 1px solid;
}

.alert--success {
    background: rgba(39, 174, 96, 0.06);
    border-color: rgba(39, 174, 96, 0.15);
    color: var(--accent-emerald);
}

.alert--error {
    background: rgba(192, 57, 43, 0.06);
    border-color: rgba(192, 57, 43, 0.15);
    color: var(--accent-red);
}

.alert--info {
    background: rgba(139, 94, 60, 0.06);
    border-color: rgba(139, 94, 60, 0.15);
    color: var(--accent-primary);
}

/* ── Scheduled Card ─────────────────────────── */
.scheduled-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.scheduled-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.scheduled-card__time {
    text-align: center;
    min-width: 52px;
    padding: 0.45rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.scheduled-card__day {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

.scheduled-card__month {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scheduled-card__info { flex: 1; min-width: 0; }

.scheduled-card__title {
    font-size: 0.87rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scheduled-card__user {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── Reminder Button ──────────────────────────── */
.reminder-btn {
    background: rgba(255,255,255,0.85);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.2s;
    z-index: 2;
}

.reminder-btn:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: scale(1.1);
}

.reminder-btn--active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.reminder-btn--active:hover {
    opacity: 0.85;
}

/* Vitrin card içinde absolute pozisyon */
.vitrin-card .reminder-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.4);
    border-color: transparent;
    backdrop-filter: blur(4px);
}

.vitrin-card .reminder-btn:hover {
    background: rgba(0,0,0,0.6);
}

/* ── Empty State ─────────────────────────────── */
.empty-state { text-align: center; padding: 3.5rem 2rem; }
.empty-state__icon { font-size: 2.5rem; margin-bottom: 0.9rem; opacity: 0.5; }
.empty-state__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.empty-state__desc { font-size: 0.87rem; color: var(--text-muted); }

/* ── Bid Panel ───────────────────────────────── */
.bid-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow-md);
}

.bid-panel__price {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 0.35rem;
}

.bid-panel__label {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.bid-panel__input-group {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.bid-panel__input {
    flex: 1;
    padding: 0.7rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    outline: none;
    transition: all var(--transition);
}

.bid-panel__input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

.bid-history {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 0.9rem;
}

.bid-history__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}

.bid-history__item:last-child { border-bottom: none; }
.bid-history__user { color: var(--text-secondary); }
.bid-history__amount { font-weight: 700; color: var(--accent-primary); }
.bid-history__item--winning { color: var(--accent-emerald); }
.bid-history__item--winning .bid-history__amount { color: var(--accent-emerald); }

/* ── Countdown ───────────────────────────────── */
.countdown {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin: 0.9rem 0;
}

.countdown__block {
    text-align: center;
    min-width: 48px;
}

.countdown__value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    display: block;
}

.countdown__label {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.3rem;
}

/* ── How It Works ────────────────────────────── */
.how-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.how-step {
    text-align: center;
    padding: 2rem 1rem;
}

.how-step__number {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.9rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.how-step__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.how-step__desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Stream List Item ───────────────────────── */
.stream-list-item {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.stream-list-item:hover { background: var(--bg-secondary); }
.stream-list-item:last-child { border-bottom: none; }

.stream-list-item__top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stream-list-item__thumb {
    width: 72px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.stream-list-item__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.stream-list-item__actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding-left: calc(72px + 1rem);
}

@media (max-width: 640px) {
    .stream-list-item__actions {
        padding-left: 0;
        margin-top: 0.5rem;
    }
    .stream-list-item__actions .btn {
        flex: 1;
        justify-content: center;
        font-size: 0.78rem;
    }
}

/* ── Broadcaster Video ──────────────────────── */
.broadcaster-video {
    width: 100%;
    max-height: 80vh;
    object-fit: cover;
    display: block;
    background: #000;
    transform: scaleX(-1);
}

@media (max-width: 768px) {
    .broadcaster-video {
        /* On mobile, auto-size to camera native aspect */
        max-height: 70vh;
        object-fit: cover;
    }
}

/* ── Stream Detail Grid ─────────────────────── */
.stream-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

.stream-detail-grid--live {
    grid-template-columns: 1fr 320px;
}

/* ── Auction Row ────────────────────────────── */
.auction-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .stream-detail-grid--live {
        grid-template-columns: 1fr;
    }

    .auction-row {
        gap: 0.6rem;
        padding: 0.65rem 0.85rem;
    }
}

/* ── CTA Section ─────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #f0ece4, #e8e0d4);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
    margin: 0 1.5rem;
}

/* ── Responsive ──────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .container { padding: 0 1.25rem; }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }

    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .hero { min-height: auto; padding: 2rem 0 1.5rem; }
    .hero__title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .hero__desc { font-size: 0.9rem; }
    .hero__stats { gap: 1.25rem; flex-wrap: wrap; }
    .hero__stat-value { font-size: 1.2rem; }
    .hero__glow { display: none; }
    .section { padding: 2rem 0; }
    .section__title { font-size: 1.15rem; }

    /* Nav mobile */
    .nav__menu { display: none !important; }
    .nav__search { display: none !important; }
    .nav__desktop-only { display: none !important; }
    .nav__actions { display: none !important; }
    .nav__mobile-right { display: flex; }
    .nav__mobile-right .nav__toggle { display: flex; }

    .nav__inner { padding: 0 1rem; gap: 0.75rem; }
    .nav__logo-text { font-size: 1rem; }

    /* Footer */
    .footer__grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .footer__bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
    .footer { padding: 2rem 0 1rem; }

    /* Bid panel */
    .bid-panel { padding: 1rem; }
    .bid-panel__price { font-size: 1.8rem; }
    .bid-panel__input-group { flex-direction: column; }

    /* Notification panel: mobile full-width */
    #notifPanel {
        width: calc(100vw - 2rem) !important;
        right: -3rem !important;
        max-height: 70vh !important;
    }

    /* Stream page: mobile optimized */
    .stream-chat-feed { width: 240px !important; bottom: 200px !important; }
    .stream-bottom-panel { padding: 0 0.65rem 0.65rem !important; }

    /* Category card compact */
    .category-card { padding: 0.8rem; gap: 0.65rem; }
    .category-card__icon { width: 40px; height: 40px; font-size: 1.4rem; }

    /* Scheduled card */
    .scheduled-card { padding: 0.65rem; gap: 0.65rem; }

    /* How section */
    .how-step { padding: 1.25rem 0.75rem; }

    /* CTA */
    .cta-section { padding: 2rem 1.25rem; margin: 0; border-radius: 0; }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --nav-height: 52px;
    }

    body { font-size: 15px; }

    .container { padding: 0 0.85rem; }

    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .hero__title { font-size: 1.5rem; line-height: 1.2; }
    .hero { padding: 1.5rem 0 1rem; }
    .hero__desc { font-size: 0.85rem; max-width: 100%; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .hero__stats { gap: 1rem; }
    .hero__stat-value { font-size: 1.1rem; }
    .hero__badge { font-size: 0.72rem; margin-bottom: 1rem; }

    .section { padding: 1.5rem 0; }
    .section__header { margin-bottom: 1rem; }
    .section__title { font-size: 1.05rem; }

    /* Nav compact */
    .nav__logo-icon { font-size: 1.1rem; }
    .nav__logo-text { font-size: 0.9rem; }

    /* Buttons touch friendly */
    .btn { padding: 0.65rem 1.2rem; font-size: 0.85rem; min-height: 44px; }
    .btn--sm { padding: 0.5rem 0.85rem; font-size: 0.8rem; min-height: 38px; }

    /* Form card */
    .form-card { padding: 1.25rem; margin: 0 0.5rem; }
    .form-card__title { font-size: 1.25rem; }
    .form-input { padding: 0.75rem 0.85rem; font-size: 0.9rem; min-height: 44px; }

    /* Stream card: compact */
    .stream-card__body { padding: 0.7rem 0.85rem 0.85rem; }
    .stream-card__title { font-size: 0.85rem; }
    .stream-card__avatar { width: 22px; height: 22px; font-size: 0.55rem; }
    .stream-card__user { font-size: 0.72rem; }

    /* Auctioneer card */
    .auctioneer-card { padding: 1rem 0.75rem; }
    .auctioneer-card__avatar { width: 52px; height: 52px; font-size: 1.15rem; }
    .auctioneer-card__name { font-size: 0.85rem; }

    /* Empty state */
    .empty-state { padding: 2rem 1rem; }
    .empty-state__icon { font-size: 2rem; }

    /* Alert */
    .alert { padding: 0.75rem 0.9rem; font-size: 0.82rem; }

    /* Countdown compact */
    .countdown { gap: 0.45rem; }
    .countdown__block { min-width: 40px; }
    .countdown__value { font-size: 1.25rem; padding: 0.35rem 0.5rem; }

    /* Footer */
    .footer { margin-top: 1rem; }
}

/* Small phones */
@media (max-width: 380px) {
    .container { padding: 0 0.65rem; }
    .nav__inner { padding: 0 0.65rem; }
    .hero__title { font-size: 1.3rem; }
    .btn { font-size: 0.8rem; padding: 0.6rem 1rem; }
    .form-card { padding: 1rem; }

    #notifPanel {
        width: calc(100vw - 1rem) !important;
        right: -4rem !important;
    }
}

/* ── Mobile Dashboard Overrides ─────────────── */
@media (max-width: 768px) {
    /* Customer/Auctioneer dashboard grid cards */
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    [style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }
    [style*="max-width: 960px"],
    [style*="max-width: 900px"],
    [style*="max-width: 720px"],
    [style*="max-width: 640px"],
    [style*="max-width: 1100px"] {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns: repeat(2"],
    [style*="grid-template-columns: 1fr 1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Touch & Interaction ────────────────────── */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .stream-card:hover { transform: none; box-shadow: none; }
    .category-card:hover { transform: none; }
    .auctioneer-card:hover { transform: none; }
    .scheduled-card:hover { box-shadow: none; }

    /* Larger touch targets */
    .nav__link { min-height: 44px; display: flex; align-items: center; }
    a, button { -webkit-tap-highlight-color: rgba(139, 94, 60, 0.1); }
}

/* ── Safe Area (notch phones) ───────────────── */
@supports (padding-top: env(safe-area-inset-top)) {
    .nav {
        padding-top: env(safe-area-inset-top);
        height: calc(var(--nav-height) + env(safe-area-inset-top));
    }
    body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.35s ease forwards; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.slide-up { animation: slideUp 0.45s ease forwards; }

/* ── Utility ─────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ═══════════════════════════════════════════════
   Vitrin Mezat — Online Auction System
   ═══════════════════════════════════════════════ */

/* ── Vitrin Hero ──────────────────────────────── */
.vitrin-hero {
    padding: calc(var(--nav-height) + 3rem) 0 2.5rem;
    background: linear-gradient(160deg, #faf9f7 0%, #f0ece4 40%, #e8dfd0 100%);
    position: relative;
    overflow: hidden;
}

.vitrin-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 80% 30%, rgba(200, 164, 94, 0.15), transparent),
        radial-gradient(ellipse 300px 300px at 15% 80%, rgba(139, 94, 60, 0.08), transparent);
    pointer-events: none;
}

.vitrin-hero__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.vitrin-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: var(--accent-gold-soft);
    border: 1px solid rgba(200, 164, 94, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
}

.vitrin-hero__badge .pulse {
    width: 7px; height: 7px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.vitrin-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.vitrin-hero__title span {
    color: var(--accent-primary);
    font-style: italic;
}

.vitrin-hero__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.vitrin-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Ending Soon Grid ─────────────────────────── */
.vitrin-ending-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.vitrin-ending-card {
    display: flex;
    gap: 1rem;
    padding: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.vitrin-ending-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.vitrin-ending-card__img {
    width: 90px; height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.vitrin-ending-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.vitrin-ending-card__timer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0.15rem 0.3rem;
    background: rgba(192, 57, 43, 0.88);
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.vitrin-ending-card__info { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }

.vitrin-ending-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vitrin-ending-card__price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-primary);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.vitrin-ending-card__price span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ── Toolbar ──────────────────────────────────── */
.vitrin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vitrin-toolbar__filters {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    flex: 1;
}

.vitrin-filter-chip {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.vitrin-filter-chip:hover {
    color: var(--accent-primary);
    border-color: var(--border-accent);
}

.vitrin-filter-chip.active {
    background: var(--accent-gold-soft);
    color: var(--accent-primary);
    border-color: var(--border-accent);
    font-weight: 600;
}

.vitrin-toolbar__right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.vitrin-search-input {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    font-size: 0.82rem;
    width: 180px;
    outline: none;
    transition: all var(--transition);
}

.vitrin-search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

.vitrin-sort-select {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-size: 0.8rem;
    color: var(--text-secondary);
    outline: none;
    cursor: pointer;
}

/* ── Vitrin Grid ──────────────────────────────── */
.vitrin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}

/* ── Vitrin Card ──────────────────────────────── */
.vitrin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

.vitrin-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.vitrin-card__img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-secondary);
    overflow: hidden;
}

.vitrin-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.vitrin-card:hover .vitrin-card__img img { transform: scale(1.05); }

.vitrin-card__timer {
    position: absolute;
    top: 0.6rem; left: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    font-variant-numeric: tabular-nums;
}

.vitrin-timer-urgent {
    background: rgba(192, 57, 43, 0.9) !important;
    animation: pulse 1s ease-in-out infinite;
}

.vitrin-card__bids {
    position: absolute;
    bottom: 0.6rem; left: 0.6rem;
    padding: 0.18rem 0.55rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.vitrin-card__buynow-badge {
    position: absolute;
    top: 0.6rem; right: 0.6rem;
    padding: 0.18rem 0.5rem;
    background: linear-gradient(135deg, var(--accent-gold), #b8944e);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
}

.vitrin-card__body {
    padding: 0.85rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vitrin-card__category {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.vitrin-card__title {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    color: var(--text-primary);
}

.vitrin-card__pricing {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 0.6rem;
}

.vitrin-card__current, .vitrin-card__buynow {
    display: flex;
    flex-direction: column;
}

.vitrin-card__label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vitrin-card__amount {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.vitrin-card__buynow-price {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.vitrin-card__seller {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border);
}

.vitrin-card__avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.vitrin-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.vitrin-card__seller-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Empty State ──────────────────────────────── */
.vitrin-empty {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.vitrin-empty__icon { font-size: 3rem; margin-bottom: 1rem; }
.vitrin-empty h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.vitrin-empty p { color: var(--text-muted); font-size: 0.88rem; }

/* ── Upcoming Card ────────────────────────────── */
.vitrin-card--upcoming { border-color: rgba(39, 174, 96, 0.2); }
.vitrin-card--upcoming:hover { border-color: rgba(39, 174, 96, 0.45); }
.vitrin-card__timer--upcoming { background: rgba(39, 174, 96, 0.85); }

/* ── Sold Card ───────────────────────────────── */
.vitrin-card--sold { opacity: 0.85; }
.vitrin-card--sold:hover { opacity: 1; }

.vitrin-card__sold-badge {
    position: absolute;
    top: 0.55rem; left: 0.55rem;
    padding: 0.2rem 0.55rem;
    background: linear-gradient(135deg, #d4a745, #c8a45e);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(212, 167, 69, 0.4);
    z-index: 2;
}

/* ═══ Vitrin Detail Page ═══════════════════════ */
.vitrin-detail {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

/* ── Gallery ──────────────────────────────────── */
.vitrin-gallery__main {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.vitrin-gallery__main img {
    width: 100%; height: 100%;
    object-fit: contain;
    background: var(--bg-secondary);
}

.vitrin-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vitrin-gallery__overlay-badge {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.vitrin-gallery__overlay-badge--sold { color: var(--accent-emerald); }
.vitrin-gallery__overlay-badge--cancelled { color: var(--accent-red); }

.vitrin-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.vitrin-gallery__thumb {
    width: 64px; height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
    background: none;
    padding: 0;
}

.vitrin-gallery__thumb.active,
.vitrin-gallery__thumb:hover {
    border-color: var(--accent-primary);
}

.vitrin-gallery__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ── Description Card ─────────────────────────── */
.vitrin-desc-card {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.vitrin-desc-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.vitrin-desc-card__text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.vitrin-desc-card__meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Info Card ────────────────────────────────── */
.vitrin-info-card {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
}

.vitrin-info-card__category {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.vitrin-info-card__title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.85rem;
}

/* ── Seller Row ───────────────────────────────── */
.vitrin-seller-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    padding: 0.55rem 0.65rem;
    margin: 0 -0.35rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.vitrin-seller-row:hover { background: var(--bg-secondary); }

.vitrin-seller-row__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.vitrin-seller-row__avatar img { width: 100%; height: 100%; object-fit: cover; }

.vitrin-seller-row__name { font-weight: 600; font-size: 0.88rem; }
.vitrin-seller-row__loc { font-size: 0.72rem; color: var(--text-muted); }

/* ── Timer Card ───────────────────────────────── */
.vitrin-timer-card {
    padding: 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 0.85rem;
}

.vitrin-timer-card--urgent {
    border-color: var(--accent-red);
    background: var(--accent-red-soft);
}

.vitrin-timer-card__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.vitrin-timer-card__digits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.vitrin-timer-digit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    padding: 0.5rem 0.3rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.vitrin-timer-digit span {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.vitrin-timer-digit small {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-top: 0.1rem;
}

.vitrin-timer-sep {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 0.1rem;
    padding-bottom: 0.9rem;
}

.vitrin-timer-card__ended {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-red);
}

/* ── Price Card ───────────────────────────────── */
.vitrin-price-card {
    padding: 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
}

.vitrin-price-card__current {
    margin-bottom: 0.65rem;
}

.vitrin-price-card__label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 0.15rem;
}

.vitrin-price-card__amount {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-primary);
    display: block;
}

.vitrin-price-card__bids {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.vitrin-price-card__buynow {
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
    margin-bottom: 0.65rem;
}

.vitrin-price-card__buynow-amount {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
}

.vitrin-price-card__increment {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

/* ── Bid Card ─────────────────────────────────── */
.vitrin-bid-card {
    padding: 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
}

.vitrin-bid-card__input-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0.65rem;
}

.vitrin-bid-card__currency {
    padding: 0.55rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.vitrin-bid-card__input {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.1rem;
    font-weight: 700;
    outline: none;
    background: var(--bg-input);
    transition: border-color var(--transition);
}

.vitrin-bid-card__input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

.vitrin-bid-card__quick-bids {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.vitrin-quick-bid {
    flex: 1;
    padding: 0.35rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.vitrin-quick-bid:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-gold-soft);
}

.vitrin-bid-card__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.85rem 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.vitrin-bid-card__divider::before,
.vitrin-bid-card__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Winner Card ──────────────────────────────── */
.vitrin-winner-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(200, 164, 94, 0.08), rgba(139, 94, 60, 0.05));
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 0.85rem;
}

.vitrin-winner-card__icon { font-size: 2rem; margin-bottom: 0.4rem; }
.vitrin-winner-card__label { font-size: 0.75rem; color: var(--accent-gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.vitrin-winner-card__name { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.15rem; }
.vitrin-winner-card__amount { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--accent-primary); }

/* ── Top Bidders ──────────────────────────────── */
.vitrin-top-bidders {
    padding: 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
}

.vitrin-top-bidders h3 {
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}

.vitrin-top-bidders__list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vitrin-bidder-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.55rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.vitrin-bidder-row:hover { background: var(--bg-secondary); }

.vitrin-bidder-row--top {
    background: var(--accent-gold-soft);
    border: 1px solid rgba(200, 164, 94, 0.2);
}

.vitrin-bidder-row__rank {
    font-size: 0.95rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--text-muted);
}

.vitrin-bidder-row__avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.vitrin-bidder-row__avatar img { width: 100%; height: 100%; object-fit: cover; }

.vitrin-bidder-row__info { flex: 1; min-width: 0; }
.vitrin-bidder-row__name { font-size: 0.82rem; font-weight: 600; display: block; }
.vitrin-bidder-row__count { font-size: 0.68rem; color: var(--text-muted); }

.vitrin-bidder-row__amount {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* ── Recent Bids ──────────────────────────────── */
.vitrin-recent-bids {
    padding: 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.vitrin-recent-bids h3 {
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}

.vitrin-recent-bids__list {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vitrin-bid-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.4rem;
    border-radius: var(--radius-sm);
}

.vitrin-bid-row:nth-child(odd) { background: var(--bg-secondary); }

.vitrin-bid-row__avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.vitrin-bid-row__avatar img { width: 100%; height: 100%; object-fit: cover; }

.vitrin-bid-row__info { flex: 1; min-width: 0; }
.vitrin-bid-row__info span { font-size: 0.82rem; font-weight: 500; display: block; }
.vitrin-bid-row__info small { font-size: 0.68rem; color: var(--text-muted); }

.vitrin-bid-row__amount {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* ═══ Vitrin Form ══════════════════════════════ */
.vitrin-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.vitrin-form-card__header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.vitrin-form-card__header h1 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.vitrin-form-card__header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.vitrin-form-group {
    margin-bottom: 1.15rem;
}

.vitrin-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.vitrin-form-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}

.vitrin-form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
    background: var(--bg-card);
}

textarea.vitrin-form-input {
    resize: vertical;
    min-height: 80px;
}

.vitrin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.vitrin-form-radio-group {
    display: flex;
    gap: 0.5rem;
}

.vitrin-form-radio {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.85rem;
}

.vitrin-form-radio:has(input:checked) {
    border-color: var(--accent-primary);
    background: var(--accent-gold-soft);
}

.vitrin-form-radio input { accent-color: var(--accent-primary); }

.vitrin-form-upload {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-input);
}

.vitrin-form-upload__btn {
    padding: 0.5rem 1rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.vitrin-form-upload__btn:hover { background: var(--accent-deep); }

.vitrin-form-upload__text {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.vitrin-form-previews {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.vitrin-form-preview {
    width: 80px; height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.vitrin-form-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ═══ My Auctions List ═════════════════════════ */
.vitrin-my-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.vitrin-my-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.vitrin-my-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.vitrin-my-item__img {
    width: 72px; height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.vitrin-my-item__img img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.vitrin-my-item__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.vitrin-my-item__title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.vitrin-my-item__title a { color: inherit; text-decoration: none; }
.vitrin-my-item__title a:hover { color: var(--accent-primary); }

.vitrin-my-item__meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.vitrin-my-item__right {
    text-align: right;
    flex-shrink: 0;
}

.vitrin-my-item__price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.2rem;
}

.vitrin-my-item__status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    display: inline-block;
}

.vitrin-my-item__status--active { background: rgba(39, 174, 96, 0.1); color: var(--accent-emerald); }
.vitrin-my-item__status--sold { background: var(--accent-gold-soft); color: var(--accent-gold); }
.vitrin-my-item__status--ended { background: var(--bg-secondary); color: var(--text-muted); }
.vitrin-my-item__status--cancelled { background: var(--accent-red-soft); color: var(--accent-red); }

.vitrin-my-item__timer {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-variant-numeric: tabular-nums;
}

/* ═══ Responsive ═══════════════════════════════ */
@media (max-width: 1024px) {
    .vitrin-grid { grid-template-columns: repeat(3, 1fr); }
    .vitrin-detail { grid-template-columns: 1fr; }
    .vitrin-detail__right { order: -1; }
    .vitrin-ending-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .vitrin-grid { grid-template-columns: repeat(2, 1fr); }
    .vitrin-toolbar { flex-direction: column; align-items: stretch; }
    .vitrin-toolbar__right { width: 100%; }
    .vitrin-search-input { flex: 1; width: auto; }
    .vitrin-form-row { grid-template-columns: 1fr; }
    .vitrin-ending-grid { grid-template-columns: 1fr; }
    .vitrin-my-item__body { flex-direction: column; align-items: flex-start; }
    .vitrin-my-item__right { text-align: left; }
}

@media (max-width: 480px) {
    .vitrin-grid { grid-template-columns: 1fr; }
    .vitrin-hero__title { font-size: 1.5rem; }
    .vitrin-price-card__amount { font-size: 1.4rem; }
}

/* ═══════════════════════════════════════════════
   DM Messaging — Instagram Style
   ═══════════════════════════════════════════════ */

.dm-container {
    display: flex;
    height: calc(100vh - var(--nav-height));
    margin-top: var(--nav-height);
    background: var(--bg-primary);
    overflow: hidden;
}

/* ── Sidebar ─────────────────────────────── */
.dm-sidebar {
    width: 340px;
    min-width: 340px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}

.dm-sidebar__header {
    padding: 1.25rem 1rem 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dm-new-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s;
}

.dm-new-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.05);
}

.dm-block-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.15s;
}

.dm-block-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* User Search Results Dropdown */
.dm-user-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 50;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 0.25rem;
}

.dm-user-results__empty {
    padding: 1.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.dm-user-result {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.dm-user-result:hover {
    background: var(--bg-secondary);
}

.dm-sidebar__title {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-serif);
}

.dm-sidebar__search {
    padding: 0.75rem 1rem;
}

.dm-sidebar__search input:focus {
    border-color: var(--accent-primary);
}

.dm-sidebar__list {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dm-sidebar__empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── Conversation Item ───────────────────── */
.dm-conv-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
    border-left: 3px solid transparent;
}

.dm-conv-item:hover {
    background: var(--bg-secondary);
}

.dm-conv-item--active {
    background: var(--bg-secondary);
    border-left-color: var(--accent-primary);
}

.dm-conv-item--unread .dm-conv-item__name {
    font-weight: 700;
}

.dm-conv-item--unread .dm-conv-item__preview {
    font-weight: 600;
    color: var(--text-primary);
}

.dm-conv-item__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.dm-conv-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-conv-item__body {
    flex: 1;
    min-width: 0;
}

.dm-conv-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.dm-conv-item__name {
    font-size: 0.88rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-conv-item__time {
    font-size: 0.68rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.dm-conv-item__preview {
    font-size: 0.78rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-conv-item__badge {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Main Panel ──────────────────────────── */
.dm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-primary);
}

.dm-main__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.dm-main__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    min-height: 64px;
}

.dm-main__back {
    display: none;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.25rem;
}

.dm-main__user-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.dm-main__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.dm-main__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-main__username {
    font-weight: 700;
    font-size: 0.92rem;
}

.dm-main__typing {
    font-size: 0.72rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Typing dots animation */
.dm-typing-dots {
    display: inline-flex;
    gap: 2px;
}

.dm-typing-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: dmTypingBounce 1.2s infinite;
}

.dm-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.dm-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dmTypingBounce {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

/* ── Messages Container ──────────────────── */
.dm-messages {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dm-messages__load-more {
    text-align: center;
    padding: 0.5rem 0 1rem;
}

/* ── Message Bubble ──────────────────────── */
.dm-msg {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    max-width: 75%;
    animation: dmMsgIn 0.2s ease-out;
}

@keyframes dmMsgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dm-msg--mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.dm-msg--theirs {
    align-self: flex-start;
}

.dm-msg__avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.dm-msg__avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-msg__bubble {
    padding: 0.6rem 0.85rem;
    border-radius: 18px;
    font-size: 0.88rem;
    line-height: 1.45;
    position: relative;
    word-break: break-word;
}

.dm-msg--mine .dm-msg__bubble {
    background: linear-gradient(135deg, var(--accent-primary), #7a5230);
    color: white;
    border-bottom-right-radius: 4px;
}

.dm-msg--theirs .dm-msg__bubble {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.dm-msg__text {
    white-space: pre-wrap;
}

.dm-msg__info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
    margin-top: 0.2rem;
}

.dm-msg__time {
    font-size: 0.62rem;
    opacity: 0.65;
}

.dm-msg--mine .dm-msg__time {
    color: rgba(255, 255, 255, 0.7);
}

.dm-msg__tick {
    font-size: 0.62rem;
    opacity: 0.65;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
}

.dm-msg__tick--read {
    opacity: 1;
    color: #5dade2;
}

/* ── Compose Bar ─────────────────────────── */
.dm-compose {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.dm-compose__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    transition: border-color 0.15s;
}

.dm-compose__inner:focus-within {
    border-color: var(--accent-primary);
}

.dm-compose__input {
    flex: 1;
    border: none;
    background: none;
    font-size: 0.88rem;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
    padding: 0.4rem 0;
}

.dm-compose__input::placeholder {
    color: var(--text-muted);
}

.dm-compose__send {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.dm-compose__send:hover:not(:disabled) {
    background: var(--accent-primary-dark, #6b4527);
    transform: scale(1.05);
}

.dm-compose__send:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 768px) {
    .dm-container {
        position: relative;
    }

    .dm-sidebar {
        position: absolute;
        inset: 0;
        width: 100%;
        min-width: 0;
        z-index: 2;
        transition: transform 0.25s ease;
    }

    .dm-sidebar--hidden {
        transform: translateX(-100%);
    }

    .dm-main {
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .dm-main__back {
        display: block;
    }

    .dm-msg {
        max-width: 85%;
    }
}

@media (min-width: 769px) {
    .dm-main__back {
        display: none;
    }
}

/* ── Filter Bar ─────────────────────────────── */
.filter-bar {
    margin-bottom: 1.25rem;
}

.filter-bar__row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-bar__field {
    flex: 1;
    min-width: 140px;
}

.filter-bar__field--search {
    position: relative;
    flex: 2;
    min-width: 180px;
}

.filter-bar__icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.45;
    pointer-events: none;
}

.filter-bar__input {
    width: 100%;
    padding: 0.5rem 0.65rem 0.5rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    background: var(--bg-card);
    transition: border-color 0.15s;
    font-family: inherit;
}

.filter-bar__input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.filter-bar__select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    background: var(--bg-card);
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    padding-right: 1.8rem;
}

.filter-bar__select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.filter-bar__btn {
    padding: 0.5rem 1rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
    font-family: inherit;
}

.filter-bar__btn:hover {
    opacity: 0.85;
}

.filter-bar__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.15s;
    flex-shrink: 0;
}

.filter-bar__clear:hover {
    background: #fee2e2;
    color: #dc2626;
}

@media (max-width: 600px) {
    .filter-bar__row {
        flex-direction: column;
    }
    .filter-bar__field,
    .filter-bar__field--search {
        width: 100%;
        min-width: 0;
    }
    .filter-bar__btn {
        width: 100%;
    }
}
