/* ========================================================
   Metrocasa Vila Prudente - Concurso de Natal 2026
   Apple Human Interface & Cupertino Design System
   ======================================================== */

:root {
    /* Apple Core Palette */
    --apple-bg: #f5f5f7;
    --apple-card: #ffffff;
    --apple-card-subtle: #fbfbfd;
    --apple-text: #1d1d1f;
    --apple-text-secondary: #86868b;
    --apple-text-tertiary: #a1a1a6;
    --apple-hairline: rgba(0, 0, 0, 0.08);
    --apple-hairline-dark: rgba(255, 255, 255, 0.12);
    
    /* Metrocasa Identity in Apple Luxury Tones */
    --mc-navy: #0d1738;
    --mc-navy-glass: rgba(13, 23, 56, 0.85);
    --mc-red: #EC1C24;
    --mc-red-hover: #d3141b;
    --mc-red-subtle: rgba(236, 28, 36, 0.08);
    --mc-cyan: #0071e3; /* Apple Blue / Metrocasa Cyan fusion */
    --mc-cyan-soft: #e8f2ff;
    --mc-gold: #c59b27;
    --mc-gold-light: #fef3c7;
    --mc-gold-glow: rgba(212, 175, 55, 0.28);
    --mc-green: #34c759;
    --mc-green-soft: #eafbf0;

    /* Apple Squircles & Shadows */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 9999px;

    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-float: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 10px 30px rgba(236, 28, 36, 0.28);

    /* Apple Spring Motion */
    --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: all 0.2s var(--ease-apple);
    --transition-smooth: all 0.35s var(--ease-apple);
}

/* ================= Reset & Typography ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--apple-bg);
    color: var(--apple-text);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 90px;
    overflow-x: hidden;
}

/* ================= Top Announcement Banner ================= */
.top-ticker {
    background: #111113;
    color: #f5f5f7;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -0.01em;
}
.ticker-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
}

/* ================= Apple Frosted Header ================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border-bottom: 1px solid var(--apple-hairline);
    transition: var(--transition-fast);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}
.brand-link:active {
    transform: scale(0.97);
}
.brand-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, #162456 0%, #080f24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(13, 23, 56, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.brand-logo-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--mc-red);
}
.brand-text {
    display: flex;
    flex-direction: column;
}
.brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--apple-text);
    line-height: 1.1;
}
.brand-title span {
    color: var(--mc-red);
}
.brand-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--apple-text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-header-cta {
    background: var(--mc-red);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(236, 28, 36, 0.25);
    transition: var(--transition-fast);
}
.btn-header-cta:hover {
    background: var(--mc-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(236, 28, 36, 0.35);
}
.btn-header-cta:active {
    transform: scale(0.96);
}

/* ================= Apple Keynote Hero Section ================= */
.hero-section {
    background: radial-gradient(circle at 50% 0%, #1a2754 0%, #0d1738 50%, #080c1e 100%);
    color: #ffffff;
    padding: 56px 20px 64px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hero-lights-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(0, 113, 227, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 50% 85%, rgba(236, 28, 36, 0.14) 0%, transparent 55%);
}
.hero-container {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: #fde68a;
    margin-bottom: 22px;
    letter-spacing: 0.02em;
}
.hero-title {
    font-size: clamp(30px, 6vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
}
.hero-title .highlight {
    background: linear-gradient(135deg, #ffffff 20%, #fde68a 70%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.hero-subtitle {
    font-size: clamp(15px, 2.5vw, 18px);
    color: #94a3b8;
    max-width: 620px;
    margin: 0 auto 34px;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: -0.015em;
}

/* ================= Apple Countdown Widget ================= */
.countdown-box {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 16px 26px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 34px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}
.countdown-num {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.03em;
}
.countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 5px;
}
.countdown-divider {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 12px;
}

/* ================= Apple Stat Capsules ================= */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 540px;
    margin: 0 auto;
}
.hero-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.hero-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.hero-stat-lbl {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ================= Main Container ================= */
.main-wrapper {
    max-width: 1200px;
    margin: -24px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* ================= Bento Podium Section (Apple Style) ================= */
.podium-section {
    background: var(--apple-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--apple-hairline);
    padding: 26px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}
.section-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--apple-text);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.03em;
}
.podium-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 768px) {
    .podium-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.podium-card {
    background: var(--apple-card-subtle);
    border-radius: var(--radius-lg);
    border: 1px solid var(--apple-hairline);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}
.podium-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
    border-color: rgba(0, 0, 0, 0.12);
}
.podium-card:active {
    transform: scale(0.98);
}
.podium-card.first {
    background: linear-gradient(135deg, #fffcf0 0%, #ffffff 100%);
    border-color: rgba(197, 155, 39, 0.35);
    box-shadow: 0 8px 24px rgba(197, 155, 39, 0.12);
}
.podium-badge {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.podium-badge.gold {
    background: linear-gradient(145deg, #ffd700 0%, #c59b27 100%);
    color: #4a3800;
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.35);
}
.podium-badge.silver {
    background: linear-gradient(145deg, #f5f5f7 0%, #d2d2d7 100%);
    color: #3a3a3c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.podium-badge.bronze {
    background: linear-gradient(145deg, #fce7d2 0%, #d97706 100%);
    color: #451a03;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

/* ================= 2-Category Podium (Varanda vs Porta) ================= */
.category-duo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 860px) {
    .category-duo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}
.category-bento-box {
    background: var(--apple-card-subtle);
    border: 1px solid var(--apple-hairline);
    border-radius: var(--radius-xl);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.category-bento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--apple-hairline);
}
.category-bento-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--apple-text);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.02em;
}
.prize-capsule-badge {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.25);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
}
.podium-duel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.podium-duel-card {
    background: #ffffff;
    border: 1px solid var(--apple-hairline);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.podium-duel-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
    border-color: rgba(0, 0, 0, 0.12);
}
.podium-duel-card:active {
    transform: scale(0.98);
}
.podium-duel-card.gold-leader {
    background: linear-gradient(135deg, #fffdf2 0%, #ffffff 100%);
    border-color: rgba(197, 155, 39, 0.4);
    box-shadow: 0 4px 16px rgba(197, 155, 39, 0.1);
}
.podium-duel-thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.podium-duel-info {
    flex-grow: 1;
    min-width: 0;
}
.podium-duel-unit {
    font-size: 11px;
    font-weight: 700;
    color: var(--mc-red);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.podium-zone-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.podium-zone-badge.leader {
    background: #fef3c7;
    color: #92400e;
}
.podium-zone-badge.chaser {
    background: #f1f5f9;
    color: #475569;
}
.podium-duel-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--apple-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.podium-duel-votes {
    font-size: 11px;
    color: var(--apple-text-secondary);
    font-weight: 500;
    margin-top: 2px;
}
.podium-thumb {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.podium-info {
    flex-grow: 1;
    min-width: 0;
}
.podium-unit {
    font-size: 11px;
    font-weight: 700;
    color: var(--mc-red);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.podium-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--apple-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.podium-votes {
    font-size: 12px;
    color: var(--apple-text-secondary);
    font-weight: 500;
    margin-top: 3px;
}

/* ================= iOS Segmented Control (Apple Filter Bar) ================= */
.filter-bar {
    background: var(--apple-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--apple-hairline);
    padding: 14px 18px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-subtle);
}
@media (min-width: 768px) {
    .filter-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.filter-pills {
    display: flex;
    align-items: center;
    background: #e5e5ea;
    padding: 3px;
    border-radius: var(--radius-pill);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.filter-pills::-webkit-scrollbar {
    display: none;
}
.filter-pill {
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #636366;
    white-space: nowrap;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}
.filter-pill.active {
    background: #ffffff;
    color: var(--apple-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 0.5px 1px rgba(0, 0, 0, 0.06);
}
.filter-pill:active {
    transform: scale(0.97);
}

.search-form {
    display: flex;
    align-items: center;
    background: #e5e5ea;
    border-radius: var(--radius-pill);
    padding: 4px 14px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}
.search-form:focus-within {
    background: #ffffff;
    box-shadow: 0 0 0 2px var(--mc-cyan);
}
.search-input {
    border: none;
    background: transparent;
    font-size: 13px;
    padding: 7px 8px;
    outline: none;
    width: 100%;
    color: var(--apple-text);
    font-family: inherit;
}
.search-input::placeholder {
    color: var(--apple-text-secondary);
}
.search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--apple-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

/* ================= Apple Grid of Units ================= */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 34px;
}
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================= Unit Card (Apple App Store Style) ================= */
.unit-card {
    background: var(--apple-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--apple-hairline);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    position: relative;
}
.unit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: rgba(0, 0, 0, 0.12);
}
.unit-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #111113;
    overflow: hidden;
    cursor: pointer;
}
.unit-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-apple);
}
.unit-card:hover .unit-photo-img {
    transform: scale(1.035);
}
.photo-count-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.unit-tag-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(236, 28, 36, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(236, 28, 36, 0.3);
}

.unit-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--apple-text);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.unit-category-badge.varanda {
    border: 1px solid rgba(52, 199, 89, 0.3);
}
.unit-category-badge.porta {
    border: 1px solid rgba(0, 113, 227, 0.3);
}

/* Apple Category Selector Cards in Register Form */
.category-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 8px 0 16px;
}
.category-choice-card {
    border: 1.5px solid #d2d2d7;
    border-radius: var(--radius-lg);
    padding: 16px 14px;
    cursor: pointer;
    background: #fbfbfd;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.category-choice-card:hover {
    border-color: #a1a1a6;
    background: #ffffff;
}
.category-choice-card.selected {
    border-color: var(--mc-red);
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(236, 28, 36, 0.15), 0 0 0 1px var(--mc-red);
}
.category-choice-card:active {
    transform: scale(0.97);
}
.category-choice-icon {
    font-size: 28px;
    margin-bottom: 6px;
}
.category-choice-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--apple-text);
    margin-bottom: 2px;
}
.category-choice-sub {
    font-size: 11px;
    color: var(--apple-text-secondary);
    line-height: 1.3;
}

.unit-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.unit-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--apple-text);
    line-height: 1.3;
    margin-bottom: 6px;
    letter-spacing: -0.025em;
}
.unit-resident {
    font-size: 12px;
    color: var(--apple-text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.unit-desc {
    font-size: 13px;
    color: #48484a;
    line-height: 1.5;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.unit-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--apple-hairline);
}
.btn-vote-trigger {
    flex-grow: 1;
    background: var(--mc-red);
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(236, 28, 36, 0.22);
    transition: var(--transition-fast);
}
.btn-vote-trigger:hover {
    background: var(--mc-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(236, 28, 36, 0.32);
}
.btn-vote-trigger:active {
    transform: scale(0.96);
}
.btn-vote-trigger.voted {
    background: var(--mc-green-soft);
    color: var(--mc-green);
    box-shadow: none;
    cursor: default;
}
.btn-view-details {
    background: #e5e5ea;
    color: var(--apple-text);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-fast);
}
.btn-view-details:hover {
    background: #d1d1d6;
}
.btn-view-details:active {
    transform: scale(0.94);
}
.btn-share-zap {
    background: #25d366;
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
    transition: var(--transition-fast);
}
.btn-share-zap:hover {
    background: #20bd5a;
    transform: translateY(-1px);
}
.btn-share-zap:active {
    transform: scale(0.94);
}

/* ================= Empty State ================= */
.empty-state {
    background: var(--apple-card);
    border-radius: var(--radius-xl);
    border: 1px dashed #d2d2d7;
    padding: 60px 24px;
    text-align: center;
    max-width: 520px;
    margin: 40px auto;
}
.empty-icon {
    font-size: 52px;
    margin-bottom: 14px;
}
.empty-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--apple-text);
    margin-bottom: 6px;
    letter-spacing: -0.025em;
}
.empty-sub {
    font-size: 14px;
    color: var(--apple-text-secondary);
    margin-bottom: 24px;
}

/* ================= iOS Translucent Tab Bar ================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border-top: 1px solid var(--apple-hairline);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 12px 14px;
    z-index: 100;
}
@media (min-width: 1024px) {
    .mobile-bottom-nav {
        display: none;
    }
    body {
        padding-bottom: 0;
    }
}
.nav-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8e8e93;
    font-size: 10px;
    font-weight: 600;
    gap: 3px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: transparent;
    border: none;
    transition: var(--transition-fast);
}
.nav-tab-item.active {
    color: var(--mc-red);
}
.nav-tab-item.cta {
    color: #ffffff;
    background: var(--mc-red);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    box-shadow: 0 4px 14px rgba(236, 28, 36, 0.35);
    transform: translateY(-4px);
}
.nav-tab-item.cta:active {
    transform: translateY(-2px) scale(0.95);
}

/* ================= iOS Bottom Sheets & Modals ================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-apple);
}
@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
        padding: 24px;
    }
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    border-radius: 30px 30px 0 0;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-apple);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    position: relative;
}
@media (min-width: 768px) {
    .modal-card {
        border-radius: var(--radius-xl);
        transform: scale(0.95) translateY(20px);
        max-height: 85vh;
        box-shadow: var(--shadow-float);
    }
}
.modal-overlay.open .modal-card {
    transform: translateY(0);
}
@media (min-width: 768px) {
    .modal-overlay.open .modal-card {
        transform: scale(1) translateY(0);
    }
}

/* iOS Sheet Handle */
.ios-sheet-handle {
    width: 36px;
    height: 5px;
    border-radius: var(--radius-pill);
    background: #d1d1d6;
    margin: 10px auto 4px;
}
@media (min-width: 768px) {
    .ios-sheet-handle {
        display: none;
    }
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--apple-hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fbfbfd;
}
.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--apple-text);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.025em;
}
.btn-modal-close {
    background: #e5e5ea;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-pill);
    font-size: 18px;
    color: #636366;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.btn-modal-close:hover {
    background: #d1d1d6;
}
.modal-body {
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ================= iOS Form Controls ================= */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--apple-text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.form-hint {
    font-size: 12px;
    color: var(--apple-text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}
.form-control {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    border: 1px solid #d2d2d7;
    font-size: 15px;
    color: var(--apple-text);
    background: #fbfbfd;
    outline: none;
    font-family: inherit;
    transition: var(--transition-fast);
}
.form-control:focus {
    border-color: var(--mc-cyan);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}
textarea.form-control {
    resize: vertical;
    min-height: 85px;
}

/* iOS Segmented OTP Box */
.otp-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 18px 0;
}
.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", monospace;
    border: 1.5px solid #d2d2d7;
    border-radius: var(--radius-md);
    background: #fbfbfd;
    outline: none;
    transition: var(--transition-fast);
    color: var(--apple-text);
}
.otp-digit:focus {
    border-color: var(--mc-red);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(236, 28, 36, 0.18);
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed #d2d2d7;
    border-radius: var(--radius-lg);
    padding: 26px 16px;
    text-align: center;
    cursor: pointer;
    background: #fbfbfd;
    transition: var(--transition-fast);
}
.upload-dropzone:hover {
    border-color: var(--mc-red);
    background: #fff5f5;
}
.upload-dropzone-icon {
    font-size: 36px;
    margin-bottom: 8px;
}
.photo-previews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #e5e5ea;
}
.photo-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.btn-remove-preview {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step Indicator */
.step-indicator-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    position: relative;
}
.step-indicator-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e5e5ea;
    z-index: 1;
    transform: translateY(-50%);
}
.step-circle {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 2px solid #d2d2d7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--apple-text-secondary);
    position: relative;
    z-index: 2;
    transition: var(--transition-fast);
}
.step-circle.active {
    border-color: var(--mc-red);
    background: var(--mc-red);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(236, 28, 36, 0.3);
}
.step-circle.done {
    border-color: var(--mc-green);
    background: var(--mc-green);
    color: #ffffff;
}

/* ================= Lightbox Modal ================= */
.lightbox-modal {
    max-width: 760px;
}
.lightbox-main-img {
    width: 100%;
    max-height: 56vh;
    object-fit: contain;
    background: #000000;
    border-radius: var(--radius-lg);
    display: block;
}
.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.lightbox-thumbnails::-webkit-scrollbar {
    display: none;
}
.lightbox-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.lightbox-thumb.active {
    border-color: var(--mc-red);
    opacity: 1;
}

/* ================= Toast Notification (iOS Dynamic Island Style) ================= */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 420px;
    pointer-events: none;
}
.toast-msg {
    background: rgba(29, 29, 31, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    color: #ffffff;
    padding: 13px 20px;
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: iosToastIn 0.35s var(--ease-spring) forwards;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
@keyframes iosToastIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ================= Apple Minimal Footer ================= */
.site-footer {
    background: #ffffff;
    color: var(--apple-text-secondary);
    padding: 40px 20px 48px;
    margin-top: 60px;
    border-top: 1px solid var(--apple-hairline);
    text-align: center;
}
.footer-container {
    max-width: 800px;
    margin: 0 auto;
}
.footer-brand {
    font-weight: 700;
    font-size: 14px;
    color: var(--apple-text);
    letter-spacing: -0.01em;
}
.footer-text {
    font-size: 12px;
    color: var(--apple-text-secondary);
    line-height: 1.6;
    margin-top: 8px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
}
.footer-links a {
    color: var(--mc-cyan);
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
}
.footer-links a:hover {
    text-decoration: underline;
}
