/* ========================================
   Prime famq - Main Stylesheet
   Apple-inspired Dark Theme
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #161616;
    --bg-hover: #1f1f1f;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.35);

    --accent: #dc143c;
    --accent-hover: #ff1a4a;

    --discord: #5865F2;
    --discord-hover: #4752c4;

    --success: #34c759;
    --warning: #ff9f0a;
    --error: #ff453a;

    /* Department Colors */
    --dept-academy: #90EE90;
    --dept-farm: #FFD700;
    --dept-main: #4169E1;
    --dept-staff: #40E0D0;
    --dept-senior: #DC143C;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Spacing */
    --header-height: 72px;
    --container-max: 1200px;
    --container-padding: 24px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ========================================
   Reset & Base
   ======================================== */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
}

/* Text Selection */
::selection {
    background-color: #8B0000;
    color: #ffffff;
}

::-moz-selection {
    background-color: #8B0000;
    color: #ffffff;
}

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

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   Utility Classes
   ======================================== */

.hidden {
    display: none !important;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-danger {
    color: var(--error) !important;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    opacity: 0.9;
}

.btn-primary:active {
    opacity: 0.8;
    transition-duration: 0.1s;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-secondary:active {
    background: rgba(255, 255, 255, 0.1);
    transition-duration: 0.1s;
}

.btn-discord {
    background: var(--discord);
    color: white;
    padding: 10px 20px;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.btn-discord:hover {
    background: var(--discord-hover);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-text {
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.btn-text:hover {
    color: var(--accent-hover);
}

.discord-icon {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    min-height: var(--header-height);
    max-height: var(--header-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    /* Убираем overflow: hidden, чтобы выпадающие меню не обрезались */
    overflow: visible;
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    /* Убираем overflow, чтобы выпадающие меню не обрезались */
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    z-index: 1;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent);
}

.nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.nav-link {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 10;
    pointer-events: auto;
}

/* Переопределяем .hidden для навигационных ссылок */
/* Используем visibility вместо display, чтобы ссылки занимали место и не вызывали изменение размера навигации */
.nav-link.hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    display: inline-flex !important;
    /* Сохраняем inline-flex вместо none */
    pointer-events: none !important;
    /* Сохраняем размер, чтобы навигация не меняла ширину */
    width: auto !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    z-index: 0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all var(--transition-base);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: calc(100% - 32px);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active::after {
    width: calc(100% - 32px);
}

/* Кнопка Discord всегда справа */
.auth-section {
    position: absolute;
    right: var(--container-padding);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: var(--container-padding);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    height: 100%;
    justify-content: flex-end;
}

/* Hide auth sections until JS determines which to show */
/* Используем visibility вместо display, чтобы элементы занимали место и не вызывали изменение высоты */
.auth-section,
.user-section {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0s 0.15s;
    pointer-events: none;
    /* Фиксируем высоту, чтобы обе секции занимали одинаковое место */
    min-height: 40px;
    display: flex;
    align-items: center;
}

.auth-section.ready,
.user-section.ready {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.15s ease, visibility 0s 0s;
    pointer-events: all;
}

/* Переопределяем .hidden для секций авторизации, чтобы не использовать display: none */
.auth-section.hidden,
.user-section.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    display: flex !important;
    /* Сохраняем flex, чтобы элемент занимал место */
    pointer-events: none !important;
    transition: opacity 0.15s ease, visibility 0s 0.15s;
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: var(--container-padding);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.notifications-wrapper {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    background: var(--accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: scaleIn 0.2s ease forwards;
    transform-origin: top right;
    z-index: 1001;
    /* Выше чем хедер (1000) */
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
}

.notifications-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: var(--bg-hover);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: rgba(220, 20, 60, 0.05);
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.notification-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* User Dropdown */
.user-dropdown-wrapper {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.user-btn:hover {
    background: var(--bg-hover);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-btn .chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: scaleIn 0.2s ease forwards;
    transform-origin: top right;
    z-index: 1001;
    /* Выше чем хедер (1000) */
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 20%, rgba(220, 20, 60, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(65, 105, 225, 0.1), transparent);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 var(--container-padding);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

.hero-scroll svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(220, 20, 60, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   About Section
   ======================================== */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.about-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
    transition-delay: 0s !important;
    /* Убираем задержку для hover */
}

.about-card.visible:hover {
    transform: translateY(-4px);
}

.about-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 20, 60, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.about-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.about-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Gallery Section
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-tertiary);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.95);
    transition: all var(--transition-base);
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    opacity: 0.9;
    transition-delay: 0s !important;
    /* Убираем задержку для hover */
}

.gallery-item.visible:hover {
    opacity: 0.9;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
}

.gallery-placeholder svg {
    width: 48px;
    height: 48px;
}

.gallery-placeholder span {
    font-size: 14px;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item-wide {
        grid-column: span 1;
    }
}

/* ========================================
   Stats Section
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    opacity: 0;
    transform: scale(0.95);
    transition: all var(--transition-base);
}

.stat-card.visible {
    opacity: 1;
    transform: scale(1);
}

.stat-card:hover {
    border-color: var(--border-light);
    background: var(--bg-hover);
    transition-delay: 0s !important;
    /* Убираем задержку для hover */
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   CTA Section
   ======================================== */

.section-cta {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), transparent);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-server {
    margin-top: 8px;
    font-weight: 500;
    color: var(--text-tertiary);
}

/* ========================================
   Modal - Apple/iOS Style
   ======================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    pointer-events: all;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        -webkit-backdrop-filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0.4s;
    will-change: opacity, backdrop-filter;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transition: opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1),
        backdrop-filter 0.4s cubic-bezier(0.32, 0.72, 0, 1),
        -webkit-backdrop-filter 0.4s cubic-bezier(0.32, 0.72, 0, 1),
        background 0.4s cubic-bezier(0.32, 0.72, 0, 1),
        visibility 0s linear 0s;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        -webkit-backdrop-filter 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0.25s;
}

.modal {
    width: 100%;
    max-width: 420px;
    background: rgba(22, 22, 22, 0.92);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6),
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 0.5px rgba(255, 255, 255, 0.05) inset;
    transform: scale(0.9) translateY(40px);
    opacity: 0;
    transition: transform 0.35s ease-out,
        opacity 0.35s ease-out;
    will-change: transform, opacity;
}

.modal-overlay:not(.hidden) .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay.hidden .modal {
    transform: scale(0.92) translateY(30px);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    padding: 28px 28px 20px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-header .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.32, 0.72, 0, 1) 0s !important;
    opacity: 0;
    transform: scale(0.8);
}

.modal-overlay:not(.hidden) .modal-header .modal-close {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.25s;
}

.modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    transition-delay: 0s !important;
}

.modal-header .modal-close:active {
    background: rgba(255, 255, 255, 0.1);
    transition-duration: 0.1s;
}

.modal-header .modal-close svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.modal-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 32px;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    align-self: center;
}

.modal-overlay:not(.hidden) .modal-icon {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.15s;
}

.modal-icon.pending {
    background: rgba(255, 159, 10, 0.15);
    color: #FFB946;
}

.modal-icon.rejected {
    background: rgba(255, 69, 58, 0.15);
    color: #FF6B6B;
}

.modal-icon.warning {
    background: rgba(255, 159, 10, 0.15);
    color: #FFB946;
}

.modal-icon svg {
    width: 34px;
    height: 34px;
    stroke-width: 2.2;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    text-align: center;
    width: 100%;
    margin: 0;
}

.modal-overlay:not(.hidden) .modal-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.modal-body {
    padding: 20px 28px 28px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay:not(.hidden) .modal-body {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.modal-description {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.modal-hint {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.modal-reason {
    background: rgba(255, 69, 58, 0.1);
    border: 0.5px solid rgba(255, 69, 58, 0.2);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 14px;
    color: #FF8A80;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Form Styles - Apple/iOS Design */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    backdrop-filter: blur(10px);
}

.input-with-button {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-button .form-input {
    flex: 1;
}

.btn-icon-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.btn-icon-small:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

.btn-icon-small svg {
    width: 18px;
    height: 18px;
}

.form-input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

select.form-input:hover,
select.form-input:focus,
select.form-input:active {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-position: right 16px center !important;
    background-size: 16px 16px !important;
    background-repeat: no-repeat !important;
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Select стили */
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    padding-right: 42px;
    transition: background-color 0.3s cubic-bezier(0.32, 0.72, 0, 1), border-color 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    background-attachment: scroll;
}

select.form-input option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px;
}

/* File input стили */
input[type="file"].form-input {
    padding: 14px 16px;
    cursor: pointer;
}

input[type="file"].form-input::file-selector-button {
    padding: 8px 16px;
    margin-right: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="file"].form-input::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.form-error {
    padding: 12px 16px;
    font-size: 13px;
    color: #FF8A80;
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.12), rgba(255, 69, 58, 0.08));
    border: 0.5px solid rgba(255, 69, 58, 0.25);
    border-radius: 12px;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* ========================================
   Main Content (Pages)
   ======================================== */

.main-content {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 80px;
    min-height: calc(100vh - 150px);
}

.page-header {
    margin-bottom: 48px;
    animation: fadeInUp 0.5s ease forwards;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ========================================
   Roster Page
   ======================================== */

.roster-filters {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.roster-filters.visible {
    opacity: 1;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-select {
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.filter-input {
    padding: 10px 14px 10px 42px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 220px;
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent);
}

.filter-input::placeholder {
    color: var(--text-muted);
}

.roster-stats {
    margin-left: auto;
}

.roster-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.roster-count strong {
    color: var(--text-primary);
}

/* Roster List */
.roster-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border-left: 4px solid transparent;
    animation: cardFadeIn 0.3s ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

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

.member-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.member-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

/* Department Border Colors */
.member-card.dept-academy {
    border-left-color: var(--dept-academy);
}

.member-card.dept-farm {
    border-left-color: var(--dept-farm);
}

.member-card.dept-main {
    border-left-color: var(--dept-main);
}

.member-card.dept-staff {
    border-left-color: var(--dept-staff);
}

.member-card.dept-senior {
    border-left-color: var(--dept-senior);
}

.member-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform var(--transition-fast);
    display: block;
}

.member-avatar:hover {
    opacity: 0.9;
}

.member-avatar-crown {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    color: #FFD700;
    z-index: 1;
    pointer-events: none;
}

.member-avatar-crown svg {
    width: 100%;
    height: 100%;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.1s ease-in-out;
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1.2;
}

.member-name:hover {
    color: var(--accent);
}

.member-name:hover .member-static-id {
    color: rgba(250, 21, 21, 0.5);
}

.member-static-id {
    font-size: 13px;
    font-weight: 400;
    color: rgba(134, 134, 134, 0.6);
    margin-left: 0px;
    flex-shrink: 0;
    line-height: 1.2;
    vertical-align: baseline;
}

.member-discord {
    font-size: 13px;
    color: var(--text-muted);
}

.member-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.member-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.meta-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.member-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    justify-content: flex-start;
}

.member-rank {
    width: 160px;
    flex-shrink: 0;
}

.member-department {
    width: 180px;
    flex-shrink: 0;
}

/* Department Colors for Badges */
.member-badge.dept-academy {
    background: rgba(144, 238, 144, 0.15);
    color: var(--dept-academy);
}

.member-badge.dept-farm {
    background: rgba(255, 215, 0, 0.15);
    color: var(--dept-farm);
}

.member-badge.dept-main {
    background: rgba(65, 105, 225, 0.15);
    color: var(--dept-main);
}

.member-badge.dept-staff {
    background: rgba(64, 224, 208, 0.15);
    color: var(--dept-staff);
}

.member-badge.dept-senior {
    background: rgba(220, 20, 60, 0.15);
    color: var(--dept-senior);
}

.badge-icon {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.rank-num {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.7;
}

.badge-text {
    font-size: 13px;
    font-weight: 600;
}

.member-warns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    min-width: 60px;
}

.member-warns.has-warns {
    background: rgba(255, 159, 10, 0.15);
    color: var(--warning);
}

.member-warns.no-warns {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

.member-realname {
    font-size: 13px;
    color: var(--text-tertiary);
    min-width: 100px;
    text-align: right;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 0;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Animations
   ======================================== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

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

/* Slide In Right Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

/* Stagger Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease forwards;
}

.animate-slide-in {
    animation: slideInRight 0.4s ease forwards;
}

/* Staggered children animation */
.stagger-animation>* {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-animation>*:nth-child(1) {
    animation-delay: 0.05s;
}

.stagger-animation>*:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-animation>*:nth-child(3) {
    animation-delay: 0.15s;
}

.stagger-animation>*:nth-child(4) {
    animation-delay: 0.2s;
}

.stagger-animation>*:nth-child(5) {
    animation-delay: 0.25s;
}

.stagger-animation>*:nth-child(6) {
    animation-delay: 0.3s;
}

.stagger-animation>*:nth-child(7) {
    animation-delay: 0.35s;
}

.stagger-animation>*:nth-child(8) {
    animation-delay: 0.4s;
}

.stagger-animation>*:nth-child(9) {
    animation-delay: 0.45s;
}

.stagger-animation>*:nth-child(10) {
    animation-delay: 0.5s;
}

/* Page transition */
.page-transition {
    animation: fadeIn 0.4s ease;
}

/* Card hover lift effect - simplified for modern design */
.hover-lift {
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.hover-lift:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

/* Removed pulse and crown glow animations - too flashy for modern design */

/* Shimmer loading effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            var(--bg-tertiary) 25%,
            var(--bg-hover) 50%,
            var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* ========================================
   Profile Page
   ======================================== */

.profile-loading,
.profile-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 120px 0;
    text-align: center;
    color: var(--text-secondary);
}

.profile-not-found svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
}

.profile-not-found h2 {
    font-size: 24px;
    color: var(--text-primary);
}

.profile-not-found p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
    animation: fadeInUp 0.5s ease forwards;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
}

.profile-avatar-crown {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    color: #FFD700;
    z-index: 2;
    pointer-events: none;
}

.profile-avatar-crown svg {
    width: 100%;
    height: 100%;
}

.profile-rank-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    z-index: 1;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-name-text {
    display: inline;
}

.profile-static-id {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.6;
    letter-spacing: 0;
    transform: translateY(-1px);
}

.profile-discord {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.profile-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    height: 36px;
    min-height: 36px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    white-space: nowrap;
}

.rank-tag {
    background: rgba(220, 20, 60, 0.15);
    color: var(--accent);
}

.rank-number {
    font-weight: 700;
    opacity: 0.8;
}

.department-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.profile-tag.not-registered-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    height: 36px !important;
    min-height: 36px !important;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    transition: all var(--transition-base);
}

.profile-card:nth-child(1) {
    animation-delay: 0.1s;
}

.profile-card:nth-child(2) {
    animation-delay: 0.2s;
}

.profile-card:nth-child(3) {
    animation-delay: 0.3s;
}

.profile-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.profile-card-full {
    grid-column: span 2;
}

.profile-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.profile-card-title svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.profile-detail:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.warns-value {
    color: var(--warning);
}

/* Warns List */
.warns-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.warns-empty {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 14px;
}

.warn-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background: rgba(255, 159, 10, 0.05);
    border: 1px solid rgba(255, 159, 10, 0.1);
    border-radius: var(--radius-md);
}

.warn-reason {
    font-size: 14px;
    color: var(--text-primary);
    flex: 1;
}

.warn-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: 16px;
}

/* ========================================
   Responsive
   ======================================== */

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

    .profile-card-full {
        grid-column: span 1;
    }
}

/* ========================================
   Mobile Navigation in User Dropdown
   ======================================== */

/* Hide mobile navigation items on desktop */
.mobile-nav-item,
.mobile-nav-divider {
    display: none !important;
}

@media (max-width: 768px) {

    .mobile-nav-item,
    .mobile-nav-divider {
        display: flex !important;
    }

    .mobile-nav-divider {
        width: 100%;
        height: 1px;
        background: var(--border-color);
        margin: 4px 0;
    }
}


@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --container-padding: 16px;
    }

    /* Hide desktop navigation */
    .nav {
        display: none !important;
        visibility: hidden !important;
    }

    /* Show mobile navigation items in user dropdown */
    .mobile-nav-item,
    .mobile-nav-divider {
        display: flex !important;
    }

    .mobile-nav-divider {
        height: 1px;
        background: var(--border-color);
        margin: 4px 0;
    }

    .mobile-nav-item.active {
        color: var(--accent);
        background: var(--bg-tertiary);
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .profile-tags {
        justify-content: center;
    }

    .roster-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select,
    .filter-input {
        width: 100%;
    }

    .roster-stats {
        margin-left: 0;
        text-align: center;
    }

    .member-card {
        flex-wrap: wrap;
        gap: 12px;
    }

    .member-meta {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .member-realname {
        width: 100%;
        text-align: left;
    }
}

/* ========================================
   Admin Panel
   ======================================== */

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.admin-tab svg {
    width: 18px;
    height: 18px;
}

.admin-tab:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.admin-tab.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-color: var(--border-light);
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.admin-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.admin-card-icon svg {
    width: 24px;
    height: 24px;
}

.admin-card-icon.warn {
    background: rgba(255, 159, 10, 0.15);
    color: var(--warning);
}

.admin-card-icon.success {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

.admin-card-icon.danger {
    background: rgba(255, 69, 58, 0.15);
    color: var(--error);
}

.admin-card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* Button variants */
.btn-warning {
    background: rgba(236, 156, 37, 0.05);
    border: 1px solid rgba(236, 156, 37, 0.75);
    color: rgba(236, 156, 37, 0.75);
}

.btn-warning:hover {
    background: rgba(236, 156, 37, 0.15);
    border: 1px solid rgba(236, 156, 37, 0.75);
    color: rgba(236, 156, 37, 1);
}

.btn-success {
    background: rgba(38, 192, 24, 0.05);
    border: 1px solid rgba(38, 192, 24, 0.75);
    color: rgba(38, 192, 24, 0.75);
}

.btn-success:hover {
    background: rgba(38, 192, 24, 0.15);
    border: 1px solid rgba(38, 192, 24, 0.75);
    color: rgba(38, 192, 24, 1);
}

.btn-danger {
    background: rgba(255, 69, 58, 0.05);
    border: 1px solid rgba(255, 69, 58, 0.75);
    color: rgba(255, 69, 58, 0.75);
}

.btn-danger:hover {
    background: rgba(255, 69, 58, 0.15);
    border: 1px solid rgba(255, 69, 58, 0.75);
    color: rgba(255, 69, 58, 1);
}

.btn-info {
    background: rgba(65, 105, 225, 0.05);
    border: 1px solid rgba(65, 105, 225, 0.75);
    color: rgba(65, 105, 225, 0.75);
}

.btn-info:hover {
    background: rgba(65, 105, 225, 0.15);
    border: 1px solid rgba(65, 105, 225, 0.75);
    color: rgba(65, 105, 225, 1);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

/* ========================================
   New Admin Panel - Step-based Actions
   ======================================== */

.action-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.action-step.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50%;
}

.step-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-back svg {
    width: 18px;
    height: 18px;
}

.btn-back:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Member Search */
.member-search-container {
    max-width: 700px;
}

.member-search-input {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0 16px;
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}

.member-search-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.member-search-input svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.member-search-input input {
    flex: 1;
    padding: 16px 12px;
    font-size: 15px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
}

.member-search-input input::placeholder {
    color: var(--text-muted);
}

.search-loading {
    margin-left: auto;
}

.loading-spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.member-search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.member-search-results::-webkit-scrollbar {
    width: 6px;
}

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

.member-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    animation: itemFadeIn 0.3s ease forwards;
    transition: all var(--transition-fast);
}

@keyframes itemFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.member-search-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.member-search-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateX(4px);
}

.member-search-item.dept-academy {
    border-left: 4px solid #90EE90;
}

.member-search-item.dept-farm {
    border-left: 4px solid #FFD700;
}

.member-search-item.dept-main {
    border-left: 4px solid #4169E1;
}

.member-search-item.dept-staff {
    border-left: 4px solid #40E0D0;
}

.member-search-item.dept-senior {
    border-left: 4px solid #DC143C;
}

.member-search-item.not-registered {
    opacity: 0.75;
    filter: brightness(0.85);
}

.member-search-item.not-registered:hover {
    opacity: 0.85;
    filter: brightness(0.9);
}

.member-search-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.member-search-info {
    flex: 1;
    min-width: 0;
}

.member-search-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-search-discord {
    font-size: 13px;
    color: var(--text-muted);
}

.member-search-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.member-search-rank {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.member-search-warns {
    font-size: 12px;
    color: var(--success);
}

.member-search-warns.has-warns {
    color: var(--warning);
}

.search-empty,
.search-error {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Selected Member Card */
.selected-member-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
}

.selected-member-card.not-registered {
    opacity: 0.75;
    filter: brightness(0.85);
}

.selected-member-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.selected-member-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    display: block;
}

.selected-member-avatar-crown {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    color: #FFD700;
    z-index: 1;
    pointer-events: none;
}

.selected-member-avatar-crown svg {
    width: 100%;
    height: 100%;
}

.selected-member-info {
    flex: 1;
}

.selected-member-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.selected-member-discord {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.selected-member-meta {
    display: flex;
    gap: 12px;
}

.selected-member-rank {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}

.selected-member-rank.dept-academy {
    background: rgba(144, 238, 144, 0.15);
    color: #90EE90;
}

.selected-member-rank.dept-farm {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

.selected-member-rank.dept-main {
    background: rgba(65, 105, 225, 0.15);
    color: #4169E1;
}

.selected-member-rank.dept-staff {
    background: rgba(64, 224, 208, 0.15);
    color: #40E0D0;
}

.selected-member-rank.dept-senior {
    background: rgba(220, 20, 60, 0.15);
    color: #DC143C;
}

.selected-member-warns {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

.selected-member-warns.has-warns {
    background: rgba(255, 159, 10, 0.15);
    color: var(--warning);
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
}

.action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn.disabled:hover {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.action-btn.warn:hover {
    border-color: var(--warning);
    background: rgba(255, 159, 10, 0.05);
}

.action-btn.unwarn:hover {
    border-color: var(--success);
    background: rgba(52, 199, 89, 0.05);
}

.action-btn.fire:hover {
    border-color: var(--error);
    background: rgba(255, 69, 58, 0.05);
}

.action-btn.rank:hover {
    border-color: var(--dept-main);
    background: rgba(65, 105, 225, 0.05);
}

.action-btn-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.action-btn-icon svg {
    width: 26px;
    height: 26px;
}

.action-btn.warn .action-btn-icon {
    background: rgba(255, 159, 10, 0.15);
    color: var(--warning);
}

.action-btn.unwarn .action-btn-icon {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

.action-btn.fire .action-btn-icon {
    background: rgba(255, 69, 58, 0.15);
    color: var(--error);
}

.action-btn.rank .action-btn-icon {
    background: rgba(65, 105, 225, 0.15);
    color: var(--dept-main);
}

.action-btn-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-btn-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.action-btn-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Confirm Card */
.confirm-card {
    max-width: 500px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
}

.confirm-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.confirm-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.confirm-target {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.confirm-card .form-group {
    text-align: left;
    margin-bottom: 24px;
}

.confirm-card .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.rank-change-info {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-change-old,
.rank-change-new {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-change-label {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 100px;
}

.rank-change-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-confirm {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    animation: cardFadeIn 0.3s ease forwards;
    transition: all var(--transition-base);
}

.activity-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.activity-item.warning {
    border-left: 4px solid var(--warning);
}

.activity-item.success {
    border-left: 4px solid var(--success);
}

.activity-item.danger {
    border-left: 4px solid var(--error);
}

.activity-icon {
    font-size: 24px;
    line-height: 1;
}

.activity-content {
    flex: 1;
}

.activity-user {
    font-size: 15px;
    margin-bottom: 4px;
}

.activity-user-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-block;
}

.activity-user-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.activity-user-link strong {
    font-weight: 600;
}

.activity-user-link:visited {
    color: var(--text-primary);
}

.activity-user-link:visited:hover {
    color: var(--accent);
}

.activity-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.activity-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Admin Members */
.admin-members-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.member-card.fired {
    border-left-color: var(--text-muted);
    opacity: 0.7;
}

.member-card.not-registered {
    opacity: 0.75;
    filter: brightness(0.85);
    position: relative;
}

.member-card.not-registered::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 1;
}

.member-card.not-registered:hover {
    opacity: 0.85;
    filter: brightness(0.9);
}

.not-registered-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-name .not-registered-badge {
    padding: 2px 6px;
    font-size: 9px;
    margin-left: 8px;
    letter-spacing: 0.3px;
}

.fired-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--error);
    background: rgba(255, 69, 58, 0.15);
    border-radius: var(--radius-sm);
    margin-left: 8px;
    text-transform: uppercase;
}

.member-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--error);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.toast button:hover {
    color: var(--text-primary);
}

/* Senior Actions in Profile */
.senior-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.senior-actions .btn {
    flex: 1;
    min-width: 140px;
}

/* Warn Item Extended */
.warn-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background: rgba(255, 159, 10, 0.05);
    border: 1px solid rgba(255, 159, 10, 0.1);
    border-radius: var(--radius-md);
    gap: 16px;
}

.warn-item.removed {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    opacity: 0.7;
}

.warn-content {
    flex: 1;
}

.warn-reason {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.warn-meta {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.removed-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-right: 8px;
    text-transform: uppercase;
}

/* Activity in Profile */
#profileActivityList .activity-item {
    margin-bottom: 8px;
}

#profileActivityList .activity-item:last-child {
    margin-bottom: 0;
}

/* ========================================
   Modal System - Apple/iOS Design
   ======================================== */

#modalContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        -webkit-backdrop-filter 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0.25s;
    pointer-events: all;
    z-index: 10000;
    will-change: opacity, backdrop-filter;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transition: opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1),
        backdrop-filter 0.4s cubic-bezier(0.32, 0.72, 0, 1),
        -webkit-backdrop-filter 0.4s cubic-bezier(0.32, 0.72, 0, 1),
        background 0.4s cubic-bezier(0.32, 0.72, 0, 1),
        visibility 0s linear 0s;
}

.modal-overlay:not(.show) {
    opacity: 0;
    visibility: hidden;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        -webkit-backdrop-filter 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0.25s;
}

.modal-dialog {
    background: rgba(22, 22, 22, 0.92);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6),
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 0.5px rgba(255, 255, 255, 0.05) inset;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(40px);
    opacity: 0;
    transition: transform 0.35s ease-out,
        opacity 0.35s ease-out;
    will-change: transform, opacity;
}

.modal-overlay.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay:not(.show) .modal-dialog {
    transform: scale(0.9) translateY(40px);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-dialog-prompt {
    max-width: 560px;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 26px 22px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
    position: relative;
}

.modal-header .modal-icon {
    margin: 0;
}

.modal-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 18px;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    align-self: center;
}

.modal-overlay.show .modal-icon {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.15s;
}

.modal-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2.2;
}

.modal-icon-info {
    background: rgba(65, 105, 225, 0.15);
    color: #6AA3FF;
}

.modal-icon-warning {
    background: rgba(255, 159, 10, 0.15);
    color: #FFB946;
}

.modal-icon-error {
    background: rgba(255, 69, 58, 0.15);
    color: #FF6B6B;
}

.modal-icon-success {
    background: rgba(52, 199, 89, 0.15);
    color: #4CD964;
}

.modal-title {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    text-align: center;
    min-width: 0;
}

.modal-overlay.show .modal-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.32, 0.72, 0, 1) 0s !important;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.8);
}

.modal-overlay.show .modal-close {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.25s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    transition-delay: 0s !important;
}

.modal-close:active {
    background: rgba(255, 255, 255, 0.1);
    transition-duration: 0.1s;
}

.modal-close svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.modal-body {
    padding: 22px 26px;
    flex: 1;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay.show .modal-body {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.modal-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.modal-input-wrapper {
    margin-top: 16px;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.06);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text-primary);
    resize: vertical;
    outline: none;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    backdrop-filter: blur(10px);
}

.modal-input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.modal-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.modal-input::placeholder {
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 26px 26px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(to top, rgba(255, 255, 255, 0.03), transparent);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay.show .modal-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.modal-footer .btn {
    min-width: 100px;
    padding: 11px 22px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    transform: translateZ(0);
}

.modal-footer .btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-footer .btn:active {
    transition-duration: 0.1s;
}

.modal-btn-confirm {
    order: 2;
}

.modal-btn-cancel {
    order: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
    .modal-dialog {
        max-width: 100%;
        margin: 0;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1),
            opacity 0.6s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-overlay.show .modal-dialog {
        transform: translateY(0);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .modal-header {
        padding-top: 28px;
        padding-bottom: 20px;
    }

    .modal-body {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .modal-footer {
        padding-top: 18px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
        flex-direction: column-reverse;
        gap: 10px;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* ========================================
   Info Page
   ======================================== */

.info-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.info-section-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.info-section-card:nth-child(1) {
    animation-delay: 0.1s;
}

.info-section-card:nth-child(2) {
    animation-delay: 0.2s;
}

.info-section-card:nth-child(3) {
    animation-delay: 0.3s;
}

.info-section-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.info-section-card.active {
    border-color: var(--accent);
    background: rgba(220, 20, 60, 0.05);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.info-section-card.active:hover {
    transform: translateY(-4px);
}

.info-section-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 20, 60, 0.1);
    border-radius: var(--radius-lg);
    color: var(--accent);
    flex-shrink: 0;
}

.info-section-card.active .info-section-icon {
    background: var(--accent);
    color: white;
}

.info-section-icon svg {
    width: 28px;
    height: 28px;
}

.info-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.info-section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Content Sections */
.info-content-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.info-content-section.active {
    display: block;
}

.info-content-header {
    text-align: center;
    margin-bottom: 48px;
}

.info-content-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.info-content-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Ranks Section */
.ranks-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.department-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.department-section:nth-child(1) {
    animation-delay: 0.1s;
}

.department-section:nth-child(2) {
    animation-delay: 0.2s;
}

.department-section:nth-child(3) {
    animation-delay: 0.3s;
}

.department-section:nth-child(4) {
    animation-delay: 0.4s;
}

.department-section:nth-child(5) {
    animation-delay: 0.5s;
}

.department-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.department-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    border: 2px solid;
}

.department-header.dept-academy {
    background: rgba(144, 238, 144, 0.1);
    border-color: var(--dept-academy);
}

.department-header.dept-farm {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--dept-farm);
}

.department-header.dept-main {
    background: rgba(65, 105, 225, 0.1);
    border-color: var(--dept-main);
}

.department-header.dept-staff {
    background: rgba(64, 224, 208, 0.1);
    border-color: var(--dept-staff);
}

.department-header.dept-senior {
    background: rgba(220, 20, 60, 0.1);
    border-color: var(--dept-senior);
}

.department-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.department-header.dept-academy .department-icon {
    background: rgba(144, 238, 144, 0.2);
    color: var(--dept-academy);
}

.department-header.dept-farm .department-icon {
    background: rgba(255, 215, 0, 0.2);
    color: var(--dept-farm);
}

.department-header.dept-main .department-icon {
    background: rgba(65, 105, 225, 0.2);
    color: var(--dept-main);
}

.department-header.dept-staff .department-icon {
    background: rgba(64, 224, 208, 0.2);
    color: var(--dept-staff);
}

.department-header.dept-senior .department-icon {
    background: rgba(220, 20, 60, 0.2);
    color: var(--dept-senior);
}

.department-icon svg {
    width: 28px;
    height: 28px;
}

.department-info {
    flex: 1;
}

.department-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.department-header.dept-academy .department-name {
    color: var(--dept-academy);
}

.department-header.dept-farm .department-name {
    color: var(--dept-farm);
}

.department-header.dept-main .department-name {
    color: var(--dept-main);
}

.department-header.dept-staff .department-name {
    color: var(--dept-staff);
}

.department-header.dept-senior .department-name {
    color: var(--dept-senior);
}

.department-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.rank-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(10px);
    cursor: pointer;
    user-select: none;
}

.rank-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.rank-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--bg-hover);
    transition-delay: 0s !important;
    /* Убираем задержку для hover */
}

.rank-card:active {
    transform: translateY(-2px);
    transition: all 0.1s ease;
}

.rank-card.dept-academy {
    border-left-color: var(--dept-academy);
}

.rank-card.dept-farm {
    border-left-color: var(--dept-farm);
}

.rank-card.dept-main {
    border-left-color: var(--dept-main);
}

.rank-card.dept-staff {
    border-left-color: var(--dept-staff);
}

.rank-card.dept-senior {
    border-left-color: var(--dept-senior);
}

.rank-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.rank-card.dept-academy .rank-number {
    background: rgba(144, 238, 144, 0.2);
    color: var(--dept-academy);
}

.rank-card.dept-farm .rank-number {
    background: rgba(255, 215, 0, 0.2);
    color: var(--dept-farm);
}

.rank-card.dept-main .rank-number {
    background: rgba(65, 105, 225, 0.2);
    color: var(--dept-main);
}

.rank-card.dept-staff .rank-number {
    background: rgba(64, 224, 208, 0.2);
    color: var(--dept-staff);
}

.rank-card.dept-senior .rank-number {
    background: rgba(220, 20, 60, 0.2);
    color: var(--dept-senior);
}

.rank-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.rank-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.rank-card {
    position: relative;
}

.rank-card-current-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.4), 0 0 0 2px rgba(34, 197, 94, 0.1);
    pointer-events: none;
    transition: all 0.2s ease;
}

.rank-card:hover .rank-card-current-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.5), 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.rank-card-current-badge svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 3;
}

/* Rank Requirements in Modal */
.rank-requirements-container {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.rank-requirements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    transition: all var(--transition-fast);
}

.rank-requirement-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateX(2px);
}

.requirement-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.requirement-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.requirement-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 2px;
}

.requirement-progress {
    font-size: 12px;
    color: var(--warning);
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid rgba(255, 159, 10, 0.2);
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
    margin-top: 2px;
}

.rank-requirement-item.completed .requirement-progress {
    color: #4CD964;
    background: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.2);
}

.rank-requirement-item.not-completed .requirement-progress {
    color: #FF6B6B;
    background: rgba(255, 69, 58, 0.1);
    border-color: rgba(255, 69, 58, 0.2);
}

.requirement-check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 8px;
}

.requirement-check.completed {
    color: #4CD964;
}

.requirement-check.not-completed {
    color: #FF6B6B;
}

.requirement-check.manual {
    color: var(--text-muted);
}

.rank-requirement-item.completed {
    background: rgba(52, 199, 89, 0.08);
    border-left-color: #4CD964;
}

.rank-requirement-item.not-completed {
    background: rgba(255, 69, 58, 0.08);
    border-left-color: #FF6B6B;
}

.rank-requirement-card {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.rank-requirement-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rank-requirement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rank-requirement-rank {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.rank-requirement-points {
    font-size: 16px;
    font-weight: 600;
    color: var(--success);
}

.rank-requirement-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.current-rank-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15), rgba(220, 20, 60, 0.08));
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
}

.current-rank-badge svg {
    width: 20px;
    height: 20px;
}

/* Rules Section */
.rules-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.rules-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-base);
}

.rules-section:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.rules-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.rules-section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rules-general-text {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
}

/* Санкции */
.sanction-item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent);
    margin-bottom: 16px;
}

.sanction-item:last-child {
    margin-bottom: 0;
}

.sanction-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sanction-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.sanction-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.sanction-link {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sanction-link:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* Правила */
.rule-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--border-color);
    transition: all var(--transition-fast);
}

.rule-item:hover {
    border-left-color: var(--accent);
    background: var(--bg-hover);
}

.rule-item-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
}

.rule-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-item-text {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.rule-item-note {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
    margin: 0;
    padding-left: 12px;
    border-left: 2px solid var(--border-color);
}

.rule-item-penalties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.penalty-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.penalty-warn {
    background: rgba(255, 159, 10, 0.2);
    color: #FF9F0A;
    border: 1px solid rgba(255, 159, 10, 0.3);
}

.penalty-dismissal {
    background: rgba(220, 20, 60, 0.2);
    color: #DC143C;
    border: 1px solid rgba(220, 20, 60, 0.3);
}

.penalty-blacklist {
    background: rgba(139, 0, 0, 0.2);
    color: #8B0000;
    border: 1px solid rgba(139, 0, 0, 0.3);
}

.penalty-ban {
    background: rgba(255, 0, 0, 0.2);
    color: #FF0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.penalty-verbal {
    background: rgba(100, 149, 237, 0.2);
    color: #6495ED;
    border: 1px solid rgba(100, 149, 237, 0.3);
}

.penalty-project {
    background: rgba(255, 140, 0, 0.2);
    color: #FF8C00;
    border: 1px solid rgba(255, 140, 0, 0.3);
    text-transform: none;
    font-weight: 500;
}

/* Ссылки на правила */
.rules-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rules-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-left: 3px solid var(--border-color);
}

.rules-link:hover {
    background: var(--bg-hover);
    border-left-color: var(--accent);
    transform: translateX(4px);
}

.rules-link-bar {
    width: 3px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.rules-link-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.rules-link-url {
    font-size: 13px;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

/* Join Section */
.join-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.join-step {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateX(-20px);
}

.join-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.join-step:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.join-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 24px;
    font-weight: 700;
    color: white;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.join-step-content {
    flex: 1;
}

.join-step-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.join-step-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.join-step-list {
    margin: 16px 0 0 0;
    padding-left: 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.join-step-list li {
    margin-bottom: 8px;
    font-size: 15px;
}

.join-step-list li:last-child {
    margin-bottom: 0;
}

.join-cta {
    text-align: center;
    padding: 48px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), transparent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.join-cta-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.join-cta-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .info-sections {
        grid-template-columns: 1fr;
    }

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

    .rules-section {
        padding: 24px;
    }

    .rule-item {
        flex-direction: column;
        gap: 12px;
    }

    .rule-item-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .rules-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rules-link-url {
        word-break: break-all;
        font-size: 12px;
    }

    .join-step {
        flex-direction: column;
        text-align: center;
    }

    .join-step-number {
        margin: 0 auto;
    }

    .department-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Actions Page
   ======================================== */

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.action-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.action-card:nth-child(1) {
    animation-delay: 0.1s;
}

.action-card:nth-child(2) {
    animation-delay: 0.2s;
}

.action-card:nth-child(3) {
    animation-delay: 0.3s;
}

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

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

.action-card-disabled:hover {
    transform: translateY(0);
    border-color: var(--border-color);
    box-shadow: none;
}

.action-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 20, 60, 0.1);
    border-radius: var(--radius-lg);
    color: var(--accent);
}

.action-card-disabled .action-card-icon {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.action-card-icon svg {
    width: 32px;
    height: 32px;
}

.action-card-content {
    flex: 1;
}

.action-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.action-card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.action-card-requirements {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.requirement-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirement-badge.disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

/* Transfer Section */
.action-section {
    animation: fadeInUp 0.5s ease forwards;
}

.action-section-header {
    margin-bottom: 32px;
}

.transfer-container {
    max-width: 800px;
    margin: 0 auto;
}

.transfer-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.transfer-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 20, 60, 0.1);
    border-radius: var(--radius-lg);
    color: var(--accent);
    flex-shrink: 0;
}

.transfer-icon svg {
    width: 36px;
    height: 36px;
}

.transfer-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.transfer-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.current-info-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.current-info-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.current-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.current-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-info-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.current-info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.transfer-form {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Promotion Requirements Styles */
.promotion-requirements-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.promotion-requirements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promotion-requirement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    gap: 16px;
}

.promotion-requirement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.promotion-requirement-item.completed {
    border-color: #34c759;
    background: rgba(52, 199, 89, 0.05);
}

.promotion-requirement-item.not-completed {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.05);
}

.promotion-requirement-item.manual {
    border-color: var(--border-color);
    background: var(--bg-secondary);
}

.requirement-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.requirement-content span:first-child {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.requirement-progress {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    display: inline-block;
    width: fit-content;
}

.requirement-check {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    stroke-width: 2.5;
    transition: all 0.2s ease;
}

.requirement-check.completed {
    color: #34c759;
    stroke: #34c759;
    fill: rgba(52, 199, 89, 0.1);
}

.requirement-check.not-completed {
    color: #ff3b30;
    stroke: #ff3b30;
    fill: rgba(255, 59, 48, 0.1);
}

.requirement-check.manual {
    color: #8e8e93;
    stroke: #8e8e93;
    fill: rgba(142, 142, 147, 0.1);
}

.requirement-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.requirement-checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.requirement-checkbox-wrapper label {
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: rgba(52, 199, 89, 0.05);
    border: 2px solid rgba(52, 199, 89, 0.3);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    border-color: rgba(52, 199, 89, 0.5);
}

.checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #34c759;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    flex: 1;
    line-height: 1.6;
    font-weight: 500;
}

.form-info {
    padding: 18px 20px;
    background: rgba(52, 199, 89, 0.1);
    border: 2px solid #34c759;
    border-radius: var(--radius-lg);
    color: #2d9a4f;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-info::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #34c759;
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.form-warning {
    padding: 18px 20px;
    background: rgba(255, 149, 0, 0.1);
    border: 2px solid #ff9500;
    border-radius: var(--radius-lg);
    color: #e68500;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-warning::before {
    content: '⚠';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ff9500;
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.promotion-error {
    padding: 16px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid var(--error);
    border-radius: var(--radius-md);
    color: var(--error);
    font-size: 14px;
    text-align: center;
}

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

    .transfer-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .transfer-form {
        padding: 24px;
    }

    .current-info-grid {
        grid-template-columns: 1fr;
    }

    .promotion-requirements-card {
        padding: 16px;
    }

    .promotion-requirement-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .requirement-check {
        align-self: flex-end;
    }
}

/* Warn Removal Styles */
.warn-info-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.warn-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.warn-number {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.discount-badge {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.warn-info-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.warn-detail {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.warn-label {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 120px;
}

.warn-value {
    color: var(--text-primary);
    flex: 1;
}

.warn-value.discount-time {
    color: var(--success);
    font-weight: 600;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    margin-right: 8px;
    flex-shrink: 0;
    transform: translateY(3px);
}

.radio-label span {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.screenshot-preview {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.screenshot-preview img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Кнопки отправки заявки - только размер и расположение */
.btn-submit-application {
    /* Убираем все визуальные стили (цвета, тени, границы, анимации), оставляем только размер и расположение */
    background: #1a1a1a !important;
    color: #fdfdfd !important;
    font-size: 16px;
    border: 1px solid rgba(65, 65, 65, 0.815) !important;
    box-shadow: none !important;
    overflow: visible !important;
    height: 55px;
}

.btn-submit-application::before {
    display: none !important;
}

.btn-submit-application:hover {
    background: #272727 !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.btn-submit-application:hover::before {
    display: none !important;
}

.btn-submit-application:active {
    box-shadow: none !important;
}

/* Activity Report Styles */
.activity-event-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.activity-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.activity-event-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.screenshots-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.screenshot-link-group,
.screenshot-file-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Points Styles */
.points-value {
    color: var(--accent);
    font-size: 1.2em;
    font-weight: 600;
}

.points-active-value {
    color: var(--success);
    font-size: 1.2em;
    font-weight: 600;
}

.points-info-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.points-info-section {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.points-info-title {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.points-info-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.points-info-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.points-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.points-type-card {
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.points-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.points-type-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.points-type-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.points-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards;
}

.activity-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.activity-content {
    flex: 1;
}

.activity-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-points {
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
}

.points-promotion-requirements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.points-promotion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.points-promotion-ranks {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.points-promotion-points {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.points-info-note {
    margin-top: 20px;
    padding: 16px;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.points-rules-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.points-rules-list li {
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.points-rules-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 18px;
}

.points-history-item {
    padding: 15px;
    margin-bottom: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.points-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
}


/* ========================================
   Goals Page Styles
   ======================================== */

/* Other Sections Grid */
.other-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.other-section-card {
    display: block;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-base);
    cursor: pointer;
}

.other-section-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.other-section-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--accent);
}

.other-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.other-section-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Goals List */
.goals-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.goals-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 32px;
    color: var(--text-secondary);
}

.goals-empty svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: 0.5;
}

/* Goal Card */
.goal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.goal-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.goal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.goal-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.goal-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    margin-left: 12px;
}

.goal-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.goal-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 4px;
    transition: width var(--transition-base);
}

.goal-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 45px;
    text-align: right;
}

.goal-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.goal-likes {
    display: flex;
    gap: 8px;
}

.goal-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.goal-like-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.goal-like-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.goal-like-btn svg {
    width: 16px;
    height: 16px;
}

.goal-like-count {
    font-weight: 500;
}

.goal-like-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 4px;
    border: 1px solid var(--border-color);
}

/* Goal Steps */
.goal-step-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.goal-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.goal-step-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Goal Details Modal */
.goal-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.goal-detail-info {
    flex: 1;
}

.goal-detail-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.goal-detail-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.goal-detail-progress-overall {
    margin-bottom: 32px;
}

.goal-detail-progress-bar {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
}

.goal-detail-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 6px;
    transition: width var(--transition-base);
}

.goal-detail-steps {
    margin-bottom: 32px;
}

.goal-detail-steps h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.goal-detail-step {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.goal-detail-step.completed {
    border-color: var(--success);
    background: rgba(52, 199, 89, 0.1);
}

.goal-detail-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.goal-detail-step-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.step-completed-badge {
    padding: 4px 12px;
    background: var(--success);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.goal-detail-step-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.goal-detail-step-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.goal-detail-likes {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.goal-detail-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.goal-detail-actions h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.goal-actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.goal-action-item {
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.goal-action-description {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.goal-action-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-tertiary);
}

.goal-action-author {
    font-weight: 500;
}

.goal-action-date {
    color: var(--text-muted);
}

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

/* Modal Large */
.modal-large {
    max-width: 800px;
    width: 90%;
}

/* Responsive */
@media (max-width: 768px) {
    .goals-list {
        grid-template-columns: 1fr;
    }

    .other-sections-grid {
        grid-template-columns: 1fr;
    }

    .goal-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .goal-status {
        margin-left: 0;
    }

    .goal-detail-header {
        flex-direction: column;
        gap: 16px;
    }

    .goal-detail-step-actions {
        flex-direction: column;
    }
}

/* ========================================
   Profile Status
   ======================================== */

.profile-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 15px;
    color: var(--text-secondary);
}

.status-emoji {
    font-size: 18px;
    line-height: 1;
}

.status-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.status-clickable {
    cursor: pointer;
    transition: color 0.2s ease;
}

.status-clickable:hover {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--border-light);
}

.btn-edit-status {
    padding: 4px 8px;
    margin-left: 8px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.2s ease;
}

.profile-header-info:hover .btn-edit-status {
    opacity: 1;
}

.btn-edit-status:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Roster Member Status */
.member-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 100%;
}

.member-status .status-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status Modal */
.status-modal-content {
    width: 100%;
    max-width: 450px;
}

.status-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Status Card Content */
.profile-status-card-content {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status-display-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-primary);
    min-height: 24px;
}

.status-display-wrapper .status-emoji {
    font-size: 20px;
}

.status-display-wrapper .status-text {
    color: var(--text-secondary);
}

.status-input-group {
    display: flex;
    gap: 12px;
}

.emoji-trigger {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.emoji-trigger:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

/* Emoji Picker in Modal */
.emoji-picker-container {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 8px;
    display: none;
}

.emoji-picker-container.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
}

.emoji-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
}

.emoji-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.emoji-btn.selected {
    background: var(--accent);
}

/* Roster Status */
.member-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-status .status-emoji {
    font-size: 14px;
}