:root {
    --primary-gradient: linear-gradient(135deg, #1a1a1a, #2d2d2d, #404040);
    --accent-color-1: #ffffff;
    --bg-dark: #0a0a0a;
    --bg-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: rgba(255, 255, 255, 0.15);
    --glow-color-1: rgba(255, 255, 255, 0.3);
    --glow-color-2: rgba(224, 224, 224, 0.2);
    --card-bg: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(40, 40, 40, 0.98));
}

[data-theme="cyan-blue"] {
    --primary-gradient: linear-gradient(135deg, #00E1FD, #00E1FD);
    --accent-color-1: #00E1FD;
    --bg-dark: #000510;
    --bg-light: #001020;
    --glow-color-1: rgba(0, 225, 253, 0.5);
    --glow-color-2: rgba(0, 128, 255, 0.3);
    --card-bg: linear-gradient(135deg, rgba(0, 10, 20, 0.98), rgba(0, 30, 50, 0.98));
}

[data-theme="sunset"] {
    --primary-gradient: linear-gradient(135deg, #FF2626, #FF8800, #FFFF26);
    --accent-color-1: #FF2626;
    --bg-dark: #1a0505;
    --bg-light: #2a0a00;
    --glow-color-1: rgba(255, 38, 38, 0.5);
    --glow-color-2: rgba(255, 255, 38, 0.3);
    --card-bg: linear-gradient(135deg, rgba(30, 10, 5, 0.98), rgba(50, 20, 10, 0.98));
}

[data-theme="pink-orange"] {
    --primary-gradient: linear-gradient(135deg, #FF00FF, #FF8844, #FCCF3A);
    --accent-color-1: #FF00FF;
    --bg-dark: #1a0510;
    --bg-light: #2a0820;
    --glow-color-1: rgba(255, 0, 255, 0.5);
    --glow-color-2: rgba(252, 207, 58, 0.3);
    --card-bg: linear-gradient(135deg, rgba(30, 5, 20, 0.98), rgba(50, 15, 30, 0.98));
}

[data-theme="green-blue"] {
    --primary-gradient: linear-gradient(135deg, #70FF40, #00AA77, #0040FF);
    --accent-color-1: #70FF40;
    --bg-dark: #051005;
    --bg-light: #082010;
    --glow-color-1: rgba(112, 255, 64, 0.5);
    --glow-color-2: rgba(0, 64, 255, 0.3);
    --card-bg: linear-gradient(135deg, rgba(5, 20, 10, 0.98), rgba(10, 35, 25, 0.98));
}

[data-theme="pink-blue"] {
    --primary-gradient: linear-gradient(135deg, #FF0A6C, #AA0088, #0040FF);
    --accent-color-1: #FF0A6C;
    --bg-dark: #100510;
    --bg-light: #200820;
    --glow-color-1: rgba(255, 10, 108, 0.5);
    --glow-color-2: rgba(0, 64, 255, 0.3);
    --card-bg: linear-gradient(135deg, rgba(20, 5, 20, 0.98), rgba(40, 10, 35, 0.98));
}

[data-theme="yellow-cyan"] {
    --primary-gradient: linear-gradient(135deg, #FFE53B, #88FFAA, #00FFFF);
    --accent-color-1: #FFE53B;
    --bg-dark: #101005;
    --bg-light: #1a1810;
    --glow-color-1: rgba(255, 229, 59, 0.5);
    --glow-color-2: rgba(0, 255, 255, 0.3);
    --card-bg: linear-gradient(135deg, rgba(20, 18, 5, 0.98), rgba(35, 32, 15, 0.98));
}

[data-theme="red-pink"] {
    --primary-gradient: linear-gradient(135deg, #FF2626, #FF5588, #FF95F4);
    --accent-color-1: #FF2626;
    --bg-dark: #150508;
    --bg-light: #250810;
    --glow-color-1: rgba(255, 38, 38, 0.5);
    --glow-color-2: rgba(255, 149, 244, 0.3);
    --card-bg: linear-gradient(135deg, rgba(25, 8, 15, 0.98), rgba(45, 15, 25, 0.98));
}

[data-theme="blue-green"] {
    --primary-gradient: linear-gradient(135deg, #3E648E, #5A8A7A, #81b374);
    --accent-color-1: #3E648E;
    --bg-dark: #0a0f12;
    --bg-light: #15202a;
    --glow-color-1: rgba(62, 100, 142, 0.5);
    --glow-color-2: rgba(129, 179, 116, 0.3);
    --card-bg: linear-gradient(135deg, rgba(20, 30, 40, 0.98), rgba(30, 45, 50, 0.98));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-light));
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: all 0.6s ease;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, var(--glow-color-1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, var(--glow-color-2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

header {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    min-height: 70px;
}

.header-left { 
    display: flex; 
    align-items: center; 
    gap: 0.8rem;
    flex-shrink: 0;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    background-size: 300% 300%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--glow-color-1);
    transition: all 0.4s ease;
    animation: gradientShift 8s ease infinite;
    overflow: hidden;
}

.logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 30px var(--glow-color-1); }

.site-title {
    background: var(--primary-gradient);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    animation: gradientShift 8s ease infinite;
    transition: all 0.3s ease;
    white-space: nowrap;
}

nav { 
    display: flex; 
    gap: 0.4rem; 
    flex-wrap: wrap; 
    align-items: center;
    justify-content: flex-end;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.4s ease;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 8s ease infinite;
    z-index: 0;
}

nav a span {
    position: relative;
    z-index: 1;
}

nav a:hover::before { opacity: 1; }

nav a:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow-color-1);
}

main {
    max-width: 1200px;
    margin: 100px auto 2rem;
    padding: 0 2rem;
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 2;
}

h1, h2, h3, h4, h5, h6 {
    background: var(--primary-gradient);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    animation: gradientShift 8s ease infinite;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }

.btn, button[type="submit"], input[type="submit"] {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-gradient);
    background-size: 300% 300%;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
    z-index: 1;
}

.btn::before, button[type="submit"]::before, input[type="submit"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn:hover::before, button[type="submit"]:hover::before, input[type="submit"]:hover::before {
    transform: translateX(100%);
}

.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--glow-color-1);
}

.form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--accent-color-1);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color-1);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px var(--glow-color-1);
    transform: translateY(-2px);
}

.task-list, .news-list, .team-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.task-item, .news-item, .team-member {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.task-item::before, .news-item::before, .team-member::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 8s ease infinite;
    pointer-events: none;
}

.task-item:hover, .news-item:hover, .team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--glow-color-1);
    border-color: var(--accent-color-1);
}

.task-item:hover::before, .news-item:hover::before, .team-member:hover::before {
    opacity: 0.05;
}

.task-status, .status-new, .status-completed {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary-gradient);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    box-shadow: 0 2px 10px var(--glow-color-1);
}

.status-completed {
    background: linear-gradient(135deg, #00ff88, #00cc66);
}

.avatar, .member-photo img, .default-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary-gradient);
    background-size: 300% 300%;
    box-shadow: 0 0 30px var(--glow-color-1);
    transition: all 0.4s ease;
    animation: gradientShift 8s ease infinite;
    object-fit: cover;
}

.avatar:hover { transform: scale(1.05); box-shadow: 0 0 40px var(--glow-color-1); }

.theme-selector-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.theme-selector-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.theme-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px var(--glow-color-1);
}

.theme-card.active {
    border-color: var(--accent-color-1);
    box-shadow: 0 0 30px var(--glow-color-1);
}

.theme-preview {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
}

.theme-preview::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #000;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.theme-card.active .theme-preview::after {
    opacity: 1;
    transform: scale(1);
}

.theme-name {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.theme-colors {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 1rem;
}

.color-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.theme-preview-grayscale { background: linear-gradient(135deg, #1a1a1a, #2d2d2d, #404040); }
.theme-preview-cyan-blue { background: linear-gradient(135deg, #00E1FD, #00E1FD); }
.theme-preview-sunset { background: linear-gradient(135deg, #FF2626, #FF8800, #FFFF26); }
.theme-preview-pink-orange { background: linear-gradient(135deg, #FF00FF, #FF8844, #FCCF3A); }
.theme-preview-green-blue { background: linear-gradient(135deg, #70FF40, #00AA77, #0040FF); }
.theme-preview-pink-blue { background: linear-gradient(135deg, #FF0A6C, #AA0088, #0040FF); }
.theme-preview-yellow-cyan { background: linear-gradient(135deg, #FFE53B, #88FFAA, #00FFFF); }
.theme-preview-red-pink { background: linear-gradient(135deg, #FF2626, #FF5588, #FF95F4); }
.theme-preview-blue-green { background: linear-gradient(135deg, #3E648E, #5A8A7A, #81b374); }

.flash-message {
    padding: 1rem;
    background: var(--card-bg);
    border-left: 4px solid var(--accent-color-1);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.comment, .discussion-message {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.comment:hover {
    border-color: var(--accent-color-1);
    box-shadow: 0 4px 15px var(--glow-color-1);
}

.user-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.user-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 10px;
    margin: 2px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    background-size: 300% 300%;
    border-radius: 10px;
    border: 3px solid var(--bg-dark);
    animation: gradientShift 8s ease infinite;
    transition: all 0.5s ease;
    min-height: 40px;
}

::-webkit-scrollbar-thumb:hover {
    background-size: 200% 200%;
    box-shadow: 0 0 20px var(--glow-color-1), 0 0 40px var(--glow-color-2);
    border-width: 2px;
    transform: scaleY(1.02);
}

::-webkit-scrollbar-corner {
    background: var(--bg-dark);
}

* {
    scrollbar-width: auto;
    scrollbar-color: var(--accent-color-1) var(--bg-dark);
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body:not([data-theme]) ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d, #404040);
    background-size: 300% 300%;
}

[data-theme="cyan-blue"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00E1FD, #00E1FD);
    background-size: 300% 300%;
}

[data-theme="sunset"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF2626, #FF8800, #FFFF26);
    background-size: 300% 300%;
}

[data-theme="pink-orange"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF00FF, #FF8844, #FCCF3A);
    background-size: 300% 300%;
}

[data-theme="green-blue"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #70FF40, #00AA77, #0040FF);
    background-size: 300% 300%;
}

[data-theme="pink-blue"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF0A6C, #AA0088, #0040FF);
    background-size: 300% 300%;
}

[data-theme="yellow-cyan"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFE53B, #88FFAA, #00FFFF);
    background-size: 300% 300%;
}

[data-theme="red-pink"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF2626, #FF5588, #FF95F4);
    background-size: 300% 300%;
}

[data-theme="blue-green"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3E648E, #5A8A7A, #81b374);
    background-size: 300% 300%;
}

.hero-section, .about-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.hero-section:hover, .about-section:hover {
    box-shadow: 0 12px 40px var(--glow-color-1);
    transform: translateY(-3px);
}

.hero-section h1 {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    background: var(--primary-gradient) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradientShift 8s ease infinite !important;
}

.hero-section p {
    font-size: 1.1rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 2rem !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-section h2 {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
    background: var(--primary-gradient) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradientShift 8s ease infinite !important;
}

.about-section p {
    font-size: 1.1rem !important;
    color: var(--text-secondary) !important;
}

.about-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-gradient);
    background-size: 300% 300%;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    animation: gradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.about-btn:hover::before {
    transform: translateX(100%);
}

.about-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 30px var(--glow-color-1);
}

.cta-section {
    text-align: center;
    margin-top: 2rem;
}

.cta-section p {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.task-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.task-info small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.task-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.task-photo, .news-photo, .news-video {
    margin: 1rem 0;
}

.task-photo img, .news-photo img {
    max-width: 500px;
    width: 100%;
}

.news-video video {
    max-width: 100%;
    width: 100%;
    border-radius: 15px;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.avatar-section {
    flex: 0 0 auto;
    text-align: center;
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.current-photo {
    text-align: center;
    margin-bottom: 1rem;
}

.current-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px var(--glow-color-1);
}

.team-member {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.member-photo {
    flex: 0 0 auto;
}

.member-photo img {
    width: 120px;
    height: 120px;
}

.member-info {
    flex: 1;
}

.member-position {
    color: var(--accent-color-1);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.member-bio {
    color: var(--text-secondary);
    line-height: 1.6;
}

.member-bio.empty {
    font-style: italic;
    opacity: 0.7;
}

.default-photo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
}

.admin-section {
    margin-bottom: 3rem;
}

.admin-section h2 {
    margin-bottom: 1.5rem;
}

.comments-section, .discussion-container {
    margin-top: 2rem;
}

.comment-author, .message-author {
    font-weight: 700;
    color: var(--accent-color-1);
    margin-bottom: 0.5rem;
}

.comment-date, .message-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.comment-content, .message-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.task-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.task-filters .btn {
    flex: 0 0 auto;
}

.btn-red {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
}

.btn-red:hover {
    background: linear-gradient(135deg, #ff6666, #ff0000);
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.user-item .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.warning-message {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-color-1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--glow-color-1);
    animation: pulse 3s ease-in-out infinite;
}

.warning-message strong {
    color: var(--accent-color-1);
    font-size: 1.1rem;
}

img, video {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

img:hover, video:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px var(--glow-color-1);
}

small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.news-item small, .task-item small {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.news-item h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.news-item p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.news-item > div, .task-item > div {
    margin: 1rem 0;
}

a {
    color: var(--accent-color-1);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--glow-color-1);
}

section h1, section h2, section h3 {
    background: var(--primary-gradient) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradientShift 8s ease infinite !important;
}

section p {
    color: var(--text-secondary) !important;
}

.hero-section h1,
.about-section h2 {
    background: var(--primary-gradient) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hero-section p,
.about-section p {
    color: var(--text-secondary) !important;
}

.team-actions {
    text-align: center;
    margin-top: 2rem;
}

.bio-form {
    max-width: 600px;
    margin: 2rem auto;
}

.bio-form textarea {
    min-height: 200px;
}

.comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.discussion-message {
    margin-bottom: 1.5rem;
}

.message-author {
    display: inline-block;
    background: var(--primary-gradient);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
}

.bot-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    margin-left: 1rem;
}

.form-group:last-child {
    margin-top: 2rem;
}

button[type="submit"],
input[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

.form-container a {
    color: var(--accent-color-1);
    text-decoration: none;
    font-weight: 600;
}

.form-container a:hover {
    text-decoration: underline;
}

.form-container > p {
    text-align: center;
    margin-top: 1rem;
}

/* Мобильная оптимизация */
@media (max-width: 768px) {
    /* Заголовок */
    header { 
        flex-direction: column; 
        padding: 0.6rem 1rem; 
        min-height: auto;
        gap: 0.5rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    
    .header-left { 
        width: 100%;
        justify-content: center;
    }
    
    .logo {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .site-title {
        font-size: 1rem;
    }
    
    nav { 
        width: 100%;
        justify-content: center; 
        gap: 0.3rem;
        flex-wrap: wrap;
    }
    
    nav a {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
        white-space: nowrap;
    }
    
    /* Основной контент */
    main { 
        margin-top: 140px; 
        padding: 0 1rem; 
    }
    
    /* Типография */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    
    .hero-section h1 { font-size: 1.8rem !important; }
    .about-section h2 { font-size: 1.5rem !important; }
    
    /* Формы */
    .form-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.7rem;
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    button[type="submit"], 
    input[type="submit"],
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Карточки и списки */
    .task-list, .news-list, .team-list {
        gap: 1rem;
    }
    
    .task-item, .news-item, .team-member {
        padding: 1rem;
    }
    
    .task-info { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 0.5rem;
    }
    
    .task-actions {
        width: 100%;
    }
    
    .task-actions .btn {
        width: 100%;
        margin: 0.3rem 0;
    }
    
    /* Команда */
    .team-member { 
        flex-direction: column; 
        text-align: center; 
        align-items: center; 
    }
    
    .member-photo img,
    .default-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Профиль */
    .profile-container { 
        flex-direction: column; 
        gap: 1rem;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
    }
    
    /* Темы */
    .theme-grid { 
        grid-template-columns: 1fr; 
        gap: 1rem;
    }
    
    .theme-card {
        padding: 1rem;
    }
    
    .theme-preview {
        height: 100px;
    }
    
    /* Админ-панель */
    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .user-item .btn {
        width: 100%;
        padding: 0.6rem;
    }
    
    /* Фильтры */
    .task-filters {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .task-filters .btn {
        width: 100%;
    }
    
    /* Медиа */
    .task-photo img, 
    .news-photo img {
        max-width: 100%;
        height: auto;
    }
    
    .news-video video {
        width: 100%;
        height: auto;
    }
    
    /* Предупреждения */
    .warning-message { 
        padding: 1rem; 
        font-size: 0.9rem;
    }
    
    /* Секции */
    .hero-section, .about-section {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }
    
    .about-btn { 
        padding: 0.8rem 2rem; 
        font-size: 1rem; 
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Обсуждения */
    .discussion-message {
        padding: 1rem;
    }
    
    /* Таблицы */
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 0.5rem !important;
    }
}

/* Дополнительная оптимизация для очень маленьких экранов */
@media (max-width: 480px) {
    .header-left {
        gap: 0.5rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .site-title {
        font-size: 0.9rem;
    }
    
    nav a {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    
    main {
        margin-top: 120px;
        padding: 0 0.5rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    
    .form-container {
        padding: 1rem;
    }
    
    .task-item, .news-item, .team-member {
        padding: 0.8rem;
    }
    
    .hero-section, .about-section {
        padding: 1.5rem 0.8rem;
    }
}

/* Оптимизация для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    nav a {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .task-list, .news-list {
        grid-template-columns: 1fr;
    }
}

/* Улучшения для touch устройств */
@media (hover: none) and (pointer: coarse) {
    /* Увеличиваем области касания */
    nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn, button[type="submit"], input[type="submit"] {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Убираем hover эффекты */
    .task-item:hover, 
    .news-item:hover, 
    .team-member:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .btn:hover, 
    button[type="submit"]:hover, 
    input[type="submit"]:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Оптимизация для landscape режима на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 0.4rem 1rem;
    }
    
    main {
        margin-top: 80px;
    }
    
    .hero-section, .about-section {
        padding: 1.5rem;
    }
}
