/* ========================================
   KampüsKazan — Design System & Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --primary: #6C3CE1;
    --primary-light: #8B5CF6;
    --primary-dark: #5521C4;
    --secondary: #00C2FF;
    --secondary-light: #38D9FF;
    --accent: #FF6B6B;
    --accent-warm: #F59E0B;
    --success: #10B981;
    --info: #3B82F6;

    /* Dark Theme */
    --bg-primary: #0A0A1A;
    --bg-secondary: #111127;
    --bg-tertiary: #1A1A3E;
    --bg-card: rgba(26, 26, 62, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);

    /* Text */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(108, 60, 225, 0.4);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6C3CE1, #00C2FF);
    --gradient-warm: linear-gradient(135deg, #F59E0B, #FF6B6B);
    --gradient-cool: linear-gradient(135deg, #10B981, #3B82F6);
    --gradient-hero: linear-gradient(160deg, #0A0A1A 0%, #1A1A3E 40%, #111127 100%);
    --gradient-card: linear-gradient(145deg, rgba(108, 60, 225, 0.1), rgba(0, 194, 255, 0.05));

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(108, 60, 225, 0.3);
    --shadow-glow-blue: 0 0 30px rgba(0, 194, 255, 0.2);

    /* Spacing */
    --header-height: 72px;
    --container-max: 1280px;
    --section-padding: 80px;

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

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    background: transparent;
}

input,
select {
    font-family: inherit;
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: var(--radius-full);
}

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

/* --- Utility --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 560px;
}

/* --- Animated Background --- */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(108, 60, 225, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 194, 255, 0.06) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
}

.floating-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 20s ease-in-out infinite;
}

.floating-orb:nth-child(1) {
    width: 400px;
    height: 400px;
    background: rgba(108, 60, 225, 0.12);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.floating-orb:nth-child(2) {
    width: 300px;
    height: 300px;
    background: rgba(0, 194, 255, 0.08);
    top: 60%;
    right: -5%;
    animation-delay: -7s;
}

.floating-orb:nth-child(3) {
    width: 250px;
    height: 250px;
    background: rgba(245, 158, 11, 0.06);
    bottom: 10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.95);
    }
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.header-inner .nav-links {
    margin-left: 8px;
}

.header-inner .auth-area {
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    z-index: 1001;
}

.logo img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    background: rgba(108, 60, 225, 0.12);
    border: 1px solid rgba(108, 60, 225, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

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

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

.hero-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(108, 60, 225, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 60, 225, 0.5);
}

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

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

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* --- Campaign Cards Section --- */
.campaigns-section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.campaigns-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

.campaigns-header-left {
    flex: 1;
}

/* --- Category Filter --- */
.category-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    cursor: pointer;
    user-select: none;
}

.category-btn:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
    border-color: var(--border-light);
}

.category-btn.active {
    color: white;
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(108, 60, 225, 0.3);
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.category-btn:hover .category-count {
    background: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

.category-btn.active .category-count {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

/* --- Search Bar --- */
.search-container {
    position: relative;
    max-width: 480px;
    margin-bottom: 8px;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 52px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

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

.search-input:focus {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.15);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

/* --- Campaign Cards Grid --- */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.campaign-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition-smooth);
    overflow: hidden;
    cursor: default;
    animation: fadeInUp 0.5s ease both;
}

.campaign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.campaign-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 60, 225, 0.3);
    box-shadow: var(--shadow-glow);
    background: rgba(26, 26, 62, 0.8);
}

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

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

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-full);
    background: rgba(108, 60, 225, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(108, 60, 225, 0.2);
}

.card-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.card-type.indirim {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.card-type.firsat {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-warm);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.card-type.ucretsiz {
    background: rgba(59, 130, 246, 0.12);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.card-type.default {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.card-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description a,
.card-description .desc-link {
    color: var(--secondary);
    text-decoration: underline;
    text-decoration-color: rgba(0, 194, 255, 0.3);
    text-underline-offset: 3px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.card-description a:hover,
.card-description .desc-link:hover {
    color: var(--secondary-light);
    text-decoration-color: var(--secondary);
}

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

.card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(108, 60, 225, 0.1);
    border: 1px solid rgba(108, 60, 225, 0.2);
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.card-action:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(4px);
}

/* --- Loading State --- */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    gap: 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

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

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

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

.empty-state-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* --- Features Section --- */
.features-section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-4px);
    background: var(--bg-glass-hover);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon.purple {
    background: rgba(108, 60, 225, 0.12);
    color: var(--primary-light);
}

.feature-icon.blue {
    background: rgba(0, 194, 255, 0.12);
    color: var(--secondary);
}

.feature-icon.warm {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-warm);
}

.feature-icon.green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 40px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

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

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card stagger animation */
.campaign-card:nth-child(1) {
    animation-delay: 0s;
}

.campaign-card:nth-child(2) {
    animation-delay: 0.08s;
}

.campaign-card:nth-child(3) {
    animation-delay: 0.16s;
}

.campaign-card:nth-child(4) {
    animation-delay: 0.24s;
}

.campaign-card:nth-child(5) {
    animation-delay: 0.32s;
}

.campaign-card:nth-child(6) {
    animation-delay: 0.4s;
}

.campaign-card:nth-child(7) {
    animation-delay: 0.48s;
}

.campaign-card:nth-child(8) {
    animation-delay: 0.56s;
}

.campaign-card:nth-child(9) {
    animation-delay: 0.64s;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(108, 60, 225, 0.5);
}

/* --- Campaign Count Badge --- */
.campaign-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
}

.campaign-count strong {
    color: var(--primary-light);
    font-weight: 700;
}

/* --- Campaign Detail Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: scale(0.9) translateY(30px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: var(--radius-full);
}

.modal-top-bar {
    position: relative;
    padding: 20px 28px;
    background: var(--gradient-card);
    border-bottom: 1px solid var(--border-subtle);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-muted);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 100, 100, 0.15);
    border-color: rgba(255, 100, 100, 0.3);
    transform: rotate(90deg);
}

.modal-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-body {
    padding: 28px;
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.modal-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.modal-description a {
    color: var(--secondary);
    text-decoration: underline;
    text-decoration-color: rgba(0, 194, 255, 0.4);
    text-underline-offset: 3px;
    transition: var(--transition-fast);
}

.modal-description a:hover {
    color: var(--secondary-light);
    text-decoration-color: var(--secondary);
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer .btn {
    font-size: 0.88rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .campaigns-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 48px;
        --header-height: 60px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.15rem;
        padding: 14px 32px;
    }

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

    .section-title {
        font-size: 1.75rem;
    }

    .hero {
        min-height: calc(100vh - 60px);
        min-height: calc(100dvh - 60px);
    }

    .hero-content {
        padding: 32px 0;
    }

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

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 14px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 20px;
        margin-top: 40px;
        padding-top: 28px;
    }

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

    .hero-stat-label {
        font-size: 0.75rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 14px 24px;
    }

    .campaigns-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 32px;
    }

    .campaigns-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-filter {
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-filter::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        padding: 10px 18px;
        font-size: 0.82rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .search-container {
        max-width: 100%;
    }

    .search-input {
        padding: 12px 16px 12px 46px;
        font-size: 0.9rem;
    }

    .campaign-card {
        padding: 20px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.88rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .card-action {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

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

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        margin-bottom: 14px;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-text {
        font-size: 0.82rem;
    }

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

    .footer-links {
        gap: 16px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    /* Modal mobile */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        max-height: 90vh;
        max-height: 90dvh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(100%);
    }

    .modal-overlay.active .modal-content {
        transform: translateY(0);
    }

    .modal-top-bar {
        padding: 16px 20px;
        padding-top: 24px;
    }

    .modal-top-bar::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: var(--text-muted);
        border-radius: var(--radius-full);
        opacity: 0.5;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-description {
        font-size: 0.92rem;
    }

    .modal-footer {
        padding: 16px 20px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .modal-footer .btn {
        flex: 1;
        justify-content: center;
    }
}

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

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

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 12px;
    }

    .campaign-card {
        padding: 16px;
    }

    .card-header {
        flex-direction: column;
        gap: 8px;
    }

    .card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .card-action {
        text-align: center;
        justify-content: center;
    }

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

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 1.1rem;
        gap: 8px;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }
}

/* ========================================
   Auth + Admin (Firebase)
   ======================================== */

.auth-area {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
    flex-shrink: 0;
}

.user-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
    max-width: 160px;
}

.user-chip-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.user-chip-uni {
    font-size: 0.7rem;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

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

.btn-xs {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-danger {
    background: rgba(255, 107, 107, 0.15);
    color: #FF8A8A;
    border: 1px solid rgba(255, 107, 107, 0.35);
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.25);
}

.auth-modal-content {
    max-width: 440px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: -8px 0 20px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.2);
}

.form-field select {
    cursor: pointer;
}

.field-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    min-height: 1.1em;
}

.field-hint.visible {
    color: var(--secondary);
}

.field-hint.visible.error {
    color: var(--accent);
}

.form-alert {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.form-alert.error {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #FFB4B4;
}

.form-alert.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6EE7B7;
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.link-btn {
    color: var(--secondary);
    font-weight: 600;
    margin-left: 6px;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}

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

.auth-gate {
    text-align: center;
    padding: 48px 24px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
}

.auth-gate-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.auth-gate-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.auth-gate-text {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 24px;
}

.auth-gate-hint {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--color-text-muted, #5c6570);
}

.auth-gate-hint.error {
  color: var(--color-danger, #b42318);
}

.user-chip-warn {
  color: #9a3412 !important;
  background: #ffedd5 !important;
}

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

/* Admin */
.admin-body {
    min-height: 100vh;
}

.admin-main {
    position: relative;
    z-index: 1;
    padding: calc(var(--header-height) + 32px) 0 64px;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
}

.admin-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-subtitle {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.admin-hint {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.admin-hint code,
.admin-table code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85em;
    background: var(--bg-glass);
    padding: 2px 6px;
    border-radius: 4px;
}

.admin-back {
    margin-top: 16px;
    font-size: 0.9rem;
}

.admin-back a {
    color: var(--secondary);
}

.admin-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

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

.admin-stat-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.admin-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.admin-form-card {
    border-color: rgba(108, 60, 225, 0.35);
}

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

.form-field-checkbox {
    justify-content: flex-end;
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: var(--text-primary) !important;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    accent-color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-table-wrap {
    overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

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

.admin-empty {
    text-align: center !important;
    color: var(--text-muted);
    padding: 28px 10px !important;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill.active {
    background: rgba(16, 185, 129, 0.15);
    color: #6EE7B7;
}

.status-pill.inactive {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .auth-area .btn-sm {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .user-chip {
        display: none;
    }

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

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

    .admin-header-row {
        flex-direction: column;
    }

    .checkbox-label {
        margin-top: 0;
    }
}


/* ========================================
   KVKK / Profil / Bildirim / PWA
   ======================================== */

[hidden] {
    display: none !important;
}

.form-field select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-field select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.icon-btn {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 1rem;
    line-height: 1;
}

/* Profil modalı */
.consent-box {
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-light);
    background: var(--bg-glass);
}

.consent-checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.45;
}

.consent-checkbox-label input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.consent-checkbox-label input:disabled + span {
    opacity: 0.6;
}

.consent-checkbox-label strong {
    color: var(--text-primary);
}

.consent-checkbox-label a {
    color: var(--secondary);
    text-decoration: underline;
}

.consent-box .field-hint {
    margin-top: 8px;
}

.kvkk-notice-line {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.kvkk-notice-line a {
    color: var(--secondary);
    text-decoration: underline;
}

.profile-danger-zone {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

/* Bildirim banner'ı */
.push-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glow);
    background: var(--gradient-card);
}

.push-banner-text {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex: 1 1 320px;
}

.push-banner-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.push-banner-text p {
    margin-top: 2px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.push-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Ön plan bildirim toast'ı */
.push-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(420px, calc(100% - 32px));
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glow);
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-lg);
    transform: translate(-50%, 20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.push-toast.visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.push-toast-body {
    flex: 1;
}

.push-toast-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* KVKK sayfası */
.legal-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(0, 194, 255, 0.1);
    border: 1px solid rgba(0, 194, 255, 0.25);
}

.legal-section {
    margin-top: 28px;
}

.legal-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.7;
}

.legal-section p + p {
    margin-top: 10px;
}

.legal-list {
    list-style: disc;
    padding-left: 22px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-section strong {
    color: var(--text-primary);
}

.legal-section a {
    color: var(--secondary);
    text-decoration: underline;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: 10px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    vertical-align: top;
}

.legal-table th {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.legal-placeholder {
    color: var(--accent-warm);
    font-weight: 600;
}

.legal-footer {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Admin eklemeleri */
.admin-stats-4 {
    grid-template-columns: repeat(4, 1fr);
}

.admin-steps {
    list-style: decimal;
    padding-left: 22px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-steps code,
.topic-output code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85em;
    background: var(--bg-glass);
    padding: 2px 6px;
    border-radius: 4px;
}

.topic-output {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    color: var(--text-secondary);
}

.topic-output code {
    font-size: 1rem;
    color: var(--secondary);
}

.stats-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stats-col-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.admin-table.compact td {
    padding: 8px 6px;
}

.admin-table td.num {
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
    width: 60px;
}

@media (max-width: 768px) {
    .admin-stats-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .push-banner {
        padding: 14px;
    }

    .icon-btn {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* ========================================
   4-Adımlı İnteraktif Akademik Seçim Sihirbazı (Şehir → Üniversite → Fakülte → Bölüm)
   ======================================== */

.wizard-modal-content {
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
}

.wizard-modal-content .modal-body {
    padding: 22px 26px 26px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.wizard-modal-content .auth-subtitle {
    margin: -6px 0 16px;
    font-size: 0.9rem;
}

/* Adım Çubuğu (1. Şehir -> 2. Üniversite -> 3. Fakülte -> 4. Bölüm) */
.wizard-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.wizard-step:hover:not(:disabled) {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.05);
}

.wizard-step.active {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.22), rgba(0, 194, 255, 0.12));
    box-shadow: 0 0 0 2px rgba(0, 194, 255, 0.18);
    color: var(--text-primary);
}

.wizard-step.done {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
    color: var(--text-primary);
}

.wizard-step.done.active {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.25), rgba(0, 194, 255, 0.15));
}

.wizard-step.locked,
.wizard-step:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.wizard-step-num {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.wizard-step.active .wizard-step-num {
    background: var(--secondary);
    color: #061320;
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.45);
}

.wizard-step.done .wizard-step-num {
    background: var(--success);
    color: #052014;
}

.wizard-step-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.wizard-step-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.1;
}

.wizard-step.active .wizard-step-label {
    color: var(--secondary);
}

.wizard-step-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Seçim Kutusu (Box) */
.wizard-box {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: rgba(12, 13, 32, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 16px;
}

.wizard-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
}

.wizard-box-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wizard-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.wizard-back-btn:hover {
    color: var(--text-primary);
    border-color: var(--secondary);
    background: rgba(0, 194, 255, 0.12);
}

.wizard-box-step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-count-badge {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(108, 60, 225, 0.16);
    color: var(--primary-light);
    border: 1px solid rgba(108, 60, 225, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Kutu İçi Anlık Arama */
.wizard-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(18, 19, 44, 0.75);
}

.wizard-search-icon {
    position: absolute;
    left: 26px;
    font-size: 0.95rem;
    opacity: 0.65;
    pointer-events: none;
}

.wizard-search-input {
    width: 100%;
    padding: 10px 38px 10px 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: var(--transition-fast);
}

.wizard-search-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.15);
}

.wizard-search-clear {
    position: absolute;
    right: 22px;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.wizard-search-clear:hover {
    background: rgba(255, 107, 107, 0.25);
    color: #fff;
}

/* Alfabetik Seçenek Listesi / Izgarası */
.wizard-list {
    max-height: 320px;
    min-height: 210px;
    overflow-y: auto;
    padding: 12px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.wizard-list::-webkit-scrollbar {
    width: 6px;
}

.wizard-list::-webkit-scrollbar-track {
    background: transparent;
}

.wizard-list::-webkit-scrollbar-thumb {
    background: rgba(108, 60, 225, 0.45);
    border-radius: var(--radius-full);
}

.wizard-list.is-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    align-content: start;
}

.wizard-list.is-item-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    align-content: start;
}

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

.wizard-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    animation: wizardSlideIn 0.16s ease backwards;
}

.wizard-option:hover {
    border-color: var(--primary-light);
    background: rgba(108, 60, 225, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 60, 225, 0.18);
}

.wizard-option:active {
    transform: scale(0.99);
}

.wizard-option.selected {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.26), rgba(0, 194, 255, 0.16));
    box-shadow: 0 0 0 1px rgba(0, 194, 255, 0.35);
}

.wizard-option-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.wizard-list.is-city-grid .wizard-option-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.wizard-option-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    word-break: break-word;
}

.wizard-list.is-city-grid .wizard-option-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.wizard-option-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}

.wizard-option-badge.badge-count {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.wizard-option-badge.badge-devlet {
    color: var(--secondary);
    background: rgba(0, 194, 255, 0.12);
    border: 1px solid rgba(0, 194, 255, 0.25);
}

.wizard-option-badge.badge-vakif {
    color: #C4B5FD;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.wizard-option-arrow {
    font-size: 1.05rem;
    line-height: 1;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}

.wizard-option:hover .wizard-option-arrow,
.wizard-option.selected .wizard-option-arrow {
    color: var(--secondary);
    transform: translateX(3px);
}

.wizard-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 4 Adım Tamamlandığında Gösterilen Seçim Özeti Kartı */
.wizard-summary-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(108, 60, 225, 0.12));
    padding: 16px;
    margin-bottom: 16px;
    animation: wizardSlideIn 0.2s ease;
}

.wizard-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.wizard-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6EE7B7;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.wizard-edit-btn {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(0, 194, 255, 0.1);
    border: 1px solid rgba(0, 194, 255, 0.28);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.wizard-edit-btn:hover {
    background: rgba(0, 194, 255, 0.2);
}

.wizard-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wizard-summary-item {
    background: rgba(10, 11, 26, 0.55);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wizard-summary-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 600;
}

.wizard-summary-val {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    word-break: break-word;
}

/* ========================================
   İlk Giriş 4-Kutulu Otomatik Açılan Seçim Ekranı (Onboarding Screen)
   ======================================== */

body.is-onboarding {
    overflow: hidden;
}

.header[hidden],
body.is-onboarding .header,
body.is-onboarding .nav-links,
body.is-onboarding .mobile-menu-btn,
body.is-onboarding .auth-area,
body.is-onboarding .footer,
body.is-onboarding .back-to-top {
    display: none !important;
}

.onboarding-screen {
    position: relative;
    z-index: 2;
    height: 100vh;
    height: 100dvh;
    padding: 16px 0 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.onboarding-screen[hidden] {
    display: none !important;
}

.onboarding-container {
    max-width: 960px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.onboarding-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.onboarding-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.onboarding-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 4px 14px rgba(108, 60, 225, 0.35);
    object-fit: cover;
}

.onboarding-brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.onboarding-main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text-primary);
}

/* 4 Adımlı Progressive Kutu Yığını — Ekranın tamamını kaplar */
.onb-boxes {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.onb-acc-box {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: rgba(15, 16, 36, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.onb-acc-box.active {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-color: var(--secondary);
    background: rgba(14, 15, 38, 0.94);
    box-shadow: 0 0 0 2px rgba(0, 194, 255, 0.18), 0 12px 32px rgba(0, 0, 0, 0.45);
}

.onb-acc-box.done {
    border-color: rgba(16, 185, 129, 0.42);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 16, 36, 0.85));
}

.onb-acc-box.locked {
    opacity: 0.5;
    background: rgba(15, 16, 36, 0.45);
}

.onb-acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease;
}

.onb-acc-header:disabled {
    cursor: not-allowed;
}

.onb-acc-box.done .onb-acc-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.onb-acc-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.onb-acc-num {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.onb-acc-box.active .onb-acc-num {
    background: var(--secondary);
    color: #04131f;
    box-shadow: 0 0 12px rgba(0, 194, 255, 0.5);
}

.onb-acc-box.done .onb-acc-num {
    background: var(--success);
    color: #042215;
}

.onb-acc-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.onb-acc-action {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.16);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.onb-acc-action[hidden] {
    display: none !important;
}

.onb-acc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-top: 1px solid var(--border-subtle);
    background: rgba(8, 9, 24, 0.72);
    animation: wizardSlideIn 0.18s ease;
}

.onb-acc-body[hidden] {
    display: none !important;
}

.onb-acc-body .wizard-search-wrap {
    flex-shrink: 0;
    margin: 10px 12px 0;
}

.onb-acc-body .wizard-list {
    flex: 1;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
}

.onb-acc-body .wizard-list.is-city-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.onb-acc-body .wizard-list.is-item-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

/* ========================================
   Doğrudan Kampanya Ekranı & Aktif Öğrenci Profili Çubuğu
   ======================================== */

#mainAppView .campaigns-section {
    padding-top: calc(var(--header-height) + 28px);
}

.student-context-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 194, 255, 0.25);
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.14), rgba(0, 194, 255, 0.08));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.student-context-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    flex-wrap: wrap;
}

.student-context-badge {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(0, 194, 255, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(0, 194, 255, 0.3);
    white-space: nowrap;
}

.student-context-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    word-break: break-word;
}

.student-context-actions {
    flex-shrink: 0;
}

.wizard-box-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 4px;
}

.wizard-box-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
}

.wizard-box-count {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: rgba(108, 60, 225, 0.18);
    color: var(--primary-light);
    white-space: nowrap;
}

/* Mobil Uyumluluk (Telefon ve Tablet - Mobile First) */
@media (max-width: 768px) {
    .onboarding-screen {
        padding: max(12px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom));
    }

    .onboarding-top {
        margin-bottom: 8px;
    }

    .onboarding-main-title {
        font-size: 1.08rem;
    }

    .onb-boxes {
        gap: 6px;
    }

    .onb-acc-header {
        padding: 9px 12px;
        gap: 8px;
    }

    .onb-acc-header-left {
        gap: 8px;
    }

    .onb-acc-num {
        width: 24px;
        height: 24px;
        font-size: 0.76rem;
    }

    .onb-acc-value {
        font-size: 0.88rem;
    }

    .onb-acc-action {
        font-size: 0.68rem;
        padding: 3px 8px;
    }

    .onb-acc-body .wizard-search-wrap {
        margin: 8px 10px 0;
    }

    .onb-acc-body .wizard-list {
        padding: 10px;
    }

    .onb-acc-body .wizard-list.is-item-grid {
        grid-template-columns: 1fr;
    }

    #mainAppView .campaigns-section {
        padding-top: calc(var(--header-height) + 14px);
    }

    .student-context-bar {
        padding: 10px 12px;
        margin-bottom: 16px;
    }

    .student-context-text {
        font-size: 0.8rem;
    }

    .wizard-modal-content {
        max-width: 100%;
        max-height: 92vh;
        max-height: 92dvh;
    }

    .wizard-modal-content .modal-body {
        padding: 16px 16px 24px;
    }

    .wizard-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 12px;
    }

    .wizard-step {
        padding: 8px 9px;
    }

    .wizard-list {
        max-height: 46vh;
        max-height: 46dvh;
        min-height: 190px;
        padding: 10px;
    }

    .wizard-list.is-city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .wizard-option {
        padding: 12px;
    }

    .wizard-summary-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .wizard-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wizard-step-num {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .wizard-step-val {
        font-size: 0.75rem;
    }
}

/* =========================================================
   CAMPAIGN BANNERS & BRAND LOGOS
   ========================================================= */
.card-banner-wrap {
    margin: -24px -24px 16px -24px;
    border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    aspect-ratio: 16 / 8.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.campaign-card:hover .card-banner-img {
    transform: scale(1.03);
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.card-brand-logo img {
    height: 18px;
    width: auto;
    max-width: 96px;
    object-fit: contain;
    display: block;
}

.modal-banner-wrap {
    margin-bottom: 18px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.modal-banner-img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   BRAND HUB & MULTI-TAG EXPANSION UI (MOBILE FIRST)
   ========================================================================== */

/* --- View Mode Switcher Bar --- */
.view-mode-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 16px 0;
    padding: 0 4px;
}

.campaign-stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.campaign-stats-pill strong {
    color: var(--primary-light);
}

.view-mode-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px;
    border-radius: var(--radius-full);
}

.view-mode-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.view-mode-btn:hover {
    color: var(--text-primary);
}

.view-mode-btn.active {
    background: var(--gradient-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

/* --- Brand Hub Cards (Grouping Mode) --- */
.brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    box-shadow: var(--shadow-md);
}

.brand-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(99, 102, 241, 0.15);
}

.brand-card:active {
    transform: scale(0.985);
}

/* Brand Card Top Header */
.brand-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px 20px;
    gap: 12px;
}

.brand-card-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-card-logo-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand-card-logo-wrap img {
    height: 20px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    display: block;
}

.brand-card-name {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.brand-card-badge {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.18);
    color: #A5B4FC;
    border: 1px solid rgba(99, 102, 241, 0.35);
    letter-spacing: 0.02em;
}

/* Brand Tags Row */
.brand-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 20px 14px 20px;
}

.brand-tag-chip {
    font-size: 0.73rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-tag-chip.highlight {
    background: rgba(99, 102, 241, 0.25);
    color: #E0E7FF;
    border-color: rgba(99, 102, 241, 0.5);
}

/* Flagship / Hero Showcase in Brand Card */
.brand-hero-preview {
    margin: 0 16px 14px 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.brand-hero-img-wrap {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 16 / 9;
    background: #000;
}

.brand-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-hero-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FBBF24;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(251, 191, 36, 0.4);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-hero-title {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-hero-desc {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Brand Card Bottom Footer */
.brand-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.12);
    gap: 10px;
}

.brand-other-hint {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.brand-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.brand-card:hover .brand-card-cta {
    background: var(--gradient-primary);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   BRAND DETAIL POPUP / BOTTOM SHEET MODAL
   ========================================================================== */

.brand-modal-overlay {
    z-index: 2100;
}

.brand-modal-content {
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
}

.brand-modal-drag-handle {
    display: none;
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    margin: 10px auto 4px auto;
}

.brand-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--gradient-card);
    gap: 16px;
}

.brand-modal-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-modal-logo-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.brand-modal-logo-wrap img {
    height: 22px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    display: block;
}

.brand-modal-header-text {
    min-width: 0;
}

.brand-modal-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.brand-modal-title {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.brand-modal-verified {
    font-size: 0.72rem;
    font-weight: 800;
    color: #34D399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.brand-modal-subtitle {
    margin: 3px 0 0 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.brand-modal-close-btn {
    position: static;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

/* In-Modal Filter Bar */
.brand-modal-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.brand-modal-filter-bar::-webkit-scrollbar {
    display: none;
}

.brand-subfilter-btn {
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.brand-subfilter-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.12);
}

.brand-subfilter-btn.active {
    background: var(--gradient-primary);
    color: #FFFFFF;
}

/* Brand Modal Body & List */
.brand-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.brand-modal-campaigns-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual Campaign Item inside Brand Modal */
.brand-modal-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.brand-modal-item:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.brand-item-banner-wrap {
    width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 260px;
    background: #000;
    overflow: hidden;
}

.brand-item-banner-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-item-content {
    padding: 16px 20px;
}

.brand-item-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.brand-item-title {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
}

.brand-item-description {
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.brand-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.brand-item-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.brand-modal-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.15);
}

/* Mobile Responsiveness for Brand Modal */
@media (max-width: 768px) {
    .brand-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .brand-modal-content {
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }

    .brand-modal-overlay.active .brand-modal-content {
        transform: translateY(0);
    }

    .brand-modal-drag-handle {
        display: block;
    }

    .brand-modal-header {
        padding: 14px 18px;
    }

    .brand-modal-title {
        font-size: 1.1rem;
    }

    .brand-modal-body {
        padding: 16px 18px;
    }

    .brand-modal-filter-bar {
        padding: 10px 18px;
    }

    .brand-item-content {
        padding: 14px 16px;
    }

    .brand-item-title {
        font-size: 1.05rem;
    }

    .brand-item-footer {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .view-mode-toggle {
        width: 100%;
        display: flex;
    }

    .view-mode-btn {
        flex: 1;
        text-align: center;
    }
}