/*
 * App Shell — shared mobile-first layout system
 * -----------------------------------------------
 * Extracted from Home.razor so the same "app shell" look (header + tab bar,
 * hero card, quick-action grid, promo cards, service list, bottom nav)
 * can be reused on other pages.
 *
 * Usage: wrap page markup in <div class="app-shell"> ... </div> and compose
 * it from the section classes below. See SKILL.md next to this file for a
 * full guide and copy-paste examples.
 */

:root {
    --app-shell-blue: #0866FF;
    --app-shell-blue-dark: #0756D6;
    --app-shell-orange: #E1306C;
    --app-shell-orange-dark: #833AB4;
    --app-shell-instagram-gradient: linear-gradient(135deg, #833AB4 0%, #E1306C 55%, #FCAF45 100%);
    --app-shell-yellow: #B58100;
    --app-shell-red: #E41E3F;
    --app-shell-line: #CED0D4;
    --app-shell-text: #1C1E21;
    --app-shell-muted: #65676B;
    --app-shell-surface: #FFFFFF;
    --app-shell-background: #F0F2F5;
    --app-shell-blue-tint: #E7F3FF;
    --app-shell-warning-tint: #FFF4CC;
    --app-shell-error-tint: #FFE8EC;
}

/* ===== Shell & Header ===== */
.app-shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0 auto;
    background: transparent;
    color: var(--app-shell-text);
    box-shadow: none;
    /* Bottom-nav clearance is reserved globally by .app-main in MainLayout.razor,
       since <BottomNav /> is now shared across every authenticated page. */
}

.app-header {
    padding: 22px 20px 20px;
    color: #FFFFFF;
    background: var(--app-shell-blue-dark);
    border-radius: 0 0 16px 16px;
}

.header-top,
.profile-summary,
.header-actions,
.section-heading-row {
    display: flex;
    align-items: center;
}

.header-top,
.section-heading-row {
    justify-content: space-between;
}

.profile-summary { gap: 10px; }

.profile-avatar {
    background: var(--app-shell-instagram-gradient) !important;
    color: #FFFFFF !important;
    font-weight: 700;
}

.greeting { color: rgba(255, 255, 255, .9); font-size: 12px; line-height: 1.25; }
.profile-name { font-size: 15px; font-weight: 600; }

.header-actions { gap: 6px; }
.header-icon { color: white !important; background: rgba(255, 255, 255, .12); }

.account-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 18px;
    scrollbar-width: none;
}

.account-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .1);
    font-size: 13px;
    white-space: nowrap;
}

.account-tab.active { color: var(--app-shell-blue-dark); background: #FFFFFF; font-weight: 600; }

/* ===== Content Layout ===== */
.app-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 18px 18px 24px;
}

/* ===== Hero Card ===== */
.welcome-hero {
    position: relative;
    overflow: hidden;
    padding: 22px;
    color: #FFFFFF;
    border-radius: 16px;
    background: var(--app-shell-blue-dark);
    box-shadow: 0 2px 8px rgba(0, 122, 255, .14);
}

.welcome-hero::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    right: -35px;
    bottom: -45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.hero-label { color: rgba(255, 255, 255, .78); font-size: 13px; }
.hero-title { margin-top: 4px; font-size: 22px; font-weight: 700; }
.hero-subtitle { margin-top: 4px; color: rgba(255, 255, 255, .86); font-size: 12.5px; }

.hero-button {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    color: #000000 !important;
    background: #FFFFFF !important;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

/* ===== Section Heading ===== */
.section-heading { padding: 0 3px; color: var(--app-shell-text); font-size: 15.5px; font-weight: 600; }
.section-link { color: var(--app-shell-muted); font-size: 12px; font-weight: 500; }

/* ===== Quick Action Grid ===== */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 6px;
    margin-top: 14px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 110px;
    padding: 0;
    color: inherit;
    border: 1px solid var(--app-shell-line);
    border-radius: 16px;
    background: var(--app-shell-surface);
    box-shadow: var(--app-shadow-card);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.quick-icon.indigo,
.quick-icon.teal,
.quick-icon.yellow,
.quick-icon.coral { color: var(--app-shell-blue-dark); background: var(--app-shell-blue-tint); }

.quick-label { color: var(--app-shell-text); font-size: 11.5px; line-height: 1.25; text-align: center; }

/* ===== Promo Cards ===== */
.promo-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }

.promo-card {
    display: flex;
    flex: 0 0 210px;
    flex-direction: column;
    min-height: 94px;
    justify-content: center;
    padding: 14px;
    color: white;
    border-radius: 16px;
    box-shadow: var(--app-shadow-card);
}

.promo-card .mud-typography { color: white; }
.promo-card .mud-typography:last-child { opacity: .86; }
.promo-primary,
.promo-secondary { background: var(--app-shell-blue-dark); }

/* ===== Service List ===== */
.service-list { margin-top: 12px; }

.service-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 14px;
    color: inherit;
    text-align: left;
    border: 1px solid var(--app-shell-line);
    border-radius: 16px;
    background: white;
    box-shadow: var(--app-shadow-card);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

@media (hover: hover) {
    .quick-action:hover,
    .service-card:hover,
    .home-news-item:hover,
    .camp-item-card:hover,
    .camp-prize-card:hover,
    .camp-round-card:hover,
    .camp-winner-card:hover,
    .camp-participant-card:hover {
        border-color: #B7D3F5;
        box-shadow: var(--app-shadow-card-raised);
        transform: translateY(-2px);
    }
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: var(--app-shell-blue-dark);
    border-radius: 12px;
    background: var(--app-shell-blue-tint);
}

.activity-icon-primary {
    color: var(--app-shell-blue);
    background: var(--app-shell-blue-tint);
}

.activity-icon-secondary {
    color: var(--app-shell-orange-dark);
    background: var(--app-shell-error-tint);
}

.service-text { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.service-title { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-sub { margin-top: 2px; color: var(--app-shell-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-amount { flex-shrink: 0; color: var(--app-shell-blue-dark); font-size: 13px; font-weight: 700; white-space: nowrap; }
.service-chevron { flex-shrink: 0; color: var(--app-shell-muted); }

@media (max-width: 600px) {
    .quick-grid {
        gap: 12px 3px;
    }

    .quick-action {
        justify-content: center;
        min-width: 0;
        min-height: 90px;
        gap: 5px;
        padding: 0;
    }

    .quick-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .page-frame .quick-label,
    .quick-label {
        width: 100%;
        max-width: 64px;
        min-height: 2.4em;
        overflow: hidden;
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 0.5rem !important;
        line-height: 1.1;
        text-align: center;
    }

    .service-card {
        gap: 8px;
        padding: 9px 10px;
    }

    .service-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .service-icon .mud-icon-root { font-size: 1.1rem; }
    .service-title { font-size: 0.8rem; }
    .service-sub { font-size: 0.68rem; }
    .service-amount { font-size: 0.78rem; }
    .service-chevron { display: none; }
}

/* ===== Alerts ===== */
.email-warning-alert { cursor: pointer; border-radius: 14px; }
.email-warning-alert .mud-alert-message { width: 100%; }

/* ===== Admin Grid ===== */
.admin-section { padding-top: 4px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    z-index: 20;
    bottom: 0;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 430px;
    padding: 10px 6px;
    border-top: 1px solid var(--app-shell-line);
    background: white;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.10);
    transform: translateX(-50%);
}

.bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 56px;
    padding: 0;
    color: var(--app-shell-muted);
    border: 0;
    background: transparent;
    font-size: 10.5px;
    cursor: pointer;
}

.bottom-item.active { color: var(--app-shell-blue-dark); }

.scan-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-top: -28px;
    color: #FFFFFF;
    border: 4px solid var(--app-shell-background);
    border-radius: 50%;
    background: var(--app-shell-blue-dark);
    box-shadow: 0 3px 10px rgba(0, 122, 255, .2);
    cursor: pointer;
}

/* ===== Campaign Admin (CampaignConnect admin pages/dialogs) ===== */
.camp-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.camp-page-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--app-shell-blue-dark);
}

.camp-page-sub { margin-top: 2px; color: var(--app-shell-muted); font-size: 12.5px; }
.camp-page-actions { display: flex; align-items: center; gap: 8px; }

.camp-empty-card,
.camp-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 16px;
    color: var(--app-shell-muted);
    text-align: center;
    border: 1px dashed var(--app-shell-line);
    border-radius: 16px;
    background: white;
    box-shadow: var(--app-shadow-card);
}

/* Statistic grid (draw page) */
.camp-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.camp-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid var(--app-shell-line);
    border-radius: 16px;
    background: white;
    box-shadow: var(--app-shadow-card);
}

.camp-stat-value { font-size: 1.2rem; font-weight: 700; color: var(--app-shell-text); }
.camp-stat-label { color: var(--app-shell-muted); font-size: 11.5px; }

/* Campaign list cards (CampaignManagement) */
.camp-list-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.camp-item-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--app-shell-line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--app-shadow-card);
}

.camp-item-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    aspect-ratio: 1 / 1;
    margin: 8px auto 14px;
    overflow: hidden;
    color: var(--app-shell-blue-dark);
    border-radius: 14px;
    background: var(--app-shell-blue-tint);
}

.camp-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camp-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.camp-item-name { min-width: 0; overflow-wrap: anywhere; font-size: 0.98rem; font-weight: 700; color: var(--app-shell-text); }
.camp-item-desc { margin-top: 3px; overflow-wrap: anywhere; color: var(--app-shell-muted); font-size: 0.78rem; }

.camp-status-chip {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.camp-status-chip.status-active { color: var(--app-shell-blue-dark); background: var(--app-shell-blue-tint); }
.camp-status-chip.status-paused { color: #795400; background: var(--app-shell-warning-tint); }

body .mud-typography.orange-text-black,
body .mud-link.orange-text-black,
body .mud-link.orange-text-black:hover,
body .mud-button-root.orange-text-black .mud-button-label {
    color: #000000 !important;
}
.camp-status-chip.status-closed { color: var(--app-shell-red); background: var(--app-shell-error-tint); }

.camp-item-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    margin-top: 12px;
}

.camp-meta { min-width: 0; }
.camp-meta-label { display: block; color: var(--app-shell-muted); font-size: 0.66rem; }
.camp-meta-value { display: block; overflow-wrap: anywhere; font-size: 0.8rem; font-weight: 600; color: var(--app-shell-text); }

.camp-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--app-shell-line);
}

.camp-item-actions .mud-button-root { flex: 1; }
.camp-item-actions .camp-more-menu { flex: 0 0 auto; }

/* Details page/dialog */
.camp-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.camp-details-hero {
    position: relative;
    overflow: hidden;
    padding: 22px;
    color: white;
    border-radius: 18px;
    background: var(--app-shell-blue-dark);
}

.camp-details-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.camp-details-title { margin-top: 10px; overflow-wrap: anywhere; font-size: 1.15rem; font-weight: 700; }
.camp-details-desc { margin-top: 4px; overflow-wrap: anywhere; color: rgba(255, 255, 255, .9); font-size: 0.82rem; }

.camp-summary-list {
    width: 100%;
}

.camp-summary-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.camp-summary-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--app-shell-line);
    border-radius: 14px;
    background: white;
}

.camp-summary-label { display: block; color: var(--app-shell-muted); font-size: 0.68rem; }
.camp-summary-value { display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: 0.86rem; font-weight: 700; color: var(--app-shell-text); }

.camp-details-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 2px;
}

.camp-details-actions .mud-button-root {
    width: 100%;
    min-width: 0;
}

/* Prize grid (CampaignPrizeManagement) */
.camp-prize-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.camp-prize-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--app-shell-line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--app-shadow-card);
}

.camp-prize-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    overflow: hidden;
    background: #F5FAFD;
}

.camp-prize-media img { width: 100%; height: 100%; object-fit: cover; }

.camp-prize-body { flex: 1; padding: 12px 14px; }
.camp-prize-name { overflow-wrap: anywhere; font-size: 0.94rem; font-weight: 700; color: var(--app-shell-text); }
.camp-prize-desc { margin-top: 3px; overflow-wrap: anywhere; color: var(--app-shell-muted); font-size: 0.78rem; }

.camp-prize-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--app-shell-line);
    font-size: 0.76rem;
}

.camp-prize-actions {
    display: flex;
    gap: 8px;
    padding: 0 14px 14px;
}

.camp-prize-actions .mud-button-root { flex: 1; }

/* Draw round cards (CampaignDrawPage) */
.camp-round-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.camp-round-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--app-shell-line);
    border-radius: 16px;
    background: white;
    box-shadow: var(--app-shadow-card);
}

.camp-round-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.camp-round-name { overflow-wrap: anywhere; font-size: 0.9rem; font-weight: 700; color: var(--app-shell-text); }
.camp-round-drawn-at { margin-top: 2px; color: var(--app-shell-muted); font-size: 0.72rem; }

.camp-round-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 10px;
    color: var(--app-shell-muted);
    font-size: 0.76rem;
}

.camp-round-actions { margin-top: 12px; }
.camp-round-actions .mud-button-root { width: 100%; }

/* Prize allocation rows inside draw dialog */
.camp-allocation-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--app-shell-line);
    border-radius: 14px;
    background: white;
    box-shadow: var(--app-shadow-card);
}

.camp-allocation-info { min-width: 0; }
.camp-allocation-name { overflow-wrap: anywhere; font-size: 0.85rem; font-weight: 700; color: var(--app-shell-text); }
.camp-allocation-sub { color: var(--app-shell-muted); font-size: 0.72rem; }
.camp-allocation-input { flex-shrink: 0; width: 110px; }

/* Winner cards (CampaignWinners) */
.camp-winner-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.camp-winner-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--app-shell-line);
    border-radius: 14px;
    background: white;
    box-shadow: var(--app-shadow-card);
}

.camp-winner-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.camp-winner-prize { overflow-wrap: anywhere; font-size: 0.88rem; font-weight: 700; color: var(--app-shell-text); }
.camp-winner-rank { flex-shrink: 0; padding: 3px 9px; color: var(--app-shell-blue-dark); border-radius: 999px; background: var(--app-shell-blue-tint); font-size: 0.68rem; font-weight: 700; }
.camp-winner-member { margin-top: 4px; overflow-wrap: anywhere; color: var(--app-shell-text); font-size: 0.82rem; }

.camp-winner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 6px;
    color: var(--app-shell-muted);
    font-size: 0.72rem;
}

.camp-winner-status { display: flex; gap: 8px; margin-top: 10px; }

.camp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
}

.camp-status-badge.on { color: var(--app-shell-blue-dark); background: var(--app-shell-blue-tint); }
.camp-status-badge.off { color: var(--app-shell-muted); background: #E4E6EB; }

/* Participant cards (participants dialog) */
.camp-participant-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.camp-participant-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--app-shell-line);
    border-radius: 14px;
    background: white;
    box-shadow: var(--app-shadow-card);
}

.camp-participant-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.camp-participant-name { overflow-wrap: anywhere; font-size: 0.86rem; font-weight: 700; color: var(--app-shell-text); }
.camp-participant-entries { flex-shrink: 0; padding: 3px 9px; color: var(--app-shell-blue-dark); border-radius: 999px; background: var(--app-shell-blue-tint); font-size: 0.68rem; font-weight: 700; }

.camp-participant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 6px;
    color: var(--app-shell-muted);
    font-size: 0.72rem;
}

/* Campaign form (CampaignForm shared component) */
.camp-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.camp-form-section {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--app-shell-line);
    border-radius: 16px;
    background: white;
    box-shadow: var(--app-shadow-card);
}

.camp-form-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.camp-form-heading .service-sub { white-space: normal; }

.camp-field-grid,
.camp-date-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px 12px;
}

.camp-field-wide { grid-column: 1 / -1; }

.camp-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--app-shell-line);
}

.camp-form-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

@media (min-width: 600px) {
    .camp-item-meta-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .camp-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .camp-date-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .camp-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .camp-prize-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .camp-details-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .camp-round-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .camp-winner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .camp-participant-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .camp-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .camp-form-wide { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
    .camp-list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .camp-prize-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Keep dialogs constrained to viewport */
.camp-dialog .mud-dialog-content {
    max-height: 70vh;
    overflow-y: auto;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .app-content {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
        gap: 28px;
        padding: 28px 5vw 36px;
    }

    .app-content.app-content-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-content.app-content-1col { grid-template-columns: minmax(0, 1fr); }

    .app-content-span-all,
    .welcome-hero,
    .email-warning-alert {
        grid-column: 1 / -1;
    }

    .promo-row {
        min-width: 0;
        width: 100%;
        gap: 16px;
    }

    .quick-grid { gap: 18px 12px; }

    .admin-section {
        grid-column: 1 / -1;
    }

    .admin-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 12px;
    }

    .bottom-nav { max-width: none; }
}

@media (min-width: 431px) {
    .app-shell { min-height: calc(100vh - 1px); }
}

@media (prefers-reduced-motion: reduce) {
    .app-shell * { scroll-behavior: auto !important; }
    .quick-action,
    .service-card { transition: none; }

    .quick-action:hover,
    .service-card:hover,
    .home-news-item:hover,
    .camp-item-card:hover,
    .camp-prize-card:hover,
    .camp-round-card:hover,
    .camp-winner-card:hover,
    .camp-participant-card:hover { transform: none; }
}
