/* ============================================
   HATE MODS - Styles
   Code-minimalism dark theme with aggressive red
   ============================================ */

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

:root {
    --bg-primary: #000000;
    --bg-secondary: #080808;
    --bg-tertiary: #040404;
    --text-primary: #ffffff;
    --text-secondary: #666666;
    --text-muted: #333333;
    --border-color: #151515;
    --hover-color: #0c0c0c;
    --accent: #ff0000;
    --accent-dark: #aa0000;
    --accent-glow: rgba(255, 0, 0, 0.4);
    --accent-intense: rgba(255, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hack', monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* Custom scrollbar - dark, minimal */
* {
    scrollbar-width: thin;
    scrollbar-color: #333333 #000000;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #000000;
}

*::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

::selection {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* ============================================
   Navigation
   ============================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-size: 1rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-self: start;
}

.nav-logo:hover {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.nav-logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--accent-glow));
}

.nav-logo-icon {
    color: var(--accent);
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    justify-self: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-self: end;
}

.nav-notify {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-notify.has-unread::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Notifications popover */
.notifications-popover {
    position: fixed;
    top: 56px;
    right: 2rem;
    width: 340px;
    max-height: 450px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.notifications-popover.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.notifications-popover-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.notifications-popover-list {
    padding: 0;
    overflow-y: auto;
    max-height: 390px;
}

.notifications-popover-list .download-item {
    padding: 1rem;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.notifications-popover-list .download-item:hover {
    background: var(--bg-secondary);
}

.notifications-popover-list .download-item:last-child {
    border-bottom: none;
}

.notification-item-unread {
    background: var(--bg-secondary);
}
    background: var(--bg-tertiary);
}

.notification-title {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

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

.notification-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.nav-notify-icon svg {
    width: 14px;
    height: 14px;
    fill: var(--text-secondary);
    transition: transform 0.25s ease, fill 0.25s ease, box-shadow 0.25s ease;
}

.nav-notify:hover {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.nav-notify:hover .nav-notify-icon svg {
    fill: var(--accent);
    transform: translateY(-1px);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-user:hover {
    border-color: var(--text-secondary);
}

.nav-user-avatar {
    width: 24px;
    height: 24px;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.nav-user-name {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu span {
    width: 20px;
    height: 1px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ============================================
   Page Containers
   ============================================ */

.page {
    min-height: 100vh;
    padding-top: 80px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-intense) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.hero-logo {
    width: clamp(120px, 20vw, 200px);
    height: auto;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    filter: drop-shadow(0 0 40px var(--accent-glow));
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 8rem);
    letter-spacing: 0.4em;
    font-weight: 400;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.1s both;
    text-shadow: 0 0 80px var(--accent-glow);
    position: relative;
}

/* Glitch Title Effect */
.hero-glitch {
    font-size: clamp(2.5rem, 10vw, 7rem);
    letter-spacing: 0.3em;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 0 0 80px var(--accent-glow);
    position: relative;
    animation: fadeInUp 1s ease 0.1s both;
}

.hero-glitch:hover {
    animation: glitch 0.3s ease infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 80px var(--accent-glow); transform: translate(0); }
    20% { text-shadow: -2px 0 var(--accent), 2px 0 cyan; transform: translate(-2px, 1px); }
    40% { text-shadow: 2px 0 var(--accent), -2px 0 cyan; transform: translate(2px, -1px); }
    60% { text-shadow: -1px 0 cyan, 1px 0 var(--accent); transform: translate(-1px, 1px); }
    80% { text-shadow: 1px 0 cyan, -1px 0 var(--accent); transform: translate(1px, -1px); }
}

/* Terminal Effect */
.hero-terminal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.3s both;
    min-height: 1.5em;
}

.terminal-prompt {
    color: var(--accent);
    font-weight: bold;
}

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

.terminal-cursor {
    color: var(--accent);
    animation: cursorBlink 1s infinite;
}

.hero-title .accent {
    color: var(--accent);
    text-shadow: 0 0 60px var(--accent-glow);
}

.hero-tagline {
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    max-width: 550px;
    line-height: 2;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hero-nav {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.5s both;
}

.terminal-line {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    animation: blink 1s infinite;
}

.terminal-line .cmd {
    color: var(--accent);
}

.hero-scroll {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 1; height: 60px; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.btn {
    padding: 1rem 2.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-family: 'Hack', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
    background: var(--hover-color);
    transform: translateY(-2px);
}

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

.btn-primary {
    background: var(--accent);
    color: #000000;
    border-color: var(--accent);
    font-weight: 700;
    box-shadow: 0 0 30px var(--accent-glow), inset 0 0 20px rgba(255,255,255,0.1);
    text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background: #ff2020;
    border-color: #ff2020;
    color: #000000;
    box-shadow: 0 0 40px var(--accent-glow), 0 0 80px var(--accent-glow), inset 0 0 20px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-primary:active {
    background: var(--accent-dark);
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border-color: var(--text-muted);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}

.btn-outline-accent {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-intense);
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: #000000;
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.65rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 0.75rem;
}

.btn-danger {
    border-color: var(--accent-dark);
    color: var(--accent);
    background: var(--accent-intense);
}

.btn-danger:hover {
    background: var(--accent);
    color: #000000;
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: transparent;
    border-color: transparent;
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.section-heading {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.1em;
    font-weight: 400;
}

/* ============================================
   Auth Forms
   ============================================ */

.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

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

.form-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Hack', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: border-color 0.3s ease;
}

/* Custom select styling */
.form-input[type="select"],
select.form-input,
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
    cursor: pointer;
}

select.form-input:hover,
select:hover {
    border-color: var(--text-muted);
    background-color: var(--bg-secondary);
}

select.form-input:focus,
select:focus {
    outline: none;
    border-color: var(--text-secondary);
    background-color: var(--bg-primary);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Select options styling */
select.form-input option,
select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
}

select.form-input option:hover,
select option:hover {
    background-color: var(--bg-secondary) !important;
    color: var(--accent) !important;
}

select.form-input option:checked,
select option:checked,
select.form-input option:focus,
select option:focus {
    background-color: var(--bg-tertiary) !important;
    background: var(--bg-tertiary) !important;
    color: var(--accent) !important;
}

/* Firefox specific */
@-moz-document url-prefix() {
    select.form-input option:hover,
    select option:hover {
        background: var(--bg-secondary) !important;
    }
    select.form-input option:checked,
    select option:checked {
        background: linear-gradient(var(--bg-tertiary), var(--bg-tertiary)) !important;
    }
}

/* Custom file input styling */
.form-input[type="file"] {
    padding: 0.4rem 0.6rem;
    cursor: pointer;
}

.form-input[type="file"]::file-selector-button,
.form-input[type="file"]::-webkit-file-upload-button {
    margin-right: 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-family: 'Hack', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.form-input[type="file"]::file-selector-button:hover,
.form-input[type="file"]::-webkit-file-upload-button:hover {
    border-color: var(--text-muted);
    background: var(--hover-color);
    color: var(--text-primary);
}

.form-input[type="file"]::file-selector-button:active,
.form-input[type="file"]::-webkit-file-upload-button:active {
    transform: translateY(1px);
}

.form-input:focus {
    outline: none;
    border-color: var(--text-secondary);
}

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

.form-input.error {
    border-color: #666;
}

.auth-btn {
    width: 100%;
    margin-top: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.auth-footer a {
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.auth-footer a:hover {
    opacity: 0.7;
}

.auth-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-align: center;
    display: none;
}

.auth-message.success {
    background: var(--bg-tertiary);
    border: 1px solid var(--text-muted);
    color: var(--text-primary);
    display: block;
}

.auth-message.error {
    background: var(--accent-intense);
    border: 1px solid var(--accent-dark);
    color: var(--accent);
    display: block;
}

/* ============================================
   Dashboard
   ============================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    min-height: calc(100vh - 200px);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
}

.admin-tab {
    background: transparent !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    color: var(--text-secondary) !important;
    transition: color 0.3s ease !important;
}

.admin-tab:hover {
    color: var(--text-primary) !important;
    background: transparent !important;
    border: none !important;
    transform: none !important;
}

.admin-tab.active {
    color: var(--accent) !important;
    background: transparent !important;
    border: none !important;
    position: relative;
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

/* Admin users modal helpers */
.team-modal-code .btn { margin-top: 0.5rem; }

.dashboard-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-user {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-avatar {
    width: 80px;
    height: 80px;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--text-muted);
}

.sidebar-username {
    font-size: 1rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.sidebar-email {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--text-primary);
    background: var(--bg-primary);
    border-left-color: var(--accent);
}

.sidebar-link.active {
    color: var(--accent);
}

.dashboard-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-header h2 {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    font-weight: 400;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* ============================================
   Stats Grid
   ============================================ */

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

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.75rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    background: rgba(255, 0, 0, 0.05);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-value {
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    font-family: 'Hack', monospace;
}

.stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================
   Downloads & Lists
   ============================================ */

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.download-item:hover {
    border-color: var(--text-secondary);
}

/* Admin mods compact list */
.admin-mod-item {
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.admin-mod-item:hover {
    background: var(--bg-primary);
    border-color: var(--text-muted);
}
.admin-mod-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.admin-mod-title {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
}
.admin-mod-meta {
    font-size: 0.66rem;
    color: var(--text-secondary);
}
.admin-mod-actions {
    display: flex;
    gap: 0.35rem;
}
.admin-icon-btn {
    padding: 0.2rem 0.45rem;
    min-width: 28px;
}

/* Admin edit modal — wider layout with preview */
.team-modal-content.admin-edit-wide {
    max-width: 1040px;
    padding: 2.5rem 2.5rem 2rem;
}

/* Только для админ-редактора возвращаем двухколоночную сетку */
.admin-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important;
    gap: 1.5rem 2rem;
}

.admin-edit-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-edit-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-info h4 {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.download-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.download-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* ============================================
   Settings
   ============================================ */

.settings-section {
    margin-bottom: 2.5rem;
}

.settings-section h3 {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Verification */
.verify-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 0.5rem;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    font-size: 0.7rem;
    color: var(--text-secondary);
    cursor: default;
    position: relative;
}

.verify-help::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 150%;
    transform: translateX(-50%);
    width: 260px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 20;
}

.verify-help::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 140%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--bg-tertiary);
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.verify-help:hover::before,
.verify-help:hover::after {
    opacity: 1;
}

.verification-status-block {
    margin-top: 2rem;
}

.verification-status {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-size: 0.8rem;
}

.verification-status-line {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.verification-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.65rem;
    min-width: 80px;
}

.verification-value {
    color: var(--text-secondary);
}

.verification-status-pending {
    color: var(--accent);
}

.verification-status-approved {
    color: #00ff7f;
}

.verification-status-rejected {
    color: #ff5555;
}

.verification-link {
    color: var(--accent);
    text-decoration: none;
}

.verification-link:hover {
    text-decoration: underline;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item {
    cursor: default;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox.checked {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.checkbox.checked::after {
    content: '✓';
    color: var(--bg-primary);
    font-size: 0.7rem;
}

.checkbox-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ============================================
   Activity Log
   ============================================ */

.favorite-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

.portfolio-meta-slash {
    color: var(--accent);
    margin: 0 0.25rem;
}

.portfolio-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.btn-fav-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.4rem;
    border-color: transparent;
    background: transparent;
}

.fav-remove-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fav-remove-icon svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
    color: var(--text-muted);
}

.portfolio-item:hover .fav-remove-icon svg {
    color: var(--text-secondary);
}

.btn-fav-remove:hover .fav-remove-icon svg {
    transform: scale(1.1);
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

.activity-log {
    font-size: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.activity-time {
    color: var(--text-muted);
    min-width: 140px;
}

.activity-text {
    color: var(--text-secondary);
}

/* ============================================
   Home Features & CTA
   ============================================ */

.home-features {
    border-top: 1px solid var(--border-color);
    padding-top: 6rem;
}

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

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.feature-card:hover::before {
    width: 100%;
}

.feature-card:hover {
    border-color: var(--text-muted);
    transform: translateY(-5px);
}

.feature-icon {
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-weight: 400;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.8;
}

.home-cta {
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding-top: 6rem;
    text-align: center;
}

.cta-content {
    max-width: 500px;
    margin: 0 auto;
}

.cta-label {
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.cta-title {
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-weight: 400;
}

.cta-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ============================================
   Home Page - Latest Mods
   ============================================ */

.home-latest {
    border-top: 1px solid var(--border-color);
    padding-top: 6rem;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.latest-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.latest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.latest-card:hover::before {
    transform: scaleX(1);
}

.latest-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.latest-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-primary);
    transition: transform 0.4s ease;
}

.latest-card:hover .latest-card-image {
    transform: scale(1.05);
}

.latest-card-info {
    padding: 1.25rem;
    background: var(--bg-secondary);
    position: relative;
}

.latest-card-category {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.latest-card-title {
    font-size: 1rem;
    letter-spacing: 0.1em;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.latest-card-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.latest-more {
    text-align: center;
    margin-top: 2rem;
}

/* ============================================
   Home Page - Manifesto
   ============================================ */

.home-manifesto {
    border-top: 1px solid var(--border-color);
    padding-top: 6rem;
}

.manifesto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.manifesto-code {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.code-dot:first-child { background: #ff5f56; }
.code-dot:nth-child(2) { background: #ffbd2e; }
.code-dot:nth-child(3) { background: #27ca40; }

.code-filename {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.code-content {
    padding: 1.5rem;
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--text-secondary);
    overflow-x: auto;
}

.code-keyword { color: #ff6b6b; }
.code-var { color: var(--text-primary); }
.code-prop { color: #a0a0a0; }
.code-string { color: #98c379; }

.manifesto-text {
    padding: 2rem 0;
}

.manifesto-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: 0.05em;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.manifesto-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    max-width: 400px;
}

.manifesto-stats {
    display: flex;
    gap: 3rem;
}

.manifesto-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.manifesto-stat-value {
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.manifesto-stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .manifesto-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .manifesto-text {
        text-align: center;
    }
    
    .manifesto-desc {
        max-width: none;
    }
    
    .manifesto-stats {
        justify-content: center;
    }
}

/* Media Section removed - using messenger style reviews instead */

/* ============================================
   Home Page - Reviews Section (Messenger Style)
   ============================================ */

.home-reviews {
    border-top: 1px solid var(--border-color);
    padding-top: 6rem;
}

/* ============================================
   Home Page - Verification Section
   ============================================ */

.home-verification {
    border-top: 1px solid var(--border-color);
    padding-top: 6rem;
}

.home-verification-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: stretch;
}

.home-verification-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.verification-kicker {
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.verification-title {
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    line-height: 1.5;
}

.verification-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.9;
}

.verification-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.verification-benefit {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.verification-benefit-label {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.verification-benefit-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.home-verification-steps {
    display: flex;
    align-items: stretch;
}

.verification-code {
    width: 100%;
    margin-top: 0;
}

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

/* ============================================
   HOME - UNLOCKER BOT SECTION
   ============================================ */

.home-unlocker {
    border-top: 1px solid var(--border-color);
    padding-top: 6rem;
}

.home-unlocker-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.home-unlocker-main {
    display: flex;
    flex-direction: column;
}

.home-unlocker-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.home-unlocker-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.home-unlocker-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.home-unlocker-feature-num {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.home-unlocker-feature-text h4 {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin: 0 0 0.3rem 0;
}

.home-unlocker-feature-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.home-unlocker-visual {
    display: flex;
    align-items: stretch;
}

.home-unlocker-visual .code-block {
    width: 100%;
    margin: 0;
}

.btn-unlocker {
    display: inline-block;
    padding: 1rem 2rem;
    background: #000;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Hack', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-unlocker:hover {
    border-color: var(--accent);
    background: #000;
}

@media (max-width: 900px) {
    .home-unlocker-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.home-reviews-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: stretch;
}

.home-reviews-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    max-width: 480px;
}

.trust-kicker {
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.trust-title {
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    line-height: 1.5;
}

.trust-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.9;
}

.trust-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-stat-value {
    font-size: 1.4rem;
    letter-spacing: 0.12em;
}

.trust-stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

    .home-reviews-text {
        max-width: none;
    }
}

.messenger-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

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

.messenger-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-glow);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.messenger-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.messenger-members {
    color: var(--text-secondary);
}

.messenger-online {
    color: var(--accent);
}

.messenger-chat {
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.chat-content {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    position: relative;
}

.chat-content::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 12px;
    width: 10px;
    height: 10px;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.chat-username {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.chat-time {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.chat-text {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Typing indicator */
.chat-typing .chat-avatar {
    background: transparent;
    border: none;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.chat-typing .chat-content {
    background: transparent;
    border: none;
    padding: 0.5rem 0;
}

.chat-typing .chat-content::before {
    display: none;
}

.chat-typing-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

.messenger-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    align-items: center;
}

.messenger-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.input-prefix {
    color: var(--accent);
    font-weight: bold;
}

.input-placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.messenger-footer .btn {
    white-space: nowrap;
}

/* Hover effects */
.chat-message:hover .chat-content {
    border-color: var(--text-muted);
}

.chat-message:hover .chat-avatar {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 600px) {
    .messenger-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .messenger-chat {
        padding: 1rem;
        max-height: 400px;
    }
    
    .chat-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.6rem;
    }
    
    .messenger-footer {
        flex-direction: column;
    }
    
    .messenger-input {
        width: 100%;
    }
    
    .messenger-footer .btn {
        width: 100%;
    }
}

/* ============================================
   Home Page - Marquee
   ============================================ */

.home-marquee {
    padding: 2rem 0;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 4rem 0;
}

.marquee-track {
    display: flex;
    animation: marquee 20s linear infinite;
}

.marquee-text {
    font-size: 3rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    opacity: 0.3;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Button Icons
   ============================================ */

.btn-icon {
    margin-right: 0.5rem;
}

/* ============================================
   Responsive - Latest Mods
   ============================================ */

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

@media (max-width: 600px) {
    .latest-grid {
        grid-template-columns: 1fr;
    }
    
    .marquee-text {
        font-size: 2rem;
    }
}

/* ============================================
   About Page
   ============================================ */

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.about-block {
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
}

.about-block h3 {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.about-block p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.9;
}

.manifesto {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-primary);
    margin-bottom: 4rem;
    max-width: 700px;
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-top: 3rem;
    font-size: 0.8rem;
}

.code-comment {
    color: var(--text-muted);
}

.code-keyword {
    color: var(--accent);
}

/* ============================================
   Team Page
   ============================================ */

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

.team-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s ease;
    box-shadow: 0 0 15px var(--accent-glow);
}

.team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, var(--accent-intense) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.team-card:hover::before {
    height: 100%;
}

.team-card:hover::after {
    opacity: 1;
}

.team-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--accent-intense);
}

.team-avatar {
    width: 70px;
    height: 70px;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.team-card:hover .team-avatar {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    background: var(--accent-intense);
}

.team-name {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.team-role {
    color: var(--text-secondary);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.team-link {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.team-card:hover .team-link {
    color: var(--accent);
}

.team-crown {
    font-size: 0.7rem;
    margin-left: 0.35rem;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Team Modal */
.team-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.team-modal.open {
    display: flex;
}

.team-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    animation: backdropFadeIn 0.5s ease-out forwards;
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.team-modal.closing .team-modal-backdrop {
    animation: backdropFadeOut 0.4s ease-out forwards;
}

@keyframes backdropFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.team-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2.25rem 2.25rem 1.75rem;
    max-width: 920px;
    width: 100%;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: teamModalIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.team-modal.open .team-modal-content {
    /* animation запускается при открытии */
}

@keyframes teamModalIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes teamModalOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(30px);
    }
}

.team-modal.closing .team-modal-content {
    animation: teamModalOut 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.team-modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.4rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
}

.team-modal-header {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    margin-bottom: 1.75rem;
}

.team-modal-avatar {
    width: 72px;
    height: 72px;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--text-muted);
}

.team-modal-name {
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.team-modal-role {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.team-modal-crown {
    font-size: 0.85rem;
    color: var(--accent);
}

.team-modal-body {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: grid;
    /* Для модалок "Команда" — два столбца на широких экранах */
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.75rem 2rem;
}

.team-modal-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-modal-nickname {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}

.team-modal-bio {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.team-modal-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.team-modal-social-label {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.team-modal-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.team-modal-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    /* более плавная анимация для всех свойств */
    transition: all 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.team-modal-social-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    line-height: 1;
    transition: all 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.team-modal-social-icon svg {
    width: 12px;
    height: 12px;
}

.team-modal-social-label-text {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.team-modal-social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(255, 0, 0, 0.05);
    transform: translateY(-2px) scale(1.02);
}

.team-modal-social-link:hover .team-modal-social-icon {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.14);
    background-color: rgba(255, 0, 0, 0.14);
    color: var(--accent);
    filter: brightness(1.1);
}

.team-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.team-modal-block {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.9rem 1rem;
}

.team-modal-block-label {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.4rem;
}

.team-modal-block-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.team-modal-releases {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.9rem 1rem;
}

.team-modal-releases-list {
    list-style: none;
    margin-top: 0.5rem;
}

.team-modal-releases-list li {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.team-modal-code {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.9rem 1rem;
    font-size: 0.75rem;
    line-height: 1.6;
}

.team-modal-code-comment {
    color: var(--text-muted);
}

.team-modal-code-line {
    color: var(--text-secondary);
}

.team-modal-code-handle,
.team-modal-code-role,
.team-modal-code-trust {
    color: var(--accent);
}

@media (max-width: 600px) {
    .team-modal-content {
        padding: 2.25rem 1.75rem 1.75rem;
    }

    .team-modal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-modal-body {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   Member Pages
   ============================================ */

.member-header {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.member-avatar-large {
    width: 120px;
    height: 120px;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}

.member-info h1 {
    font-size: 2rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.member-info .role {
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.member-info .bio {
    color: var(--text-secondary);
    font-size: 0.85rem;
    max-width: 500px;
    line-height: 1.8;
}

/* ============================================
   Public User Profile
   ============================================ */

/* ============================================
   USER PROFILE PAGE - SIDEBAR LAYOUT
   ============================================ */

/* Two Column Layout */
.user-profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Sidebar */
.user-profile-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.user-profile-avatar {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.user-profile-name {
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    word-break: break-word;
}

.user-profile-handle {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.verified-badge {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.15rem 0.4rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.user-profile-bio {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Compact Stats */
.user-profile-stats-compact {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.stat-compact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.stat-compact-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Hack', monospace;
    letter-spacing: 0.05em;
}

.stat-compact-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Socials */
.user-profile-socials {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-profile-socials .team-modal-social-link {
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    font-size: 0.7rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-profile-socials .team-modal-social-link:hover {
    border-color: var(--accent);
    background: rgba(255, 0, 0, 0.05);
}

.user-profile-socials .social-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.user-profile-socials .team-modal-social-link:hover .social-icon {
    color: var(--accent);
}

/* Actions */
.user-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.user-profile-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.7rem;
}

/* Main Content */
.user-profile-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Stats Card */
.user-stats-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.user-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

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

.user-stats-header h3 {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin: 0;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-stat-item {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.user-stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.user-stat-item:hover {
    border-color: var(--accent);
    background: rgba(255, 0, 0, 0.03);
}

.user-stat-item:hover::after {
    transform: scaleX(1);
}

.user-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: 'Hack', monospace;
    letter-spacing: 0.05em;
}

.user-stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.user-chart-wrap {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

#profileChart {
    width: 100%;
    display: block;
}

.chart-tooltip {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--accent);
    font-size: 0.7rem;
    color: var(--text-primary);
    pointer-events: none;
    letter-spacing: 0.05em;
}

/* Mods Section */
.user-mods-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
}

.user-section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.user-section-header h2 {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
}

.user-section-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.6rem;
}

.user-mods-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.25rem;
}

.user-mods-grid .portfolio-item {
    max-width: none;
}

/* Responsive */
@media (max-width: 1400px) {
    .user-mods-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1200px) {
    .user-profile-layout {
        grid-template-columns: 1fr;
    }
    
    .user-profile-sidebar {
        position: static;
    }
    
    .user-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .user-profile-sidebar {
        padding: 1.25rem;
        text-align: center;
    }
    
    .user-profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        margin: 0 auto 1rem;
    }
    
    .user-profile-stats-compact {
        justify-content: center;
    }
    
    .user-mods-grid {
        grid-template-columns: 1fr !important;
    }
    
    .user-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-mods-section {
        padding: 1rem;
    }
}

@media (max-width: 700px) {
    .profile-mods-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Profile socials layout tweaks */
#profileSocialLinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}
#profileSocialLinks .team-modal-social-link {
    padding: 0.35rem 0.75rem;
}
#profileSocialLinks .team-modal-social-icon {
    width: 18px; height: 18px;
}
#profileSocialLinks .team-modal-social-label-text {
    font-size: 0.7rem;
}

@media (max-width: 900px) {
    .profile-content {
        margin-top: 1rem;
    }
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

/* ============================================
   Mod Page
   ============================================ */

.mod-page-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.mod-page-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000000;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mod-main-video {
    width: 100%;
    height: 100%;
    border: none;
}

.mod-video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.mod-video-fallback {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--bg-secondary);
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    z-index: 10;
}

.mod-video-fallback:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    transform: translateX(-4px);
}

.mod-video-fallback .fallback-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.mod-video-fallback .fallback-text {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-size: 0.75rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mod-video-fallback {
        bottom: 1rem;
        right: 1rem;
        padding: 0.6rem 1rem;
    }
    
    .mod-video-fallback .fallback-icon {
        width: 18px;
        height: 18px;
    }
    
    .mod-video-fallback .fallback-text {
        font-size: 0.7rem;
    }
}

.mod-page-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mod-page-category {
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.mod-page-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.1em;
    font-weight: 400;
    margin-bottom: 1rem;
}

.mod-page-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.mod-page-meta .accent {
    color: var(--accent);
}

.mod-page-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.mod-page-stat {
    text-align: center;
}

.mod-page-stat-value {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.mod-page-stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mod-page-actions {
    display: flex;
    gap: 1rem;
}

.mod-page-content {
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.mod-page-section {
    margin-bottom: 3rem;
}

.mod-page-section h3 {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.mod-page-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.9;
    max-width: 700px;
}

.mod-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid var(--border-color);
}

.mod-video-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .mod-page-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mod-page-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mod-page-actions {
        flex-direction: column;
    }
}

/* ============================================
   Portfolio Grid
   ============================================ */

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

.portfolio-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.mod-badge-new {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--accent);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.25rem 0.5rem;
    z-index: 30;
    box-shadow: 0 0 12px var(--accent-glow);
}

.portfolio-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

.portfolio-item:hover::after {
    width: 100%;
}

.portfolio-item:hover {
    border-color: var(--accent-dark);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: transform 0.5s ease;
    z-index: 20;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.02);
}

/* Removed ::before pseudo-element completely to prevent artifacts */

.portfolio-placeholder {
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    z-index: 1;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.portfolio-meta {
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.portfolio-date {
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.portfolio-item:hover .portfolio-meta {
    color: var(--text-secondary);
}

/* ============================================
   Mods Search & Filters
   ============================================ */

.mods-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.mods-search {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0 1rem;
    transition: border-color 0.3s ease;
}

.mods-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.search-prefix {
    color: var(--accent);
    font-weight: bold;
    margin-right: 0.5rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Hack', monospace;
    font-size: 0.85rem;
    padding: 0.8rem 0;
    outline: none;
}

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

.mods-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: 'Hack', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000000;
    font-weight: bold;
    box-shadow: 0 0 20px var(--accent-glow);
}

.mods-sort {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: 'Hack', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.sort-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000000;
    font-weight: bold;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Smooth transition for sorting in mods grid */
#modsGrid {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#modsGrid.mods-sorting {
    opacity: 0.3;
    transform: scale(0.99);
}

.mods-count {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.mods-empty {
    padding: 4rem 2rem;
}

/* Catalog layout with right sidebar */
.catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(220px, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.catalog-main {
    min-width: 0;
}

/* In catalog view show exactly 3 mods per row on large screens */
.catalog-main .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .catalog-main .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .catalog-main .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.catalog-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    position: sticky;
    top: 110px;
}

.catalog-sidebar-title {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.catalog-sidebar-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.catalog-sidebar-item {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.35rem 0.25rem;
    border-left: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.catalog-sidebar-item:hover {
    color: var(--text-primary);
    border-left-color: var(--text-secondary);
    transform: translateX(4px);
}

.catalog-sidebar-item.active {
    color: var(--accent);
    border-left-color: var(--accent);
}

@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: relative;
        top: 0;
    }
}

/* Fix for single/few items - prevent stretching */
.portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.portfolio-item {
    max-width: 450px;
}

@media (max-width: 768px) {
    .mods-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mods-search {
        max-width: none;
    }
    
    .mods-filters {
        justify-content: center;
    }
}

/* ============================================
   Tags
   ============================================ */

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-color);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

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

footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* ============================================
   Loading & Effects
   ============================================ */

.loading {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
}

.cursor-dot {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--text-primary);
    margin-left: 2px;
    animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Scanlines removed */

/* ============================================
   Back to Top Button
   ============================================ */

.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    z-index: 1200;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.back-to-top-icon {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    z-index: 10000;
    transform: translateX(calc(100% + 2rem));
    transition: transform 0.3s ease;
}

.toast.visible {
    transform: translateX(0);
}

.toast.success {
    border-color: var(--text-muted);
}

.toast.error {
    border-color: var(--text-secondary);
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* ============================================
   Spinner
   ============================================ */

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid var(--text-muted);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

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

/* ============================================
   HateLink
   ============================================ */

.hatelink-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.hatelink-info h3 {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hatelink-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.hatelink-features {
    list-style: none;
}

.hatelink-features li {
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hatelink-features li:last-child {
    border-bottom: none;
}

.hatelink-features .accent {
    color: var(--accent);
    margin-right: 0.5rem;
}

.subsection-title {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hatelink-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hatelink-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.hatelink-card:hover {
    border-color: var(--accent-dark);
}

.hatelink-card-image {
    width: 120px;
    height: 80px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    background-size: cover;
    background-position: center;
}

.hatelink-card-info h4 {
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.hatelink-card-meta {
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.hatelink-card-meta .accent {
    color: var(--accent);
    margin: 0 0.5rem;
}

.hatelink-card-url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hatelink-card-url code {
    background: var(--bg-primary);
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    color: var(--accent);
    border: 1px solid var(--border-color);
}

.hatelink-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

/* HateLink Form */
.hatelink-form {
    max-width: 800px;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section h3 {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.requirement-item {
    display: grid;
    grid-template-columns: 180px 1fr 1fr auto;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* HateLink View Page - Two Column Layout */
.hl-view-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
    min-height: calc(100vh - 300px);
}

.hl-view-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-view-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-color);
    transition: all 0.4s ease;
}

.hl-view-image:hover {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 40px var(--accent-intense);
    border-color: var(--accent-dark);
}

.hl-view-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.hl-view-category {
    color: var(--accent);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--accent-dark);
    background: var(--accent-intense);
    width: fit-content;
}

.hl-view-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: 0.06em;
    font-weight: 400;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hl-view-meta {
    color: var(--text-secondary);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hl-view-meta .accent {
    color: var(--accent);
    margin: 0 0.3rem;
}

.hl-view-description {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 450px;
}

.hl-view-requirements {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1rem;
}

.hl-view-requirements h3 {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
}

.hl-req-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hl-req-item {
    display: grid;
    grid-template-columns: 28px 1fr 20px auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.hl-req-item:hover {
    border-color: var(--text-muted);
}

.hl-req-item[data-completed="true"] {
    border-color: var(--accent);
    background: var(--accent-intense);
}

/* Requirement Icons */
.hl-req-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hl-req-icon svg {
    width: 16px;
    height: 16px;
}

.hl-req-icon-subscribe_youtube {
    background: rgba(255, 0, 0, 0.15);
    color: #ff0000;
}

.hl-req-icon-subscribe_telegram {
    background: rgba(0, 136, 204, 0.15);
    color: #0088cc;
}

.hl-req-icon-join_discord {
    background: rgba(88, 101, 242, 0.15);
    color: #5865F2;
}

.hl-req-icon-like_video {
    background: rgba(255, 0, 80, 0.15);
    color: #ff0050;
}

.hl-req-icon-follow_twitter {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.hl-req-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.hl-req-label {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hl-req-status {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-req-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: transparent;
    transition: all 0.3s ease;
}

.hl-req-checkbox.checked {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    box-shadow: 0 0 10px var(--accent-glow);
}

.hl-view-download {
    margin-top: auto;
    padding-top: 1rem;
}

.hl-view-download .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.7rem;
}

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

.hl-view-footer {
    color: var(--text-muted);
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-align: center;
    padding-top: 1rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    text-transform: uppercase;
}

.hl-view-footer .accent {
    color: var(--accent);
    font-weight: bold;
}

/* HateLink Mobile */
@media (max-width: 900px) {
    .hl-view-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hl-view-left {
        position: relative;
        top: 0;
    }
    
    .hl-view-image {
        aspect-ratio: 16/9;
    }
    
    .hl-view-right {
        padding: 0;
    }
    
    .hl-req-item {
        grid-template-columns: 36px 1fr auto;
    }
    
    .hl-req-status {
        display: none;
    }
}

@media (min-width: 901px) {
    .hl-view-wrapper {
        padding: 2rem 0;
    }
}

/* ============================================
   HateLink Success Modal
   ============================================ */

.hl-success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hl-success-modal.visible {
    opacity: 1;
}

.hl-success-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.hl-success-modal.visible .hl-success-content {
    transform: translateY(0);
}

.hl-success-icon {
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.hl-success-title {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.hl-success-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.hl-success-link-box {
    background: var(--bg-primary);
    border: 1px solid var(--accent-dark);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.hl-success-link-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hl-success-link-url {
    background: var(--bg-tertiary);
    padding: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.hl-success-link-url code {
    font-size: 0.75rem;
    color: var(--text-primary);
    word-break: break-all;
}

.hl-success-link-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.hl-success-link-actions .btn {
    flex: 1;
}

.hl-success-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.hl-success-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hl-success-info-label {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hl-success-info-value {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.hl-success-close {
    width: 100%;
}

@media (max-width: 500px) {
    .hl-success-content {
        padding: 2rem;
    }
    
    .hl-success-link-actions {
        flex-direction: column;
    }
}

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

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }

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

    .nav-auth {
        display: none;
    }

    .nav-links.open .nav-auth-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }

    .mobile-menu {
        display: flex;
    }

    .hero-title {
        letter-spacing: 0.15em;
    }

    .hero-nav {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
    }

    .btn {
        text-align: center;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .member-header {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

    .dashboard-sidebar {
        position: relative;
        top: 0;
    }

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

    .auth-box {
        padding: 2rem;
    }

    .hatelink-intro {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hatelink-card {
        grid-template-columns: 1fr;
    }

    .hatelink-card-image {
        width: 100%;
        height: 120px;
    }

    .hatelink-card-actions {
        flex-direction: row;
    }

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

    .requirement-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .hl-req-item {
        grid-template-columns: 24px 1fr;
        gap: 0.75rem;
    }

    .hl-req-item .btn {
        grid-column: 1 / -1;
    }
}


/* Delete Modal Warning Icon Animation */
@keyframes warningPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

#adminDeleteModModal .team-modal-content > div > div:first-child > div:first-child {
    animation: warningPulse 2s ease-in-out infinite;
}

/* Delete Modal Styles */
#adminDeleteModModal .code-block {
    background: rgba(255, 0, 0, 0.05);
    border-color: rgba(255, 0, 0, 0.2);
}

#adminDeleteModModal .code-keyword {
    color: var(--accent);
}


/* Mods Filter Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mods-filtering .portfolio-item {
    opacity: 0.3;
    transition: opacity 0.15s ease;
}

.mods-filtering {
    pointer-events: none;
}

/* Catalog Sidebar Active State Enhancement */
.catalog-sidebar-item {
    position: relative;
    transition: all 0.3s ease;
}

.catalog-sidebar-item::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.catalog-sidebar-item.active::before {
    opacity: 1;
}

.catalog-sidebar-item.active {
    font-weight: 500;
}


/* Team Modal Projects/Works Links */
.team-modal-releases-list li a {
    transition: all 0.3s ease;
}

.team-modal-releases-list li a:hover {
    color: var(--text-primary) !important;
    text-decoration: underline !important;
}


/* Mod Page Author Card */
.mod-page-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    margin: 1.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mod-page-author:hover {
    background: rgba(255, 0, 0, 0.05);
    border-color: var(--accent);
    transform: translateX(5px);
}

.mod-page-author-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

.mod-page-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mod-page-author-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mod-page-author-name {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--accent);
    font-weight: 500;
}

@media (max-width: 768px) {
    .mod-page-author {
        padding: 0.75rem;
    }
    
    .mod-page-author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}


/* ============================================
   HOME - LATEST MOD SECTION
   ============================================ */

.home-latest-mod {
    border-top: 1px solid var(--border-color);
    padding-top: 6rem;
}

.latest-mod-container {
    max-width: 1000px;
    margin: 0 auto;
}

.latest-mod-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.latest-mod-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.latest-mod-card:hover {
    border-color: var(--accent);
}

.latest-mod-image {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.latest-mod-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--accent);
    color: #000;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.latest-mod-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.latest-mod-category {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.latest-mod-title {
    font-size: 2rem;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.latest-mod-author {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.latest-mod-description {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.latest-mod-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.latest-mod-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.latest-mod-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.latest-mod-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.latest-mod-btn {
    align-self: flex-start;
}

@media (max-width: 900px) {
    .latest-mod-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .latest-mod-image {
        min-height: 300px;
    }
    
    .latest-mod-content {
        padding: 2rem 1.5rem;
    }
    
    .latest-mod-title {
        font-size: 1.5rem;
    }
}


/* ============================================
   Custom Dropdown (замена select)
   ============================================ */

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Hack', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.custom-select:hover {
    border-color: var(--text-muted);
    background: var(--bg-secondary);
}

.custom-select.active {
    border-color: var(--text-secondary);
}

.custom-select-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.custom-select-arrow svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-secondary);
}

.custom-select.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.custom-select-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-select-option {
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: 'Hack', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: var(--bg-secondary);
    color: var(--accent);
    padding-left: 1.5rem;
}

.custom-select-option.selected {
    background: var(--bg-tertiary);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.custom-select-option.selected:hover {
    background: var(--bg-secondary);
}


/* ============================================
   Dashboard Chart Styles
   ============================================ */

.profile-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    position: relative;
}

.profile-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

.profile-content-header h3 {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin: 0;
}

.profile-chart-wrap {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-top: 1rem;
    min-height: 200px;
}

#dashboardChart {
    width: 100%;
    display: block;
}

.chart-tooltip {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--accent);
    font-size: 0.7rem;
    color: var(--text-primary);
    pointer-events: none;
    letter-spacing: 0.05em;
    font-family: 'Hack', monospace;
}


/* ============================================
   Notification Types
   ============================================ */

.notification-type-info {
    border-left: 3px solid #0099ff;
}

.notification-type-success {
    border-left: 3px solid #00ff00;
}

.notification-type-warning {
    border-left: 3px solid #ffaa00;
}

.notification-type-error {
    border-left: 3px solid var(--accent);
}

.notification-item-unread {
    background: rgba(255, 0, 0, 0.03);
}


/* =====================================================
   MODAL OVERLAY & CONTENT
   ===================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.closing {
    animation: fadeOut 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.closing .modal-content {
    animation: slideDown 0.2s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

.modal-content h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text);
}

.modal-content .form-group {
    margin-bottom: 1.25rem;
}

.modal-content .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.modal-content .form-input,
.modal-content .form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Hack', monospace;
    transition: all 0.2s ease;
}

.modal-content .form-input:focus,
.modal-content .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 0, 0, 0.03);
}

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

.modal-content .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-content .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal-content .btn:hover::before {
    width: 300px;
    height: 300px;
}

.modal-content .btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border: 1px solid var(--accent);
}

.modal-content .btn-primary:hover {
    background: #cc0000;
    border-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.modal-content .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.2);
}

.modal-content .btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.modal-content .btn-ghost:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(255, 0, 0, 0.05);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .modal-content h2 {
        font-size: 1.2rem;
    }
}


/* =====================================================
   PAGE TRANSITIONS
   ===================================================== */

.page {
    animation: pageEnter 0.4s ease;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.fade-out {
    animation: pageExit 0.3s ease forwards;
}

@keyframes pageExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
