@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   НУРМК — Школа сварки: Стили
   Тема: Ultra-Modern Glassmorphism
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #040914;
    --bg-secondary: #0a192f;
    --bg-gradient: linear-gradient(135deg, #022020 0%, #0a192f 40%, #011d33 70%, #022c22 100%);
    --bg-card: rgba(17, 34, 64, 0.6);
    --bg-card-hover: rgba(30, 58, 106, 0.8);
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --neon: #38bdf8;
    --neon-dim: #0284c7;
    --neon-glow: 0 0 20px rgba(56, 189, 248, 0.3), 0 0 40px rgba(56, 189, 248, 0.1);
    --neon-glow-sm: 0 0 10px rgba(56, 189, 248, 0.2);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(56, 189, 248, 0.4);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

@media (max-width: 992px) {
    html { font-size: 16px; }
}

body {
    font-family: var(--font);
    background: var(--bg-gradient) fixed;
    background-size: 300% 300%;
    animation: bgAnim 20s ease infinite;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 0;
}

@media (max-width: 992px) {
    body {
        animation: none !important; /* Disable CPU-heavy background animation on mobile */
        background-attachment: scroll !important; /* Fixed background kills FPS on Android */
    }
}

@keyframes bgAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.5;
}

body::before {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

body::after {
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    bottom: -300px;
    right: -200px;
    animation: pulseGlow 18s infinite alternate-reverse ease-in-out;
}

@media (max-width: 992px) {
    body::before, body::after {
        display: none !important; /* Remove heavy glow blobs on mobile */
    }
}

@keyframes pulseGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(50px, 30px) scale(1.1); opacity: 0.6; }
    100% { transform: translate(-30px, -20px) scale(0.9); opacity: 0.4; }
}

a {
    color: var(--neon);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--neon-dim);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--neon), var(--accent));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--neon-dim), var(--accent));
    transform: translateY(-3px) scale(1.02);
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.4);
}

.btn--glow {
    box-shadow: var(--neon-glow);
}

.btn--glow:hover {
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.5), 0 0 60px rgba(0, 230, 118, 0.3);
}

.btn--full {
    width: 100%;
}

.btn--danger {
    background: #ef5350;
    color: #fff;
}

.btn--danger:hover {
    background: #e53935;
}

.btn--small {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 25, 47, 1); /* Solid on mobile for speed */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition);
}

@media (min-width: 993px) {
    .header {
        background: rgba(10, 25, 47, 0.85); /* Semi-transparent only on Desktop */
    }
}

@media (max-width: 992px) {
    .header {
        backdrop-filter: blur(4px) !important; /* Reduce blur intensity for mobile GPUs */
        -webkit-backdrop-filter: blur(4px) !important;
    }
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.header__logo-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.6));
}

.header__logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header__logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header__nav {
    display: flex;
    gap: 0.5rem;
}

.header__link {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
    text-decoration: none;
}

.header__link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.header__link--active {
    color: var(--neon);
    background: rgba(0, 230, 118, 0.08);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.accessibility-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.accessibility-toggle:hover {
    color: var(--neon);
    border-color: var(--neon);
}

/* Burger Menu */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Main --- */
.main {
    padding-top: var(--header-height);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 0 3rem;
    background: transparent;
}

.hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__particles::before,
.hero__particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero__particles::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.hero__particles::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 58, 106, 0.4) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon);
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.95);
}

.hero__highlight {
    color: var(--neon);
    text-shadow: 0 0 30px rgba(0, 230, 118, 0.3);
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero__price {
    display: flex;
    flex-direction: column;
}

.hero__price-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero__price-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero__schedule {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero__schedule-icon {
    font-size: 1.25rem;
}

.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero__glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(59, 130, 246, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out, floatOrb 8s infinite ease-in-out;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.hero__icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero__icon-item {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
    animation: iconFloat 6s infinite ease-in-out;
}

.hero__icon-item:nth-child(2) {
    animation-delay: -2s;
}

.hero__icon-item:nth-child(3) {
    animation-delay: -4s;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero__icon-item:hover {
    border-color: rgba(0, 230, 118, 0.3);
    box-shadow: var(--neon-glow-sm);
    transform: translateY(-5px);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* Touch targets for mobile A11Y */
@media (max-width: 768px) {
    .btn, 
    .form__input, 
    .form__textarea, 
    .accessibility-toggle {
        min-height: 48px;
    }
}

/* --- Sections --- */
.section {
    padding: 6rem 0;
}

.page-hero {
    padding: 4rem 0 2rem;
    background: transparent;
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.85);
}

.section__desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section__empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
}

.text-accent {
    color: var(--neon);
}

/* --- About Cards --- */
.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.about__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about__card:nth-child(1) { animation-delay: 0.1s; }
.about__card:nth-child(2) { animation-delay: 0.2s; }
.about__card:nth-child(3) { animation-delay: 0.3s; }
.about__card:nth-child(4) { animation-delay: 0.4s; }

.about__card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--neon-glow-sm);
}

.about__card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about__card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.about__card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Results --- */
.results {
    background: transparent;
}

.results__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.results__item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    transition: all var(--transition);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.results__item:nth-child(1) { animation-delay: 0.1s; }
.results__item:nth-child(2) { animation-delay: 0.2s; }
.results__item:nth-child(3) { animation-delay: 0.3s; }
.results__item:nth-child(4) { animation-delay: 0.4s; }

.results__item:hover {
    border-color: var(--border-accent);
    background: rgba(0, 230, 118, 0.03);
}

.results__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 230, 118, 0.08);
    border-radius: 50%;
    border: 1px solid rgba(0, 230, 118, 0.15);
}

.results__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.results__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- News --- */
.news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.levels__card {
    background: rgba(9, 9, 11, 0.7); /* Darker backdrop for readability */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    height: 100%;
}

.news__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.news__card:nth-child(1) { animation-delay: 0.1s; }
.news__card:nth-child(2) { animation-delay: 0.2s; }
.news__card:nth-child(3) { animation-delay: 0.3s; }

.news__card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.news__card-date {
    font-size: 0.8rem;
    color: var(--neon);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.news__card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news__card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Schedule Page --- */
.schedule__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* --- Calendar --- */
.calendar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.calendar__title {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: capitalize;
}

.calendar__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.calendar__nav:hover {
    border-color: var(--neon);
    color: var(--neon);
}

.calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 0.5rem;
}

.calendar__weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0;
    text-transform: uppercase;
}

.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar__day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: var(--radius-sm);
    cursor: default;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.calendar__day-num {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.calendar__occupancy {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    opacity: 0.9;
}

.calendar__day--empty {
    background: transparent;
}

.calendar__day--default {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.calendar__day--open {
    background: rgba(0, 230, 118, 0.12);
    color: var(--neon);
    border-color: rgba(0, 230, 118, 0.2);
    cursor: pointer;
}

.calendar__day--open:hover {
    background: rgba(0, 230, 118, 0.25);
    box-shadow: var(--neon-glow-sm);
    transform: scale(1.05);
}

.calendar__day--warning {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.3);
    cursor: pointer;
}

.calendar__day--warning:hover {
    background: rgba(234, 179, 8, 0.25);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
    transform: scale(1.05);
}

.calendar__day--full {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    cursor: not-allowed;
}

.calendar__dot--warning {
    background: #eab308;
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.5);
}

.calendar__dot--full {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.calendar__day--closed {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
}

.calendar__day--selected {
    background: var(--neon) !important;
    color: #0a0a1a !important;
    font-weight: 700;
    box-shadow: var(--neon-glow);
}

.calendar__day--today {
    border-color: var(--accent-light);
}

.calendar__legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.calendar__legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.calendar__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.calendar__dot--open {
    background: var(--neon);
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.5);
}

.calendar__dot--closed {
    background: var(--text-muted);
}

/* --- Enrollment Form --- */
.enroll-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.enroll-form__placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.enroll-form__placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* --- Forms --- */
.form__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form__selected-date {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--neon);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form__group {
    margin-bottom: 1.25rem;
}

.form__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form__input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form__input:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
}

.form__input::placeholder {
    color: var(--text-muted);
}

.form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
    transition: all var(--transition);
    outline: none;
}

.form__textarea:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--neon);
    flex-shrink: 0;
}

.auth-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.auth-method {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.auth-method:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.auth-method__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-method__icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    transition: transform var(--transition);
    filter: grayscale(1) opacity(0.6);
}

.auth-method__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.auth-method__desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Checked State */
.auth-method__input:checked + .auth-method {
    background: rgba(0, 230, 118, 0.08);
    border-color: var(--neon);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.15);
}

.auth-method__input:checked + .auth-method .auth-method__icon {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

.auth-method__input:checked + .auth-method .auth-method__title {
    color: var(--neon);
}

.auth-method__input:checked + .auth-method::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 12px;
    color: var(--neon);
    font-size: 0.9rem;
    font-weight: 800;
}

@media (max-width: 480px) {
    .auth-methods {
        grid-template-columns: 1fr;
    }
}


.form__message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}

.form__message--success {
    display: block;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--neon);
}

.form__message--error {
    display: block;
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.2);
    color: #ef5350;
}

/* --- Survey Page --- */
.survey__layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .survey__layout {
        grid-template-columns: 1fr;
    }
}

.survey__block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Modern Choice Chips for Survey */
.choice-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.choice-chip {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.choice-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.choice-chip span {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.choice-chip:hover span {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-accent);
}

.choice-chip input:checked + span {
    background: var(--neon);
    color: var(--text-dark);
    border-color: var(--neon);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
    font-weight: 700;
}

/* Custom Styled Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 22px;
    width: 22px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    position: relative;
    transition: all var(--transition);
    flex-shrink: 0;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--border-accent);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--neon);
    border-color: var(--neon);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid var(--text-dark);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox a {
    color: var(--neon);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(0, 230, 118, 0.3);
}

.survey__block-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.survey__block-icon {
    font-size: 1.5rem;
}

/* --- Rating --- */
.rating {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem 0;
}

.rating__btn {
    font-size: 2.5rem;
    background: none;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    cursor: pointer;
    transition: all var(--transition);
    opacity: 0.5;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating__btn:hover {
    opacity: 0.8;
    transform: scale(1.15);
    border-color: var(--border-accent);
}

.rating__btn.active {
    opacity: 1;
    border-color: var(--neon);
    box-shadow: var(--neon-glow-sm);
    transform: scale(1.15);
}

/* --- Payment --- */
.payment {
    margin-bottom: 2rem;
}

.payment__info {
    margin-bottom: 1.5rem;
}

.payment__price {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.payment__price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon);
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

.payment__price-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.payment__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Upload Area --- */
.receipt-upload {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.receipt-upload__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.upload-area:hover,
.upload-area--dragover {
    border-color: var(--neon);
    background: rgba(0, 230, 118, 0.03);
}

.upload-area__icon {
    margin-bottom: 1rem;
}

.upload-area__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.upload-area__hint {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.upload-area__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-area__preview {
    position: relative;
    margin: 1rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.upload-area__preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
}

.upload-area__remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 83, 80, 0.9);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Footer --- */
.footer {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer__desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer__heading {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer__text--small {
    font-size: 0.8rem;
}

.footer__link {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--neon);
}

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Legal pages --- */
.legal {
    max-width: 800px;
    margin: 0 auto;
}

.legal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--neon);
}

.legal p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* --- 404 --- */
.error-page__code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--neon);
    text-shadow: var(--neon-glow);
    line-height: 1;
    margin-bottom: 1rem;
}

/* --- Alerts --- */
.alert {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert--error {
    background: rgba(239, 83, 80, 0.12);
    border: 1px solid rgba(239, 83, 80, 0.25);
    color: #ef5350;
}

.alert--success {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--neon);
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-gradient) fixed;
    background-size: 400% 400%;
    animation: gradientAnim 15s ease infinite;
}

.admin-login__card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
}

.admin-login__logo {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-login__logo h1 {
    font-size: 1.5rem;
    margin-top: 0.75rem;
}

.admin-login__logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Admin Layout */
.admin-body {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
    overflow-y: auto;
}

.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.admin-sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.admin-sidebar__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar__title {
    font-weight: 800;
    font-size: 1.2rem;
}

.admin-sidebar__back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.admin-sidebar__back:hover {
    color: var(--neon);
    background: rgba(0, 230, 118, 0.05);
}

.admin-sidebar__nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.admin-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
}

.admin-sidebar__link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar__link--active {
    color: var(--neon);
    background: rgba(0, 230, 118, 0.08);
}

.admin-sidebar__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-sidebar__user {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.admin-sidebar__role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-sidebar__logout {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-sidebar__logout:hover {
    border-color: #ef5350;
    color: #ef5350;
}

/* Admin Main */
.admin-main {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar__burger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
}

.admin-topbar__title {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.admin-content {
    padding: 2rem;
    flex: 1;
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.admin-stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}

.admin-stat-card__icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.admin-stat-card__info {
    display: flex;
    flex-direction: column;
}

.admin-stat-card__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-stat-card__value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-top: 0.25rem;
}

/* Admin Cards & Grid */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.admin-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.admin-card__empty {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

.admin-card__link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--neon);
    font-weight: 500;
}

/* Admin Tables */
.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}


/* Admin Forms & Radio Toggles */
.form__radio-group {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: 0.5rem;
}

.form__radio {
    flex: 1;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.form__radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form__radio span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: calc(var(--radius-sm) - 2px);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.form__radio input:checked + span {
    background: linear-gradient(135deg, var(--neon), var(--accent));
    color: #000;
    box-shadow: var(--neon-glow-sm);
    border-color: rgba(255, 255, 255, 0.2);
}

.form__radio:hover span:not(input:checked + span) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border);
}

/* Control for Number Inputs in Admin */
.form__input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}
.form__input[type="number"]::-webkit-outer-spin-button,
.form__input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Custom Number controls aesthetic */
.form__input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    transition: all var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--neon);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--neon-glow-sm);
}

/* Admin Badges */
.admin-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-badge--open {
    background: rgba(0, 230, 118, 0.12);
    color: var(--neon);
}

.admin-badge--closed {
    background: rgba(239, 83, 80, 0.12);
    color: #ef5350;
}

.admin-badge--superadmin {
    background: rgba(255, 167, 38, 0.15);
    color: #ffa726;
}

.admin-badge--admin {
    background: rgba(79, 195, 247, 0.15);
    color: #4fc3f7;
}

/* Rating Bars */
.admin-ratings {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-rating-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-rating-bar__emoji {
    font-size: 1.25rem;
    width: 30px;
    text-align: center;
}

.admin-rating-bar__track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.admin-rating-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon), var(--neon-dim));
    border-radius: 4px;
    transition: width 0.6s ease-out;
}

.admin-rating-bar__count {
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 30px;
    text-align: right;
}

/* QR */
.admin-qr__img {
    width: 300px;
    height: 300px;
    border-radius: var(--radius);
    margin: 1rem auto;
    display: block;
}

.admin-qr__url {
    color: var(--text-muted);
    font-size: 0.85rem;
    word-break: break-all;
}

/* Receipts Grid */
.receipts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.receipt-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.receipt-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.receipt-card__info {
    padding: 0.75rem;
}

.receipt-card__name {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.receipt-card__date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__visual {
        display: none;
    }

    .hero__scroll-indicator {
        display: none;
    }

    .schedule__layout,
    .survey__layout {
        grid-template-columns: 1fr;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }

    .header__nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header__burger {
        display: flex;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__cta {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section__title {
        font-size: 2rem;
    }

    .news__grid {
        grid-template-columns: 1fr;
    }

    /* Admin Mobile */
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar--open {
        transform: translateX(0);
        width: 280px;
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-topbar__burger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .rating__btn {
        font-size: 1.75rem;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero {
        padding: 2rem 0;
        min-height: auto;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .about__grid {
        grid-template-columns: 1fr;
    }

    .results__grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .rating {
        gap: 0.4rem;
    }

    .rating__btn {
        font-size: 1.5rem;
        width: 42px;
        height: 42px;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* --- Header Auth Buttons --- */
.header__auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.header__auth-btn:hover {
    color: var(--neon);
    border-color: var(--border-accent);
}

.header__auth-btn--accent {
    background: var(--neon);
    color: #0a0a1a;
    border-color: var(--neon);
}

.header__auth-btn--accent:hover {
    background: var(--neon-dim);
    color: #0a0a1a;
    border-color: var(--neon-dim);
    box-shadow: var(--neon-glow-sm);
}

.header__auth-btn--profile {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.2);
    color: var(--neon);
}

.header__auth-btn--profile:hover {
    background: rgba(0, 230, 118, 0.2);
    box-shadow: var(--neon-glow-sm);
}

/* --- Auth Form Wrapper --- */
.auth-form-wrap {
    max-width: 460px;
    margin: 0 auto;
}

.auth-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.auth-form__footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form__footer a {
    color: var(--neon);
    text-decoration: underline;
}

.form__hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* --- Outline Button --- */
.btn--outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--outline:hover {
    border-color: #ef5350;
    color: #ef5350;
}

/* --- Profile Page --- */
.profile__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.profile__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.profile__card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.profile__card-icon {
    font-size: 1.5rem;
}

.profile__meta {
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.profile__enrollments {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile__enrollment-item {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile__enrollment-date {
    font-weight: 600;
    color: var(--text-primary);
}

.profile__enrollment-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile__empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .profile__layout {
        grid-template-columns: 1fr;
    }

    .header__auth-btn span {
        display: none;
    }
}

.form__select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* --- New Additions --- */
.btn--xl {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
    border-radius: var(--radius-lg);
}

.workshop-slider {
    background: transparent;
}

.slider {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 46, 0.7);
    color: var(--text-primary);
    border: 1px solid var(--border);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 10;
}

.slider__btn:hover {
    background: var(--neon);
    color: #000;
}

.slider__btn--prev {
    left: 1rem;
}

.slider__btn--next {
    right: 1rem;
}

.slider__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.slider__dot--active {
    background: var(--neon);
    box-shadow: var(--neon-glow-sm);
}

/* --- Admin Topic Stats --- */
.admin-topic-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-topic-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-topic-bar__label {
    width: 30%;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-topic-bar__track {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    height: 24px;
    overflow: hidden;
}

.admin-topic-bar__fill {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.5) 0%, var(--neon) 100%);
    height: 100%;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    border-radius: var(--radius-sm);
    transition: width 1s ease-out;
}

.admin-topic-bar__count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
}

/* --- Admin Payment Status --- */
.payment-status {
    display: inline-flex;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: default;
}

.payment-status--loaded {
    background: rgba(0, 230, 118, 0.15);
    color: var(--neon);
    cursor: pointer;
    text-decoration: underline dotted;
}

.payment-status--loaded:hover {
    background: rgba(0, 230, 118, 0.25);
}

.payment-status--none {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
}

/* --- Reschedule Modal overrides --- */
.profile__reschedule-btn {
    border-color: var(--neon);
    color: var(--neon);
}

.profile__reschedule-btn:hover {
    background: var(--neon);
    color: #000;
}

.profile__enrollment-status {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.profile__enrollment-status--active {
    background: rgba(0, 230, 118, 0.15);
    color: var(--neon);
}

.profile__enrollment-status--past {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* --- Training Levels / Программа --- */
.training-levels {
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Background gradient orb to make it look premium */
.training-levels::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    transform: translateY(-50%);
}

.levels__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.levels__card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.levels__card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 230, 118, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(0, 230, 118, 0.05);
}

.levels__number {
    font-size: 6rem;
    font-weight: 800;
    line-height: 0.8;
    position: absolute;
    top: 1rem;
    right: 0.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 0;
    transition: all var(--transition);
    user-select: none;
    pointer-events: none;
}

.levels__card:hover .levels__number {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.15) 0%, rgba(0, 230, 118, 0.02) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.05) rotate(2deg);
}

.levels__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.levels__title::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all var(--transition);
}

.levels__card:hover .levels__title::before {
    background: var(--neon);
    box-shadow: var(--neon-glow-sm);
    transform: scale(1.2);
}

.levels__text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Accent Card */
.levels__card--accent {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(0, 230, 118, 0.08) 100%);
    border-color: rgba(0, 230, 118, 0.2);
}

.levels__card--accent:hover {
    border-color: var(--neon);
    box-shadow: 0 15px 40px rgba(0, 230, 118, 0.15), inset 0 0 0 1px rgba(0, 230, 118, 0.1);
}

.levels__card--accent .levels__title::before {
    background: var(--neon);
    box-shadow: var(--neon-glow-sm);
}

.levels__card--accent .levels__number {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.2) 0%, rgba(0, 230, 118, 0.02) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Parallax & Dynamic Backgrounds --- */
.parallax-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: transparent;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    transition: opacity 0.8s ease-in-out;
}

/* Dark overlay for readability - Enhanced for bright photos */
.parallax-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(9, 9, 11, 0.5) 0%, rgba(9, 9, 11, 0.85) 100%);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 6rem 0; /* Increased padding */
}

/* Semi-transparent overlay for content readability */
/* Modern Glassmorphism Container for content readability */
.glass-container {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.parallax-content .container {
    padding: 0; /* Let glass-container handle padding */
}

.parallax-section h1, 
.parallax-section h2, 
.parallax-section h3 {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
}

.parallax-section p {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Fallback for mobile where background-attachment: fixed is often buggy */
@media (max-width: 1024px) {
    .parallax-bg {
        background-attachment: scroll;
    }
    .parallax-content .container {
        padding: 0 1rem;
        background: transparent;
    }
    .glass-container {
        padding: 2rem 1.25rem;
        border-radius: var(--radius-lg);
        margin: 0 0.5rem;
    }
}

.admin-topbar__burger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN (Media Queries)
   ============================================ */

.header__link--mobile-auth {
    display: none;
}

/* Tablets and smaller */
@media (max-width: 1024px) {
    .hero__inner {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .hero__content {
        align-items: center;
    }
    .hero__title {
        font-size: 3.5rem;
    }
    .hero__cta {
        justify-content: center;
    }
    .about__grid, .results__grid, .levels__grid, .news__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .admin-main {
        margin-left: 0;
        width: 100%;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    html {
        font-size: 14px; /* Scaled down base font */
    }
    body {
        overflow-x: hidden;
        width: 100%;
    }
    .container {
        padding: 0 1rem;
    }
    
    /* Header & Burger */
    .header__burger {
        display: flex;
        z-index: 1001;
    }
    .header__nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .header__nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .header__actions .header__auth-btn:not(.header__auth-btn--bot) {
        display: none;
    }
    .header__actions .header__auth-btn--bot {
        padding: 0.45rem 0.6rem;
    }
    .header__link--mobile-auth {
        display: block;
        width: 100%;
    }
    .header__link {
        font-size: 1.25rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    /* Hero */
    .hero {
        padding: 6rem 0 3rem;
    }
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__subtitle {
        font-size: 1.1rem;
    }
    .hero__icon-grid {
        gap: 1rem;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    .section__title {
        font-size: 2rem;
    }
    
    /* Forms & Auth */
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }
    .form__row {
        flex-direction: column;
        gap: 1rem;
    }
    .payment__info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Admin Panel */
    .admin-inner {
        flex-direction: column;
    }
    .admin-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 2000;
        transition: left 0.3s ease;
    }
    .admin-sidebar--open {
        left: 0;
    }
    .admin-topbar__burger {
        display: block;
    }
    .admin-topbar__title {
        font-size: 1.2rem;
    }
    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .admin-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-table th, .admin-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }
    .section__title {
        font-size: 1.6rem;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    .slider__btn {
        width: 40px;
        height: 40px;
    }
    .slider__btn--prev { left: 5px; }
    .slider__btn--next { right: 5px; }
}

/* Global Resets for Mobile */
img, picture, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* --- Dynamics & Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(56, 189, 248, 0.2); }
    50% { box-shadow: 0 0 30px rgba(56, 189, 248, 0.5); }
    100% { box-shadow: 0 0 15px rgba(56, 189, 248, 0.2); }
}

.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Admin Receipts Table Styles */
.receipt-table-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.receipt-table-img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3);
}

.receipt-preview-link {
    display: inline-block;
}

.admin-table-wrapper {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, 
.admin-table td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th {
    color: #00e676;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table td {
    color: #e0e0e0;
    font-size: 0.95rem;
    vertical-align: middle;
}

/* ============================================
   MODALS
   ============================================ */
/* --- Lightbox Modal --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox__img {
    transform: scale(1);
}

.lightbox__caption {
    color: #fff;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox__close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.lightbox__close:hover {
    color: var(--neon);
    transform: rotate(90deg);
}

.lightbox__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.5rem;
}

.lightbox__btn:hover {
    background: var(--neon);
    color: #000;
    border-color: var(--neon);
}

.lightbox__btn--prev { left: -100px; }
.lightbox__btn--next { right: -100px; }

@media (max-width: 1200px) {
    .lightbox__btn--prev { left: 1rem; }
    .lightbox__btn--next { right: 1rem; }
    .lightbox__close { right: 0; top: -50px; }
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--neon-glow-sm);
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.modal__close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    transition: all var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.modal__close:hover {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.1);
}

.modal__body {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal__footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal__footer .btn {
    flex: 1;
}

/* ============================================
   MOBILE PERFORMANCE OVERRIDES (Poco Fix)
   ============================================ */
@media (max-width: 992px) {
    /* Kill CPU-heavy Glassmorphism on mobile */
    .header, 
    .about__card, 
    .news__card, 
    .survey__block, 
    .hero__icon-item,
    .modal,
    .admin-stat-card,
    .admin-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: var(--bg-card) !important; /* solid fallback */
    }

    /* Simplify Background */
    body {
        background: var(--bg-primary) !important;
        animation: none !important;
    }
    
    body::before, body::after {
        display: none !important;
    }

    /* Scaling Down Titles */
    .hero__title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    .section__title {
        font-size: 1.75rem !important;
    }

    /* Disable Entrance Animations on Mobile */
    .about__card, .results__item, .news__card, .animate-fade-up {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Fix spacing */
    .container {
        padding: 0 1rem !important;
    }

    .section {
        padding: 3rem 0 !important;
    }
}
