:root {
    --primary: #6366f1;
    --primary-color: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --accent-red: #ef4444;
    --accent-red-soft: rgba(239, 68, 68, 0.18);
    --bg-primary: #0a0e27;
    --bg-secondary: #151b3d;
    --background: #0a0a0f;
    --surface: #151520;
    --surface-glass: rgba(21, 21, 32, 0.78);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #7b7f9a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(102, 126, 234, 0.45);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-brand: linear-gradient(135deg, #667eea 0%, #764ba2 55%, #ef4444 100%);
    --shadow-3d: 0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 12px 40px rgba(99, 102, 241, 0.28);
    --shadow-brand: 0 8px 28px rgba(239, 68, 68, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --activity: #f97316;
    --gathering: #22c55e;
    --crafting: #38bdf8;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ambient background */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    animation: floatOrb 18s infinite ease-in-out;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: var(--gradient-1);
    top: -120px;
    left: -100px;
}

.orb-2 {
    width: 360px;
    height: 360px;
    background: var(--gradient-2);
    bottom: 10%;
    right: -80px;
    animation-delay: 6s;
}

.orb-3 {
    width: 280px;
    height: 280px;
    background: var(--gradient-3);
    top: 45%;
    left: 40%;
    animation-delay: 12s;
    opacity: 0.2;
}

.orb-4 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.55) 0%, transparent 70%);
    top: 18%;
    right: 22%;
    animation-delay: 9s;
    opacity: 0.22;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

/* Navbar */
.navbar-3d,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar-3d.scrolled,
.admin-header {
    background: rgba(10, 14, 39, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-wrapper,
.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Brand logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    flex-shrink: 0;
}

.brand-logo:hover {
    transform: scale(1.02);
    text-decoration: none;
}

.brand-logo__img {
    height: 46px;
    width: auto;
    max-width: 148px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--shadow-brand);
    background: #000;
    padding: 2px 6px;
}

.brand-logo--admin .brand-logo__img {
    height: 40px;
    max-width: 128px;
}

.brand-logo__divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(102, 126, 234, 0.45), rgba(239, 68, 68, 0.35), transparent);
    flex-shrink: 0;
}

.brand-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-logo__text strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo__text small {
    font-size: 0.68rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-menu,
.admin-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-link,
.admin-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active,
.admin-nav a:hover {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.12);
}

.nav-admin { color: #c4b5fd !important; }
.nav-external { color: #93c5fd !important; }
.nav-logout { color: #fca5a5 !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Layout */
.page-layout {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1rem;
}

body.has-ads .site-main {
    flex: 1;
    min-width: 0;
    max-width: 1140px;
}

body.has-ads .site-main .container {
    max-width: none;
    margin: 0;
    padding: 0 0.25rem;
}

.ad-sidebar {
    width: 160px;
    flex-shrink: 0;
    position: sticky;
    top: 6rem;
    align-self: flex-start;
}

.ad-slot { display: flex; justify-content: center; width: 100%; border-radius: var(--radius-sm); overflow: hidden; }

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.08);
    border: 1px dashed rgba(102, 126, 234, 0.35);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 0.5rem;
}

body.ad-w-300 .ad-sidebar { width: 300px; }

@media (max-width: 1279px) {
    body.has-ads .ad-sidebar { display: none; }
    body.has-ads .page-layout { display: block; max-width: 1140px; }
    body.has-ads .site-main { max-width: none; }
    body.has-ads .site-main .container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
}

/* Main */
.site-main,
.admin-main {
    padding: 2rem 0 4rem;
}

/* Farm summary */
.farm-summary {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.14), rgba(239, 68, 68, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-3d);
}

.farm-summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--gradient-1);
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.farm-summary-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.farm-summary-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Smart search */
.smart-search-hint {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.last-seen-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(102, 126, 234, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
}

.last-seen-label {
    font-weight: 700;
    color: #86efac;
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.last-seen-box p {
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    line-height: 1.55;
}

.results-count {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

/* Bonus card link */
.bonus-card-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bonus-card-link:hover {
    color: #c4b5fd;
    text-decoration: none;
}

.bonus-detail-btn {
    margin-top: 0.85rem;
}

/* Bonus detail page */
.bonus-detail {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-3d);
    max-width: 720px;
}

.bonus-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.bonus-detail-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bonus-detail-effects {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e7ff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bonus-detail-desc {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.bonus-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-weight: 600;
    color: var(--text-primary);
}

.share-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.nav-lang {
    color: #fbbf24 !important;
}

/* Page hero */
.page-hero {
    margin-bottom: 2rem;
    padding: 1.5rem 0 0.5rem;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.14), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.28);
    color: #c4b5fd;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.page-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.page-hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 640px;
    margin-bottom: 1.25rem;
}

.page-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-pill {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-3d);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-pill:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}

.stat-pill .stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-pill .stat-label {
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Section */
.section-block { margin-bottom: 2.5rem; }

.section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.section-title i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(102, 126, 234, 0.15);
    color: #a5b4fc;
    font-size: 1rem;
}

.section-title--activity i { background: rgba(249, 115, 22, 0.15); color: #fdba74; }
.section-title--gathering i { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.section-title--crafting i { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }

/* Bonus cards */
.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.bonus-card {
    position: relative;
    overflow: hidden;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow-3d);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0.85;
}

.bonus-card--activity::before { background: linear-gradient(90deg, #f97316, #fb923c); }
.bonus-card--gathering::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.bonus-card--crafting::before { background: linear-gradient(90deg, #38bdf8, #60a5fa); }

.bonus-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.bonus-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bonus-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.bonus-effects {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 600;
    color: #e0e7ff;
    margin-bottom: 0.85rem;
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-sm);
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.bonus-meta {
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.bonus-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.bonus-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.bonus-timer--active {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.2);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.badge-activity { background: rgba(249, 115, 22, 0.15); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.2); }
.badge-gathering { background: rgba(34, 197, 94, 0.15); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.2); }
.badge-crafting { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.2); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border: 1px dashed rgba(102, 126, 234, 0.25);
    border-radius: var(--radius);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p { color: var(--text-secondary); }

/* Filter / calendar */
.filter-panel,
.calendar-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-3d);
}

.filter-bar,
.calendar-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.calendar-nav {
    justify-content: space-between;
    margin-bottom: 0;
}

.calendar-nav h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-bar input,
.filter-bar select,
.filter-bar input[type="date"] {
    padding: 0.7rem 1rem;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    min-width: 180px;
    transition: border-color 0.2s ease;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Table */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-3d);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.9rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: rgba(102, 126, 234, 0.08);
    color: #c4b5fd;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(102, 126, 234, 0.06); }

.status-active { color: #86efac; font-weight: 600; }
.status-ended { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary,
.btn-primary-3d {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover,
.btn-primary-3d:hover {
    box-shadow: 0 14px 36px rgba(99, 102, 241, 0.5);
}

.btn-secondary,
.btn-outline-3d {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover,
.btn-outline-3d:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; border-radius: 10px; }

/* Alerts */
.alert {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.25); color: #86efac; }
.alert-error { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.25); color: #fca5a5; }
.alert-info { background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.25); color: #7dd3fc; }

/* Forms */
.form-card {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-3d);
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: #c4b5fd;
    font-size: 0.88rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    background: rgba(10, 14, 39, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.55);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.form-group small { display: block; margin-top: 0.35rem; color: var(--text-muted); font-size: 0.8rem; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] { width: auto; accent-color: var(--primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* Login */
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-3d);
}

.login-card h1 {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

.login-logo-img {
    height: 56px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 10px;
    background: #000;
    padding: 4px 10px;
    box-shadow: var(--shadow-brand);
}

/* Admin stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    text-align: center;
    box-shadow: var(--shadow-3d);
}

.stat-card .stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label { color: var(--text-secondary); font-size: 0.88rem; margin-top: 0.25rem; }

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.page-subtitle { color: var(--text-secondary); margin-bottom: 1.75rem; }

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(16px);
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 0 1.5rem;
}

.footer-brand-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-brand-link:hover { opacity: 0.92; text-decoration: none; }

.footer-logo-img {
    height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 10px;
    background: #000;
    padding: 3px 8px;
    box-shadow: var(--shadow-brand);
    flex-shrink: 0;
}

.footer-logo-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p,
.footer-meta span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #c4b5fd;
    text-decoration: none;
}

.footer-bottom a:hover { color: #fca5a5; }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: #c4b5fd; }

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Temp ads */
.temp-ad {
    width: 160px;
    min-height: 600px;
    padding: 1rem 0.85rem;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-3d);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
}

.temp-ad-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c4b5fd;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.temp-ad-icon { font-size: 2rem; }
.temp-ad-title { font-size: 0.92rem; color: var(--text-primary); line-height: 1.35; margin: 0; font-weight: 700; }
.temp-ad-text, .temp-ad-note, .temp-ad-foot { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.45; margin: 0; }

.temp-ad-list { list-style: none; width: 100%; text-align: left; padding: 0; margin: 0; }
.temp-ad-list li { font-size: 0.72rem; color: var(--text-secondary); padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.temp-ad-list li::before { content: "✦ "; color: #a5b4fc; }

.temp-ad-box {
    width: 100%;
    padding: 0.65rem;
    background: rgba(102, 126, 234, 0.08);
    border: 1px dashed rgba(102, 126, 234, 0.25);
    border-radius: 10px;
}

.temp-ad-box strong { font-size: 0.72rem; color: #c4b5fd; word-break: break-word; }

.temp-ad-cta,
.temp-ad-link {
    display: block;
    width: 100%;
    padding: 0.55rem;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
}

.temp-ad-cta { background: var(--gradient-1); color: #fff; margin-top: auto; }
.temp-ad-cta-alt { background: transparent; color: #c4b5fd; border: 1px solid rgba(102, 126, 234, 0.35); }
.temp-ad-link { color: var(--text-muted); padding-top: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gradient-1); border-radius: 5px; }

/* Responsive */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 768px) {
    .brand-logo__text { display: none; }
    .brand-logo__divider { display: none; }
    .brand-logo__img { height: 40px; max-width: 130px; }

    .nav-toggle { display: flex; }

    .nav-menu {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        background: rgba(10, 14, 39, 0.96);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 0.75rem;
        display: none;
        box-shadow: var(--shadow-3d);
    }

    .nav-menu.open { display: flex; }

    .nav-link { border-radius: 10px; }

    .form-row { grid-template-columns: 1fr; }

    .calendar-nav { flex-direction: column; align-items: stretch; }
    .calendar-nav h2 { text-align: center; }
}
