/* =============================================
   GrupBul - Premium CSS Design System
   Telegram & WhatsApp Grup Paylaşım Platformu
   Light Theme Default + Dark Mode Toggle
   ============================================= */

/* === CSS Custom Properties (Design Tokens) === */
/* LIGHT THEME (Default) */
:root {
    /* Colors - Light */
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fc;
    --bg-elevated: #f0f2f5;
    --bg-input: #f5f7fa;

    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-accent: #6366f1;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --accent-glow: 0 0 30px rgba(99, 102, 241, 0.2);

    --telegram-color: #2AABEE;
    --whatsapp-color: #25D366;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --navbar-height: 70px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* DARK THEME */
[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #1f1f35;
    --bg-elevated: #16162a;
    --bg-input: #12121e;

    --text-primary: #f0f0f5;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-accent: #818cf8;

    --accent-glow: 0 0 30px rgba(99, 102, 241, 0.3);

    --border-color: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

ul, ol {
    list-style: none;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
    background: none;
}

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

/* === Theme Toggle Button === */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: inline-block;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: inline-block;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(10, 10, 15, 0.8);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    box-shadow: var(--accent-glow);
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.06);
}

[data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .nav-link.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.15);
}

.nav-link i {
    font-size: 0.85rem;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* === Hero Section === */
.hero {
    position: relative;
    padding: calc(var(--navbar-height) + 80px) 0 80px;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: orbFloat 15s ease-in-out infinite;
}

[data-theme="dark"] .hero-orb {
    opacity: 0.4;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    top: 20%;
    right: -15%;
    animation-delay: -5s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    bottom: -10%;
    left: 30%;
    animation-delay: -10s;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
}

[data-theme="dark"] .hero-grid-overlay {
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-accent);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

[data-theme="dark"] .hero-badge {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
}

.hero-badge i {
    font-size: 0.8rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* === Search === */
.hero-search {
    animation: fadeInUp 0.6s ease 0.3s both;
    margin-bottom: 32px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 6px;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-icon {
    padding: 0 14px;
    color: var(--text-muted);
    font-size: 1rem;
}

.search-input {
    flex: 1;
    background: none;
    color: var(--text-primary);
    padding: 12px 0;
    font-size: 1rem;
}

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

.search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--accent-glow);
}

/* === Stats Row === */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .stat-chip {
    background: rgba(255, 255, 255, 0.04);
}

.stat-chip i {
    font-size: 1rem;
}

.stat-chip i { color: var(--chip-color, var(--accent-primary)); }
.stat-chip .fa-users { color: var(--accent-primary); }

.stat-chip strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* === Platform Filter Tabs (Scrollable for 40+ platforms) === */
.platform-filter-section {
    padding: 0 0 20px;
}

.platform-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
    -webkit-overflow-scrolling: touch;
}

.platform-tabs::-webkit-scrollbar {
    height: 4px;
}

.platform-tabs::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.platform-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    flex-shrink: 0;
}

.platform-tab i {
    font-size: 0.9rem;
}

.platform-tab:hover {
    border-color: var(--tab-color, var(--border-light));
    color: var(--tab-color, var(--text-primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.platform-tab.active {
    background: var(--tab-color, var(--accent-primary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--tab-color, var(--accent-primary)) 40%, transparent);
}

.tab-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
}

.platform-tab:not(.active) .tab-count {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

/* === Categories === */
.categories-section {
    padding: 20px 0 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.categories-scroll::-webkit-scrollbar {
    height: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.category-chip:hover {
    border-color: var(--chip-color, var(--accent-primary));
    color: var(--chip-color, var(--accent-primary));
    background: rgba(99, 102, 241, 0.04);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .category-chip:hover {
    background: rgba(99, 102, 241, 0.06);
}

.category-chip.active {
    background: var(--chip-color, var(--accent-primary));
    color: #fff;
    border-color: transparent;
}

.chip-count {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.category-chip:not(.active) .chip-count {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.category-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.25);
}

/* === Featured Section === */
.featured-section {
    padding: 0 0 50px;
}

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

.featured-card {
    background: var(--bg-card);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}

.featured-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.1), var(--shadow-lg);
}

[data-theme="dark"] .featured-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 158, 11, 0.05);
}

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

.platform-badge {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.featured-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.08));
    color: #d97706;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

[data-theme="dark"] .featured-tag {
    color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.06));
}

.featured-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.3px;
}

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

.featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--cat-color, var(--accent-primary));
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

.meta-platform {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* === Groups Grid === */
.groups-section {
    padding: 0 0 60px;
}

.group-count-badge {
    padding: 5px 14px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-accent);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
}

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

/* === Group Card === */
.group-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.group-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    transition: width 0.3s ease;
}

.group-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-light);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.group-card:hover::after {
    width: 4px;
}

[data-theme="dark"] .group-card:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0;
    gap: 10px;
}

.card-platform-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-featured {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.08));
    color: #d97706;
    animation: crownPulse 2s ease-in-out infinite;
}

@keyframes crownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

[data-theme="dark"] .badge-featured {
    color: #fbbf24;
}

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

[data-theme="dark"] .badge-type {
    background: rgba(255, 255, 255, 0.06);
}

.badge-platform {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: none;
    letter-spacing: 0;
}

.card-body {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.3px;
    line-height: 1.35;
}

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

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.tag-chip {
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.06);
    color: var(--accent-primary);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.tag-chip:hover {
    background: rgba(99, 102, 241, 0.12);
}

[data-theme="dark"] .tag-chip {
    background: rgba(129, 140, 248, 0.08);
    color: #818cf8;
}

[data-theme="dark"] .tag-chip:hover {
    background: rgba(129, 140, 248, 0.15);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.meta-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.06);
    color: var(--cat-color, var(--accent-primary));
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 600;
}

.meta-members {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-footer {
    padding: 0 20px 20px;
}

.join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    transition: var(--transition);
    letter-spacing: 0.2px;
    text-decoration: none;
}

.join-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.featured-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    transition: var(--transition);
    text-decoration: none;
}

.featured-join-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state.mini {
    padding: 40px 20px;
}

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

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

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.page-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.page-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--accent-glow);
}

/* === CTA Section === */
.cta-section {
    padding: 0 0 80px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.cta-card::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
    border-radius: 50%;
}

[data-theme="dark"] .cta-card::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
}

.cta-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--accent-glow);
}

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

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
}

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

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-glow {
    background: var(--accent-gradient);
    color: #fff;
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* === Page Header === */
.page-header {
    padding: calc(var(--navbar-height) + 50px) 0 40px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.page-header-content {
    text-align: center;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--accent-primary);
}

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

/* === Form Styles === */
.form-section {
    padding: 50px 0 80px;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-label i {
    color: var(--accent-primary);
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

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

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

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

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

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

.form-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

/* Platform & Type Selectors */
.platform-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
}

.platform-selector::-webkit-scrollbar {
    width: 4px;
}

.platform-selector::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.platform-option {
    min-width: 0;
}

.type-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.platform-option input,
.type-option input {
    display: none;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.type-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.platform-card i {
    font-size: 1.1rem;
    color: var(--platform-color, var(--text-secondary));
    flex-shrink: 0;
}

.type-card i {
    font-size: 1.2rem;
}

.platform-card:hover {
    border-color: var(--platform-color, var(--accent-primary));
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.type-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.platform-option input:checked + .platform-card {
    border-color: var(--platform-color, var(--accent-primary));
    background: var(--bg-card);
    color: var(--platform-color, var(--accent-primary));
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.type-option input:checked + .type-card {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.06);
    color: var(--accent-primary);
}

[data-theme="dark"] .platform-option input:checked + .platform-card {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .type-option input:checked + .type-card {
    background: rgba(99, 102, 241, 0.1);
}

.platform-option input[value="telegram"]:checked + .platform-card {
    border-color: var(--telegram-color);
    color: var(--telegram-color);
    background: rgba(42, 171, 238, 0.06);
}

[data-theme="dark"] .platform-option input[value="telegram"]:checked + .platform-card {
    background: rgba(42, 171, 238, 0.08);
}

.platform-option input[value="whatsapp"]:checked + .platform-card {
    border-color: var(--whatsapp-color);
    color: var(--whatsapp-color);
    background: rgba(37, 211, 102, 0.06);
}

[data-theme="dark"] .platform-option input[value="whatsapp"]:checked + .platform-card {
    background: rgba(37, 211, 102, 0.08);
}

.platform-card:hover,
.type-card:hover {
    border-color: var(--border-light);
    transform: translateY(-1px);
}

/* === Alerts === */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.1);
}

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

[data-theme="dark"] .alert-error {
    background: rgba(239, 68, 68, 0.1);
}

.alert-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

.alert-content strong {
    display: block;
    margin-bottom: 4px;
}

.alert-content ul {
    margin-top: 6px;
    padding-left: 16px;
}

.alert-content ul li {
    list-style: disc;
    margin-bottom: 3px;
}

/* === Footer === */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

[data-theme="dark"] .social-link {
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-links-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links-col ul li {
    margin-bottom: 10px;
}

.footer-links-col ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links-col ul li a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

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

/* =============================================
   ADMIN PANEL STYLES
   ============================================= */

/* === Admin Login === */
.admin-login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--navbar-height) + 40px) 20px 40px;
}

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: var(--accent-glow);
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === Admin Layout === */
.admin-body {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-close {
    display: none;
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 4px;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    transition: var(--transition);
    position: relative;
}

.sidebar-link:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--text-primary);
}

[data-theme="dark"] .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

[data-theme="dark"] .sidebar-link.active {
    background: rgba(99, 102, 241, 0.12);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.sidebar-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--error);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

.sidebar-divider {
    border-top: 1px solid var(--border-color);
    margin: 12px 0;
}

.sidebar-logout {
    color: var(--error) !important;
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.06) !important;
}

[data-theme="dark"] .sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.08) !important;
}

/* === Admin Main === */
.admin-main {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.sidebar-toggle {
    display: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 8px;
}

.admin-greeting {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-content {
    padding: 30px;
}

.admin-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-page-title i {
    color: var(--accent-primary);
}

/* === Dashboard Stats === */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.dash-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.dash-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent, var(--accent-primary));
    box-shadow: var(--shadow-md);
}

.dash-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

[data-theme="dark"] .dash-stat-icon {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.dash-stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

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

/* === Admin Table === */
.admin-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.admin-section-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-section-card h3 i {
    color: var(--accent-primary);
}

.admin-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.admin-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

[data-theme="dark"] .admin-table th {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

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

[data-theme="dark"] .admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

.table-badge.telegram {
    background: rgba(42, 171, 238, 0.1);
    color: var(--telegram-color);
}

.table-badge.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp-color);
}

.table-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.table-link {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.table-link:hover {
    color: var(--accent-secondary);
}

.table-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: var(--transition);
}

.action-btn.approve {
    color: var(--success);
    background: rgba(16, 185, 129, 0.08);
}

[data-theme="dark"] .action-btn.approve {
    background: rgba(16, 185, 129, 0.1);
}

.action-btn.approve:hover {
    background: var(--success);
    color: #fff;
}

.action-btn.reject {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.08);
}

[data-theme="dark"] .action-btn.reject {
    background: rgba(245, 158, 11, 0.1);
}

.action-btn.reject:hover {
    background: var(--warning);
    color: #fff;
}

.action-btn.delete {
    color: var(--error);
    background: rgba(239, 68, 68, 0.08);
}

[data-theme="dark"] .action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
}

.action-btn.delete:hover {
    background: var(--error);
    color: #fff;
}

.action-btn.edit {
    color: var(--info);
    background: rgba(59, 130, 246, 0.08);
}

[data-theme="dark"] .action-btn.edit {
    background: rgba(59, 130, 246, 0.1);
}

.action-btn.edit:hover {
    background: var(--info);
    color: #fff;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Star toggle */
.star-toggle {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.star-toggle.active {
    color: #fbbf24;
}

.star-toggle:hover {
    transform: scale(1.2);
}

/* Color preview */
.color-preview {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 6px;
    border: 1px solid var(--border-color);
}

/* Admin form wrapper */
.admin-form-wrapper {
    max-width: 800px;
    margin: 0;
}

/* Inline form */
.inline-form .form-row.compact {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.inline-form .form-row.compact .form-control {
    min-width: 0;
}

.color-input {
    width: 48px !important;
    min-width: 48px !important;
    height: 44px;
    padding: 4px;
    cursor: pointer;
}

/* Checkbox label */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding-top: 32px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

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

.info-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* === Platform Icon Preview === */
.platform-icon-preview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

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

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

/* Animation utility classes */
.animate-fadeInUp {
    animation: fadeInUp 0.5s ease both;
}

/* Stagger children animations */
.groups-grid .group-card {
    animation: fadeInUp 0.4s ease both;
}

.groups-grid .group-card:nth-child(1) { animation-delay: 0.05s; }
.groups-grid .group-card:nth-child(2) { animation-delay: 0.1s; }
.groups-grid .group-card:nth-child(3) { animation-delay: 0.15s; }
.groups-grid .group-card:nth-child(4) { animation-delay: 0.2s; }
.groups-grid .group-card:nth-child(5) { animation-delay: 0.25s; }
.groups-grid .group-card:nth-child(6) { animation-delay: 0.3s; }
.groups-grid .group-card:nth-child(7) { animation-delay: 0.35s; }
.groups-grid .group-card:nth-child(8) { animation-delay: 0.4s; }
.groups-grid .group-card:nth-child(9) { animation-delay: 0.45s; }

.featured-grid .featured-card {
    animation: fadeInUp 0.4s ease both;
}

.featured-grid .featured-card:nth-child(1) { animation-delay: 0.05s; }
.featured-grid .featured-card:nth-child(2) { animation-delay: 0.1s; }
.featured-grid .featured-card:nth-child(3) { animation-delay: 0.15s; }
.featured-grid .featured-card:nth-child(4) { animation-delay: 0.2s; }

.dashboard-stats .dash-stat-card {
    animation: fadeInUp 0.4s ease both;
}

.dashboard-stats .dash-stat-card:nth-child(1) { animation-delay: 0.05s; }
.dashboard-stats .dash-stat-card:nth-child(2) { animation-delay: 0.1s; }
.dashboard-stats .dash-stat-card:nth-child(3) { animation-delay: 0.15s; }
.dashboard-stats .dash-stat-card:nth-child(4) { animation-delay: 0.2s; }
.dashboard-stats .dash-stat-card:nth-child(5) { animation-delay: 0.25s; }

/* =============================================
   RESPONSIVE / MOBILE
   ============================================= */

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-toggle {
        display: block;
    }

    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Navbar mobile */
    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--navbar-height) + 20px) 20px 20px;
        border-left: 1px solid var(--border-color);
        transition: var(--transition);
        z-index: 999;
    }

    .navbar-links.open {
        right: 0;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-md);
    }

    /* Hero mobile */
    .hero {
        padding: calc(var(--navbar-height) + 50px) 0 50px;
        min-height: auto;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .search-btn span {
        display: none;
    }

    .search-btn {
        padding: 12px 16px;
    }

    .stats-row {
        gap: 8px;
    }

    .stat-chip {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Groups grid mobile */
    .groups-grid {
        grid-template-columns: 1fr;
    }

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

    /* CTA mobile */
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Form mobile */
    .form-wrapper {
        padding: 24px;
    }

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

    .platform-selector,
    .type-selector {
        flex-wrap: wrap;
    }

    .platform-card,
    .type-card {
        padding: 12px 18px;
        flex: 1;
        justify-content: center;
    }

    /* Admin mobile */
    .admin-content {
        padding: 20px 16px;
    }

    .admin-topbar {
        padding: 12px 16px;
    }

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

    .admin-table-wrap {
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    /* Page header mobile */
    .page-header h1 {
        font-size: 1.4rem;
    }

    /* Inline form mobile */
    .inline-form .form-row.compact {
        flex-wrap: wrap;
    }

    .inline-form .form-row.compact .form-control {
        flex: 1 1 calc(50% - 5px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
        letter-spacing: -1px;
    }

    .categories-scroll {
        gap: 6px;
    }

    .category-chip {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

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

    .form-wrapper {
        padding: 20px;
        border-radius: var(--radius-lg);
    }

    .login-card {
        padding: 28px;
    }
}

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

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

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

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

[data-theme="dark"] ::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* === Success Card (Submit page) === */
.success-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Button Variants === */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

/* === Footer Credits === */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-credits {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-credits a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* === Mobile Responsive Fixes === */
@media (max-width: 640px) {
    .platform-selector {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        max-height: 240px;
        gap: 6px;
    }

    .platform-card {
        padding: 8px 10px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .platform-card i {
        font-size: 0.95rem;
    }

    .type-selector {
        gap: 8px;
    }

    .type-card {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

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

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

    .group-card {
        min-width: 0;
    }

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

    .stats-row {
        gap: 8px;
    }

    .stat-chip {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
}
