/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&display=swap');

/* Temel stiller */
:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --purple: #A177FF;
    --pink: #FF77E9;
    --green: #77FF96;
    --text: #2D3436;
    --light-bg: #F8F9FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', sans-serif;
}

body {
    background: var(--light-bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header Stilleri */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    animation: bounce 2s infinite;
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    padding: 8px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.main-nav a:not(.btn-primary):not(.btn-code-entry):hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--pink));
    color: white !important;
    padding: 12px 25px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* İstatistikler */
.stats {
    margin-top: 100px;
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    pointer-events: none;
}

.stat-card i {
    font-size: 2.5em;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary), var(--pink));
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.stat-info h3 {
    color: var(--text);
    font-size: 1.1em;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dersler Bölümü */
.courses {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5em;
    color: var(--text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header p {
    color: #666;
    font-size: 1.1em;
}

/* Öğretmenler Bölümü (renk: .home-section--teachers) */
.teachers {
    padding: 60px 0;
}

/* Footer base reset (final design lives at end of file) */

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

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

/* Responsive — mobil menü: dosya sonundaki homepage-responsive bölümü */

/* Final layout adjustments requested */
.section-search {
    position: relative;
    max-width: 560px;
    margin: -18px auto 34px;
}

.section-search i {
    position: absolute;
    top: 50%;
    left: 20px;
    z-index: 1;
    color: var(--muted);
    transform: translateY(-50%);
}

.section-search input {
    width: 100%;
    min-height: 58px;
    padding: 0 20px 0 52px;
    border: 1px solid rgba(214, 223, 232, 0.95);
    border-radius: 999px;
    outline: none;
    background:
        radial-gradient(circle at 0% 0%, rgba(111, 127, 153, 0.08), transparent 8rem),
        rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 16px 42px rgba(31, 41, 55, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.section-search input:focus {
    border-color: rgba(111, 127, 153, 0.36);
    background: #fff;
    box-shadow: 0 20px 56px rgba(31, 41, 55, 0.12);
}

.courses-grid > .empty-units,
.teachers-grid > .empty-units {
    grid-column: 1 / -1;
}

.teachers-grid > .teacher-card[style*="display: none"] {
    display: none !important;
}

/* Üniteler Bölümü — paylaşılan içerik (unit-row) */
.units-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f6f9fc, #ffffff);
}

/* Temel üniteler — ana sayfa kart grid */
.core-units-section {
    padding: 86px 0;
}

.core-units-section .section-header.core-units-header {
    padding-top: clamp(32px, 5vw, 56px);
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 42px;
}

.core-units-header p {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.core-units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.core-units-empty {
    grid-column: 1 / -1;
    padding: 56px 24px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
    color: var(--muted);
}

.core-units-empty i {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.core-units-empty h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
}

/* ── Core unit cards — büyük karakter + nesne kolajı ── */
.core-unit-card {
    --unit-accent: #6366f1;
    --unit-bg: linear-gradient(165deg, #f8fafc 0%, #eef2ff 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 30px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    background: #fff;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.95) inset,
        0 24px 48px rgba(15, 23, 42, 0.11);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
}

.core-unit-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.95) inset,
        0 36px 64px rgba(15, 23, 42, 0.16),
        0 0 0 3px color-mix(in srgb, var(--unit-accent) 18%, transparent);
    color: var(--text);
}

.core-unit-art {
    position: relative;
    min-height: 300px;
    padding: 18px 10px 0;
    background: var(--unit-bg);
    overflow: hidden;
}

.core-unit-watermark {
    position: absolute;
    inset: auto 0 -18px 0;
    z-index: 0;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(7rem, 18vw, 9.5rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.08em;
    color: color-mix(in srgb, var(--unit-accent) 10%, transparent);
    pointer-events: none;
    user-select: none;
}

.core-unit-art__top {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.core-unit-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.core-unit-badge {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--unit-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.core-unit-cover {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 8px 12px 4px;
}

.core-unit-cover__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 230px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.2));
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.core-unit-cover__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 200px;
    border: 2px dashed color-mix(in srgb, var(--unit-accent) 28%, #cbd5e1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.45);
    color: color-mix(in srgb, var(--unit-accent) 70%, #64748b);
    font-size: 0.88rem;
    font-weight: 700;
}

.core-unit-cover__empty i {
    font-size: 2rem;
    opacity: 0.7;
}

.core-unit-card:hover .core-unit-cover__img {
    transform: translateY(-8px) scale(1.03);
}

.core-unit-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 20px 20px 18px;
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.core-unit-body__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.core-unit-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: color-mix(in srgb, var(--unit-accent) 14%, white);
    color: var(--unit-accent);
    font-size: 1.05rem;
}

.core-unit-body h3 {
    margin: 4px 0 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.28rem;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: var(--text);
}

.core-unit-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.core-unit-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
}

.core-unit-meta {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.core-unit-meta--progress {
    flex: 1;
    gap: 9px;
}

.core-unit-ring {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.core-unit-ring__svg {
    display: block;
    width: 100%;
    height: 100%;
}

.core-unit-ring__track {
    stroke: color-mix(in srgb, var(--unit-accent) 14%, #e8edf4);
}

.core-unit-ring__fill {
    stroke: var(--unit-accent);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.35s ease, stroke 0.2s ease;
}

.core-unit-meta__stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    min-width: 0;
    line-height: 1;
}

.core-unit-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.core-unit-stat > i {
    flex-shrink: 0;
    width: 12px;
    font-size: 0.6rem;
    color: var(--unit-accent);
    text-align: center;
    opacity: 0.9;
}

.core-unit-stat__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

.core-unit-stat__value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: #334155;
}

.core-unit-stat__label {
    font-size: 0.66rem;
    font-weight: 600;
    color: #94a3b8;
}

.core-unit-card--completed .core-unit-ring__fill {
    stroke: #16a34a;
}

.core-unit-card--completed .core-unit-stat > i,
.core-unit-card--completed .core-unit-stat__value {
    color: #16a34a;
}

.core-unit-card--in-progress .core-unit-ring__fill {
    stroke: var(--unit-accent);
}

.core-unit-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--unit-accent);
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--unit-accent) 34%, transparent);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.core-unit-card:hover .core-unit-cta {
    transform: scale(1.04);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--unit-accent) 42%, transparent);
}

.core-unit-card.theme-basic { --unit-accent: #4f46e5; }
.core-unit-card.theme-loops { --unit-accent: #059669; }
.core-unit-card.theme-conditions { --unit-accent: #d97706; }
.core-unit-card.theme-functions { --unit-accent: #db2777; }
.core-unit-card.theme-arrays { --unit-accent: #0891b2; }
.core-unit-card.theme-objects { --unit-accent: #7c3aed; }
.core-unit-card.theme-default { --unit-accent: #475569; }

/* Paylaşılan ünite kartları — core-unit-card ile aynı, daha küçük kapak */
.shared-unit-card {
    position: relative;
}

.shared-unit-card .core-unit-art {
    min-height: 168px;
    padding: 14px 12px 0;
}

.shared-unit-card .core-unit-watermark {
    font-size: clamp(3.2rem, 11vw, 5rem);
    bottom: -10px;
    letter-spacing: -0.05em;
}

.shared-unit-card .core-unit-art__top .shared-code {
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.shared-unit-card .core-unit-art__top .shared-code i {
    color: rgba(255, 255, 255, 0.75);
}

.shared-unit-card .core-unit-cover {
    min-height: 118px;
    padding: 4px 12px 10px;
}

.shared-unit-card__img-frame {
    width: min(100%, 152px);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shared-unit-card__img-frame .core-unit-cover__img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    padding: 6px;
    filter: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.shared-unit-card:hover .shared-unit-card__img-frame .core-unit-cover__img {
    transform: scale(1.04);
}

.shared-unit-card .core-unit-cover__empty {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
}

.shared-unit-card__img-frame--empty {
    padding: 0;
}

.shared-unit-card__byline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -4px 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}

.shared-unit-card__byline i {
    font-size: 0.7rem;
    color: var(--unit-accent);
    opacity: 0.85;
}

.shared-unit-card .core-unit-footer {
    gap: 10px;
}

.shared-unit-card .core-unit-meta--progress {
    gap: 8px;
    min-width: 0;
}

.shared-unit-card .core-unit-meta__stack {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
    line-height: 1;
}

.shared-unit-card .core-unit-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.shared-unit-card .core-unit-stat-pill > i {
    flex-shrink: 0;
    width: 11px;
    font-size: 0.58rem;
    color: var(--unit-accent);
    text-align: center;
    opacity: 0.92;
}

.shared-unit-card .core-unit-stat-pill__body {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    line-height: 1;
}

.shared-unit-card .core-unit-stat-pill .core-unit-stat__value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    color: #334155;
}

.shared-unit-card .core-unit-stat-pill .core-unit-stat__label {
    font-size: 0.64rem;
    font-weight: 600;
    color: #94a3b8;
    transform: translateY(-0.5px);
}

.shared-unit-card .core-unit-stat__dot {
    flex-shrink: 0;
    margin: 0 1px;
}

.shared-unit-card.core-unit-card--completed .core-unit-stat-pill > i,
.shared-unit-card.core-unit-card--completed .core-unit-stat-pill .core-unit-stat__value {
    color: #16a34a;
}

.shared-unit-card .core-unit-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.shared-unit-card .core-unit-body {
    position: relative;
}

.shared-unit-card .core-unit-body__head {
    padding-right: 34px;
}

.shared-unit-card .core-unit-body .shared-card__reset {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 0.72rem;
    box-shadow: none;
    backdrop-filter: none;
}

.shared-unit-card .core-unit-body .shared-card__reset:hover {
    color: #dc2626;
    background: #fee2e2;
    transform: none;
}

.shared-unit-card .core-unit-body .shared-card__reset:active {
    transform: scale(0.94);
}

@media (max-width: 640px) {
    .core-units-grid {
        grid-template-columns: 1fr;
    }

    .core-unit-art {
        min-height: 250px;
    }

    .core-unit-cover {
        min-height: 200px;
    }

    .core-unit-cover__img {
        max-height: 190px;
    }
}

.units-list {
    max-width: 900px;
    margin: 40px auto;
}

.progress-bar:hover .progress {
    filter: brightness(1.1);
}

/* Paylaşılan İçerikler Bölümü (renk: .home-section--shared) */
.shared-section {
    padding: 60px 0;
}

.tab-content {
    max-width: 900px;
    margin: 0 auto;
}

.tab-content:not(.active) {
    display: none;
}

/* Tab butonları */
.content-tabs {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto 40px;
}

.tab-btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #666;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-btn i {
    font-size: 1.2em;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(0,0,0,0.05);
}

/* İçerik Kartları - Ortak Stiller */
.content-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Grid düzeni */
.tab-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    padding: 10px;
}

/* İçerik Bölümleri */
.content-sections {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

/* Bölüm kutuları */
.level-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.level-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #666;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
}

.level-box:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

/* Bölüm sayısı etiketi */
.level-count {
    font-size: 0.85em;
    color: #666;
    margin-top: 8px;
    text-align: right;
}

/* Kart footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.total-info {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9em;
}

.total-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-explore {
    padding: 12px 25px;
    background: var(--secondary);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.unit-card .btn-explore {
    background: var(--primary);
}

.btn-explore:hover {
    transform: translateX(5px);
    opacity: 0.9;
}

.error {
    text-align: center;
    padding: 20px;
    color: #f44336;
}

/* Hakkımda */
.about-section {
    padding: 86px 0;
    scroll-margin-top: 88px;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
}

.about-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(109, 93, 252, 0.1);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about-content h2 {
    margin: 0 0 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    line-height: 1.15;
    color: var(--text);
}

.about-lead {
    font-size: 1.08rem;
    color: var(--text);
    font-weight: 500;
}

.about-content p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
}

.about-highlights {
    list-style: none;
    margin: 22px 0 28px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.about-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 500;
}

.about-highlights i {
    color: var(--primary);
}

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

.about-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.about-actions .btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.about-visual {
    position: relative;
    min-height: 320px;
}

.about-visual__card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    font-weight: 700;
    color: var(--text);
}

.about-visual__card i {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(109, 93, 252, 0.12);
    color: var(--primary-dark);
    font-size: 1.35rem;
}

.about-visual__card--1 {
    top: 8%;
    left: 6%;
}

.about-visual__card--2 {
    top: 34%;
    right: 4%;
}

.about-visual__card--3 {
    bottom: 6%;
    left: 22%;
}

/* Özellikler */
.features-section {
    padding: 86px 0;
    scroll-margin-top: 88px;
}

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

.feature-item {
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    text-align: left;
}

.feature-item i {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(109, 93, 252, 0.1);
    color: var(--primary-dark);
    font-size: 1.4rem;
}

.feature-item h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--text);
}

.feature-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.feature-flagship {
    margin-bottom: 28px;
    padding: 32px 32px 30px;
    border: 2px solid rgba(109, 93, 252, 0.35);
    border-radius: calc(var(--radius-lg) + 4px);
    background:
        radial-gradient(circle at 100% 0%, rgba(109, 93, 252, 0.14), transparent 42%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.92) 100%);
    box-shadow: var(--shadow-md);
}

.feature-flagship__badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(160deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feature-flagship__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.feature-flagship__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(109, 93, 252, 0.12);
    color: var(--primary-dark);
    font-size: 1.85rem;
}

.feature-flagship__text h3 {
    margin: 0 0 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    line-height: 1.25;
    color: var(--text);
}

.feature-flagship__text p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 1rem;
}

.feature-flagship__text p strong {
    color: var(--text);
}

.feature-flagship__steps {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.feature-flagship__steps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.feature-flagship__steps li span {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.feature-flagship__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(160deg, var(--primary-dark), var(--primary));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(63, 77, 99, 0.2);
}

.feature-flagship__cta:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* Newsletter Form base reset (final design lives at end of file) */

/* Boş durum mesajı */
.empty-units {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.empty-units i {
    font-size: 4em;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.empty-units h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.empty-units p {
    color: #666;
    font-size: 1.1em;
}

.level-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.level-dot {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.level-dot .level-number {
    font-size: 0.9em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.level-dot .lock-icon,
.level-dot .check-icon {
    position: absolute;
    font-size: 0.8em;
    display: none;
}

/* Kilitli bölüm */
.level-dot.locked {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Aktif (açık) bölüm */
.level-dot.active {
    border-color: var(--secondary);
    background: white;
    cursor: pointer;
}

.level-dot.active:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.level-dot.active:hover .level-number {
    color: white;
}

/* Tamamlanmış bölüm */
.level-dot.completed {
    background: #e8f5e9;
    border-color: #4CAF50;
    cursor: pointer;
}

.level-dot.completed:hover {
    background: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.level-dot.completed:hover .check-icon {
    color: white;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.btn-load-more {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: white;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
}

.btn-load-more:hover {
    background: var(--secondary);
    color: white;
}

.teacher-badge {
    font-size: 0.8em;
    color: #666;
    background: #f1f3f4;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.teacher-badge i {
    font-size: 0.9em;
    color: var(--primary);
}

/* Modern homepage redesign */
:root {
    --primary: #6f7f99;
    --primary-dark: #3f4d63;
    --secondary: #9bb9cf;
    --accent: #c79a63;
    --pink: #b58eaa;
    --green: #8cae92;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --dark: #0b1020;
    --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 24px 70px rgba(15, 23, 42, 0.16);
    --radius-lg: 28px;
    --radius-md: 20px;
}

* {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-padding-top: 110px;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(111, 127, 153, 0.18), transparent 34rem),
        radial-gradient(circle at 85% 12%, rgba(155, 185, 207, 0.2), transparent 28rem),
        linear-gradient(180deg, #fbfdff 0%, #f3f7fb 48%, #f8fafc 100%);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.container {
    max-width: 1180px;
    padding: 0 24px;
}

.animated-background {
    display: none;
}

.main-header {
    top: 18px;
    left: 24px;
    right: 24px;
    width: auto;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(20px);
}

.main-header .container {
    padding: 0 18px;
}

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

.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-main {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.logo-sub {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(109, 93, 252, 0.1);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-nav {
    gap: 6px;
}

.main-nav a,
.main-nav .nav-item {
    color: var(--muted);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 700;
}

.main-nav a:not(.btn-primary):not(.btn-code-entry):hover,
.main-nav .nav-item:hover {
    background: rgba(109, 93, 252, 0.1);
    color: var(--primary-dark);
    transform: none;
}

.btn-primary,
.main-nav .btn-primary {
    border: 0;
    background: linear-gradient(160deg, var(--primary-dark), var(--primary)) !important;
    color: #fff !important;
    box-shadow: 0 16px 36px rgba(63, 77, 99, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.main-nav .btn-nav-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(160deg, #ef4444, #f97316);
    color: #b91c1c !important;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    white-space: nowrap;
}

.main-nav .btn-nav-reset:hover {
    background: linear-gradient(160deg, #dc2626, #ea580c) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(239, 68, 68, 0.38);
    filter: brightness(1.04);
}

.main-nav .btn-nav-reset:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.28);
}

.main-nav .btn-code-entry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px !important;
    border: 0;
    border-radius: 999px !important;
    background: linear-gradient(160deg, #059669, #10b981) !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28);
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.main-nav .btn-code-entry:hover {
    background: linear-gradient(160deg, #047857, #059669) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.36);
    filter: brightness(1.05);
}

.main-nav .btn-code-entry:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
}

.hero-buttons .btn-primary {
    gap: 10px;
}

.btn-primary:hover,
.main-nav .btn-primary:hover {
    background: linear-gradient(160deg, var(--primary-dark), var(--primary)) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(63, 77, 99, 0.28);
    filter: brightness(1.06);
}

.main-nav .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 12px 28px rgba(63, 77, 99, 0.22);
}

.stats.stats-section {
    margin-top: 0;
    padding: 0;
}

.stats .section-header {
    display: none;
}

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

.stat-card {
    isolation: isolate;
    min-height: 132px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96));
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: -42% auto auto -30%;
    z-index: -1;
    display: block;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 127, 153, 0.16), transparent 68%);
    pointer-events: none;
}

.stat-card i {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(111, 127, 153, 0.11);
    color: var(--primary-dark);
    box-shadow: none;
    font-size: 1.35rem;
}

.stat-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.stat-card p {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
}

.hero {
    padding: 92px 0 88px;
}

.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 54px;
}

.hero-content {
    max-width: 680px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 14px;
    border: 1px solid rgba(109, 93, 252, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.86rem;
}

.hero h1 {
    margin: 0 0 22px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.94;
    letter-spacing: -0.075em;
    color: var(--text);
}

.hero p {
    max-width: 610px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-buttons a,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 22px !important;
    border-radius: 999px !important;
    text-decoration: none;
    font-weight: 800 !important;
}

.btn-secondary {
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(109, 93, 252, 0.35);
    color: var(--primary-dark);
}

.hero-visual {
    position: relative;
    min-height: 500px;
}

.hero--image-left .container {
    grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
}

.hero--image-left .hero-content {
    order: 2;
}

.hero--image-left .hero-visual {
    order: 1;
}

.hero-content--centered {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.hero-content--centered .hero-buttons {
    justify-content: center;
}

.hero--center .container,
.hero--background .container {
    grid-template-columns: 1fr;
}

.hero--background {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 560px;
    padding: 120px 0;
}

.hero--background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.12));
}

.hero--background .container {
    position: relative;
    z-index: 1;
}

.hero--background .hero-content--centered,
.hero--background .hero-kicker,
.hero--background h1,
.hero--background p {
    color: #fff;
}

.hero--background .hero-kicker {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.hero--background .btn-secondary {
    background: rgba(255, 255, 255, 0.92);
}

.hero-image {
    display: block;
    width: 100%;
    min-height: 420px;
    max-height: 560px;
    object-fit: cover;
    border-radius: 34px;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.18);
}

.hero-image--wide {
    max-width: 920px;
    margin: 0 auto;
}

.hero-visual--below {
    min-height: auto;
    margin-top: 36px;
}

.hero-visual--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(100%, 480px);
    min-height: 360px;
    border: 2px dashed rgba(109, 93, 252, 0.22);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--muted);
    font-weight: 700;
}

.hero-visual-empty i {
    font-size: 2.4rem;
    color: var(--primary);
}

.code-window {
    position: relative;
    z-index: 2;
    margin: 34px auto 0;
    max-width: 480px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 34px;
    background: linear-gradient(145deg, #111827, #0f172a);
    color: #e5e7eb;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.35);
}

.window-bar {
    display: flex;
    gap: 8px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.window-bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
}

.window-bar span:nth-child(2) {
    background: #f59e0b;
}

.window-bar span:nth-child(3) {
    background: #22c55e;
}

.code-lines {
    padding: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    line-height: 2.15;
}

.code-lines div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-lines strong {
    color: #5eead4;
}

.code-lines .indent {
    padding-left: 34px;
    color: #c4b5fd;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
}

.orb-one {
    width: 220px;
    height: 220px;
    top: 0;
    right: 0;
    background: rgba(20, 184, 166, 0.3);
}

.orb-two {
    width: 180px;
    height: 180px;
    left: 0;
    bottom: 20px;
    background: rgba(236, 72, 153, 0.24);
}

.section-header {
    max-width: 760px;
    margin: 0 auto 42px;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
    color: var(--text);
}

.section-header p {
    color: var(--muted);
    font-size: 1.05rem;
}

.emoji {
    display: none;
}

.units-section,
.shared-section,
.courses,
.teachers,
.about-section,
.features-section {
    padding: 86px 0;
}

.core-units-section {
    padding: 86px 0;
}

.units-list,
.tab-content {
    max-width: none;
}

.feature-item {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.content-tabs {
    max-width: 520px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    border-radius: 999px;
    color: var(--muted);
}

.tab-btn.active {
    background: linear-gradient(160deg, var(--primary-dark), var(--primary));
    box-shadow: 0 16px 36px rgba(63, 77, 99, 0.2);
}

.features-grid {
    gap: 24px;
}

.btn-explore {
    border-radius: 999px;
    background: linear-gradient(160deg, var(--primary-dark), var(--primary));
    box-shadow: 0 14px 34px rgba(63, 77, 99, 0.2);
}

.btn-explore:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.features-section {
    color: var(--text);
}

.feature-item {
    padding: 34px;
}

.feature-item i {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(109, 93, 252, 0.1);
    color: var(--primary-dark);
    font-size: 1.7rem;
}

/* main-footer overrides — final design lives at end of file */

/* scroll-top — tam stil dosya sonunda */

.empty-units,
.error,
.loading {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
    box-shadow: var(--shadow-sm);
}

.progress-bar {
    background: #e2e8f0;
}

.progress {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.level-dot {
    border-color: var(--line);
    background: #fff;
}

.level-dot.active {
    border-color: var(--primary);
    background: rgba(109, 93, 252, 0.1);
    color: var(--primary-dark);
}

.level-dot.completed {
    border-color: var(--green);
    background: rgba(34, 197, 94, 0.1);
}

@media (max-width: 980px) {
    .stats.stats-section {
        margin-top: clamp(-72px, -10vw, -56px);
        margin-bottom: clamp(-40px, -6vw, -28px);
    }

    .stats-section + .home-section--core.core-units-section {
        padding-top: clamp(56px, 8vw, 80px);
    }

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

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .stats.stats-section {
        margin-top: -56px;
        margin-bottom: -24px;
    }

    .home-section--hero:has(+ .stats-section) {
        padding-bottom: 72px;
    }

    .stats-section + .home-section--core.core-units-section {
        padding-top: 52px;
    }

    .stats-grid,
    .courses-grid,
    .teachers-grid,
    .features-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .feature-flagship {
        padding: 24px 20px;
    }

    .feature-flagship__body {
        grid-template-columns: 1fr;
    }

    .feature-flagship__steps {
        flex-direction: column;
        align-items: stretch;
    }

    .about-visual {
        min-height: 260px;
        margin-top: 12px;
    }

    .hero {
        padding-top: 56px;
    }

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

    .hero-buttons a {
        width: 100%;
    }

    .code-lines {
        padding: 22px;
        font-size: 1rem;
    }

    .content-tabs {
        border-radius: 22px;
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .tab-content {
        grid-template-columns: 1fr;
    }

    .unit-header,
    .course-item,
    .card-footer,
    .unit-meta,
    .course-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =====================================================================
   FINAL CARD SYSTEM v3 — clean rewrite for unit-row / course-card / teacher-card
   ===================================================================== */

/* ---------- Unit row: header on top, courses below ---------- */
.units-list {
    display: grid !important;
    gap: 26px !important;
    margin-top: 32px !important;
}

.unit-row {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 28px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08) !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

.unit-row:hover {
    transform: translateY(-4px) !important;
    border-color: #cdd6e1 !important;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12) !important;
}

.unit-row::before,
.unit-row::after {
    content: none !important;
}

.unit-row > .unit-header {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: start !important;
    gap: 22px !important;
    padding: 28px 30px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #eef2f6 !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(111, 127, 153, 0.10), transparent 12rem),
        linear-gradient(180deg, #f6f9fc, #ffffff) !important;
    color: #0f172a !important;
}

.unit-row > .unit-header .unit-icon {
    width: 60px !important;
    height: 60px !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    color: #3f4d63 !important;
    box-shadow: 0 12px 28px rgba(63, 77, 99, 0.10) !important;
    font-size: 1.35rem !important;
}

.unit-row > .unit-header .unit-info {
    min-width: 0 !important;
}

.unit-row > .unit-header .unit-info h3 {
    margin: 0 0 8px !important;
    color: #0f172a !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(1.4rem, 2.2vw, 1.8rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.04em !important;
}

.unit-title-link {
    color: inherit !important;
    text-decoration: none !important;
}

.unit-title-link:hover {
    color: #2563eb !important;
}

.unit-row > .unit-header .unit-info p {
    margin: 0 0 14px !important;
    color: #64748b !important;
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
    max-width: none !important;
}

.unit-row > .unit-header .unit-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
}

.unit-row > .unit-header .unit-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 11px !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #3f4d63 !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
}

.unit-row > .unit-header .unit-meta i {
    color: #6f7f99 !important;
    opacity: 1 !important;
}

.unit-row > .unit-courses {
    display: grid !important;
    gap: 14px !important;
    margin: 22px !important;
    padding: 22px !important;
    border: 1px solid #c8e6c9 !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(76, 175, 80, 0.10), transparent 9rem),
        linear-gradient(180deg, #f3faf4, #ffffff) !important;
    box-shadow: 0 12px 30px rgba(46, 125, 50, 0.08) !important;
    min-height: 0 !important;
}

.unit-row .empty-message {
    padding: 18px !important;
    border: 1px dashed #c8e6c9 !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.65) !important;
    color: #4b6053 !important;
    font-weight: 700 !important;
    text-align: center !important;
}

/* Inner course-item — flat row, container provides the card look */
.unit-row .course-item,
.unit-row .course-item.completed-course {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: none !important;
}

.unit-row .course-item + .course-item {
    padding-top: 14px !important;
    border-top: 1px solid rgba(76, 175, 80, 0.18) !important;
}

.unit-row .course-item:hover {
    transform: none !important;
}

.unit-row .course-info {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px 14px !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.unit-row .course-info h4 {
    grid-column: 1 !important;
    margin: 0 !important;
    color: #0f172a !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.unit-row .progress-text {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    padding: 5px 10px !important;
    border: 1px solid rgba(76, 175, 80, 0.28) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: #2e7d32 !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.unit-row .progress-bar {
    grid-column: 1 / -1 !important;
    height: 6px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: rgba(76, 175, 80, 0.14) !important;
    overflow: hidden !important;
}

.unit-row .progress,
.unit-row .course-item.completed-course .progress {
    height: 100% !important;
    border-radius: inherit !important;
    background: linear-gradient(90deg, #5fa56b, #a3cfac) !important;
}

.unit-row .level-dots {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 4px 0 0 !important;
}

.unit-row .level-dot {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(76, 175, 80, 0.28) !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: #2e7d32 !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.06) !important;
}

.unit-row .level-dot.locked {
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(148, 163, 184, 0.4) !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
}

.unit-row .level-dot.completed {
    border-color: #5fa56b !important;
    background: linear-gradient(180deg, #5fa56b, #4f9059) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(76, 175, 80, 0.28) !important;
}

.unit-row .level-dot .lock-icon,
.unit-row .level-dot .check-icon {
    display: none !important;
}

.unit-row .btn-play {
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #5fa56b, #4f9059) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(76, 175, 80, 0.30) !important;
    transform: none !important;
    transition: transform .2s ease, background .2s ease !important;
}

.unit-row .btn-play:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(180deg, #4f9059, #3f7a48) !important;
}

@media (max-width: 640px) {
    .unit-row > .unit-header {
        grid-template-columns: 1fr !important;
        padding: 22px !important;
    }

    .unit-row > .unit-courses {
        margin: 16px !important;
        padding: 18px !important;
    }

    .unit-row .course-item {
        grid-template-columns: 1fr !important;
    }

    .unit-row .btn-play {
        width: 100% !important;
        border-radius: 12px !important;
    }

    .unit-row .course-info {
        grid-template-columns: 1fr !important;
    }

    .unit-row .progress-text {
        grid-column: 1 !important;
        justify-self: start !important;
    }
}

/* ---------- Course card on home grids (Popüler / Yeni) ---------- */
.courses-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    gap: 24px !important;
    align-items: stretch !important;
}

.courses-grid > .course-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

.courses-grid > .course-card:hover {
    transform: translateY(-6px) !important;
    border-color: #cfd8e3 !important;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.14) !important;
}

.courses-grid > .course-card .course-image {
    position: relative !important;
    height: 150px !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.55), transparent 6rem),
        radial-gradient(circle at 82% 0%, rgba(111, 127, 153, 0.28), transparent 8rem),
        linear-gradient(140deg, #eef3f7 0%, #c9d6e0 100%) !important;
}

.courses-grid > .course-card .course-image::before {
    content: "\f121" !important;
    position: absolute !important;
    left: 22px !important;
    bottom: 18px !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    color: #3f4d63 !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 1.3rem !important;
    backdrop-filter: blur(10px) !important;
}

.courses-grid > .course-card .course-image::after {
    content: "" !important;
    position: absolute !important;
    right: -24px !important;
    bottom: -34px !important;
    width: 130px !important;
    height: 130px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.32) !important;
}

.courses-grid > .course-card .course-image img {
    display: none !important;
}

.courses-grid > .course-card .course-ribbon {
    position: absolute !important;
    z-index: 3 !important;
    top: 14px !important;
    left: 14px !important;
    padding: 7px 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    color: #3f4d63 !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    backdrop-filter: blur(10px) !important;
}

.courses-grid > .course-card .course-level {
    position: absolute !important;
    z-index: 3 !important;
    top: 14px !important;
    right: 14px !important;
    padding: 7px 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    color: #3f4d63 !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    backdrop-filter: blur(10px) !important;
}

.courses-grid > .course-card .course-info {
    display: flex !important;
    flex: 1 !important;
    flex-direction: column !important;
    padding: 22px 22px 20px !important;
}

.courses-grid > .course-card .course-info h3 {
    margin: 0 0 12px !important;
    color: #0f172a !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.35rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.045em !important;
}

.courses-grid > .course-card .course-teacher {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: fit-content !important;
    margin: 0 0 18px !important;
    padding: 6px 11px !important;
    border-radius: 999px !important;
    background: #f4f7fa !important;
    color: #526177 !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
}

.courses-grid > .course-card .course-teacher i {
    color: #6f7f99 !important;
}

.courses-grid > .course-card .course-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid #eef2f6 !important;
}

.courses-grid > .course-card .course-meta > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    background: #f5f8fb !important;
    color: #3f4d63 !important;
    font-size: 0.84rem !important;
    font-weight: 900 !important;
}

.courses-grid > .course-card .btn-play {
    width: auto !important;
    height: auto !important;
    min-width: 92px !important;
    padding: 10px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #3f4d63 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 26px rgba(63, 77, 99, 0.22) !important;
    transition: transform .2s ease, background .2s ease !important;
}

.courses-grid > .course-card .btn-play:hover {
    transform: translateY(-2px) !important;
    background: #2e394d !important;
}

@media (max-width: 540px) {
    .courses-grid > .course-card .course-meta {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .courses-grid > .course-card .btn-play {
        justify-content: center !important;
    }
}

/* ---------- Teacher cards (#teachers) ---------- */
#teachers .teachers-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, 230px) !important;
    justify-content: start !important;
    gap: 20px !important;
}

#teachers .teacher-card {
    width: 230px !important;
    min-height: 0 !important;
    padding: 22px !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(111, 127, 153, 0.12), transparent 8rem),
        #ffffff !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08) !important;
    text-align: left !important;
    overflow: hidden !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

#teachers .teacher-card:hover {
    transform: translateY(-4px) !important;
    border-color: #cdd6e1 !important;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14) !important;
}

#teachers .teacher-card::before,
#teachers .teacher-card::after {
    content: none !important;
}

#teachers .teacher-card .teacher-banner {
    display: none !important;
}

#teachers .teacher-card .teacher-avatar {
    width: 56px !important;
    height: 56px !important;
    margin: 0 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 16px !important;
    background: #f5f8fb !important;
    box-shadow: none !important;
}

#teachers .teacher-card .teacher-avatar i {
    color: #4b5b70 !important;
    font-size: 32px !important;
}

#teachers .teacher-card .teacher-info {
    padding: 0 !important;
}

#teachers .teacher-card .teacher-name {
    margin: 0 0 14px !important;
    color: #0f172a !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.035em !important;
    min-height: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#teachers .teacher-card .teacher-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
}

#teachers .teacher-card .stat-item {
    min-width: 0 !important;
    padding: 10px 10px !important;
    border: 1px solid #e7ecf2 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    text-align: left !important;
}

#teachers .teacher-card .stat-value {
    color: #0f172a !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

#teachers .teacher-card .stat-label {
    margin-top: 4px !important;
    color: #64748b !important;
    font-size: 0.66rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

@media (max-width: 520px) {
    #teachers .teachers-grid {
        grid-template-columns: 1fr !important;
    }

    #teachers .teacher-card {
        width: 100% !important;
    }
}

/* =====================================================================
   COURSES TAB — legacy course-item (shared-card hariç)
   ===================================================================== */
#courses-content > .course-item:not(.shared-card) {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 26px 24px 22px !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(155, 185, 207, 0.18), transparent 8rem),
        #ffffff !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

#courses-content > .course-item:not(.shared-card)::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
}

#courses-content > .course-item:not(.shared-card):hover {
    transform: translateY(-4px) !important;
    border-color: #cdd6e1 !important;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.14) !important;
}

#courses-content > .course-item:not(.shared-card).completed-course {
    border-color: #c8e6c9 !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(95, 165, 107, 0.16), transparent 8rem),
        #ffffff !important;
}

#courses-content > .course-item:not(.shared-card).completed-course::before {
    background: linear-gradient(90deg, #5fa56b, #a3cfac) !important;
}

#courses-content > .course-item:not(.shared-card) .course-info {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    min-width: 0 !important;
    padding: 0 !important;
}

#courses-content > .course-item:not(.shared-card) .course-info h4 {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    color: #0f172a !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
}

#courses-content > .course-item:not(.shared-card) .teacher-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    border: 1px solid #e7ecf2 !important;
    border-radius: 999px !important;
    background: #f4f7fa !important;
    color: #526177 !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

#courses-content > .course-item:not(.shared-card) .teacher-badge i {
    color: var(--primary) !important;
    font-size: 0.78rem !important;
}

#courses-content > .course-item:not(.shared-card) .progress-bar {
    height: 8px !important;
    margin: 4px 0 0 !important;
    border-radius: 999px !important;
    background: #eef2f6 !important;
    overflow: hidden !important;
}

#courses-content > .course-item:not(.shared-card) .progress {
    height: 100% !important;
    border-radius: inherit !important;
    background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
    transition: width 0.4s ease !important;
}

#courses-content > .course-item:not(.shared-card).completed-course .progress,
#courses-content > .course-item:not(.shared-card) .progress[style*="width: 100%"] {
    background: linear-gradient(90deg, #5fa56b, #a3cfac) !important;
}

#courses-content > .course-item:not(.shared-card) .level-dots {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 4px 0 0 !important;
}

#courses-content > .course-item:not(.shared-card) .level-dot {
    position: relative !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #526177 !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04) !important;
    transition: transform .2s ease, background .2s ease, border-color .2s ease !important;
}

#courses-content > .course-item:not(.shared-card) .level-dot:hover:not(.locked) {
    transform: translateY(-2px) !important;
    border-color: var(--primary) !important;
}

#courses-content > .course-item:not(.shared-card) .level-dot.locked {
    background: #f5f7fa !important;
    border-color: #e7ecf2 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

#courses-content > .course-item:not(.shared-card) .level-dot.active {
    border-color: var(--primary) !important;
    background: rgba(111, 127, 153, 0.10) !important;
    color: var(--primary-dark) !important;
}

#courses-content > .course-item:not(.shared-card) .level-dot.completed {
    border-color: #5fa56b !important;
    background: linear-gradient(180deg, #5fa56b, #4f9059) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(76, 175, 80, 0.28) !important;
}

#courses-content > .course-item:not(.shared-card) .level-dot .level-number {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

#courses-content > .course-item:not(.shared-card) .level-dot .lock-icon,
#courses-content > .course-item:not(.shared-card) .level-dot .check-icon {
    display: none !important;
}

#courses-content > .course-item:not(.shared-card) .progress-text {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    margin: 2px 0 0 !important;
    padding: 5px 11px !important;
    border: 1px solid #e7ecf2 !important;
    border-radius: 999px !important;
    background: #f5f8fb !important;
    color: var(--primary-dark) !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

#courses-content > .course-item:not(.shared-card).completed-course .progress-text {
    background: rgba(95, 165, 107, 0.12) !important;
    border-color: rgba(95, 165, 107, 0.30) !important;
    color: #2e7d32 !important;
}

#courses-content > .course-item:not(.shared-card) .btn-play {
    width: 52px !important;
    height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(160deg, var(--primary-dark), var(--primary)) !important;
    color: #ffffff !important;
    font-size: 1.05rem !important;
    text-decoration: none !important;
    box-shadow: 0 14px 30px rgba(63, 77, 99, 0.30) !important;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease !important;
}

#courses-content > .course-item:not(.shared-card) .btn-play:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 20px 40px rgba(63, 77, 99, 0.38) !important;
}

#courses-content > .course-item:not(.shared-card).completed-course .btn-play {
    background: linear-gradient(160deg, #4f9059, #5fa56b) !important;
    box-shadow: 0 14px 30px rgba(76, 175, 80, 0.32) !important;
}

#courses-content > .course-item:not(.shared-card).completed-course .btn-play:hover {
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.40) !important;
}

@media (max-width: 540px) {
    #courses-content {
        grid-template-columns: 1fr !important;
    }

    #courses-content > .course-item:not(.shared-card) {
        padding: 22px 20px 20px !important;
    }

    #courses-content > .course-item:not(.shared-card) .btn-play {
        width: 48px !important;
        height: 48px !important;
        border-radius: 14px !important;
    }
}

/* =====================================================================
   MAIN FOOTER — full rewrite
   ===================================================================== */
.main-footer {
    position: relative !important;
    margin-top: 80px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #e5e7eb !important;
    overflow: hidden !important;
}

.main-footer .container {
    max-width: 1180px !important;
    padding: 0 24px !important;
}

/* ---------- CTA strip ---------- */
.main-footer .footer-cta {
    position: relative !important;
    margin: 0 24px !important;
    padding: 36px 0 !important;
    border-radius: 28px !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(155, 185, 207, 0.32), transparent 12rem),
        radial-gradient(circle at 100% 100%, rgba(199, 154, 99, 0.24), transparent 12rem),
        linear-gradient(140deg, #1f2a3a 0%, #0f172a 60%, #0b1224 100%) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.30) !important;
    overflow: hidden !important;
}

.main-footer .footer-cta::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
    background-size: 32px 32px !important;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%) !important;
    pointer-events: none !important;
}

.main-footer .footer-cta .container {
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 28px !important;
}

.main-footer .cta-text {
    flex: 1 1 360px !important;
    min-width: 0 !important;
}

.main-footer .cta-kicker {
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    padding: 6px 12px !important;
    border: 1px solid rgba(155, 185, 207, 0.4) !important;
    border-radius: 999px !important;
    background: rgba(155, 185, 207, 0.12) !important;
    color: #c2d5e3 !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.main-footer .cta-text h2 {
    margin: 0 0 10px !important;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.04em !important;
}

.main-footer .cta-text p {
    margin: 0 !important;
    max-width: 540px !important;
    color: #b9c4d4 !important;
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
}

.main-footer .cta-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.main-footer .cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 14px 24px !important;
    border-radius: 999px !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease !important;
}

.main-footer .cta-btn-primary {
    background: linear-gradient(160deg, #ffffff, #e2eaf2) !important;
    color: #0f172a !important;
    box-shadow: 0 16px 36px rgba(255, 255, 255, 0.18) !important;
}

.main-footer .cta-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 22px 48px rgba(255, 255, 255, 0.28) !important;
}

.main-footer .cta-btn-ghost {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.main-footer .cta-btn-ghost:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
}

/* ---------- Footer body ---------- */
.main-footer .footer-main {
    position: relative !important;
    margin-top: 28px !important;
    padding: 56px 0 40px !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(155, 185, 207, 0.22), transparent 22rem),
        radial-gradient(circle at 92% 18%, rgba(199, 154, 99, 0.18), transparent 22rem),
        linear-gradient(180deg, #0b1224 0%, #070b18 100%) !important;
    color: #cbd5e1 !important;
}

.main-footer .footer-main::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) !important;
    background-size: 42px 42px !important;
    mask-image: linear-gradient(to bottom, black, transparent 90%) !important;
    pointer-events: none !important;
}

.main-footer .footer-grid {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr !important;
    gap: 44px !important;
    align-items: start !important;
    text-align: left !important;
    padding: 0 !important;
}

/* Brand column */
.main-footer .footer-brand {
    min-width: 0 !important;
}

.main-footer .footer-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 16px !important;
    text-decoration: none !important;
}

.main-footer .footer-logo-main {
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.04em !important;
}

.main-footer .footer-logo-sub {
    padding: 5px 11px !important;
    border-radius: 999px !important;
    background: rgba(155, 185, 207, 0.18) !important;
    color: #c2d5e3 !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
}

.main-footer .footer-tagline {
    margin: 0 0 22px !important;
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    max-width: 360px !important;
}

.main-footer .footer-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    max-width: 360px !important;
}

.main-footer .footer-stat {
    padding: 12px 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    text-align: left !important;
    backdrop-filter: blur(6px) !important;
}

.main-footer .footer-stat strong {
    display: block !important;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.25rem !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
}

.main-footer .footer-stat span {
    display: block !important;
    margin-top: 4px !important;
    color: #94a3b8 !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

/* Link columns */
.main-footer .footer-col {
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: left !important;
}

.main-footer .footer-col h4 {
    margin: 0 0 18px !important;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    padding: 0 !important;
}

.main-footer .footer-col h4::after {
    content: none !important;
}

.main-footer .footer-col ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.main-footer .footer-col li {
    margin: 0 !important;
}

.main-footer .footer-col a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #cbd5e1 !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color .2s ease, transform .2s ease !important;
}

.main-footer .footer-col a i {
    width: 16px !important;
    color: #6f7f99 !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    transition: color .2s ease !important;
}

.main-footer .footer-col a:hover {
    color: #ffffff !important;
    transform: translateX(4px) !important;
}

.main-footer .footer-col a:hover i {
    color: #c2d5e3 !important;
}

/* Newsletter column */
.main-footer .footer-newsletter > p {
    margin: 0 0 14px !important;
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

.main-footer .newsletter-form {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 0 18px !important;
    padding: 6px 6px 6px 44px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    transition: border-color .2s ease, background .2s ease !important;
}

.main-footer .newsletter-form:focus-within {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.10) !important;
}

.main-footer .newsletter-icon {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    pointer-events: none !important;
}

.main-footer .newsletter-form input {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 10px 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    outline: none !important;
}

.main-footer .newsletter-form input::placeholder {
    color: #7a8699 !important;
}

.main-footer .newsletter-form button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(160deg, #ffffff, #d8e2ed) !important;
    color: #0f172a !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: transform .2s ease, background .2s ease !important;
}

.main-footer .newsletter-form button:hover {
    transform: translateX(2px) !important;
    background: linear-gradient(160deg, #ffffff, #c4d2e0) !important;
}

.main-footer .footer-contact {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.main-footer .footer-contact a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    color: #cbd5e1 !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color .2s ease !important;
}

.main-footer .footer-contact a i {
    width: 16px !important;
    color: #6f7f99 !important;
    font-size: 0.85rem !important;
    text-align: center !important;
}

.main-footer .footer-contact a:hover {
    color: #ffffff !important;
}

/* ---------- Bottom bar ---------- */
.main-footer .footer-bottom {
    position: relative !important;
    padding: 22px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background:
        linear-gradient(180deg, #070b18 0%, #050810 100%) !important;
    color: #94a3b8 !important;
}

.main-footer .footer-bottom .container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

.main-footer .footer-copy {
    margin: 0 !important;
    color: #94a3b8 !important;
    font-size: 0.86rem !important;
    font-weight: 500 !important;
}

.main-footer .footer-copy strong {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.main-footer .footer-credits-wrap {
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
}

.main-footer .footer-credits {
    margin: 12px 0 0;
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
}

.main-footer .footer-credits a {
    color: #94a3b8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.main-footer .footer-credits a:hover {
    color: #e2e8f0;
}

.main-footer .footer-legal {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.main-footer .footer-legal a {
    color: #94a3b8 !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color .2s ease !important;
}

.main-footer .footer-legal a:hover {
    color: #ffffff !important;
}

.main-footer .footer-legal .dot {
    width: 4px !important;
    height: 4px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.main-footer .footer-social {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.main-footer .footer-social a {
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #cbd5e1 !important;
    font-size: 0.92rem !important;
    text-decoration: none !important;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease !important;
}

.main-footer .footer-social a:hover {
    transform: translateY(-3px) !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .main-footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 36px !important;
    }

    .main-footer .footer-brand,
    .main-footer .footer-newsletter {
        grid-column: span 2 !important;
    }

    .main-footer .footer-stats {
        max-width: none !important;
    }
}

@media (max-width: 640px) {
    .main-footer {
        margin-top: 56px !important;
    }

    .main-footer .footer-cta {
        margin: 0 16px !important;
        padding: 28px 0 !important;
        border-radius: 22px !important;
    }

    .main-footer .footer-cta .container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 18px !important;
    }

    .main-footer .cta-actions {
        width: 100% !important;
    }

    .main-footer .cta-btn {
        flex: 1 !important;
        justify-content: center !important;
    }

    .main-footer .footer-main {
        padding: 44px 0 32px !important;
    }

    .main-footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .main-footer .footer-brand,
    .main-footer .footer-newsletter {
        grid-column: auto !important;
    }

    .main-footer .footer-bottom .container {
        justify-content: center !important;
        text-align: center !important;
    }

    .main-footer .footer-copy {
        flex-basis: 100% !important;
        text-align: center !important;
    }

    .main-footer .footer-legal,
    .main-footer .footer-social {
        justify-content: center !important;
    }
}

/* =====================================================================
   PAYLAŞILAN İÇERİKLER — v4
   ===================================================================== */
.shared-section {
    padding: 86px 0;
    background:
        radial-gradient(circle at 8% 0%, rgba(109, 93, 252, 0.07), transparent 28%),
        radial-gradient(circle at 92% 100%, rgba(16, 185, 129, 0.06), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.shared-section__header p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.shared-section__header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

.shared-section__header-row > div {
    flex: 1 1 320px;
}

.shared-section__header-row h1,
.shared-section__header-row h2 {
    text-align: left;
}

.shared-section__header-row p {
    margin-left: 0;
    margin-right: 0;
}

.shared-section__view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.shared-section__footer {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    padding-top: 8px;
}

.shared-section--page {
    min-height: calc(100vh - 180px);
    padding-top: 120px;
}

.shared-content-page .main-nav--compact {
    gap: 12px;
}

.shared-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 1200px;
    margin: 28px auto 0;
    text-align: center;
}

.shared-pagination__inner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: var(--shadow-sm);
}

.shared-pagination__btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.shared-pagination__btn:hover:not(.is-active) {
    background: rgba(109, 93, 252, 0.08);
    color: var(--secondary);
}

.shared-pagination__btn.is-active {
    background: linear-gradient(135deg, var(--secondary), #8b7cf8);
    color: #fff;
    cursor: default;
}

.shared-pagination__summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.shared-pagination__summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.shared-pagination__summary-badge i {
    color: var(--secondary);
    font-size: 0.9rem;
}

.shared-pagination__summary-badge strong {
    color: var(--secondary);
    font-weight: 700;
}

.shared-pagination__summary-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

.shared-pagination__summary-count {
    font-weight: 600;
    color: #64748b;
}

.main-footer--compact {
    margin-top: 0;
}

.main-footer--compact .footer-bottom {
    padding: 24px 0;
}

.shared-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 28px;
}

.shared-search {
    margin: 0;
}

.shared-tabs {
    margin: 0 !important;
    max-width: none !important;
    width: auto;
    min-width: 280px;
    padding: 6px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: var(--shadow-sm) !important;
}

.shared-tabs .tab-btn {
    padding: 11px 18px !important;
    font-size: 0.92rem !important;
    border-radius: 999px !important;
}

.shared-contents {
    max-width: 1200px;
    margin: 0 auto;
}

.shared-grid {
    display: grid !important;
    gap: 22px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.shared-grid--units {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 28px !important;
}

.shared-grid--courses {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.shared-grid:not(.active) {
    display: none !important;
}

.shared-loading,
.shared-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
}

.shared-empty i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.shared-empty h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
}

.shared-load-more {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 8px;
}

.shared-code {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.shared-code i {
    font-size: 0.78rem;
    opacity: 0.85;
}

.shared-code--sm {
    padding: 5px 10px;
    font-size: 0.74rem;
    border-radius: 10px;
    background: #eef2ff;
    color: #4338ca;
    box-shadow: none;
}

.shared-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.shared-type-badge--unit {
    background: #dcfce7;
    color: #166534;
}

.shared-type-badge--course {
    background: #dbeafe;
    color: #1d4ed8;
}

.shared-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.shared-card__reset {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted);
    font-size: 0.82rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.shared-card__reset:hover {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.35);
    background: #fef2f2;
    transform: rotate(-30deg);
}

.shared-card:hover {
    transform: translateY(-4px);
    border-color: rgba(109, 93, 252, 0.22);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.12);
}

.shared-card--clickable {
    cursor: pointer;
}

.shared-card--clickable .shared-card__courses {
    cursor: default;
}

.shared-card__meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
}

.shared-card__meta-chip i {
    font-size: 0.72rem;
    color: #64748b;
}

.shared-card__thumb {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(165deg, #eef2ff, #f0fdf4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shared-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.shared-card__thumb--empty {
    color: #6366f1;
    font-size: 2rem;
}

.shared-card__labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.shared-card__intro h3,
.shared-card__title {
    margin: 0 0 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
}

.shared-card__title-link {
    color: var(--text);
    text-decoration: none;
}

.shared-card__title-link:hover {
    color: var(--primary-dark);
}

.shared-card__desc {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.shared-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.shared-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shared-card__meta i {
    color: var(--primary);
}

.shared-card__courses {
    padding: 14px 22px 20px;
}

.shared-card__status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.shared-card__status-badge--done {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.shared-card__status-badge--progress {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.shared-card__status-badge--done i,
.shared-card__status-badge--progress i {
    font-size: 0.78rem;
}


.shared-card__open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0;
    text-transform: none;
}

.shared-card__open:hover {
    color: var(--primary);
}

.shared-progress-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.shared-progress-meta__head {
    display: contents;
}

.shared-progress-meta .progress-bar {
    flex: 1;
    min-width: 0;
    height: 6px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #eef2f6 !important;
    overflow: hidden;
}

.shared-progress-meta .progress {
    height: 100% !important;
    border-radius: inherit !important;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary)) !important;
}

.shared-progress-text {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.completed-course .shared-progress-text {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.shared-level-dots {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 0 !important;
}

.shared-card .shared-level-chip {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    margin: 0;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.shared-card .shared-level-chip__num {
    display: block;
}

.shared-card .shared-level-chip.active {
    border-color: rgba(109, 93, 252, 0.45);
    background: #f5f3ff;
    color: #4338ca;
    box-shadow: 0 4px 12px rgba(109, 93, 252, 0.12);
}

.shared-card .shared-level-chip.active:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
    background: #ede9fe;
}

.shared-card .shared-level-chip.completed {
    border-color: #5fa56b;
    background: linear-gradient(180deg, #5fa56b, #4f9059);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 144, 89, 0.25);
}

.shared-card .shared-level-chip.completed .level-number,
.shared-card .shared-level-chip.completed .shared-level-chip__num {
    color: #fff;
}

.shared-card .shared-level-chip.completed:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.shared-card .shared-level-chip.locked {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
}

.shared-card .shared-level-chip.locked:hover {
    transform: none;
}

.shared-course-row:not(.shared-course-row--in-unit) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.shared-course-row:not(.shared-course-row--in-unit) + .shared-course-row:not(.shared-course-row--in-unit) {
    border-top: 1px dashed rgba(148, 163, 184, 0.45) !important;
}

.shared-course-row__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.shared-course-row__title {
    margin: 0 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    color: var(--text) !important;
}

.shared-play-btn {
    width: 46px !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: linear-gradient(160deg, var(--primary-dark), var(--primary)) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(63, 77, 99, 0.24) !important;
}

.shared-empty-inline {
    padding: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.shared-card--course {
    display: block !important;
    padding: 0 !important;
}

#courses-content > .shared-card--course {
    display: block !important;
    grid-template-columns: unset !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 26px !important;
    background: #fff !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden !important;
}

#courses-content > .shared-card--course::before {
    display: none !important;
    content: none !important;
}

#courses-content > .shared-card--course:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(109, 93, 252, 0.22) !important;
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.12) !important;
}

#courses-content > .shared-card--course.completed-course {
    border-color: rgba(95, 165, 107, 0.35) !important;
    background: #fff !important;
}

.shared-card__course-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 22px 22px;
}

.shared-card__course-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
}

.shared-card__course-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.shared-card__course-info .shared-card__labels {
    margin-bottom: 0;
}

.shared-card__course-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.12rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text);
}

.shared-card__course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
}

.shared-card__course-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.shared-card__course-meta i {
    color: var(--primary);
    font-size: 0.76rem;
}

.shared-card--course .shared-progress-meta {
    margin: 4px 0 0;
}

.shared-card--course .shared-level-dots {
    padding-top: 14px;
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.shared-card--course .shared-play-btn {
    flex-shrink: 0;
    align-self: center;
}

@media (max-width: 900px) {
    .shared-grid--courses {
        grid-template-columns: 1fr !important;
    }
}

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

    .shared-tabs {
        width: 100%;
        min-width: 0;
    }

    .shared-grid--units {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================================================
   Ana sayfa — bölüm geçişleri, ızgara, oyun dekorları
   ===================================================================== */

.home-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.home-section > .container {
    position: relative;
    z-index: 2;
}

.home-section + .home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
    width: min(760px, 88%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.14), transparent);
    pointer-events: none;
}

.home-section__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-section__grid-lines {
    position: absolute;
    inset: -8% -4%;
    opacity: 0.55;
    background-image:
        linear-gradient(var(--home-grid-color, rgba(109, 93, 252, 0.07)) 1px, transparent 1px),
        linear-gradient(90deg, var(--home-grid-color, rgba(109, 93, 252, 0.07)) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 72%);
}

.home-section__prop {
    position: absolute;
    width: clamp(64px, 7vw, 96px);
    height: auto;
    max-height: 42vh;
    object-fit: contain;
    opacity: 0.44;
    filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.16));
    user-select: none;
    animation: homePropFloat 6.5s ease-in-out infinite;
}

/* Boyut skalası */
.home-section__prop--size-xs { width: clamp(32px, 3.5vw, 48px); opacity: 0.36; }
.home-section__prop--size-sm { width: clamp(44px, 5vw, 68px); opacity: 0.4; }
.home-section__prop--size-md { width: clamp(64px, 7vw, 96px); }
.home-section__prop--size-lg { width: clamp(88px, 9.5vw, 128px); opacity: 0.48; }
.home-section__prop--size-xl { width: clamp(108px, 12vw, 168px); opacity: 0.5; }

/* Köşe ve kenar — dikey dağılım */
.home-section__prop--tl {
    top: 5%;
    left: clamp(0px, 1.5vw, 24px);
    --prop-rotate: -10deg;
    animation-delay: 0s;
}

.home-section__prop--tr {
    top: 12%;
    right: clamp(0px, 1vw, 20px);
    --prop-rotate: 8deg;
    animation-delay: -1.1s;
}

.home-section__prop--bl {
    bottom: clamp(8%, 4vw, 14%);
    left: clamp(4px, 2vw, 28px);
    --prop-rotate: 5deg;
    animation-delay: -2.2s;
}

.home-section__prop--br {
    bottom: clamp(6%, 3vw, 12%);
    right: clamp(0px, 1.5vw, 24px);
    --prop-rotate: -7deg;
    animation-delay: -0.7s;
}

.home-section__prop--ml {
    top: 38%;
    left: clamp(-8px, 0.5vw, 12px);
    --prop-rotate: -4deg;
    animation-delay: -1.6s;
}

.home-section__prop--mr {
    top: 48%;
    right: clamp(-4px, 0.5vw, 16px);
    --prop-rotate: 9deg;
    animation-delay: -2.8s;
}

.home-section__prop--tc {
    top: 3%;
    left: 50%;
    --prop-rotate: 3deg;
    transform: translateX(-50%) rotate(var(--prop-rotate, 0deg));
    animation-delay: -0.4s;
}

.home-section__prop--bc {
    bottom: 5%;
    left: 50%;
    --prop-rotate: -3deg;
    transform: translateX(-50%) rotate(var(--prop-rotate, 0deg));
    animation-delay: -1.9s;
}

/* Eski slot uyumluluğu */
.home-section__prop--cr {
    top: 56%;
    right: clamp(0px, 2vw, 32px);
    --prop-rotate: 11deg;
    animation-delay: -1.8s;
}

.home-section__prop--tl,
.home-section__prop--tr,
.home-section__prop--bl,
.home-section__prop--br,
.home-section__prop--ml,
.home-section__prop--mr,
.home-section__prop--cr {
    transform: rotate(var(--prop-rotate, 0deg));
}

.home-section__bg--hero .home-section__prop {
    opacity: 0.32;
}

.home-section__bg--hero .home-section__prop--size-lg,
.home-section__bg--hero .home-section__prop--size-xl {
    opacity: 0.38;
}

.home-section__bg--core .home-section__prop--tr.home-section__prop--size-xl,
.home-section__bg--features .home-section__prop--tl.home-section__prop--size-xl {
    top: 8%;
    right: clamp(0px, 0.5vw, 12px);
}

@keyframes homePropFloat {
    0%, 100% {
        transform: translateY(0) rotate(var(--prop-rotate, 0deg));
    }
    50% {
        transform: translateY(-10px) rotate(var(--prop-rotate, 0deg));
    }
}

.home-section__prop--tc,
.home-section__prop--bc {
    animation-name: homePropFloatCenter;
}

@keyframes homePropFloatCenter {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(var(--prop-rotate, 0deg));
    }
    50% {
        transform: translateX(-50%) translateY(-10px) rotate(var(--prop-rotate, 0deg));
    }
}

/* Bölüm renkleri — birbirinden ayrışan geçişler */
.home-section--hero {
    --home-grid-color: rgba(109, 93, 252, 0.05);
    background:
        radial-gradient(circle at 12% 18%, rgba(109, 93, 252, 0.1), transparent 42%),
        radial-gradient(circle at 88% 72%, rgba(16, 185, 129, 0.08), transparent 38%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

/* İstatistikler — hero ile core arasında yüzen şerit (ayrı zemin yok) */
.home-section--hero:has(+ .stats-section) {
    padding-bottom: clamp(88px, 11vw, 128px);
}

.stats.stats-section {
    position: relative;
    z-index: 12;
    margin-top: clamp(-96px, -9vw, -72px);
    margin-bottom: clamp(-52px, -6vw, -36px);
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.stats.stats-section .container {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.stats.stats-section .stats-grid {
    filter: drop-shadow(0 18px 40px rgba(15, 23, 42, 0.1));
}

.stats-section + .home-section--core.core-units-section {
    padding-top: clamp(72px, 9vw, 108px);
}

.stats-section + .home-section--core::before {
    display: none;
}

.home-section--core.core-units-section {
    --home-grid-color: rgba(109, 93, 252, 0.09);
    background-color: #f5f3ff;
    background-image:
        radial-gradient(circle at 6% 20%, rgba(109, 93, 252, 0.12), transparent 36%),
        radial-gradient(circle at 92% 78%, rgba(16, 185, 129, 0.06), transparent 32%),
        linear-gradient(180deg, #ede9fe 0%, #f5f3ff 48%, #fafafa 100%);
}

.home-section--shared.shared-section {
    --home-grid-color: rgba(16, 185, 129, 0.08);
    background:
        radial-gradient(circle at 94% 16%, rgba(52, 211, 153, 0.12), transparent 34%),
        linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 50%, #f8fafc 100%);
}

.home-section--mytowns.mytown-home-section {
    --home-grid-color: rgba(34, 197, 94, 0.08);
    padding: 70px 0;
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 34rem),
        linear-gradient(180deg, #f0fdf4 0%, #ecfeff 100%);
}

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

.mytown-home-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.mytown-home-section__header-main {
    flex: 1;
    min-width: 0;
}

.mytown-home-tabs {
    margin-bottom: 22px;
}

.mytown-home-tabs--page {
    width: min(100%, 720px);
    min-width: 420px;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding: 8px;
}

.mytown-home-tabs--page .tab-btn {
    text-decoration: none;
    flex: 1;
    min-width: 0;
    padding: 14px 28px;
    font-size: 1rem;
}

.mytown-home-panels {
    min-height: 0;
}

.mytown-home-panel[hidden] {
    display: none;
}

.mytown-home-grid-empty {
    padding: 28px 20px;
    border-radius: 18px;
    border: 2px dashed rgba(45, 26, 12, 0.22);
    background: rgba(255, 249, 235, 0.72);
    text-align: center;
    color: #6b5344;
}

.mytown-home-grid-empty p {
    margin: 0;
    font-weight: 600;
}

.mytown-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    border: 3px solid #2d1a0c;
    background: linear-gradient(180deg, #fff9eb 0%, #f3e6c8 100%);
    box-shadow:
        0 4px 0 #2d1a0c,
        0 18px 40px rgba(45, 26, 12, 0.12);
    color: #3d2914;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mytown-home-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 4px 0 #2d1a0c,
        0 24px 48px rgba(45, 26, 12, 0.16);
}

.mytown-home-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.mytown-home-card__like {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1.5px solid #2d1a0c;
    background: rgba(255, 249, 235, 0.94);
    color: #6b5344;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 2px 0 #2d1a0c;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.mytown-home-card__like:hover {
    transform: translateY(-1px);
    background: #fff;
}

.mytown-home-card__like.is-liked,
.mytown-home-card__like.is-liked:hover {
    color: #dc2626;
    background: rgba(254, 242, 242, 0.96);
}

.mytown-home-card__like:disabled {
    opacity: 0.72;
    cursor: wait;
}

.mytown-home-card__frame {
    position: relative;
    border-bottom: 3px solid #2d1a0c;
}

.mytown-home-card__preview {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    container-type: inline-size;
    container-name: mytown-preview;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(135deg, #74b94d 0%, #34a853 55%, #2d8f47 100%);
    background-size: 20px 20px, 20px 20px, auto;
}

.mytown-home-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1.5px solid #2d1a0c;
    background: rgba(255, 249, 235, 0.94);
    color: #3d2914;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 2px 0 #2d1a0c;
}

.mytown-home-thumb {
    width: 100%;
    min-height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-sizing: border-box;
}

.mytown-home-thumb__board {
    --thumb-max-h: 140px;
    --cell-px: min(
        calc((100cqw - 28px) / var(--full-cols)),
        calc(var(--thumb-max-h) / var(--full-rows))
    );
    display: grid;
    grid-template-columns: repeat(var(--full-cols), 1fr);
    grid-template-rows: repeat(var(--full-rows), 1fr);
    width: calc(var(--full-cols) * var(--cell-px));
    height: calc(var(--full-rows) * var(--cell-px));
    max-width: 100%;
    flex-shrink: 0;
    border: 2px solid rgba(45, 26, 12, 0.28);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(45, 26, 12, 0.2);
    background-image: var(--default-ground);
    background-size: cover;
    background-position: center;
}

.mytown-home-thumb__cell {
    position: relative;
    grid-column: var(--gc);
    grid-row: var(--gr);
    min-width: 0;
    min-height: 0;
    overflow: visible;
}

.mytown-home-thumb__ground {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mytown-home-thumb__object-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.mytown-home-thumb__object-wrap--2x2 {
    width: 200%;
    height: 200%;
    z-index: 2;
    align-items: flex-end;
    justify-content: flex-start;
}

.mytown-home-thumb__object-wrap--3x3 {
    width: 300%;
    height: 300%;
    z-index: 3;
    align-items: flex-end;
    justify-content: flex-start;
}

.mytown-home-thumb__object {
    display: block;
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    object-position: center bottom;
}

.mytown-home-thumb__object-wrap--2x2 .mytown-home-thumb__object {
    max-width: 94%;
    max-height: 94%;
    object-position: left bottom;
}

.mytown-home-thumb__object-wrap--3x3 .mytown-home-thumb__object {
    max-width: 96%;
    max-height: 96%;
    object-position: left bottom;
}

.mytown-home-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mytown-home-card__body h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #3d2914;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.mytown-home-card__author {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b5344;
    font-size: 0.9rem;
}

.mytown-home-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
    color: #6b5344;
    font-size: 0.82rem;
    font-weight: 600;
}

.mytown-home-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: #3f7a48;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.mytown-home-card:hover .mytown-home-card__cta {
    color: #2d6a38;
}

.mytown-home-empty {
    max-width: 520px;
    margin: 0 auto;
}

.mytown-home-empty__panel {
    overflow: hidden;
    border-radius: 24px;
    border: 3px solid #2d1a0c;
    background: linear-gradient(180deg, #fff9eb 0%, #f3e6c8 100%);
    box-shadow:
        0 4px 0 #2d1a0c,
        0 22px 48px rgba(45, 26, 12, 0.14);
}

.mytown-home-empty__preview {
    display: grid;
    place-items: center;
    min-height: 140px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(135deg, #74b94d 0%, #34a853 55%, #2d8f47 100%);
    background-size: 24px 24px, 24px 24px, auto;
}

.mytown-home-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(145deg, #f1b04a, #c98a1f);
    color: #fff;
    border: 3px solid #2d1a0c;
    box-shadow: 0 3px 0 #2d1a0c;
    font-size: 1.85rem;
}

.mytown-home-empty__body {
    padding: 24px 28px 28px;
    text-align: center;
}

.mytown-home-empty__kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(145deg, #5fa56b, #3f7a48);
    border: 1.5px solid #2d1a0c;
    box-shadow: 0 1px 0 #2d1a0c;
}

.mytown-home-empty__body h3 {
    margin: 0 0 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #3d2914;
    letter-spacing: -0.02em;
}

.mytown-home-empty__body p {
    margin: 0 0 20px;
    color: #6b5344;
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}

.mytown-home-empty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    border: 2px solid #2d1a0c;
    background: linear-gradient(145deg, #5fa56b, #3f7a48);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 0 #2d1a0c;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.mytown-home-empty__btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    color: #fff;
}

.mytown-home-empty__btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #2d1a0c;
}

@media (max-width: 560px) {
    .mytown-home-empty__body {
        padding: 20px 18px 22px;
    }

    .mytown-home-empty__preview {
        min-height: 120px;
    }
}

.mytown-home-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mytown-home-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    border: 2px dashed #2d1a0c;
    background: rgba(255, 249, 235, 0.72);
    color: #5c4030;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-style 0.18s ease;
}

.mytown-home-view-all-btn:hover {
    transform: translateY(-2px);
    background: #fff9eb;
    border-style: solid;
    color: #3d2914;
}

.mytown-home-view-all-btn i {
    color: #3f7a48;
    font-size: 0.9rem;
}

.mytown-home-build-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    border: 2px solid #2d1a0c;
    background: linear-gradient(145deg, #5fa56b, #3f7a48);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 0 #2d1a0c;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.mytown-home-build-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    color: #fff;
}

.mytown-towns-section.shared-section--page {
    padding-top: 120px;
    padding-bottom: 56px;
}

.mytown-towns-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.mytown-towns-toolbar .mytown-home-tabs {
    margin-bottom: 0;
    width: min(100%, 720px);
}

.mytown-towns-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto 24px;
}

.mytown-towns-search__field {
    position: relative;
    flex: 1 1 240px;
    min-width: 0;
}

.mytown-towns-search__field i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #6b5344;
    pointer-events: none;
}

.mytown-towns-search__field input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px 0 44px;
    border-radius: 999px;
    border: 2px solid #2d1a0c;
    background: rgba(255, 249, 235, 0.94);
    color: #3d2914;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 2px 0 #2d1a0c;
    outline: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.mytown-towns-search__field input:focus {
    background: #fff9eb;
    box-shadow: 0 2px 0 #2d1a0c, 0 0 0 3px rgba(63, 122, 72, 0.18);
}

.mytown-towns-search__field input::placeholder {
    color: #9a7b66;
}

.mytown-towns-search__submit,
.mytown-towns-search__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.mytown-towns-search__submit {
    border: 2px solid #2d1a0c;
    background: linear-gradient(145deg, #5fa56b, #3f7a48);
    color: #fff;
    box-shadow: 0 2px 0 #2d1a0c;
}

.mytown-towns-search__submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.mytown-towns-search__clear {
    border: 2px dashed #2d1a0c;
    background: rgba(255, 249, 235, 0.72);
    color: #5c4030;
}

.mytown-towns-search__clear:hover {
    transform: translateY(-1px);
    background: #fff9eb;
    border-style: solid;
    color: #3d2914;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mytown-towns-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    text-align: center;
}

.mytown-towns-pagination__inner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 2px solid #2d1a0c;
    background: rgba(255, 249, 235, 0.94);
    box-shadow: 0 3px 0 #2d1a0c;
}

.mytown-towns-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #3d2914;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mytown-towns-pagination__btn:hover:not(.is-active) {
    background: rgba(63, 122, 72, 0.12);
    color: #2d6a38;
    transform: translateY(-1px);
}

.mytown-towns-pagination__btn.is-active {
    background: linear-gradient(145deg, #5fa56b, #3f7a48);
    color: #fff;
    box-shadow: 0 2px 0 #2d1a0c;
    cursor: default;
}

.mytown-towns-pagination__summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(45, 26, 12, 0.18);
    background: rgba(255, 249, 235, 0.82);
    font-size: 0.875rem;
    color: #6b5344;
}

.mytown-towns-pagination__summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #3d2914;
}

.mytown-towns-pagination__summary-badge i {
    color: #3f7a48;
}

.mytown-towns-pagination__summary-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c4a882;
    flex-shrink: 0;
}

.mytown-towns-pagination__summary-count {
    font-weight: 600;
}

@media (max-width: 640px) {
    .mytown-home-actions {
        flex-direction: column;
        width: 100%;
    }

    .mytown-home-view-all-btn,
    .mytown-home-build-btn {
        width: 100%;
        max-width: 320px;
    }

    .mytown-towns-toolbar {
        justify-content: center;
    }

    .mytown-towns-toolbar .mytown-home-tabs {
        width: 100%;
        min-width: 0;
    }

    .mytown-home-tabs--page {
        min-width: 0;
    }

    .mytown-home-tabs--page .tab-btn {
        padding: 12px 16px;
        font-size: 0.92rem;
    }

    .mytown-towns-search {
        width: 100%;
        max-width: none;
    }
}

.home-section--popular.courses {
    --home-grid-color: rgba(15, 23, 42, 0.05);
    background: #ffffff;
}

.home-section--new.courses {
    --home-grid-color: rgba(59, 130, 246, 0.07);
    background:
        radial-gradient(circle at 8% 80%, rgba(59, 130, 246, 0.08), transparent 32%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.home-section--teachers.teachers {
    --home-grid-color: rgba(37, 99, 235, 0.08);
    background:
        radial-gradient(circle at 90% 24%, rgba(96, 165, 250, 0.14), transparent 38%),
        linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.home-section--about.about-section {
    --home-grid-color: rgba(245, 158, 11, 0.08);
    background:
        radial-gradient(circle at 12% 70%, rgba(251, 191, 36, 0.12), transparent 36%),
        linear-gradient(180deg, #fffbeb 0%, #fff7ed 55%, #fafafa 100%);
}

.home-section--features.features-section {
    --home-grid-color: rgba(139, 92, 246, 0.09);
    background:
        radial-gradient(circle at 82% 12%, rgba(167, 139, 250, 0.14), transparent 34%),
        linear-gradient(180deg, #faf5ff 0%, #f5f3ff 50%, #f8fafc 100%);
}

@media (max-width: 768px) {
    .home-section__prop {
        opacity: 0.26;
        max-height: 28vh;
    }

    .home-section__prop--size-xs { width: clamp(28px, 8vw, 40px); }
    .home-section__prop--size-sm { width: clamp(36px, 10vw, 52px); }
    .home-section__prop--size-md { width: clamp(48px, 12vw, 72px); }
    .home-section__prop--size-lg { width: clamp(60px, 14vw, 88px); }
    .home-section__prop--size-xl { width: clamp(72px, 16vw, 104px); }

    .home-section__prop--ml,
    .home-section__prop--mr,
    .home-section__prop--tc,
    .home-section__prop--bc,
    .home-section__prop--cr {
        display: none;
    }

    .home-section__grid-lines {
        background-size: 28px 28px;
        opacity: 0.4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-section__prop {
        animation: none;
    }
}

/* =====================================================================
   Yasal sayfalar ve çerez bildirimi
   ===================================================================== */

.legal-page-body {
    background: #f8fafc;
    color: var(--text);
}

.legal-page-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.legal-page-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.legal-page-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.legal-page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legal-page-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    background: #f1f5f9;
}

.legal-page-nav a.is-active,
.legal-page-nav a:hover {
    color: var(--primary-dark);
    background: rgba(109, 93, 252, 0.12);
}

.legal-page-main {
    padding: 40px 0 80px;
}

.legal-page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.legal-page-content h1 {
    margin: 0 0 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.legal-page-updated {
    margin: 0 0 24px;
    font-size: 0.88rem;
    color: var(--muted);
}

.legal-page-prose h2 {
    margin: 28px 0 10px;
    font-size: 1.15rem;
    color: var(--text);
}

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

.legal-page-prose p,
.legal-page-prose li {
    color: var(--muted);
    line-height: 1.65;
}

.legal-page-prose ul {
    margin: 0 0 16px;
    padding-left: 1.25rem;
}

.cookie-consent {
    position: fixed;
    inset: auto 16px 16px 16px;
    z-index: 10050;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-consent--hidden {
    display: none;
}

.cookie-consent__panel {
    pointer-events: auto;
    width: min(560px, 100%);
    padding: 18px 20px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
}

.cookie-consent__title {
    margin: 0 0 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.cookie-consent__text {
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cookie-consent__btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.cookie-consent__btn--accept {
    background: linear-gradient(160deg, var(--primary-dark), var(--primary));
    color: #fff;
    box-shadow: 0 10px 24px rgba(63, 77, 99, 0.22);
}

.cookie-consent__btn--reject {
    background: #f1f5f9;
    color: var(--text);
}

.cookie-consent__link {
    margin-left: auto;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .cookie-consent__link {
        margin-left: 0;
        width: 100%;
    }

    .legal-page-content {
        padding: 24px 18px;
    }
}

/* =====================================================================
   Ana sayfa — mobil menü, container, hero, scroll-top
   ===================================================================== */

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-dark);
    transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nav-backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

body.nav-open {
    overflow: hidden;
}

/* Yukarı çık */
.scroll-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 9980;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #5b4fe8 0%, #7c6df0 55%, #9b8cff 100%);
    color: #fff;
    cursor: pointer;
    box-shadow:
        0 4px 0 rgba(63, 55, 140, 0.35),
        0 14px 32px rgba(91, 79, 232, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.92);
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1),
        box-shadow 0.2s ease;
}

.scroll-top__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.1rem;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    box-shadow:
        0 4px 0 rgba(63, 55, 140, 0.35),
        0 18px 40px rgba(91, 79, 232, 0.5);
    filter: brightness(1.06);
}

.scroll-top:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 8px 20px rgba(91, 79, 232, 0.35);
}

.scroll-top.show:active {
    transform: translateY(2px) scale(0.98);
}

@media (max-width: 991px) {
    html {
        scroll-padding-top: 88px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-header .header-inner {
        flex-wrap: nowrap;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: min(300px, calc(100vw - 40px));
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: calc(76px + env(safe-area-inset-top, 0px)) 16px 24px;
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: -12px 0 48px rgba(15, 23, 42, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden;
    }

    .main-nav.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .main-nav a,
    .main-nav .nav-item,
    .main-nav .btn-code-entry,
    .main-nav .btn-primary,
    .main-nav .btn-nav-reset {
        width: 100%;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .main-nav .nav-item span {
        display: inline;
    }

    /* Hero — tam ekran yükseklik, küçük tipografi */
    .hero.home-section--hero,
    .home-section--hero.hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100svh;
        min-height: 100dvh;
        padding-top: calc(88px + env(safe-area-inset-top, 0px));
        padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .hero .container {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        gap: 28px;
    }

    .hero-kicker {
        margin-bottom: 12px;
        padding: 7px 12px;
        font-size: 0.72rem;
    }

    .hero h1 {
        margin-bottom: 14px;
        font-size: clamp(1.65rem, 7.5vw, 2.35rem);
        line-height: 1.08;
        letter-spacing: -0.04em;
    }

    .hero p {
        margin-bottom: 20px;
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons a,
    .hero-buttons .btn-secondary {
        min-height: 46px;
        padding: 12px 18px !important;
        font-size: 0.88rem !important;
    }

    .hero-visual {
        min-height: auto;
        max-height: 36vh;
    }

    .hero-image {
        max-height: 32vh;
        object-fit: contain;
    }

    .hero-visual--below .hero-image--wide {
        max-height: 28vh;
    }

    .stats-grid,
    .courses-grid,
    .teachers-grid,
    .core-units-grid,
    .shared-grid--units,
    .shared-grid--courses {
        grid-template-columns: 1fr;
    }

    .shared-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .section-search {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
    }

    .content-tabs.shared-tabs {
        max-width: none;
        width: 100%;
    }

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

    .scroll-top {
        width: 48px;
        height: 48px;
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
    }
}

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

    .main-header {
        top: 10px;
        left: 12px;
        right: 12px;
        padding: 8px 0;
    }

    .main-header .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .logo-main {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

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

    .section-header h2 {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-card {
        min-height: auto;
        padding: 16px;
    }

    .stat-card h3 {
        font-size: 1.6rem;
    }
}

/* Ana sayfa — kaydırmayla yükleme placeholder */
.home-lazy-section {
    position: relative;
}

.home-lazy-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--lazy-min-h, 320px);
    padding: 48px 24px;
}

.home-lazy-placeholder__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(148, 163, 184, 0.06) 0%,
        rgba(148, 163, 184, 0.06) 40%,
        rgba(148, 163, 184, 0.14) 50%,
        rgba(148, 163, 184, 0.06) 60%,
        rgba(148, 163, 184, 0.06) 100%
    );
    background-size: 200% 100%;
    animation: home-lazy-shimmer 1.4s ease-in-out infinite;
    pointer-events: none;
}

.home-lazy-placeholder__label {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--text-muted, #64748b);
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.home-lazy-section--error .home-lazy-placeholder__shimmer {
    animation: none;
    background: rgba(239, 68, 68, 0.06);
}

.home-lazy-section--error .home-lazy-placeholder__label {
    color: #b91c1c;
}

@keyframes home-lazy-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}