.hero-section {
    padding: 0 0 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.hero-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    box-shadow: var(--shadow);
    padding: 30px;
    height: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 14px;
    font-weight: 800;
}

.hero-text {
    max-width: 620px;
    color: var(--muted);
    margin-bottom: 22px;
}

.hero-search {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.search-input-wrap {
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 0 18px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    min-height: 58px;
}

.search-input-wrap input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
}

.search-icon {
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    text-align: center;
}

.stat-card strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-flyers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    height: 100%;
}

.flyer-card {
    position: relative;
    min-height: 250px;
    border-radius: 24px;
    overflow: hidden;
}

.flyer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flyer-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
    color: #fff;
}

.flyer-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Popup */
.popup-ad-shell {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-ad-shell.active {
    display: flex;
}

.popup-ad-card {
    position: relative;
    width: min(640px, 100%);
    background: var(--surface);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.popup-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    cursor: pointer;
    z-index: 5;
}

.popup-countdown {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    z-index: 5;
    font-size: 0.85rem;
}

.popup-media img,
.popup-media video {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.popup-content {
    padding: 22px;
}

.popup-content h3 {
    margin-bottom: 8px;
    font-size: 1.9rem;
}

.popup-content p {
    color: var(--muted);
    margin-bottom: 18px;
}