/* Vitrin Platform Styles */
:root {
    --bg: #0f0f13;
    --surface: #1a1a24;
    --surface2: #242433;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --primary: #a855f7;
    --primary-hover: #9333ea;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --border: #2e2e3e;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Utilities */
.hidden { display: none !important; }

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    max-height: 44px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.main-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.main-nav a { color: var(--muted); font-weight: 500; }
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--primary); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.4rem;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a1a24 0%, #2d1b4e 100%);
    padding: 60px 0;
    text-align: center;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 8px; }
.hero p { color: var(--muted); font-size: 1.1rem; }

/* Stories */
.stories-section { padding: 40px 0; }
.section-title { font-size: 1.3rem; margin-bottom: 20px; }

.stories-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    cursor: pointer;
    color: var(--text);
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

.story-item-lg { min-width: 100px; }
.story-ring-lg { width: 88px !important; height: 88px !important; }
.stories-row-lg { justify-content: flex-start; }
.listing-stories-block { margin-bottom: 24px; }

.story-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--primary), #ec4899);
}

.story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg);
}

.story-item-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100px;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    text-transform: uppercase;
    font-weight: 600;
}

.verified-icon-meta {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}

.story-item-lg .verified-icon-meta {
    width: 15px;
    height: 15px;
}

.story-item span {
    font-size: 0.75rem;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-item-static {
    text-align: center;
}

.story-item-static img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.story-item-static small {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 4px;
}

/* Instagram Story Viewer */
.ig-story-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-story-viewer.hidden { display: none; }

.ig-story-backdrop {
    position: absolute;
    inset: 0;
    background: #000;
}

.ig-story-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 100%;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.ig-story-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 12px 12px 0;
}

.ig-story-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.ig-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.35);
    border-radius: 2px;
    overflow: hidden;
}

.ig-progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
}

.ig-story-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.ig-story-user-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.ig-story-user-name #igStoryUsername {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ig-story-verified {
    display: inline-flex;
    flex-shrink: 0;
}

.ig-story-verified.hidden {
    display: none !important;
}

.ig-story-verified .verified-icon-meta {
    width: 16px;
    height: 16px;
}

.ig-story-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.ig-story-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.ig-story-body {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.ig-story-body img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100dvh;
}

.ig-story-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
}

.ig-story-prev { left: 0; }
.ig-story-next { right: 0; }

.ig-story-caption {
    position: absolute;
    bottom: 56px;
    left: 0;
    right: 0;
    padding: 16px;
    color: #fff;
    text-align: center;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    font-size: 0.9rem;
    z-index: 3;
}

.ig-story-listing-btn {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: inline-block;
    padding: 10px 28px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.ig-story-listing-btn:hover {
    background: var(--primary-hover);
    color: #fff !important;
}

.ig-story-listing-btn.hidden {
    display: none;
}

/* Photo Lightbox */
.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-lightbox.hidden { display: none; }

.photo-lightbox-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 56px;
}

.photo-lightbox-inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    border-radius: 4px;
    animation: lightboxFadeIn 0.25s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.photo-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;
    line-height: 1;
}

.photo-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.photo-lightbox-nav:hover {
    background: rgba(255,255,255,0.28);
}

.photo-lightbox-prev { left: 12px; }
.photo-lightbox-next { right: 12px; }

.photo-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(0,0,0,0.55);
    padding: 8px 18px;
    border-radius: 20px;
    z-index: 4;
}

.photo-lightbox-tap {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    z-index: 3;
    cursor: pointer;
}

.photo-lightbox-tap-prev { left: 0; }
.photo-lightbox-tap-next { right: 0; }

.main-image {
    cursor: zoom-in;
}

/* Story Modal - legacy removed */
.story-modal { display: none !important; }

/* Tier Sections */
.tier-section { padding: 40px 0; }
.tier-section + .tier-section { border-top: 1px solid var(--border); }

.tier-title {
    font-size: 1.2rem;
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 4px solid var(--tier-color, var(--primary));
}

/* Listing Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .listing-info { padding: 10px; }
    .listing-info h3 { font-size: 0.82rem; }
}

.listing-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.listing-card a { color: inherit; }

.listing-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-verified {
    background: var(--success);
    color: #000;
}

.listing-info { padding: 14px; }
.listing-info h3 { font-size: 0.95rem; margin-bottom: 4px; }
.listing-phone { color: var(--muted); font-size: 0.85rem; }

/* Listing Detail */
.listing-detail { padding: 24px 0 48px; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.main-image {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    position: relative;
    cursor: zoom-in;
    background: var(--surface);
}

.main-image-lg {
    aspect-ratio: 4/5;
    max-height: 75vh;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

.thumb-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
    padding: 0;
    background: none;
    overflow: hidden;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumb-lg { width: 72px; height: 72px; }
.thumb.active { opacity: 1; border-color: var(--primary); }

.detail-info h1 { font-size: 1.6rem; margin: 12px 0; line-height: 1.3; }
.detail-info .meta { color: var(--muted); margin-bottom: 20px; font-size: 0.9rem; }

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    letter-spacing: 0.02em;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #1fb855 0%, #0e7a6e 100%);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
    transform: translateY(-1px);
}

.btn-whatsapp svg {
    flex-shrink: 0;
}

.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--muted);
}

.tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #000;
}

.description {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.description-highlight {
    margin-top: 20px;
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.75;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.description-highlight::first-line {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover { background: var(--border); color: var(--text); }

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-hover); color: white; }

.btn-secondary {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.btn-danger { background: var(--danger); border-color: var(--danger); color: white; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 8px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--muted); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* Auth */
.auth-page { padding: 60px 0; }

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.auth-card-wide { max-width: 640px; }
.auth-card h1 { margin-bottom: 24px; }
.auth-hint { margin-top: 16px; font-size: 0.85rem; color: var(--muted); }
.auth-hint code { background: var(--surface2); padding: 2px 6px; border-radius: 4px; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.alert-success { background: #052e16; color: var(--success); border: 1px solid var(--success); }
.alert-error { background: #450a0a; color: #fca5a5; border: 1px solid var(--danger); }
.alert-warning { background: #451a03; color: var(--warning); border: 1px solid var(--warning); }

/* Panel */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.card h2 { margin-bottom: 16px; font-size: 1.1rem; }

.perm-badges { display: flex; gap: 12px; flex-wrap: wrap; }

.perm-badge {
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid;
    background: var(--surface2);
}

.perm-badge span { display: block; font-size: 0.85rem; color: var(--muted); }

.perm-badge-doping {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.perm-badge-doping strong { color: #fbbf24; }

.table-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.image-check {
    position: relative;
    cursor: pointer;
}

.image-check img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.image-check input { margin-top: 4px; }

.image-primary-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.empty { color: var(--muted); padding: 20px 0; }
.empty-state { padding: 60px 0; text-align: center; color: var(--muted); }

/* Admin */
.admin-page {
    padding-top: 8px;
    padding-bottom: 40px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-page-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.admin-user-badge {
    color: var(--muted);
    font-size: 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 999px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

.card-wide { grid-column: span 1; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.stat-card span { display: block; color: var(--muted); font-size: 0.85rem; }
.stat-card strong { font-size: 2rem; }

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th { color: var(--muted); font-weight: 600; }
.data-table tr:hover { background: var(--surface2); }

.status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active { background: #052e16; color: var(--success); }
.status-draft { background: #1e293b; color: var(--muted); }
.status-expired { background: #451a03; color: var(--warning); }
.status-suspended { background: #450a0a; color: #fca5a5; }
.status-approved { background: #052e16; color: var(--success); }
.status-pending { background: #451a03; color: var(--warning); }
.status-hidden { background: #1e293b; color: var(--muted); }
.status-admin { background: #312e81; color: #c4b5fd; }
.status-user { background: #1e293b; color: var(--muted); }

/* Verified Notice */
.verified-notice {
    background: linear-gradient(135deg, #052e16 0%, #0f172a 100%);
    border: 1px solid var(--success);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.verified-notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--success);
}

.verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--success);
    color: #000;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.verified-notice p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

/* Listing Stats */
.listing-stats-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 16px 0;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.detail-info .listing-stats-box {
    margin-top: 20px;
    margin-bottom: 0;
}

.verified-notice-comments {
    margin-bottom: 24px;
}

.stat-item {
    text-align: center;
    padding: 8px 4px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-item strong {
    font-size: 1rem;
    color: var(--text);
}

/* Comments */
.comments-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.comment-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.comment-form-card h3 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--muted);
}

.checkbox-label input { width: auto; margin-top: 3px; }

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-header time {
    font-size: 0.8rem;
    color: var(--muted);
}

.comment-item p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* Site Settings Admin */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.settings-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.settings-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.settings-preview {
    margin-bottom: 12px;
    padding: 12px;
    background: var(--surface2);
    border-radius: 8px;
    text-align: center;
}

.settings-preview img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 8px;
}

.settings-preview-sm img {
    max-height: 48px;
    width: 48px;
}

.settings-preview-box {
    background: var(--surface2);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 0.9rem;
}

.settings-preview-box p {
    margin: 8px 0;
    color: var(--muted);
}

.preview-wa {
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-word;
}

.field-hint code {
    background: var(--surface2);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.85em;
}

.preview-header {
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 12px;
}

.preview-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.preview-logo {
    max-height: 40px;
    max-width: 120px;
}

.preview-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.extend-form { display: flex; gap: 8px; align-items: center; }
.extend-form select { width: auto; padding: 6px; }

.inline-form select { padding: 10px; min-width: 250px; }

.actions { white-space: nowrap; }

/* Footer */
.site-footer {
    margin-top: auto;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.main-content { min-height: calc(100vh - 140px); }

.hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border);
        gap: 0;
    }

    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); width: 100%; }
    .main-nav a:last-child { border-bottom: none; }

    .site-header { position: sticky; }
    .header-inner { position: relative; flex-wrap: wrap; }

    .hero { padding: 36px 0; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }

    .detail-grid { grid-template-columns: 1fr; gap: 20px; }
    .main-image-lg { max-height: 65vh; aspect-ratio: 3/4; }
    .detail-info h1 { font-size: 1.35rem; }

    .ig-story-container { max-width: 100%; }

    .admin-grid { grid-template-columns: 1fr; }
    .admin-page-header h1 { font-size: 1.25rem; }
    .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .auth-page { padding: 24px 0; }
    .auth-card { padding: 20px; margin: 0 4px; }

    .panel-header { flex-direction: column; align-items: flex-start; }
    .panel-actions { width: 100%; }
    .panel-actions .btn { flex: 1; text-align: center; min-width: 0; }

    .data-table { display: block; overflow-x: auto; white-space: nowrap; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; text-align: center; }

    .listing-stats-box { grid-template-columns: repeat(2, 1fr); }
    .stat-item strong { font-size: 0.95rem; }

    .settings-grid,
    .settings-upload-grid { grid-template-columns: 1fr; }

    .site-logo { max-height: 36px; max-width: 100px; }
    .logo-text { font-size: 0.95rem; max-width: 120px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .listing-info { padding: 8px; }
    .listing-info h3 { font-size: 0.78rem; }
    .story-ring { width: 64px; height: 64px; }
    .story-ring-lg { width: 76px !important; height: 76px !important; }
    .container { padding: 0 14px; }
    .tier-title { font-size: 1rem; }
    .thumb-lg { width: 60px; height: 60px; }
    .description-highlight {
        font-size: 1.05rem;
    }

    .photo-lightbox-inner { padding: 50px 12px; }
}
