*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: rgb(255, 243, 240);
    --color-surface: #ffffff;
    --color-border: rgba(130, 0, 32, 0.18);
    --color-text: #1a1a1a;
    --color-text-secondary: rgba(90, 0, 22, 0.82);
    --color-primary: rgb(130, 0, 32);
    --color-primary-hover: rgb(160, 10, 45);
    --color-accent: rgb(255, 138, 122);
    --color-accent-hover: rgb(255, 160, 148);
    --color-danger: #e74c3c;
    --color-success: #27ae60;
    --color-winner: rgba(39, 174, 96, 0.12);
    --color-loser: rgba(231, 76, 60, 0.14);
    --color-gold: rgb(130, 0, 32);
    --color-silver: #7a7a7a;
    --color-bronze: #d4740b;
    --color-overlay: rgba(130, 0, 32, 0.06);
    --color-topbar-bg: rgb(130, 0, 32);
    --color-logo: rgb(255, 138, 122);
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(130, 0, 32, 0.08);
    --shadow-card: 0 0 0 1px rgba(130, 0, 32, 0.08), 0 2px 8px rgba(130, 0, 32, 0.10);
    --shadow-lg: 0 4px 20px rgba(130, 0, 32, 0.15);
    --font-heading: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
    --color-bg: rgb(20, 0, 5);
    --color-surface: rgb(30, 2, 8);
    --color-border: rgba(255, 138, 122, 0.15);
    --color-text: #f0e8e6;
    --color-text-secondary: rgba(255, 200, 190, 0.5);
    --color-primary: rgb(255, 138, 122);
    --color-primary-hover: rgb(255, 170, 158);
    --color-accent: rgb(255, 138, 122);
    --color-accent-hover: rgb(255, 170, 158);
    --color-danger: #e74c3c;
    --color-success: #27ae60;
    --color-winner: rgba(39, 174, 96, 0.18);
    --color-loser: rgba(231, 76, 60, 0.20);
    --color-gold: rgb(255, 138, 122);
    --color-silver: #8a8a8a;
    --color-bronze: #e67e22;
    --color-overlay: rgba(255, 138, 122, 0.04);
    --color-topbar-bg: rgb(100, 0, 24);
    --color-logo: rgb(255, 138, 122);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 0 0 1px rgba(130, 0, 32, 0.3), 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.6);
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ===== TOP BAR ===== */
.topbar {
    background: var(--color-topbar-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--color-logo);
    letter-spacing: -0.5px;
}

.logo-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.slogan {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 200, 190, 0.6);
    font-style: italic;
    letter-spacing: 0.3px;
}

.topbar-nav {
    display: flex;
    gap: 14px;
    align-items: center;
}

.topbar-nav a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 200, 190, 0.75);
    transition: color 0.15s;
}

.topbar-nav a:hover {
    color: rgb(255, 210, 200);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    padding: 4px 8px;
    border-radius: 20px;
    color: rgba(255, 200, 190, 0.75);
    transition: all 0.15s;
    line-height: 1;
}

.theme-toggle:hover {
    color: rgb(255, 210, 200);
    background: rgba(255, 255, 255, 0.08);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 24px 40px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 8px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.15s;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-overlay);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}

.btn-danger:hover {
    opacity: 0.85;
}

.btn-small {
    padding: 5px 14px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 16px;
}

/* ===== HOME LAYOUT ===== */
.home-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.home-sidebar-left {
    flex: 0 0 260px;
    position: sticky;
    top: 82px;
}

.home-main {
    flex: 1;
    min-width: 0;
}

/* ===== FEED ===== */
.feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 14px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
    padding: 4px;
    padding-bottom: 40px;
}

.feed::-webkit-scrollbar {
    width: 6px;
}

.feed::-webkit-scrollbar-track {
    background: transparent;
}

.feed::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.feed-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-overlay);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feed-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.feed-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.feed-card.tall img {
    object-position: center;
}

.feed-card.span-2 {
    grid-column: span 2;
}

.feed-card.span-3 {
    grid-column: span 3;
}

.feed-card.tall {
    grid-row: span 2;
}

.survey-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.survey-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.survey-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--color-overlay);
    overflow: hidden;
    flex-shrink: 0;
}

.survey-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.survey-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-overlay) 25%, transparent 50%, var(--color-overlay) 75%);
}

.survey-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.survey-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.survey-card-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    flex: 1;
}

.survey-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-type {
    background: var(--color-overlay);
    color: var(--color-text-secondary);
}

.survey-card-count {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.survey-card-body .btn-primary {
    margin-top: auto;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-secondary);
    font-size: 16px;
    grid-column: 1 / -1;
}

/* ===== SIDEBAR ===== */
.sidebar-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.sidebar-card + .sidebar-card {
    margin-top: 16px;
}

.sidebar-card-link {
    display: block;
    transition: transform 0.15s, box-shadow 0.15s;
}

.sidebar-card-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== CATEGORY PANEL ===== */
.category-card {
    padding: 0;
    overflow: hidden;
}

.category-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.15s;
}

.category-toggle:hover {
    background: var(--color-overlay);
}

.category-toggle-text {
    font-family: var(--font-heading);
    font-size: 15px;
}

.category-chevron {
    font-size: 10px;
    transition: transform 0.2s;
    color: var(--color-text-secondary);
}

.category-card.open .category-chevron {
    transform: rotate(180deg);
}

.category-list {
    display: none;
    padding: 0 12px 12px;
}

.category-card.open .category-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-item {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all 0.15s;
}

.category-item:hover {
    background: var(--color-overlay);
    color: var(--color-text);
}

.category-active {
    background: var(--color-overlay);
    color: var(--color-primary);
    font-weight: 600;
}

.category-item-taken {
    margin-top: 6px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-text);
}

.create-panel {
    text-align: center;
}

.create-panel .btn-primary {
    margin-top: 4px;
}

/* ===== SURVEYS TAKEN FULL PAGE ===== */
.taken-page {
    max-width: 1000px;
    margin: 0 auto;
}

.taken-page-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.taken-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.taken-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.taken-card-header {
    display: block;
    padding: 18px 20px 14px;
    text-align: center;
}

.taken-card-title {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.taken-card-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 0 20px 20px;
}

.taken-card-cover {
    flex: 0 0 30%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-overlay);
    aspect-ratio: 16 / 11;
}

.taken-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.taken-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-overlay) 25%, transparent 50%, var(--color-overlay) 75%);
}

.taken-picks-col {
    flex: 0 0 30%;
    min-width: 0;
}

.taken-picks-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.taken-picks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.taken-pick-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.taken-pick-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-overlay);
    flex-shrink: 0;
}

.taken-pick-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.taken-pick-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taken-pick-rating {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    flex-shrink: 0;
}

.taken-pick-empty {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-style: italic;
}

.taken-empty {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 16px;
    padding: 60px 0;
}

.taken-explore {
    text-align: center;
    padding: 32px 0 16px;
}

.badge-category {
    background: var(--color-overlay);
    color: var(--color-text-secondary);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.sidebar-subtitle {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 14px;
}

.sidebar-rankings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-ranking-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--color-overlay);
    font-size: 14px;
    transition: background 0.15s, transform 0.15s;
}

.sidebar-ranking-row:hover {
    background: rgba(130, 0, 32, 0.10);
    transform: translateX(3px);
}

.ranking-tier-1 {
    background: rgba(241, 196, 15, 0.18);
    border: 1px solid rgba(241, 196, 15, 0.35);
}

.ranking-tier-1:hover { background: rgba(241, 196, 15, 0.30); }

.ranking-tier-2 {
    background: rgba(241, 196, 15, 0.10);
    border: 1px solid rgba(241, 196, 15, 0.18);
}

.ranking-tier-2:hover { background: rgba(241, 196, 15, 0.18); }

.ranking-tier-3 {
    background: rgba(241, 196, 15, 0.05);
    border: 1px solid rgba(241, 196, 15, 0.10);
}

.ranking-tier-3:hover { background: rgba(241, 196, 15, 0.10); }

.sidebar-rank-num {
    font-weight: 800;
    font-size: 15px;
    min-width: 26px;
    color: var(--color-text-secondary);
}

.ranking-tier-1 .sidebar-rank-num { color: var(--color-gold); }
.ranking-tier-2 .sidebar-rank-num { color: #c4a00b; }
.ranking-tier-3 .sidebar-rank-num { color: #8a7a30; }

.sidebar-rank-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-overlay);
    flex-shrink: 0;
}

.sidebar-rank-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-rank-img-empty {
    background: linear-gradient(135deg, var(--color-overlay) 25%, transparent 50%, var(--color-overlay) 75%);
}

.sidebar-rank-name {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-rank-pct {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 14px;
}

/* ===== SWIPE SURVEY ===== */
.swipe-container {
    max-width: 1000px;
    margin: 0 auto;
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
}

.swipe-header {
    text-align: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.swipe-question {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.swipe-prompt {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.progress-bar {
    height: 3px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.progress-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.swipe-cards {
    display: flex;
    gap: 14px;
    align-items: stretch;
    justify-content: center;
    flex: 1;
    min-height: 0;
}

.swipe-card {
    flex: 1;
    max-width: 460px;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
    user-select: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.swipe-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-success);
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.swipe-check.show {
    opacity: 1;
    transform: scale(1);
}

.swipe-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.swipe-card.winner {
    border-color: var(--color-success);
    background: var(--color-winner);
}

.swipe-card.loser {
    border-color: var(--color-danger);
    background: var(--color-loser);
    opacity: 0.75;
}

.swipe-card-img {
    flex: 1;
    min-height: 0;
    background: var(--color-overlay);
    overflow: hidden;
    position: relative;
}

.swipe-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.swipe-card-img-placeholder {
    display: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-overlay) 25%, transparent 50%, var(--color-overlay) 75%);
    align-items: center;
    justify-content: center;
}

.swipe-card-name {
    font-size: 17px;
    font-weight: 700;
    padding: 12px 14px 2px;
    text-align: center;
    flex-shrink: 0;
}

.swipe-card-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 2px 14px 6px;
    text-align: center;
    flex-shrink: 0;
}

.swipe-card-score {
    font-size: 14px;
    font-weight: 600;
    padding: 0 14px 12px;
    text-align: center;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.swipe-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-text-secondary);
    padding: 0 2px;
    align-self: center;
    flex-shrink: 0;
}

/* ===== MULTIPLE CHOICE ===== */
.mc-container {
    max-width: 800px;
    margin: 0 auto;
}

.mc-question {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.mc-prompt {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 20px;
}

.mc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.mc-option { cursor: pointer; }

.mc-option input[type="radio"] { display: none; }

.mc-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}

.mc-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.mc-option input[type="radio"]:checked + .mc-card {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(130, 0, 32, 0.20);
}

.mc-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--color-overlay);
    overflow: hidden;
}

.mc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-card-name {
    font-size: 15px;
    font-weight: 600;
    padding: 10px 12px 2px;
    text-align: center;
}

.mc-card-desc {
    font-size: 12px;
    color: var(--color-text-secondary);
    padding: 0 12px 12px;
    text-align: center;
}

/* ===== RESULT PAGE ===== */
.result-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.result-thank-you {
    margin-bottom: 32px;
}

.result-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-success);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.result-thank-you h1 {
    font-size: 20px;
    font-weight: 600;
}

.result-heading {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
}

.picks-section {
    margin-bottom: 32px;
}

.picks-grid {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pick-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    width: 180px;
    box-shadow: var(--shadow-card);
}

.pick-card-img {
    width: 100%;
    background: var(--color-overlay);
    overflow: hidden;
    max-height: 240px;
}

.pick-card-img img {
    width: 100%;
    height: auto;
    display: block;
}

.pick-card-name {
    font-size: 15px;
    font-weight: 600;
    padding: 12px 12px 14px;
    text-align: center;
}

.overall-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.overall-grid::after {
    content: "";
    flex: auto;
}

.overall-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    width: 120px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s;
}

.overall-card:hover {
    transform: translateY(-2px);
}

.overall-card:nth-child(1) { border: 2px solid var(--color-gold); }
.overall-card:nth-child(2) { border: 2px solid var(--color-silver); }
.overall-card:nth-child(3) { border: 2px solid var(--color-bronze); }

.overall-card-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--color-overlay);
    overflow: hidden;
}

.overall-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overall-card-name {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 8px 2px;
    text-align: center;
    line-height: 1.2;
}

.overall-card-rating {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-accent);
    padding: 0 8px 10px;
    text-align: center;
}

.result-no-votes {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.result-actions {
    margin-top: 16px;
}

/* ===== ADMIN ===== */
.admin-login {
    max-width: 380px;
    margin: 60px auto;
    text-align: center;
}

.admin-login h1 {
    margin-bottom: 20px;
    font-size: 22px;
}

.admin-form {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 14px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.15s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-surface);
}

textarea.form-input { resize: vertical; }

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238e8e8e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-error {
    color: var(--color-danger);
    font-size: 13px;
    margin-bottom: 12px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group { flex: 1; }

.form-section {
    margin-top: 20px;
    margin-bottom: 16px;
}

.form-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.option-entry {
    margin-bottom: 12px;
    padding: 14px;
    background: var(--color-overlay);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.option-fields {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option-fields .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.admin-dashboard {
    max-width: 900px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header h1 { font-size: 22px; }

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-table {
    width: 100%;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.admin-table th,
.admin-table td {
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
}

.admin-table th {
    background: var(--color-overlay);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-row-actions {
    display: flex;
    gap: 6px;
}

.admin-create {
    max-width: 700px;
    margin: 0 auto;
}

.admin-create h1 {
    margin-bottom: 20px;
    font-size: 22px;
}

.current-image {
    margin-bottom: 8px;
}

.image-hint {
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* ===== CREATE SURVEY CONTACT ===== */
.create-contact {
    max-width: 480px;
    margin: 60px auto;
    text-align: center;
}

.create-contact h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
}

.create-contact p {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.create-contact .btn {
    margin-top: 8px;
    font-size: 16px;
    padding: 12px 28px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .home-layout { flex-direction: column; }
    .home-sidebar-left { flex: 1 1 auto; position: static; width: 100%; }
    .home-main { flex: 1 1 auto; }
}

@media (max-width: 700px) {
    .feed { grid-template-columns: 1fr; }

@media (max-width: 700px) {
    .swipe-cards {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .swipe-card {
        max-width: 100%;
        width: 100%;
        min-height: 0;
    }
    .swipe-card-img {
        height: 220px;
        flex: none;
    }
    .swipe-vs { padding: 4px 0; font-size: 11px; }
}

@media (max-width: 600px) {
    .topbar-inner { padding: 0 16px; height: 48px; }
    .container { padding: 16px 16px 32px; }
    .feed { grid-template-columns: 1fr; }
    .mc-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .option-fields { flex-direction: column; }
    .option-fields .form-group { min-width: 100%; }
    .admin-header { flex-direction: column; align-items: flex-start; }
    .picks-grid { flex-direction: column; align-items: center; }
    .pick-card { width: 100%; max-width: 300px; }
    .overall-grid { gap: 8px; }
    .overall-card { width: 100px; }
}
