@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Oswald:wght@700&family=Poppins:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    /* Enhanced Color Palette */
    --kfc-red: #E4002B;
    --kfc-red-hover: #ff1a4a;
    --kfc-dark-red: #9e001e;
    --kfc-brand-glow: rgba(228, 0, 43, 0.4);

    --kfc-gold: #FFC72C;
    --kfc-gold-hover: #ffd966;

    /* Deep Premium Dark Mode */
    --bg-base: #050505;
    --bg-surface: #0a0a0c;
    --bg-surface-elevated: #121216;

    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* System Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);

    /* Fonts */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', 'Poppins', sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px var(--kfc-brand-glow);

    /* Metrics */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Contextual Backgrounds */
    --bg-header: rgba(10, 10, 12, 0.6);
    --bg-header-hover: rgba(10, 10, 12, 0.7);
    --bg-card: rgba(15, 15, 18, 0.6);
    --bg-card-hover: rgba(20, 20, 25, 0.8);
    --bg-special-card: linear-gradient(135deg, rgba(40, 10, 15, 0.7), rgba(20, 20, 25, 0.7));
    --bg-input: rgba(0, 0, 0, 0.2);
    --bg-input-focus: rgba(0, 0, 0, 0.4);
    --bg-modal: rgba(15, 15, 18, 0.85);
    --bg-gradient-start: #1a0508;
    --logo-text-gradient: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    --logo-filter: drop-shadow(0 0 12px rgba(228, 0, 43, 0.4));
    --logo-filter-hover: drop-shadow(0 0 20px rgba(228, 0, 43, 0.8));
}

/* Light Theme (if toggled) */
:root.light-theme,
body.light-theme {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.15);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --bg-header: rgba(255, 255, 255, 0.8);
    --bg-header-hover: rgba(255, 255, 255, 0.95);
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-special-card: linear-gradient(135deg, rgba(255, 230, 235, 0.7), rgba(255, 255, 255, 0.8));
    --bg-input: rgba(255, 255, 255, 0.6);
    --bg-input-focus: rgba(255, 255, 255, 0.9);
    --bg-modal: rgba(255, 255, 255, 0.95);
    --bg-gradient-start: #ffeaef;
    --logo-text-gradient: linear-gradient(135deg, #0f172a 0%, var(--text-secondary) 100%);
    --logo-filter: invert(1) hue-rotate(185deg) saturate(5) contrast(1.5) brightness(0.8) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    --logo-filter-hover: invert(1) hue-rotate(185deg) saturate(5) contrast(1.5) brightness(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.4rem, 2vw, 1.75rem);
}

/* --- BACKGROUND EFFECTS --- */
.background-fx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, var(--bg-gradient-start) 0%, var(--bg-base) 60%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite alternate ease-in-out;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, var(--kfc-red) 0%, transparent 70%);
    top: -10%;
    right: -10%;
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, var(--kfc-dark-red) 0%, transparent 70%);
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -50px) scale(1.1);
    }

    100% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* --- LAYOUT --- */
.app-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* --- HEADER --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 1rem;
    background: var(--bg-header);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    margin-bottom: 2rem;
    transition: var(--transition-normal);
}

.header:hover {
    border-color: var(--glass-border-hover);
    background: var(--bg-header-hover);
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 90px;
    filter: var(--logo-filter);
    transition: var(--transition-bounce);
}

.logo:hover img {
    filter: var(--logo-filter-hover);
    transform: rotate(-5deg);
}

.logo .separator {
    color: var(--text-muted);
    font-weight: 300;
}

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

.logo .logo-text.accent {
    background: linear-gradient(135deg, var(--kfc-red) 0%, #ff5e00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--bg-surface-elevated), var(--bg-surface));
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--glass-border-hover);
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--kfc-red), var(--kfc-dark-red));
    border: 1px solid rgba(255, 100, 100, 0.2);
    box-shadow: 0 4px 15px rgba(228, 0, 43, 0.3);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: var(--shadow-glow);
    border-color: rgba(255, 150, 150, 0.4);
}

.btn-icon {
    padding: 0.75rem;
    border-radius: 50%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* --- THEME SWITCH --- */
.theme-switch {
    position: relative;
    width: 64px;
    height: 32px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-switch:hover {
    border-color: rgba(228, 0, 43, 0.5);
    box-shadow: 0 0 10px rgba(228, 0, 43, 0.2), inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-switch i {
    font-size: 14px;
    z-index: 2;
    transition: var(--transition-normal);
}

.theme-switch .sun-icon {
    color: var(--text-muted);
    /* Dark theme: sun is inactive */
}

.theme-switch .moon-icon {
    color: var(--info);
    /* Dark theme: moon is active */
}

:root.light-theme .theme-switch .sun-icon {
    color: var(--warning);
    /* Light theme: sun is active */
}

:root.light-theme .theme-switch .moon-icon {
    color: var(--text-muted);
    /* Light theme: moon is inactive */
}

.theme-switch .slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* In dark theme, slider is on the right covering the moon position technically, wait let's move it natively */
    transform: translateX(32px);
}

/* When in light mode (theme=light), move slider to the left (sun position) */
:root.light-theme .theme-switch .slider {
    transform: translateX(0);
    background: #fff;
}

:root.light-theme .theme-switch {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- CARDS & PANELS --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card,
a.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

a.card {
    cursor: pointer;
}

a.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover,
a.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-xl);
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
}

a.card:hover::after {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--kfc-red);
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(228, 0, 43, 0.1), rgba(228, 0, 43, 0.02));
    border: 1px solid rgba(228, 0, 43, 0.2);
    box-shadow: inset 0 2px 10px rgba(228, 0, 43, 0.1);
    transition: var(--transition-bounce);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(228, 0, 43, 0.3), inset 0 2px 10px rgba(228, 0, 43, 0.2);
    color: var(--kfc-red-hover);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.card-text {
    color: var(--text-secondary);
    flex-grow: 1;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Special Cards (Gradients) */
.card.special-card {
    background: var(--bg-special-card);
    border: 1px solid rgba(228, 0, 43, 0.3);
}

.card.special-card:hover {
    border-color: rgba(228, 0, 43, 0.6);
    box-shadow: 0 15px 35px rgba(228, 0, 43, 0.25);
}

/* Management Cards */
.management-panel-card {
    background: linear-gradient(135deg, var(--kfc-red), var(--kfc-dark-red));
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem 2rem;
}

.management-panel-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(228, 0, 43, 0.4);
}

.management-panel-card .card-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.management-panel-card:hover .card-icon {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.management-panel-card .card-title {
    color: white;
}

.management-panel-card .card-text {
    color: rgba(255, 255, 255, 0.8);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

.hero-section h1 {
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(228, 0, 43, 0.3);
}

.hero-section .highlight-red {
    background: linear-gradient(135deg, var(--kfc-red), #ff5e00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-section .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* --- SECTION TITLES --- */
.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title i {
    color: var(--kfc-red);
    font-size: 1.75rem;
    filter: drop-shadow(0 0 10px rgba(228, 0, 43, 0.3));
}

/* --- FORMS & INPUTS --- */
input,
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: var(--transition-normal);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--kfc-red);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- MODALS --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background: var(--bg-modal);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: var(--transition-bounce);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.modal-close-btn:hover {
    background: rgba(228, 0, 43, 0.1);
    color: var(--kfc-red);
    border-color: rgba(228, 0, 43, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- BANNERS / MESSAGES --- */
.message-box {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease;
}

.message-box.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.message-box.error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.message-box.info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.message-box.warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.banners-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.banner {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    backdrop-filter: blur(10px);
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.banner.info {
    background: var(--info-bg);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.banner.warning {
    background: var(--warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.banner.critical {
    background: var(--error-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.banner-content {
    flex: 1;
}

.banner-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
}

.banner.info .banner-title {
    color: var(--info);
}

.banner.warning .banner-title {
    color: var(--warning);
}

.banner.critical .banner-title {
    color: var(--error);
}

.banner-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.banner-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.banner-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.banner-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* --- ANIMATIONS --- */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 640px) {
    .app-container {
        padding: 0 1rem;
    }

    .header {
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
        position: relative;
        top: 0;
        margin-top: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo img {
        height: 36px;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    #user-info {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }

    #user-budget-display {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }
}

/* --- DASHBOARD & ANALYTICS STYLES --- */

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-main);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--kfc-red);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--kfc-red), var(--kfc-dark-red));
    color: white;
    border-color: var(--kfc-red);
    box-shadow: 0 10px 20px -5px rgba(228, 0, 43, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* KPI Cards */
.kpi-section {
    margin-bottom: 3rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.kpi-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), transparent);
}

.kpi-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
    background: var(--bg-card-hover);
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light, #fff));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kpi-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Charts Grid */
.charts-section {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.chart-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.chart-card-full {
    grid-column: span 12;
}

.chart-card-half {
    grid-column: span 6;
}

.chart-card-third {
    grid-column: span 4;
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.chart-title i {
    color: var(--kfc-red);
}

.chart-container {
    position: relative;
    height: 350px;
}

.chart-container.small {
    height: 250px;
}

/* Leaderboard */
.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.leaderboard-item:hover {
    background: var(--bg-input-focus);
    transform: translateX(5px);
    border-color: var(--glass-border-hover);
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 40px;
    text-align: center;
}

.leaderboard-item:nth-child(1) .leaderboard-rank {
    color: var(--kfc-gold);
}

.leaderboard-item:nth-child(2) .leaderboard-rank {
    color: #c0c0c0;
}

.leaderboard-item:nth-child(3) .leaderboard-rank {
    color: #cd7f32;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.leaderboard-details {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.leaderboard-score {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    background: rgba(228, 0, 43, 0.1);
    border: 1px solid rgba(228, 0, 43, 0.3);
    border-radius: 10px;
    color: var(--kfc-red);
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-modal);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.5s;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(228, 0, 43, 0.1);
    border-top-color: var(--kfc-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Analytics Empty State */
.analytics-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.analytics-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Responsive Dashboard Analytics */
@media (max-width: 1200px) {

    .chart-card-half,
    .chart-card-third {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .filter-btn,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 300px;
    }
}

/* --- FILTERS & TABLES (Results Page, etc.) --- */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    border: 1px solid var(--glass-border);
}

.filters input,
.filters select {
    flex-grow: 1;
    min-width: 180px;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: var(--kfc-red);
    box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.2);
    background: var(--bg-input-focus);
}

.filters button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--kfc-red);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-normal);
}

.filters button:hover {
    background: var(--kfc-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 0, 43, 0.4);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

th,
td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background-color: var(--bg-header);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

tbody tr {
    transition: var(--transition-fast);
}

tbody tr:hover {
    background-color: var(--bg-surface-elevated);
}

tbody tr:last-child td {
    border-bottom: none;
}

td a {
    color: var(--kfc-red);
    text-decoration: none;
    font-weight: 500;
}

td a:hover {
    text-decoration: underline;
}

.comment-cell {
    max-width: 300px;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

td b {
    color: var(--text-primary);
    font-size: 1.1em;
}

td .score-good {
    color: var(--success);
}

td .score-medium {
    color: var(--warning);
}

td .score-bad {
    color: var(--error);
}

/* --- DREAM SHOP STYLES --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.shop-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.shop-card:active {
    transform: scale(0.98);
}

.img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #000;
}

@media (max-width: 600px) {
    .img-wrap {
        height: 340px !important;
    }
}

.slider {
    display: flex;
    transition: transform 0.3s;
    height: 100%;
}

.slider img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.dot.active {
    background: var(--kfc-red);
    width: 16px;
    border-radius: 3px;
}

.shop-card-body {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.shop-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.card-stock-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-low {
    color: var(--error);
    font-weight: 700;
    animation: pulseText 2s infinite;
}

@keyframes pulseText {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}

.shop-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.buy-btn {
    background: var(--kfc-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(228, 0, 43, 0.3);
}

.buy-btn:hover:not(:disabled) {
    background: var(--kfc-red-hover);
    transform: translateY(-2px);
}

.buy-btn:disabled {
    background: var(--bg-surface);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
}

/* SIZE UI */
.size-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
    justify-content: center;
}

.size-chip {
    padding: 12px 20px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    background: var(--bg-input);
    color: var(--text-primary);
    min-width: 60px;
    font-size: 1rem;
    transition: var(--transition-normal);
    position: relative;
}

.size-chip.selected {
    background: var(--kfc-red);
    border-color: var(--kfc-red);
    color: white;
    box-shadow: 0 0 15px rgba(228, 0, 43, 0.4);
    transform: translateY(-2px);
}

.stock-alert {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* --- MODAL STYLES (Shop, Global) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-modal);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.modal {
    background: var(--bg-surface);
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    animation: zoomIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-icon-success {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--success);
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.4));
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.modal-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.modal-btns {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.modal-btns button {
    flex: 1;
    padding: 16px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.btn-cancel {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--glass-border) !important;
}

.btn-cancel:hover {
    background: var(--bg-surface-elevated);
}

.btn-confirm {
    background: var(--kfc-red);
    color: white;
    box-shadow: var(--shadow-sm);
    width: 100%;
    padding: 18px 0;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

.btn-confirm:hover {
    transform: translateY(-3px);
    background: var(--kfc-red-hover);
    box-shadow: var(--shadow-md);
}

.btn-confirm:active {
    transform: translateY(0);
}

/* --- TABS --- */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tab-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition-bounce);
}

.tab-button:hover {
    color: var(--text-primary);
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.tab-button.active {
    color: var(--text-primary);
    border-bottom-color: var(--kfc-red);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* --- TABLES --- */
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th,
td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

th {
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

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

tr:hover td {
    background: var(--bg-surface);
}

/* ========================================================================= */
/* DIRECTOR DASHBOARD SPECIFIC STYLES                                        */
/* ========================================================================= */

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.trainers-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.trainer-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.trainer-card-modern:hover {
    border-color: var(--kfc-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trainer-header {
    padding: 1rem 1.5rem;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.student-list-modern {
    padding: 0;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    flex-grow: 1;
}

.student-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
    transition: background var(--transition-fast);
}

.student-item-modern:hover {
    background: var(--bg-surface-elevated);
}

.btn-icon-small {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.3rem;
    transition: color var(--transition-fast);
}

.btn-icon-small:hover {
    color: var(--kfc-red);
}

.card-footer {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-card);
}

.btn-add-student {
    width: 100%;
    background: transparent;
    border: 1px dashed var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.8rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-family: var(--font-sans);
}

.btn-add-student:hover {
    border-color: var(--success);
    color: var(--success);
    background: var(--success-bg);
}

.selection-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 1rem 0;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
}

.selection-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.selection-item:hover {
    background: var(--bg-surface-elevated);
}

.selection-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 1rem;
    accent-color: var(--kfc-red);
}

.assignments-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-box .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-box .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.stat-box .value.highlight {
    color: var(--kfc-red);
}

.audit-list-item {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--info);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    border-top: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.audit-list-item:hover {
    background-color: var(--bg-surface-elevated);
    transform: translateX(3px);
}

.audit-list-item.active {
    border-left-color: var(--kfc-red);
    background-color: var(--bg-surface-elevated);
}

.audit-item {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.audit-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audit-item-header .fa-check-circle {
    color: var(--success);
}

.audit-item-header .fa-times-circle {
    color: var(--error);
}

.audit-item-header .fa-minus-circle {
    color: var(--text-secondary);
}

.goal {
    padding: 1rem;
    border-left: 4px solid var(--info);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-top: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.goal-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.goal.status-Выполнено {
    border-left-color: var(--success);
}

.goal.status-Не.выполнен {
    border-left-color: var(--error);
}

.goals-details-row {
    display: none;
}

.goals-details-row.active {
    display: table-row;
}

.goals-details-cell {
    padding: 1.5rem !important;
    background-color: var(--bg-surface-elevated);
}

.discipline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    margin-bottom: 0.75rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-none);
}

.ranking-item .rank {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--kfc-red);
    width: 30px;
    text-align: center;
}

.discipline-user-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    background: var(--bg-surface);
}

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