/* ============================================================
   DayZ Ressources - Dark Minimalist Premium Theme
   Inspired by GitHub / Linear
   ============================================================ */

:root {
    /* Dark sophisticated palette */
    --bg-dark: #09090b;
    --bg-primary: #0c0c0e;
    --bg-secondary: #111113;
    --bg-tertiary: #131316;
    --bg-card: #16161a;
    --bg-elevated: #1c1c21;
    --bg-hover: #222228;
    --bg-input: #1a1a1f;

    /* Brand colors */
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --accent-soft: rgba(220, 38, 38, 0.08);
    --accent-glow: rgba(220, 38, 38, 0.15);

    /* Console colors */
    --xbox: #107c10;
    --xbox-soft: rgba(16, 124, 16, 0.12);
    --playstation: #003791;
    --playstation-soft: rgba(0, 55, 145, 0.12);

    /* Semantic colors */
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-soft: rgba(59, 130, 246, 0.1);

    /* Text hierarchy */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-disabled: #52525b;

    /* Borders & Dividers */
    --border: #27272a;
    --border-light: #3f3f46;
    --border-focus: #52525b;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

    /* Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

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

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

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

/* ============================================================
   Layout
   ============================================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-lg {
    max-width: 1440px;
}

.container-sm {
    max-width: 720px;
}

/* ============================================================
   Header & Navigation
   ============================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--accent);
    filter: drop-shadow(0 2px 6px rgba(220, 38, 38, 0.4));
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.nav-link i {
    font-size: 0.9rem;
    opacity: 0.6;
}

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

.nav-link:hover i {
    opacity: 0.9;
}

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

.nav-link.active i {
    opacity: 1;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Header Partner */
.header-partner {
    position: relative;
    margin-left: 24px;
    margin-right: 4px;
}
.header-partner-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 5px 14px 5px 5px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.header-partner-btn:hover {
    border-color: rgba(88, 101, 242, 0.4);
    background: var(--bg-hover);
}
.header-partner-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.header-partner-ph {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.6rem;
    color: #fff;
    flex-shrink: 0;
}
.header-partner-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}
.header-partner-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-partner-tag {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5865f2;
    background: rgba(88, 101, 242, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-full);
}
.header-partner-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 290px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    z-index: 1000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.header-partner-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.header-partner-dd-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.header-partner-dd-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(88, 101, 242, 0.2);
    flex-shrink: 0;
}
.header-partner-dd-logo-ph {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.header-partner-dd-info {
    flex: 1;
    min-width: 0;
}
.header-partner-dd-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.header-partner-dd-label {
    font-size: 0.6rem;
    color: #5865f2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-partner-dd-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 14px;
}
.header-partner-dd-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.header-partner-dd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: none;
    transition: var(--transition-fast);
}
.header-partner-dd-btn.discord {
    background: #5865f2;
    color: #fff;
}
.header-partner-dd-btn.discord:hover {
    background: #4752c4;
    color: #fff;
}
.header-partner-dd-btn.site {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.header-partner-dd-btn.site:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
@media (max-width: 968px) {
    .header-partner { display: none; }
}

/* Partner Welcome Popup */
.partner-welcome-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}
.partner-welcome-overlay.active {
    display: flex;
}
.partner-welcome-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.partner-welcome-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.partner-welcome-close:hover { color: var(--text-primary); }
.partner-welcome-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
}
.partner-welcome-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.partner-welcome-icon i {
    font-size: 2rem;
    color: var(--accent);
}
.partner-welcome-modal h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.partner-welcome-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}
.partner-welcome-discount {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}
.partner-welcome-percent {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
    margin-bottom: 6px;
}
.partner-welcome-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.partner-welcome-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.partner-welcome-cta {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.header-user-group {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 3px;
    height: 40px;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast);
    font-size: 0.85rem;
    padding: 0;
    margin: 0;
    line-height: 1;
}

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

.header-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 10px 2px 2px;
    background: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-fast);
    height: 34px;
    line-height: 1;
    margin: 0;
}

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

.header-username {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.header-chevron {
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.user-menu:has(.dropdown.active) .header-chevron {
    transform: rotate(180deg);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

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

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

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

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

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #0d9668;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius);
}

.btn-icon.rounded {
    border-radius: var(--radius-full);
}

.btn-light {
    background: white;
    color: var(--accent);
}

.btn-light:hover {
    background: #f4f4f5;
}

/* ============================================================
   User Menu & Dropdown
   ============================================================ */

.user-menu {
    position: relative;
    z-index: 200;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: none;
    object-fit: cover;
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    overflow: hidden;
    z-index: 1000;
}

.dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.dropdown-username {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

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

.dropdown-item i {
    width: 16px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.8125rem;
}

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

.dropdown-item:hover i {
    opacity: 1;
}

.dropdown-item.admin-link {
    color: var(--accent);
}

.dropdown-item.admin-link:hover {
    background: var(--accent-soft);
}

.dropdown-item.admin-link i {
    opacity: 1;
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger:hover {
    background: var(--danger-soft);
}

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

/* Notifications */
.notification-btn {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: -60px;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 1000;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.notif-mark-read {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
}

.notif-mark-read:hover {
    text-decoration: underline;
}

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

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
    cursor: pointer;
}

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

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

.notif-item.unread {
    background: var(--accent-soft);
}

.notif-item.unread:hover {
    background: rgba(220, 38, 38, 0.12);
}

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.notif-icon .text-success { color: var(--success); }
.notif-icon .text-warning { color: var(--warning); }
.notif-icon .text-danger { color: var(--danger); }
.notif-icon .text-info { color: var(--info); }
.notif-icon .text-primary { color: var(--accent); }

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notif-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.notif-time {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.notif-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
}

.notif-empty i {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.4;
}

.notif-empty p {
    font-size: 0.8125rem;
}

.notif-footer {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    border-top: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.notif-footer:hover {
    background: var(--bg-hover);
}

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

.hero {
    position: relative;
    padding: 80px 0 64px;
    text-align: center;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    font-size: 0.8125rem;
}

.hero-badge .platform {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.hero-badge .platform.xbox {
    color: var(--xbox);
}

.hero-badge .platform.ps {
    color: var(--playstation);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   Stats Bar
   ============================================================ */

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 40px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-value.accent {
    color: var(--accent);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.section {
    padding: 64px 0;
}

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

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: 4px;
    font-size: 0.9375rem;
}

/* ============================================================
   Cards Grid
   ============================================================ */

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

.cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================================
   Resource Card
   ============================================================ */

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.resource-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.resource-image {
    position: relative;
    height: 180px;
    background: var(--bg-elevated);
    overflow: hidden;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.resource-card:hover .resource-image img {
    transform: scale(1.03);
}

.resource-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2.5rem;
    opacity: 0.4;
}

.resource-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.resource-badge {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.resource-badge.free,
.badge-free {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.resource-badge.paid,
.badge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Card premium styling */
.resource-card.card-premium {
    border-color: rgba(245, 158, 11, 0.35);
}

.resource-card.card-premium:hover {
    border-color: rgba(245, 158, 11, 0.6);
}

.resource-card.card-free {
    border-color: rgba(34, 197, 94, 0.2);
}

.resource-card.card-free:hover {
    border-color: rgba(34, 197, 94, 0.4);
}

.resource-platform {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
}

.platform-icon {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
}

.platform-icon.xbox {
    background: var(--xbox);
}

.platform-icon.ps,
.platform-icon.playstation {
    background: var(--playstation);
}

.resource-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
}

.resource-content,
.resource-body {
    padding: 20px;
}

.resource-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.resource-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.resource-card:hover .resource-title,
.resource-title:hover {
    color: var(--accent);
}

.resource-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-meta,
.resource-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.resource-author {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.resource-author:hover {
    color: var(--text-primary);
}

.resource-author img {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.resource-stats {
    display: flex;
    gap: 12px;
}

.resource-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.resource-stats i {
    font-size: 0.6875rem;
}

/* Resources Grid (homepage) */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ============================================================
   Categories
   ============================================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    border-color: var(--border-light);
}

.category-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

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

.category-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.category-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.category-arrow {
    color: var(--text-disabled);
    font-size: 0.75rem;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.category-card:hover .category-arrow {
    transform: translateX(2px);
    color: var(--text-muted);
}

/* ============================================================
   Badges
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-admin {
    background: var(--danger);
    color: white;
}

.badge-mod {
    background: var(--info);
    color: white;
}

.badge-verified {
    background: var(--accent);
    color: white;
}

.badge-xbox {
    background: var(--xbox);
    color: white;
}

.badge-ps {
    background: var(--playstation);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: #000;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.badge-coming-soon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

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

.form-group {
    margin-bottom: 20px;
}

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

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

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

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-elevated);
}

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

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 4px;
}

/* ============================================================
   Auth Pages
   ============================================================ */

.auth-container {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: var(--bg-primary);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 28px;
    font-size: 0.875rem;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

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

.oauth-btn.google:hover {
    background: #4285f4;
    border-color: #4285f4;
}

.oauth-btn.discord:hover {
    background: #5865f2;
    border-color: #5865f2;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ============================================================
   Alerts
   ============================================================ */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
}

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

.alert-error {
    background: var(--danger-soft);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

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

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

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

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

/* Discord CTA Banner */
.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    margin-bottom: 48px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.12) 0%, rgba(88, 101, 242, 0.04) 100%);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: var(--radius-lg);
    position: relative;
    top: -32px;
    margin-bottom: 16px;
}

.footer-cta-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-cta-content h3 i {
    color: #5865F2;
}

.footer-cta-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.footer-cta-btn {
    background: #5865F2 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 24px !important;
    font-weight: 600;
    white-space: nowrap;
    gap: 8px;
    border-radius: var(--radius) !important;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.footer-cta-btn:hover {
    background: #4752C4 !important;
    transform: translateY(-1px);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-brand-logo > i {
    font-size: 1.4rem;
    color: var(--accent);
    filter: drop-shadow(0 2px 6px rgba(220, 38, 38, 0.4));
}

.footer-brand-logo > span {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-brand-logo > span span {
    color: var(--accent);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
    line-height: 1.7;
}

.footer-platforms {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.footer-platforms span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--text-muted);
    background: var(--bg-hover);
    border: 1px solid var(--border);
}

.footer-platforms span i {
    font-size: 0.75rem;
}

.footer-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    background: #5865F2;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-discord-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.footer-discord-btn i {
    font-size: 1.1rem;
}

/* Footer Titles */
.footer-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    width: 14px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

.footer-links a:hover i {
    color: var(--accent);
}

.footer-link-pro {
    color: #f59e0b !important;
}

.footer-link-pro:hover {
    color: #fbbf24 !important;
}

.footer-link-pro i {
    color: #f59e0b !important;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0;
}

.footer-disclaimer {
    font-size: 0.65rem !important;
    color: var(--text-muted) !important;
    opacity: 0.6;
    margin-top: 4px !important;
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.footer-social {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    background: var(--bg-hover);
    border: 1px solid var(--border);
    transition: var(--transition-fast);
}

.footer-social:hover {
    transform: translateY(-2px);
    border-color: transparent;
}

.footer-social.discord:hover {
    background: #5865F2;
    color: #fff;
}

.footer-social.twitter:hover {
    background: #1d9bf0;
    color: #fff;
}

.footer-social.youtube:hover {
    background: #ff0000;
    color: #fff;
}

.footer-social.tiktok:hover {
    background: #010101;
    color: #fff;
}

/* ============================================================
   Tool Cards
   ============================================================ */

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.tool-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1;
}

.tool-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tool-desc {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.tool-card .badge {
    margin-top: auto;
}

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

.profile-header {
    background: var(--bg-secondary);
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
}

.profile-info {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    border: 3px solid var(--border);
    object-fit: cover;
}

.profile-details h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-bio {
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 500px;
    line-height: 1.6;
    font-size: 0.875rem;
}

.profile-stats {
    display: flex;
    gap: 32px;
}

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

.profile-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   Tabs
   ============================================================ */

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition-fast);
    cursor: pointer;
}

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

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab .badge {
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.tab.active .badge {
    background: var(--accent);
    color: white;
}

/* ============================================================
   Upload Zone
   ============================================================ */

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.upload-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ============================================================
   Pagination
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8125rem;
    transition: var(--transition-fast);
}

.page-link:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.page-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ============================================================
   Stars Rating
   ============================================================ */

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--text-disabled);
    font-size: 0.875rem;
}

.star.filled {
    color: #fbbf24;
}

/* ============================================================
   Comments
   ============================================================ */

.comment {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.comment-body {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
}

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

.cta-section {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    margin: 64px 0;
}

.cta-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   Bot Teaser
   ============================================================ */

.bot-hero {
    text-align: center;
    padding: 80px 0 48px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.bot-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.bot-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.bot-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.bot-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color var(--transition-fast);
}

.bot-feature-card:hover {
    border-color: var(--border-light);
}

.bot-feature-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bot-feature-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.bot-feature-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bot-interest-form {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}

.bot-interest-form .form-input {
    flex: 1;
}

.bot-faq {
    max-width: 680px;
    margin: 0 auto;
}

.bot-faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.bot-faq-item h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.bot-faq-item p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   Checkout
   ============================================================ */

.checkout-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 0;
}

.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.checkout-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.checkout-item-img {
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--bg-elevated);
}

.checkout-item-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.checkout-item-info p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-top: 16px;
    font-weight: 600;
}

.checkout-total .price {
    font-size: 1.25rem;
    color: var(--accent);
}

/* ============================================================
   Features Grid (homepage)
   ============================================================ */

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: border-color var(--transition-fast);
}

.feature-card:hover {
    border-color: var(--border-light);
}

.feature-icon {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* ============================================================
   Empty States
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 48px 20px;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 16px;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.875rem;
}

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

.admin-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.admin-stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 12px;
}

.admin-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.admin-nav-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: border-color var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.admin-nav-card:hover {
    border-color: var(--border-light);
}

.admin-nav-card i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.admin-nav-card span {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 12px 16px;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.admin-table tr:hover td {
    background: var(--bg-hover);
}

/* ============================================================
   Language Selector
   ============================================================ */

.lang-selector {
    position: relative;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.lang-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}
.lang-flag {
    font-size: 1rem;
    line-height: 1;
}
.lang-code {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.lang-chevron {
    font-size: 0.55rem;
    opacity: 0.5;
    transition: transform var(--transition-fast);
}
.lang-selector.open .lang-chevron {
    transform: rotate(180deg);
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
}
.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}
.lang-option:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.lang-option.active {
    color: var(--accent);
    font-weight: 600;
}
.lang-option .lang-flag {
    font-size: 1.1rem;
}
.lang-name {
    flex: 1;
}
.lang-check {
    font-size: 0.7rem;
    color: var(--accent);
}

@media (max-width: 768px) {
    .lang-code {
        display: none;
    }
    .lang-btn {
        padding: 6px 8px;
    }
}

/* ============================================================
   Mobile Menu
   ============================================================ */

.mobile-menu-btn {
    display: none;
}

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

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .cards-grid-3,
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar {
        gap: 32px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px;
    }

    .nav.active {
        display: flex;
    }

    .header-username,
    .header-chevron {
        display: none;
    }

    .header-user-btn {
        padding: 2px;
    }

    .header-inner {
        gap: 12px;
    }

    .header-actions {
        gap: 6px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-icon {
        font-size: 1.3rem;
    }

    .notification-dropdown {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 72px;
        width: auto;
        max-width: none;
    }

    .nav-link {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .header-actions .btn-sm {
        padding: 8px 12px;
    }

    .lang-chevron {
        display: none;
    }

    .lang-btn {
        padding: 6px 8px;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-bar {
        padding: 24px 0;
        gap: 24px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .section {
        padding: 40px 0;
    }

    .cards-grid,
    .cards-grid-3,
    .cards-grid-4,
    .resources-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-cta {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .search-input {
        width: 160px;
    }

    .search-input:focus {
        width: 200px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .cta-section {
        padding: 32px 20px;
    }

    .bot-features-grid {
        grid-template-columns: 1fr;
    }

    .bot-interest-form {
        flex-direction: column;
    }

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

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

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

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

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* ============================================================
   Scrollbar
   ============================================================ */

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.bg-card { background: var(--bg-card); }
.bg-elevated { background: var(--bg-elevated); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.border { border: 1px solid var(--border); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   Generic Card
   ============================================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ============================================================
   Tools Grid & Extra Tool Styles
   ============================================================ */

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

.tool-card.tool-featured {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(220, 38, 38, 0.04) 100%);
}

.tool-badge-new {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.tool-card.tool-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Subscription-locked tool cards */
.tool-card.tool-locked {
    position: relative;
    cursor: not-allowed;
    overflow: hidden;
}

.tool-card.tool-locked:hover {
    transform: none;
    border-color: var(--border);
}

.tool-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.55);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.tool-lock-overlay i {
    font-size: 2rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Subscription CTA banner */
.subscription-cta-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.subscription-cta-icon {
    font-size: 2.5rem;
    color: #f59e0b;
    margin-bottom: 16px;
}

.subscription-cta-banner h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.subscription-cta-banner p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

/* Premium badge */
.badge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Subscriber badge in header */
.badge-subscriber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: var(--radius-full, 9999px);
    font-weight: 700;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   Resources Page Layout
   ============================================================ */

.resources-page {
    padding-top: 30px;
}

/* Ressources/Mappings tabs */
.res-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.res-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}
.res-tab:hover { color: var(--text-primary); }
.res-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

.resources-header {
    margin-bottom: 24px;
}

.resources-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.resources-count {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.resources-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

.resources-sidebar {
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

/* Filter Card */
.filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.filter-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-list .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.filter-list .nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.filter-list .nav-link.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.filter-separator {
    border: none;
    border-top: 1px solid var(--border);
    margin: 6px 0;
}

.filter-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sort Bar */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.sort-buttons {
    display: flex;
    gap: 6px;
}

.search-form {
    display: flex;
    gap: 6px;
}

.search-form .search-input {
    width: 200px;
    border-radius: var(--radius);
}

.search-form .search-input:focus {
    width: 240px;
}

/* Category Sections */
.category-section {
    margin-bottom: 40px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.category-header .category-title {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-header .category-count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.875rem;
}

/* Resource Image Placeholder */
.resource-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Resource Code Preview (card thumbnail) */
.resource-code-preview {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.resource-code-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
    pointer-events: none;
}

.resource-code-preview pre {
    margin: 0;
    padding: 12px;
    font-size: 0.55rem;
    line-height: 1.4;
    white-space: pre;
    overflow: hidden;
    height: 100%;
    background: transparent;
    border: none;
}

.resource-code-preview code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: var(--text-muted);
}

/* Empty States Extended */
.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 16px;
    display: block;
}

.empty-state-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

/* ============================================================
   Resource Detail Page
   ============================================================ */

.resource-detail {
    padding-top: 30px;
}

.breadcrumb {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb-sep {
    margin: 0 8px;
    font-size: 0.65rem;
}

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

.resource-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.resource-header {
    margin-bottom: 24px;
}

.resource-thumbnail {
    height: 300px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-thumbnail-icon {
    font-size: 6rem;
    opacity: 0.4;
}

.resource-header-body {
    padding: 24px;
}

.resource-badges .resource-category {
    margin: 0;
}

.resource-title-main {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.resource-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.resource-stats-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.resource-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-stat .fa-download,
.resource-stat .fa-eye {
    color: var(--accent);
}

.star-icon {
    color: #fbbf24;
}

.heart-icon {
    color: var(--danger);
}

/* Tabs */
.tabs-container {
    margin-top: 24px;
}

.tab-panel {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

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

.tab-panel-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

/* File Preview */
.file-preview {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
}

.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.file-preview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.file-preview-ext {
    font-weight: 400;
    color: var(--accent);
    font-family: monospace;
    font-size: 0.85rem;
}

.file-preview-lines {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-preview-code {
    max-height: 500px;
    overflow: auto;
}

.file-preview-code pre {
    margin: 0;
    padding: 16px;
    background: transparent;
    border: none;
    font-size: 0.82rem;
    line-height: 1.6;
    tab-size: 4;
}

.file-preview-code code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: var(--text-secondary);
    white-space: pre;
}

.file-preview-footer {
    padding: 10px 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.file-preview-archive {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.file-preview-archive i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.file-preview-archive p {
    margin: 4px 0;
}

/* Resource Tags */
.resource-tags {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.resource-tags h4 {
    margin-bottom: 12px;
}

.tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Comment Form */
.comment-form {
    margin-bottom: 24px;
}

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

/* Versions */
.version-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.version-date {
    color: var(--text-muted);
    margin-left: 12px;
}

/* Sidebar Card */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card:last-child {
    margin-bottom: 0;
}

.sidebar-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.btn-block {
    width: 100%;
}

.sidebar-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: 12px;
}

.sidebar-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.sidebar-actions .btn {
    flex: 1;
}

/* Like Button */
.like-btn.liked {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

/* Star Rating Interactive */
.star-rating {
    display: flex;
    gap: 8px;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.star-rating .star {
    cursor: pointer;
    color: var(--text-disabled);
    transition: color var(--transition-fast);
}

.star-rating .star:hover,
.star-rating .star.filled {
    color: #fbbf24;
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.875rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-row dt {
    color: var(--text-secondary);
    font-weight: normal;
}

.info-row dd {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.info-row dd a {
    color: var(--text-primary);
}

.info-row dd a:hover {
    color: var(--accent);
}

/* Related Section */
.related-section {
    margin-top: 60px;
}

.related-section .section-title {
    margin-bottom: 24px;
}

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

.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.profile-items-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.profile-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.profile-item-card:hover {
    border-color: var(--border-light);
}

.profile-item-image {
    height: 140px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.profile-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.4;
}

.profile-item-info {
    padding: 16px;
}

.profile-item-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.profile-item-title:hover {
    color: var(--accent);
}

.profile-item-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.profile-item-price {
    font-weight: 600;
    color: var(--accent);
}

.profile-item-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.badge-free-tag {
    background: var(--success);
    color: white;
}

.profile-empty-state {
    text-align: center;
    padding: 48px 20px;
}

.profile-empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 12px;
}

/* ============================================================
   Purchases Page
   ============================================================ */

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

.purchase-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    align-items: center;
    transition: border-color var(--transition-fast);
}

.purchase-card:hover {
    border-color: var(--border-light);
}

.purchase-image {
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}

.purchase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.purchase-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.4;
}

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

.purchase-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.purchase-title a {
    color: inherit;
}

.purchase-title a:hover {
    color: var(--accent);
}

.purchase-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.purchase-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.purchase-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

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

.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.settings-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ============================================================
   Platform Selection (Register)
   ============================================================ */

.platform-option {
    cursor: pointer;
}

.platform-option input[type="radio"] {
    display: none;
}

.platform-box {
    padding: 14px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 0.875rem;
}

.platform-box:hover {
    border-color: var(--border-light);
}

.platform-option input[type="radio"]:checked + .platform-box {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ============================================================
   Admin Stat Cards Extended
   ============================================================ */

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

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

/* Table (Admin) */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.table td {
    padding: 12px 16px;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.table tbody tr:hover td {
    background: var(--bg-hover);
}

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

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

    .resources-sidebar {
        position: static;
    }

    .resource-layout {
        grid-template-columns: 1fr;
    }

    .sort-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        width: 100%;
    }

    .search-form .search-input {
        width: 100%;
        flex: 1;
    }

    .search-form .search-input:focus {
        width: 100%;
    }

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

    .profile-items-list {
        grid-template-columns: 1fr;
    }

    .purchase-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .purchase-actions {
        width: 100%;
    }

    .purchase-actions .btn {
        flex: 1;
    }
}

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

/* Sidebar layout (1fr + 350px sidebar) — checkout, server, mapping */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* Stats grid (4 cols) — support, dashboard */
.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Form grid (2 cols) */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Table responsive wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .table-responsive table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .stats-grid-4 {
        grid-template-columns: 1fr;
    }

    .layout-with-sidebar {
        gap: 16px;
    }

    .header-inner {
        gap: 8px;
        height: 56px;
    }

    .logo {
        gap: 6px;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .logo-icon {
        font-size: 1.1rem;
    }

    .header-user-group {
        height: 36px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

    .header-icon-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}
