/* ============================================
   FlickZZ Resources - Main Stylesheet
   Owner: Arsh Siddique © 2026
   ============================================ */

:root {
    --ann-offset: 0px;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    --accent: #22d3ee;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --bg: #0a0a0f;
    --bg-elevated: #111118;
    --bg-card: #15151e;
    --bg-hover: #1c1c28;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    --nav-height: 72px;
}

[data-theme="light"] {
    --bg: #fafafa;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f3f4f6;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.hidden { display: none !important; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== ANNOUNCEMENT BANNER ========== */
.site-announcement {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0 1rem;
    z-index: 110;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.site-announcement .ann-close {
    position: absolute;
    right: 0.75rem;
    background: rgba(255,255,255,0.15);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background var(--transition);
}

.site-announcement .ann-close:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
    .site-announcement {
        font-size: 0.8rem;
        padding-right: 2.5rem;
    }
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: var(--ann-offset, 0);
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: background var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.8);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    box-shadow: var(--shadow);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    border: 1.5px solid var(--border);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
    transition: transform var(--transition), box-shadow var(--transition);
}

.logo:hover .logo-img {
    transform: rotate(-5deg) scale(1.08);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.logo-img-lg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.6rem;
    transition: transform var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0 auto;
}

.nav-links a {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text);
    transform: rotate(20deg);
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform var(--transition);
}

.user-avatar:hover {
    transform: scale(1.05);
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    z-index: 120;
}

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

.dropdown-user {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dropdown-user strong { font-size: 0.95rem; }
.dropdown-user span { font-size: 0.8rem; color: var(--text-muted); }

.dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

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

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1.2rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

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

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

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

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

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
    overflow: hidden;
}

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

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    right: -50px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -30px); }
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-num {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ========== SECTION ========== */
.section {
    padding: 6rem 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

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

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ========== PAGE HEADER ========== */
.page-header {
    padding: calc(var(--nav-height) + 4rem) 1.5rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ========== CATEGORY GRID ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.category-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card > * { position: relative; z-index: 1; }

.category-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.category-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-dim);
    transition: all var(--transition);
}

.category-card:hover .category-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* ========== RESOURCE GRID ========== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    transition: opacity 0.2s ease;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.resource-grid.loading {
    opacity: 0.5;
}

.resource-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.resource-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

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

/* Smooth resource grid transitions */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    min-height: 350px;
}
.resource-grid.loading {
    opacity: 0.5;
}

.resource-card:hover .resource-thumb img {
    transform: scale(1.05);
}

.resource-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.7rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.resource-featured {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.7rem;
    background: var(--warning);
    color: #000;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.resource-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.resource-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.resource-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.resource-rating { color: var(--warning); }

/* ========== SKELETON ========== */
.skeleton-card {
    height: 330px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== FEATURES ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform var(--transition);
}

.feature:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all var(--transition);
}

.feature:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: rotate(-8deg) scale(1.1);
}

.feature h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========== CTA ========== */
.cta-section {
    padding: 4rem 0 6rem;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-card > * { position: relative; z-index: 1; }

.cta-card h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.cta-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 320px;
    font-size: 0.95rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.3rem 0;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--primary); }

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
}

/* Branded social hovers */
.social-links a.discord:hover { background: #5865F2; border-color: #5865F2; }
.social-links a.youtube:hover { background: #FF0000; border-color: #FF0000; }
.social-links a.github:hover  { background: #24292e; border-color: #24292e; }
.social-links a.twitter:hover { background: #1DA1F2; border-color: #1DA1F2; }

/* ========== YOUTUBE PROMO BANNER ========== */
.promo-section {
    padding: 5rem 0;
    background: var(--bg-elevated);
}

.promo-card {
    background: linear-gradient(135deg, #1a0606 0%, #2d0a0a 50%, #0a0a0f 100%);
    border: 1px solid rgba(255, 0, 0, 0.15);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.2), transparent 70%);
    pointer-events: none;
}

.promo-content { position: relative; z-index: 1; }

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 100px;
    color: #ff4444;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.promo-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: white;
}

.promo-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.75rem;
    font-size: 1rem;
}

.btn-youtube {
    background: #FF0000;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.5);
}

.promo-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ff0000, #8B0000);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition);
}

.promo-visual:hover { transform: scale(1.02); }

.promo-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
}

.promo-play {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #FF0000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    transition: transform var(--transition);
    animation: pulseRing 2s ease-in-out infinite;
}

.promo-visual:hover .promo-play {
    transform: scale(1.1);
}

@keyframes pulseRing {
    0%, 100% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 20px rgba(255, 0, 0, 0); }
}

.promo-channel-name {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
}

@media (max-width: 768px) {
    .promo-card {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    .promo-visual { order: -1; }
}

/* ========== DISCORD BANNER ========== */
.discord-banner {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition);
    cursor: pointer;
}

.discord-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.4);
}

.discord-banner i.fa-discord {
    font-size: 3rem;
    flex-shrink: 0;
}

.discord-banner-content { flex: 1; }
.discord-banner-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem; }
.discord-banner-content p { font-size: 0.9rem; opacity: 0.9; margin: 0; }
.discord-banner i.fa-arrow-right { transition: transform var(--transition); }
.discord-banner:hover i.fa-arrow-right { transform: translateX(5px); }

@media (max-width: 600px) {
    .discord-banner { flex-direction: column; text-align: center; padding: 1.5rem; }
}

/* ========== FEEDBACK SECTION ========== */
.feedback-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.feedback-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.feedback-form-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.feedback-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all var(--transition);
}

.feedback-item:hover {
    border-color: var(--border-hover);
    transform: translateX(2px);
}

.feedback-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feedback-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.feedback-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.feedback-rating-stars {
    color: var(--warning);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.feedback-body {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.feedback-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.feedback-rate-input {
    display: flex;
    gap: 0.3rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feedback-rate-input i {
    color: var(--text-dim);
    cursor: pointer;
    transition: all var(--transition);
}

.feedback-rate-input i.active,
.feedback-rate-input i:hover {
    color: var(--warning);
    transform: scale(1.15);
}

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

.feedback-empty i {
    font-size: 2.5rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.copy-warning {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== AUTH PAGES ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-y: auto; 
    padding: 2rem 1rem;
}

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

.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.auth-logo {
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

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

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.input-wrap {
    position: relative;
    display: block;
}

/* Left-side decorative icon (lock/key/envelope) — direct child <i> only,
   NOT the icon inside the toggle-pass button. */
.input-wrap > i:first-child {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
    z-index: 2;
    line-height: 1;
    font-size: 0.95rem;
}

.input-wrap input {
    width: 100%;
    padding-left: 2.75rem !important;
    padding-right: 3rem !important;   /* leave room for the eye toggle */
}

/* Eye / show-password toggle button — must be clickable and aligned. */
.toggle-pass {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    color: var(--text-dim);
    padding: 0;
    margin: 0;
    border-radius: 8px;
    z-index: 3;                       /* above the input */
    transition: color var(--transition), background var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.toggle-pass i {
    pointer-events: none;             /* clicks go to the button, not the <i> */
    font-size: 1rem;
    line-height: 1;
}

.toggle-pass:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.toggle-pass:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select,
.select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

textarea { resize: vertical; min-height: 90px; }

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

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

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover { text-decoration: underline; }

/* ========== TOOLBAR ========== */
.toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 240px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
    font-size: 0.95rem;
    line-height: 1;
    z-index: 1;
}

.search-box input {
    padding-left: 2.75rem !important;
    width: 100%;
    height: 44px;
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.select {
    min-width: 160px;
    cursor: pointer;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ========== RESOURCE DETAIL ========== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    transition: color var(--transition);
}

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

.resource-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
}

.detail-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 2rem;
}

.detail-thumb {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.detail-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-tagline {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.detail-description {
    padding: 0 2rem 2rem;
    color: var(--text-muted);
    line-height: 1.7;
    white-space: pre-wrap;
}

.detail-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.detail-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-input {
    display: flex;
    gap: 0.35rem;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.rating-input i {
    color: var(--text-dim);
    cursor: pointer;
    transition: all var(--transition);
}

.rating-input i:hover,
.rating-input i.active {
    color: var(--warning);
    transform: scale(1.15);
}

.rating-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.comment-form textarea {
    margin-bottom: 0.75rem;
}

.login-prompt {
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--text-muted);
}

.login-prompt a {
    color: var(--primary);
    font-weight: 600;
}

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

.comment-item {
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

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

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
}

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

.comment-body {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.comment-delete {
    color: var(--danger);
    font-size: 0.8rem;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.comment-delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ========== DASHBOARD / ADMIN STATS ========== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.dash-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
}

.dash-stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.dash-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.bg-primary { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); }
.bg-success { background: linear-gradient(135deg, var(--success), #059669); }
.bg-warn { background: linear-gradient(135deg, var(--warning), #d97706); }
.bg-danger { background: linear-gradient(135deg, var(--danger), #dc2626); }

.dash-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dash-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== ADMIN ========== */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab {
    padding: 0.85rem 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

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

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

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

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

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

.admin-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: all var(--transition);
    cursor: pointer;
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--primary);
}

.file-upload:hover .file-upload-label {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--text);
}

.hint {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: block;
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.3s ease;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table tbody tr {
    transition: background var(--transition);
}

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

.action-btns {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.icon-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.table-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* ========== CONTENT PROSE ========== */
.content-prose {
    max-width: 800px;
    margin: 0 auto;
}

.content-prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    letter-spacing: -0.01em;
}

.content-prose h2:first-child { margin-top: 0; }

.content-prose p,
.content-prose ul {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.content-prose ul {
    padding-left: 1.5rem;
}

.content-prose li { margin-bottom: 0.5rem; }

.content-prose strong { color: var(--text); font-weight: 600; }

.notice-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    color: var(--text);
}

.notice-box i {
    color: var(--warning);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ========== TOAST ========== */
.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + 1rem);
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    min-width: 280px;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
    animation: toastIn 0.3s ease;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.toast i {
    font-size: 1.2rem;
}
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--primary); }

.toast-msg { flex: 1; font-size: 0.9rem; }

.toast.closing { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    to { transform: translateX(100%); opacity: 0; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .detail-header { grid-template-columns: 1fr; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

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

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        margin: 0;
        gap: 0.25rem;
        transform: translateY(-150%);
        transition: transform var(--transition);
    }

    .nav-links.open { transform: translateY(0); }

    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 0.75rem 1rem; }

    .auth-buttons { display: none; }
    .auth-buttons.mobile-show { display: flex; }

    .hero-stats { gap: 2rem; }

    .section { padding: 4rem 0; }

    .cta-card { padding: 3rem 1.5rem; }

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

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

    .detail-header { padding: 1.5rem; }
    .detail-description { padding: 0 1.5rem 1.5rem; }

    .auth-card { padding: 1.75rem; }

    .toast-container { left: 1rem; right: 1rem; }
    .toast { min-width: unset; max-width: unset; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { gap: 1.5rem; }
    .stat-num { font-size: 1.75rem; }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* Selection */
::selection { background: var(--primary); color: white; }

/* Prevent text selection on UI elements */
.btn, .logo, .nav-links a, .category-card h3, .resource-badge, .table-badge {
    -webkit-user-select: none;
    user-select: none;
}
