/* SafeGuardians CSS Stylesheet - Enhanced Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --secondary-dark: #7c3aed;
    --accent: #ec4899;
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #cbd5e1;
    --light: #f8fafc;
    --light-gray: #f1f5f9;
    --white: #ffffff;

    --bg: var(--light);
    --surface: var(--white);
    --text: var(--dark);
    --muted: var(--gray);
    --border: rgba(15, 23, 42, 0.08);
    --border-light: rgba(15, 23, 42, 0.05);
    --primary2: var(--secondary);
    --shadow: 0 20px 40px rgba(2, 6, 23, 0.12);
    --shadow-soft: 0 10px 25px rgba(2, 6, 23, 0.08);
    --shadow-hover: 0 25px 50px rgba(99, 102, 241, 0.15);
    --shadow-xl: 0 30px 60px rgba(2, 6, 23, 0.18);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: rgba(241, 245, 249, 0.1);
    --border-light: rgba(241, 245, 249, 0.05);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 25px 50px rgba(99, 102, 241, 0.25);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.4);
}

:root {

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-primary-alt: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-ocean: linear-gradient(135deg, #2e3192 0%, #1bffff 100%);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 50%, rgba(236, 72, 153, 0.06) 100%),
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        var(--bg);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .header {
    background: rgba(30, 41, 59, 0.85);
    border-bottom: 1px solid rgba(241, 245, 249, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header.scrolled {
    box-shadow: 0 8px 32px rgba(2, 6, 23, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(30, 41, 59, 0.98);
    border-bottom: 1px solid rgba(241, 245, 249, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.header .nav-container {
    min-height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all var(--transition-base);
    letter-spacing: -0.02em;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.2));
    outline: none;
}

.logo:focus {
    outline: none;
}

.logo:hover {
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex: 1;
}

.nav-item {
    display: flex;
}

.nav-spacer {
    flex: 1;
}

.nav-link {
    color: #667eea;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all var(--transition-base);
    font-weight: 600;
    position: relative;
    font-size: 0.95rem;
}

.nav-link-muted {
    color: var(--gray);
}

[data-theme="dark"] .nav-link-muted {
    color: var(--light);
}

.nav-link-muted:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 1.2rem;
    right: 1.2rem;
    height: 2.5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-base);
    border-radius: 2px;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.nav-link.active {
    color: #667eea;
    background: transparent;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:focus,
.cta-button:focus,
.auth-button:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

.nav-link:focus-visible,
.cta-button:focus-visible,
.auth-button:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.45);
    outline-offset: 3px;
}

.skip-link {
    display: none !important;
}

.nav-cta {
    background: transparent;
    border: none;
    color: #667eea;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.nav-cta:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.nav-link.active.nav-cta {
    color: #667eea;
    background: transparent;
    font-weight: 700;
}

/* User Dropdown Menu */
.user-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.35rem 0.5rem 0.35rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all var(--transition-base);
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.25);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.user-name-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
}

.user-name-link:hover {
    color: #667eea;
}

.user-menu-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-menu-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.theme-toggle {
    background: transparent;
    border: 2px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    border-radius: 50%;
}

.theme-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: scale(1.05);
}

[data-theme="dark"] .theme-toggle {
    color: #f1f5f9;
    border-color: rgba(241, 245, 249, 0.2);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(241, 245, 249, 0.1);
    border-color: #f1f5f9;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e9ecef;
}

[data-theme="dark"] .user-dropdown {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

[data-theme="dark"] .dropdown-item {
    color: var(--text);
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #667eea;
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #667eea;
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.dropdown-item span {
    flex: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background var(--transition-base);
    margin-left: auto;
}

.hamburger:hover {
    background: rgba(99, 102, 241, 0.1);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: all var(--transition-base);
    border-radius: 2px;
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: transparent;
    color: var(--text);
    padding: 100px 20px;
    display: flex;
    align-items: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -55%;
    right: -25%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.18) 0%, rgba(118, 75, 162, 0.12) 40%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    filter: blur(40px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
    filter: blur(50px);
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(0, -50px) rotate(10deg);
    }

    75% {
        transform: translate(-30px, -30px) rotate(5deg);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 560px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin-bottom: 0;
    opacity: 0.85;
    max-width: 48ch;
    color: var(--gray);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: var(--white);
    color: #667eea;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    transition: all var(--transition-base);
    border: 2px solid rgba(102, 126, 234, 0.2);
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25), inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.4);
}

.cta-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button.primary:hover {
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.45), 0 0 30px rgba(118, 75, 162, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.03);
}

.cta-button i {
    margin-right: 10px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: #667eea;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-animation {
    width: 300px;
    height: 300px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    animation: floaty 3s ease-in-out infinite;
    position: relative;
}

.shield-animation i {
    font-size: 11rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
    position: relative;
    z-index: 1;
}

@keyframes floaty {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* User Stats Section */
.user-stats {
    padding: 40px 20px;
    background: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: var(--white);
}

[data-theme="dark"] .features {
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
    color: var(--dark);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

[data-theme="dark"] .section-title {
    color: var(--text);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(2, 6, 23, 0.08), 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
    border: 1px solid rgba(102, 126, 234, 0.08);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .feature-card {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.05);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2), 0 10px 20px rgba(2, 6, 23, 0.1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all var(--transition-bounce);
    animation: gradientShift 3s ease infinite;
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: var(--gradient-primary);
    opacity: 0;
    filter: blur(10px);
    transition: opacity var(--transition-base);
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.feature-card:hover .feature-icon::before {
    opacity: 0.6;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

[data-theme="dark"] .feature-card h3 {
    color: var(--text);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

[data-theme="dark"] .feature-card p {
    color: var(--muted);
}

/* About Section */
.about {
    padding: 80px 20px;
    background: var(--white);
}

[data-theme="dark"] .about {
    background: transparent;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

[data-theme="dark"] .about-text h2 {
    color: var(--text);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
    line-height: 1.8;
}

[data-theme="dark"] .about-text p {
    color: var(--muted);
}

.sdg-badges {
    margin-top: 2rem;
}

.sdg-badges h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

[data-theme="dark"] .sdg-badges h3 {
    color: var(--text);
}

.sdg-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sdg-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: 1.2rem 1.3rem;
    border-radius: 18px;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    min-width: 150px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .sdg-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sdg-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.sdg-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25), inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.4);
}

.sdg-badge:hover::before {
    left: 100%;
}

.sdg-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.sdg-text {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
}

[data-theme="dark"] .sdg-text {
    color: var(--muted);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image i {
    font-size: 8rem;
    color: #667eea;
    opacity: 0.3;
}

/* Target Audience Section */
.target-audience {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.target-audience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.20), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.14), transparent 60%);
    opacity: 0.9;
}

.target-audience .section-title {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.audience-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
    justify-content: center;
}

.audience-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.15), 0 0 1px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .audience-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.audience-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.25), 0 0 30px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.audience-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
    transition: all var(--transition-base);
}

.audience-card:hover i {
    transform: scale(1.1) rotateY(10deg);
    filter: drop-shadow(0 6px 12px rgba(102, 126, 234, 0.5));
}

.audience-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

[data-theme="dark"] .audience-card h3 {
    color: var(--text);
}

.audience-card p {
    color: var(--gray);
}

[data-theme="dark"] .audience-card p {
    color: var(--muted);
}

/* Footer */
.footer {
    background: var(--dark);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.72);
}

/* Authentication Section */
.auth-section {
    padding: 80px 20px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.auth-container {
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
}

.auth-card {
    background: var(--surface);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(2, 6, 23, 0.2), 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    width: 100%;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 70px 20px;
}

.page-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 0.75rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.meta-row {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.content-section {
    padding: 60px 20px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.download-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.download-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(102, 126, 234, 0.12);
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.download-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.download-card p {
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.download-card small {
    display: block;
    margin-top: 0.75rem;
    color: var(--muted);
}

.info-panels {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
}

.info-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
}

.info-panel h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.info-panel p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.checklist {
    display: grid;
    gap: 0.6rem;
}

.check-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--muted);
}

.check-item i {
    color: #22c55e;
    margin-top: 0.1rem;
}

.cta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.auth-header h1 {
    font-size: 2.2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: var(--muted);
}

.error-messages {
    margin-bottom: 1.5rem;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease;
}

.error-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease;
}

.success-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
    color: #10b981;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.error-message i {
    margin-right: 10px;
}

.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.input-group {
    position: relative;
    display: block;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    z-index: 10;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 15px 16px 15px 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
    caret-color: #667eea;
}

.input-group:has(.toggle-password) input {
    padding-right: 50px;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: var(--gray-light);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-base);
    height: 24px;
    width: 24px;
    -webkit-appearance: none;
    appearance: none;
}

.toggle-password:hover {
    color: #667eea;
}

.toggle-password:focus,
.toggle-password:focus-visible {
    outline: none;
    box-shadow: none;
}

.form-group small {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

.field-hint {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

.validation-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.validation-message.show {
    display: block;
}

.validation-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 10;
    pointer-events: none;
}

.input-group:has(.toggle-password) .validation-icon {
    right: 46px;
}

.input-group.valid .validation-icon::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #10b981;
    opacity: 1;
}

.input-group.invalid .validation-icon::before {
    content: '\f057';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ef4444;
    opacity: 1;
}

.input-group.valid .validation-icon,
.input-group.invalid .validation-icon {
    opacity: 1;
}

.input-group.valid input {
    border-color: rgba(16, 185, 129, 0.3);
}

.input-group.invalid input {
    border-color: rgba(239, 68, 68, 0.3);
}

.birthday-inputs {
    display: flex;
    gap: 0.75rem;
}

.birthday-inputs select {
    flex: 1;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.birthday-inputs select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.birthday-inputs select:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.password-requirements {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    transition: all var(--transition-base);
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement i {
    font-size: 0.5rem;
    color: #cbd5e1;
    transition: all var(--transition-base);
}

.requirement.met {
    color: #10b981;
}

.requirement.met i {
    color: #10b981;
}

.requirement.met i::before {
    content: '\f058';
    font-size: 1rem;
}

.forgot-password-link {
    margin-top: 0.75rem;
    text-align: left;
}

.forgot-password-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.forgot-password-link a:hover {
    color: #667eea;
    text-decoration: underline;
}

.captcha-container {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.captcha-container>div {
    transform: scale(0.95);
    transform-origin: center;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button i {
    margin-right: 10px;
}

.auth-footer {
    text-align: center;
    color: #666;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-info {
    display: none;
}

.auth-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.benefits-list i {
    margin-right: 15px;
    font-size: 1.5rem;
    min-width: 30px;
}

.progress-preview {
    margin-bottom: 2rem;
}

.progress-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-item i {
    margin-right: 15px;
    font-size: 1.5rem;
    min-width: 30px;
}

.progress-info {
    flex: 1;
}

.progress-info h3 {
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.security-tips h3 {
    margin-bottom: 1rem;
}

.security-tips ul {
    list-style: none;
}

.security-tips li {
    margin-bottom: 0.5rem;
    padding-left: 20px;
    position: relative;
}

.security-tips li::before {
    content: "•";
    position: absolute;
    left: 0;
}

/* Dashboard Styles */
.dashboard-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.welcome-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.welcome-banner p {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    opacity: 0.95;
}

.highlight {
    color: #ffd700;
}

.stats-overview {
    padding: 40px 20px;
    background: white;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.stat-card.info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.stat-card {
    color: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(2, 6, 23, 0.15);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 24px 24px 0 0;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.25), 0 0 40px rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-info p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.level-progress .progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.level-progress .progress-fill {
    height: 100%;
    background: white;
    border-radius: 5px;
}

.level-progress span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Category Progress */
.category-progress {
    padding: 60px 20px;
    background: #f8f9fa;
}

.category-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.category-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.category-progress-bar .progress-bar {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.category-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.category-progress-bar span {
    font-size: 0.9rem;
    color: #666;
}

/* Recent Achievements */
.recent-achievements {
    padding: 60px 20px;
    background: white;
}

.achievements-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    font-size: 2.5rem;
}

.achievement-info h3 {
    margin-bottom: 0.5rem;
}

.achievement-info p {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.achievement-info small {
    opacity: 0.7;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* Quick Actions */
.quick-actions {
    padding: 60px 20px;
    background: #f8f9fa;
}

.actions-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.action-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.1);
    transition: all var(--transition-base);
    border: 2px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.25), 0 5px 20px rgba(2, 6, 23, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.action-card:hover h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.action-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
    display: inline-block;
}

.action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.action-card h3 {
    margin-bottom: 1rem;
}

.action-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Missions Page */
.missions-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.mission-result {
    padding: 20px;
}

.result-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-card.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.result-card.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.result-icon {
    font-size: 3rem;
}

.result-content h3 {
    margin-bottom: 1rem;
}

.reward {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.mission-filters {
    padding: 40px 20px;
    background: white;
}

.filter-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.filter-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.missions-grid {
    padding: 40px 20px;
    background: #f8f9fa;
    min-height: 400px;
}

.missions-grid>div {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.08);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    position: relative;
}

.mission-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.mission-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2), 0 10px 30px rgba(2, 6, 23, 0.1);
}

.mission-card:hover::after {
    opacity: 1;
}

.mission-card.completed {
    border: 2px solid #4CAF50;
}

.mission-header {
    padding: 2rem;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.mission-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.mission-title {
    margin-bottom: 1rem;
}

.mission-title h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.mission-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
}

.badge.difficulty.beginner {
    background: #4CAF50;
}

.badge.difficulty.intermediate {
    background: #FF9800;
}

.badge.difficulty.advanced {
    background: #f44336;
}

.badge.completed {
    background: #4CAF50;
}

.mission-reward {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.mission-content {
    padding: 1.5rem;
}

.mission-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.mission-status {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4CAF50;
    font-weight: 600;
}

.score {
    margin-left: auto;
    background: #4CAF50;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.mission-form {
    margin-top: 1rem;
}

.mission-scenario {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.mission-scenario h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.mission-answer {
    margin-bottom: 1rem;
}

.mission-answer label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.mission-answer textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
}

.mission-answer textarea:focus {
    outline: none;
    border-color: #667eea;
}

.mission-button {
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
    font-size: 1rem;
}

.mission-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.mission-button:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 20px 30px;
    position: relative;
    overflow: hidden;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive Design */

/* Tablet and below */
@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }

    .features-grid,
    .audience-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile and tablet */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        transition: left var(--transition-base);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        border-top: 1px solid var(--border-light);
        z-index: 999;
        align-items: flex-start;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-menu .nav-link {
        padding: 1rem 2rem;
        width: 100%;
        display: block;
        text-align: left;
        justify-content: flex-start;
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-spacer {
        display: none;
    }

    .hero {
        padding: 60px 20px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        margin: 0 auto;
        max-width: 100%;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .shield-animation {
        width: 200px;
        height: 200px;
    }

    .shield-animation i {
        font-size: 8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about {
        padding: 60px 20px;
    }

    .features,
    .target-audience {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .auth-section {
        padding: 40px 20px;
    }

    .auth-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .info-panels {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .features-grid,
    .audience-grid,
    .category-grid,
    .achievements-list,
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card,
    .audience-card,
    .action-card {
        padding: 2rem;
    }

    .sdg-grid {
        justify-content: center;
    }

    .sdg-badge {
        min-width: 130px;
    }

    .missions-grid>div {
        grid-template-columns: 1fr;
    }

    .mission-card {
        border-radius: 20px;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: auto;
    }

    .dashboard-hero {
        padding: 50px 20px;
    }

    .welcome-banner h1 {
        font-size: 2.2rem;
    }

    .footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .shield-animation {
        width: 160px;
        height: 160px;
    }

    .shield-animation i {
        font-size: 6rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .features,
    .about,
    .target-audience {
        padding: 40px 15px;
    }

    .feature-card,
    .audience-card,
    .action-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .auth-section {
        padding: 30px 15px;
    }

    .auth-card {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }

    .auth-header i {
        font-size: 2.5rem;
    }

    .input-group input {
        padding: 13px 16px 13px 45px;
        font-size: 0.95rem;
    }

    .input-group i {
        left: 12px;
    }

    .auth-button {
        padding: 15px;
        font-size: 1rem;
    }

    .password-requirements {
        padding: 0.75rem;
    }

    .requirement {
        font-size: 0.85rem;
    }

    .mission-card {
        border-radius: 16px;
    }

    .stat-card {
        padding: 2rem;
    }

    .dashboard-hero {
        padding: 40px 15px;
    }

    .welcome-banner h1 {
        font-size: 1.8rem;
    }

    .footer {
        padding: 30px 15px 20px;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* Dashboard Forum Layout */
.dashboard-main {
    padding: 0;
    background: #f8f9fa;
}

[data-theme="dark"] .dashboard-main {
    background: transparent;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    min-height: calc(100vh - 200px);
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Forum Section */
.forum-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .forum-section {
    background: var(--surface);
}

[data-theme="dark"] .forum-header {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .welcome-text {
    color: var(--muted);
}

.forum-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.forum-header h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

[data-theme="dark"] .forum-header h2 {
    color: var(--text);
}

.forum-header h2 i {
    color: #667eea;
}

.welcome-text {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.welcome-text strong {
    color: #667eea;
}

.forum-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .category-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: var(--border);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
    text-align: left;
}

.category-info h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-align: left;
}

[data-theme="dark"] .category-info h3 {
    color: var(--text);
}

.category-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

[data-theme="dark"] .category-info p {
    color: var(--muted);
}

.category-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #999;
}

[data-theme="dark"] .category-stats {
    color: var(--muted);
}

.category-stats i {
    color: #667eea;
}

.category-arrow {
    font-size: 1.2rem;
    color: #ccc;
    transition: all 0.3s ease;
}

.category-card:hover .category-arrow {
    color: #667eea;
    transform: translateX(4px);
}

/* Chatbox Section */
.chatbox-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 450px;
}

[data-theme="dark"] .chatbox-section {
    background: var(--surface);
}

.chatbox-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

[data-theme="dark"] .chatbox-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: var(--border);
}

.chatbox-header h3 {
    font-size: 1rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: 600;
}

[data-theme="dark"] .chatbox-header h3 {
    color: var(--text);
}

.chatbox-header h3 i {
    color: #667eea;
    font-size: 0.9rem;
}

.online-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 500;
}

.online-count i {
    font-size: 0.4rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.chatbox-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: white;
}

[data-theme="dark"] .chatbox-messages {
    background: var(--surface);
}

.chat-message {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.chat-message:hover {
    background: #f8f9fa;
}

[data-theme="dark"] .chat-message:hover {
    background: rgba(255, 255, 255, 0.04);
}

.chat-message.own-message {
    background: #f0f4ff;
}

[data-theme="dark"] .chat-message.own-message {
    background: rgba(102, 126, 234, 0.18);
}

.message-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.message-username {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1a1a1a;
}

[data-theme="dark"] .message-username {
    color: var(--text);
}

.role-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}

.admin-tag {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
    color: #b45309;
}

.message-time {
    font-size: 0.7rem;
    color: #999;
}

[data-theme="dark"] .message-time {
    color: var(--muted);
}

.message-text {
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
    color: #333;
}

.message-delete-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-message:hover .message-delete-btn {
    opacity: 1;
}

.message-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #b91c1c;
    transform: translateY(-50%) scale(1.05);
}

.message-delete-btn:active {
    transform: translateY(-50%) scale(0.95);
}

[data-theme="dark"] .message-delete-btn {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

[data-theme="dark"] .message-delete-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fca5a5;
}

/* Delete Message Modal */
.delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.delete-modal.show {
    display: flex;
}

.delete-modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

[data-theme="dark"] .delete-modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delete-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

[data-theme="dark"] .delete-modal-header {
    border-bottom-color: var(--border);
}

.delete-modal-header i {
    font-size: 1.5rem;
    color: #f59e0b;
}

.delete-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

[data-theme="dark"] .delete-modal-header h3 {
    color: var(--text);
}

.delete-modal-body {
    padding: 1.5rem;
}

.delete-modal-body p {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

.delete-modal-body p:last-child {
    margin-bottom: 0;
}

[data-theme="dark"] .delete-modal-body p {
    color: var(--muted);
}

.delete-modal-warning {
    font-size: 0.85rem !important;
    color: #dc2626 !important;
    font-weight: 500;
}

[data-theme="dark"] .delete-modal-warning {
    color: #f87171 !important;
}

.delete-modal-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
    justify-content: flex-end;
}

.delete-modal-actions button {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.btn-cancel:hover {
    background: #e5e7eb;
    color: #1f2937;
}

[data-theme="dark"] .btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

[data-theme="dark"] .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-delete {
    background: #dc2626;
    color: white;
}

.btn-delete:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-delete:active {
    transform: translateY(0);
}

[data-theme="dark"] .message-text {
    color: var(--text);
}

.chatbox-input {
    padding: 0.75rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
    background: #f8f9fa;
}

[data-theme="dark"] .chatbox-input {
    background: rgba(255, 255, 255, 0.03);
    border-top-color: var(--border);
}

.chatbox-input input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

[data-theme="dark"] .chatbox-input input {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text);
}

.chatbox-input input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.chatbox-input button {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 0.9rem;
    overflow: hidden;
    text-indent: -9999px;
}

.chatbox-input button i {
    text-indent: 0;
    display: block;
}

.chatbox-input button:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

.chatbox-input input:disabled,
.chatbox-input button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chatbox-input button:disabled:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
    padding: 2rem;
}

.chat-empty i {
    font-size: 2.5rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.chat-empty p {
    font-size: 0.9rem;
    margin: 0;
}

/* Download Game Card */
.download-game-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

[data-theme="dark"] .download-game-card {
    background: var(--surface);
}

.download-game-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.download-game-card .download-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.download-game-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

[data-theme="dark"] .download-game-card h3 {
    color: var(--text);
}

.download-game-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

[data-theme="dark"] .download-game-card p {
    color: var(--muted);
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 0.25rem;
}

.download-link:hover {
    color: #764ba2;
    gap: 0.65rem;
}

.download-link i {
    font-size: 0.85rem;
}

/* Admin Online Section */
.admin-online-section {
    border-top: 1px solid #e9ecef;
    padding: 0.75rem;
    background: #f8f9fa;
}

.admin-online-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.admin-online-header i {
    font-size: 0.85rem;
}

.admin-online-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-badge i {
    font-size: 0.5rem;
    color: #10b981;
    animation: pulse 2s infinite;
}

/* Download Page Styles */
.download-section {
    padding: 80px 20px;
    min-height: calc(100vh - 200px);
    background: #f8f9fa;
}

.download-container {
    max-width: 1000px;
    margin: 0 auto;
}

.download-header {
    text-align: center;
    margin-bottom: 3rem;
}

.download-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.download-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.download-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.download-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.download-info-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.download-info-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-info-card h2 i {
    color: #667eea;
}

.download-info-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

.feature-list li i {
    color: #10b981;
    font-size: 1rem;
}

.download-options {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.download-options h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-options h2 i {
    color: #667eea;
}

.coming-soon-text {
    color: #666;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.platform-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.platform-card.disabled {
    opacity: 0.6;
}

.platform-card:not(.disabled):hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.platform-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.platform-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.platform-card p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.download-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.download-btn:disabled {
    background: #e9ecef;
    color: #999;
    cursor: not-allowed;
}

.download-help {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.download-help h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-help h3 i {
    color: #667eea;
}

.download-help p {
    color: #666;
    margin: 0;
}

.download-help a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.download-help a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Download Page Dark Mode Overrides */
[data-theme="dark"] .download-section {
    background: transparent;
}

[data-theme="dark"] .download-info-card,
[data-theme="dark"] .download-options,
[data-theme="dark"] .platform-card,
[data-theme="dark"] .download-help {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .download-header h1,
[data-theme="dark"] .download-info-card h2,
[data-theme="dark"] .download-options h2,
[data-theme="dark"] .platform-card h3,
[data-theme="dark"] .download-help h3 {
    color: var(--text);
}

[data-theme="dark"] .download-header p,
[data-theme="dark"] .download-info-card p,
[data-theme="dark"] .coming-soon-text,
[data-theme="dark"] .platform-card p,
[data-theme="dark"] .download-help p {
    color: var(--muted);
}

[data-theme="dark"] .coming-soon-text,
[data-theme="dark"] .download-help {
    background: var(--surface);
}

[data-theme="dark"] .feature-list li {
    color: var(--text);
}

@media (max-width: 768px) {
    .download-section {
        padding: 60px 20px;
    }

    .download-header h1 {
        font-size: 2rem;
    }

    .platform-cards {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

.no-admins {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
    padding: 0.25rem 0;
}

/* Forum Topic Page Styles */
.topic-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.topic-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

[data-theme="dark"] .topic-breadcrumb {
    color: var(--muted);
}

.topic-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topic-breadcrumb a:hover {
    color: #764ba2;
}

.topic-breadcrumb i {
    font-size: 0.8rem;
}

.topic-breadcrumb span {
    color: #333;
    font-weight: 500;
}

[data-theme="dark"] .topic-breadcrumb span {
    color: var(--text);
}

.topic-header-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .topic-header-section {
    background: var(--surface);
}

.topic-header-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

[data-theme="dark"] .topic-header-section h1 {
    color: var(--text);
}

.topic-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

[data-theme="dark"] .topic-stats {
    color: var(--muted);
}

.topic-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.topic-stats i {
    color: #667eea;
}

/* Post Styles */
.post-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
}

[data-theme="dark"] .post-item {
    background: var(--surface);
}

.topic-post {
    border-left: 4px solid #667eea;
}

.post-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.admin-action-form {
    margin-top: 0.5rem;
}

.admin-delete-btn {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #b91c1c;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-delete-icon {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #b91c1c;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .admin-delete-btn,
[data-theme="dark"] .admin-delete-icon {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.author-info {
    width: 100%;
}

.author-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .author-name {
    color: var(--text);
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.admin-badge {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #b45309;
}

.member-badge {
    background: rgba(102, 126, 234, 0.14);
    border: 1px solid rgba(102, 126, 234, 0.35);
    color: #667eea;
}

.post-date {
    font-size: 0.8rem;
    color: #999;
}

[data-theme="dark"] .post-date {
    color: var(--muted);
}

.post-content {
    color: #333;
    line-height: 1.7;
    font-size: 0.95rem;
}

[data-theme="dark"] .post-content {
    color: var(--text);
}

/* BBCode Styles */
.bbcode-quote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-style: italic;
}

[data-theme="dark"] .bbcode-quote {
    background: rgba(255, 255, 255, 0.05);
}

.bbcode-code {
    background: #1e293b;
    color: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.bbcode-code code {
    color: #f1f5f9;
}

.bbcode-list {
    margin: 1rem 0;
    padding-left: 2rem;
}

.bbcode-list li {
    margin: 0.5rem 0;
}

.bbcode-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Posts Section */
.posts-section {
    margin-top: 2rem;
}

.posts-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .posts-section h2 {
    color: var(--text);
}

.posts-section h2 i {
    color: #667eea;
}

/* Reply Section */
.reply-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

[data-theme="dark"] .reply-section {
    background: var(--surface);
}

.reply-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .reply-section h2 {
    color: var(--text);
}

.reply-section h2 i {
    color: #667eea;
}

.reply-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

[data-theme="dark"] .reply-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text);
}

.bbcode-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.bb-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #667eea;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.bb-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

[data-theme="dark"] .bb-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
}

.bbcode-help {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
}

[data-theme="dark"] .bbcode-help {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
}

.bbcode-help h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .bbcode-help h4 {
    color: var(--text);
}

.bbcode-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.bbcode-example {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bbcode-example code {
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
}

[data-theme="dark"] .bbcode-example code {
    background: rgba(255, 255, 255, 0.1);
}

.bbcode-example span {
    font-size: 0.85rem;
    color: #666;
}

.btn-submit-reply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-submit-reply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.topic-locked-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.topic-locked-notice i {
    font-size: 2rem;
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.topic-locked-notice p {
    color: #856404;
    font-weight: 600;
    margin: 0;
}

/* New Topic Creation Page */
.new-topic-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .new-topic-section {
    background: var(--surface);
}

.new-topic-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

[data-theme="dark"] .new-topic-header {
    border-bottom-color: var(--border);
}

.new-topic-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .new-topic-header h1 {
    color: var(--text);
}

.new-topic-header h1 i {
    color: #667eea;
}

.new-topic-header p {
    color: #666;
    margin: 0;
}

.new-topic-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .form-group label {
    color: var(--text);
}

.form-group label i {
    color: #667eea;
}

/* Ensure inputs with leading icons reserve left space in auth forms */
.auth-form .input-group input {
    padding-left: 48px;
}

.form-group small {
    font-size: 0.85rem;
    color: #666;
}

.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

.btn-create-topic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-create-topic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-cancel {
    background: white;
    color: #666;
    border: 2px solid #e9ecef;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-cancel:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

[data-theme="dark"] .btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text);
}

.error-messages {
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.error-message {
    color: #c33;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.error-message:first-child {
    margin-top: 0;
}

.error-message:last-child {
    margin-bottom: 0;
}

.error-message i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .topic-container {
        padding: 1rem;
    }

    .post-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-author {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    .author-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .topic-header-section h1 {
        font-size: 1.5rem;
    }

    .new-topic-section {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-create-topic,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile adjustment: inputs with icons on auth forms */
@media (max-width: 768px) {
    .auth-form .input-group input {
        padding: 13px 16px 13px 45px;
    }
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .chatbox-section {
        position: relative;
        top: 0;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .forum-section,
    .chatbox-section {
        padding: 1rem;
    }

    .category-card {
        flex-direction: column;
        text-align: center;
    }

    .category-arrow {
        display: none;
    }
}

/* Forum Category Page */
.forum-category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.category-header-full {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 0.75rem;
}

.category-title-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.category-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
}

.category-title-section h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.category-title-section p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.topics-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.topics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.topics-header h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0;
}

.btn-new-topic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-new-topic:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.topic-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #fafafa;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-actions {
    display: flex;
    align-items: flex-start;
}

.topic-item:hover {
    border-color: #667eea;
    background: white;
    transform: translateX(4px);
}

.topic-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.topic-content {
    flex: 1;
}

.topic-content h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pinned-icon {
    color: #f59e0b;
    font-size: 1rem;
}

.locked-icon {
    color: #999;
    font-size: 0.9rem;
}

.topic-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.topic-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.topic-meta i {
    color: #667eea;
}

.no-topics {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.no-topics i {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.no-topics h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.no-topics p {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .forum-category-container {
        padding: 1rem;
    }

    .category-header-full,
    .topics-section {
        padding: 1.5rem;
    }

    .category-title-section {
        flex-direction: column;
        text-align: center;
    }

    .topics-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .btn-new-topic {
        justify-content: center;
    }

    .topic-meta {
        gap: 1rem;
    }
}