:root {
    --bg: #eef5ff;
    --card: #ffffff;
    --text: #132238;
    --muted: #5d6c82;
    --primary: #1f5fbf;
    --primary-dark: #15458a;
    --accent: #ffcc40;
    --success: #2e9d57;
    --danger: #c74343;
    --shadow: 0 18px 40px rgba(17, 42, 82, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}
html {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    position: relative;

    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);

    background:
        linear-gradient(
            rgba(90, 130, 190, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(90, 130, 190, 0.035) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 50% 45%,
            #f5f7ff 0%,
            #e8effc 38%,
            #dce8f9 70%,
            #d5e1f4 100%
        );

    background-size:
        45px 45px,
        45px 45px,
        100% 100%;
}

body::before {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    top: -220px;
    left: -140px;
    border-radius: 50%;
    background: rgba(134, 135, 219, 0.2);
    filter: blur(35px);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    right: -220px;
    bottom: -260px;
    border-radius: 50%;
    background: rgba(145, 130, 230, 0.14);
    filter: blur(45px);
    pointer-events: none;
    z-index: 0;
}
/*
body > * {
    position: relative;
    z-index: 1;
}*/
.math-bg {
    display: none; /* remove the floating math numbers/symbols background */
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: relative;
    z-index: 1;
    padding: 16px 24px 8px;
}

.brand-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.partner-logos {
    display: contents;
}
.header-logo-row  {
    position: relative;

    width: min(1200px, calc(100% - 80px));
    margin-left: auto;
    margin-right: auto;


    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding:16px 24px 8px;
    margin-top: 0px;
    margin-bottom: 0;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    border-radius: 16px 16px 0 0;
}

.header-logo-row  img {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    position: static;              /* absolute temizle */
    transform: none;
}
/* Logo 1 → en sola */
.header-logo-row img:first-child {
    height: 80px;
    max-width: 200px;
    margin-right: auto;
}

/* Logo 2 → en sağa */
.header-logo-row img:nth-child(2) {
    order: 99;
    margin-left: auto;
}

/* Logo 3 ve sonrası → ortada */
.header-logo-row img:nth-child(n + 3) {
      order: 0;
}
@media (max-width: 800px) {
    .header-logo-row {
        width: calc(100% - 32px);
        padding: 12px 16px 8px;
        gap: 8px 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-logo-row img:first-child {
        height: 42px;
        max-width: 120px;
        margin-right: 0;
    }
    .header-logo-row img:nth-child(2) {
        height: 30px;
        margin-left: 0;
    }
    .header-logo-row img:nth-child(n + 3) {
      height: 25px;
}
    .header-logo-row img {
        height: 30px;
        max-width: 85px;
    }
}

@media (max-width: 500px) {
    .header-logo-row {
        width: calc(100% - 20px);
        padding: 10px 10px 6px;
        gap: 6px 8px;
    }
    .header-logo-row img {
        height: 26px;
        max-width: 68px;
    }
    .header-logo-row img:first-child {
        height: 54px;
        max-width: 90px;
    }
    .header-logo-row img:nth-child(2) {
        height: 25px;
        margin-left: 0;
    }
    .header-logo-row img:nth-child(n + 3) {
      height: 20px;
}
}

.eu-logo {
    max-width: 160px;
    height: 56px;
    object-fit: contain;
}

.project-logo {
    max-width: 110px;
    height: 56px;
    object-fit: contain;
}

.partner-logos img,
.header-logo-row img {
    height: 56px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 40px;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

.card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}
#language-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    margin-left: 0;
    background: radial-gradient(
        circle at center,
        #f0f2fb 0%,
        #eceffa 35%,
        #e7eaf9 100%
    );
}
#language-screen.active {
    display: flex;
    flex-direction: column;
}
#language-screen .hero-card {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

/* =========================================================
   HERO
   ========================================================= */
.lang-hero-section {
    position: relative;
    width: 100%;
    margin-left: 0;
    height: clamp(320px, 42vh, 470px);
    min-height: 320px;
    overflow: hidden;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.lang-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    z-index: 0;
    overflow: hidden;
}
.lang-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}
.lang-hero-text {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;
    padding-left: 0;
    pointer-events: none;
}
.lang-hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 0 0 18px;
    line-height: 1.12;
    color: #1a2b4a;
    font-weight: 700;
    animation: slideDown 0.8s ease-out both;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lang-hero-text p {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
    max-width: 520px;
}

/* =========================================================
   CHOOSE SECTION
   ========================================================= */
.lang-choose-section {
    text-align: center;
    padding: 0;
    flex: 1 0 auto;                /* kalan alanı doldur */
    display: flex;
    align-items: center;           /* evleri dikeyde ortala */
    justify-content: center;
    flex-shrink: 0;
}
.lang-section-title {
    font-size: 1.6rem;
    margin: 0 0 8px;
}

/* =========================================================
   HOUSE GRID — 6 kolon zorunlu, küçük ekranlarda düşer
   ========================================================= */
.house-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    justify-content: center;
    justify-items: center;
    gap: 24px;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.house-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: grid;
    gap: 10px;
    justify-items: center;
    color: var(--text);
    transition: transform 0.25s ease;
    animation: slideUp 0.6s ease-out both;
}
.house-button:nth-child(1) { animation-delay: 0.3s; }
.house-button:nth-child(2) { animation-delay: 0.45s; }
.house-button:nth-child(3) { animation-delay: 0.6s; }
.house-button:nth-child(4) { animation-delay: 0.75s; }
.house-button:nth-child(5) { animation-delay: 0.9s; }
.house-button:nth-child(6) { animation-delay: 1.05s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}
.house-button:hover,
.house-button:focus-visible {
    transform: translateY(-10px) scale(1.08);
}
.house-svg {
    width: min(100%, 180px);
    height: auto;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}
.house-button:hover .house-svg,
.house-button:focus-visible .house-svg {
    filter: drop-shadow(0 16px 24px rgba(17, 42, 82, 0.3));
}
.house-button strong {
    display: block;
    font-size: 1.05rem;
}
.house-button span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

/* =========================================================
   FOOTER — auth ile aynı mantık
   ========================================================= */
.lang-logos-footer,
.auth-logos-footer {
    width: min(1000px, calc(100% - 80px));
    margin: auto auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
    flex-wrap: nowrap;              /* tek satır zorla */
    padding: 14px 20px;
    flex-shrink: 0;
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px 16px 0 0;
    position: relative;
}

.lang-logos-footer img,
.auth-logos-footer img {
    height: 36px;
    width: auto;
    max-width: 105px;
    object-fit: contain;
    opacity: 1;
    position: static;               
    transform: none;
}

/* EU logosu — solda, biraz daha büyük */
.lang-logos-footer img:first-child,
.auth-logos-footer img:first-child {
    height: 50px;
    max-width: 150px;
    margin-right: auto;             /* sola yapıştır */
}

/* Son logo — sağa yapıştır */
.lang-logos-footer img:nth-child(2) ,
.auth-logos-footer img:nth-child(2) {
    order: 99; 
    margin-left: auto;              /* sağa yapıştır */
}
.lang-logos-footer img:nth-child(n+3),
.auth-logos-footer img:nth-child(n+3) {
    order: 0;
}
/* =========================================================
   RESPONSIVE — 1000px altı
   ========================================================= */
@media (max-width: 1000px) {
    .house-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 24px;
    }
    .lang-hero-section {
        height: clamp(240px, 35vh, 380px);
        min-height: 240px;
    }
    .lang-hero-text h1 {
        font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    }
}

/* =========================================================
   RESPONSIVE — 800px altı (tablet/mobil)
   ========================================================= */
@media (max-width: 800px) {
    .lang-hero-section {
        height: clamp(200px, 30vh, 300px);
        min-height: 200px;
    }
    .lang-hero-text {
        width: calc(100% - 40px);
    }
    .lang-hero-text h1 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }
    .lang-hero-text p {
        font-size: 0.9rem;
    }
    .lang-choose-section {
        padding: 24px 0 32px;
    }
    .house-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 0 20px;
    }
    .house-svg {
        width: min(100%, 140px);
    }
    .house-button strong {
        font-size: 0.95rem;
    }
    .house-button span {
        font-size: 0.82rem;
    }
    .lang-logos-footer,
    .auth-logos-footer {
        width: calc(100% - 32px);
        padding: 12px 16px;
        gap: 8px 10px;
        flex-wrap: wrap;            /* mobilde sarılsın */
        justify-content: center;
    }
    .lang-logos-footer img:first-child,
    .auth-logos-footer img:first-child {
        height: 42px;
        max-width: 120px;
        margin-right: 0;           /* mobilde ortalansın */
    }
    .lang-logos-footer img:nth-child(2) ,
    .auth-logos-footer img:nth-child(2)  {
        margin-left: 0;
        order: 99;
    }
    .lang-logos-footer img,
    .auth-logos-footer img {
        height: 30px;
        max-width: 85px;
    }
}


/* =========================================================
   RESPONSIVE — 500px altı (küçük telefon)
   ========================================================= */
@media (max-width: 500px) {
    .lang-hero-section {
        height: clamp(180px, 28vh, 260px);
        min-height: 180px;
    }
    .lang-hero-text {
        width: calc(100% - 28px);
    }
    .lang-hero-text h1 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    .lang-hero-text p {
        font-size: 0.8rem;
    }
    .lang-choose-section {
        padding: 18px 0 24px;
    }
    .house-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 16px;
    }
    .house-svg {
        width: min(100%, 120px);
    }
    .house-button strong {
        font-size: 0.88rem;
    }
    .house-button span {
        font-size: 0.76rem;
        margin-top: 3px;
    }
    .lang-logos-footer,
    .auth-logos-footer {
        width: calc(100% - 20px);
        padding: 10px 10px;
        gap: 6px 8px;
        border-radius: 12px 12px 0 0;
    }
    .lang-logos-footer img,
    .auth-logos-footer img {
        height: 26px;
        max-width: 68px;
    }
    .lang-logos-footer img:first-child,
    .auth-logos-footer img:first-child {
        height: 34px;
        max-width: 90px;
    }
}

/* =========================================================
   SHORT SCREENS
   ========================================================= */
@media (max-height: 800px) and (min-width: 801px) {
    .lang-hero-section {
        height: clamp(220px, 30vh, 320px);
        min-height: 220px;
    }
    .lang-choose-section {
        padding: 24px 0 30px;
    }
    .house-svg {
        width: min(100%, 150px);
    }
}
/* =========================================================
   AUTH PAGE
   ========================================================= */
#auth-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;

    overflow-y: auto;         
    overflow-x: hidden;
    box-sizing: border-box;
    z-index: 1000;
}

.auth-page {
    position: relative;
    width: 100%;
    
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 18px 28px 0;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
    isolation: isolate;

    background:
        linear-gradient(
            rgba(90, 130, 190, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(90, 130, 190, 0.035) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 50% 45%,
            #f5f7ff 0%,
            #e8effc 38%,
            #dce8f9 70%,
            #d5e1f4 100%
        );

    background-size:
        45px 45px,
        45px 45px,
        100% 100%;
}
/* Sol üstte yumuşak ışık */
.auth-page::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;
    top: -220px;
    left: -140px;
    border-radius: 50%;
    background: rgba(134, 135, 219, 0.2);
    filter: blur(35px);

    pointer-events: none;
    z-index: -1;
}


/* Sağ altta ikinci ışık */
.auth-page::after {
    content: "";
    position: absolute;

    width: 500px;
    height: 500px;

    right: -220px;
    bottom: -260px;

    border-radius: 50%;

    background: rgba(145, 130, 230, 0.14);

    filter: blur(45px);

    pointer-events: none;
    z-index: -1;
}

/* =========================================================
   MAIN AUTH LAYOUT
   ========================================================= */
.auth-layout {
    width: min(1380px, 100%);
    flex: 1 0 auto;  
    min-height: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(380px, 1fr);     /* Eşit oran — hero daha geniş alan alır */
    gap: 32px;                  /* 22→32: sütunlar arası nefes alanı */
    padding-bottom: 20px;       /* Alt kenar boşluğu */
}

/* =========================================================
   LEFT - FORMS
   ========================================================= */
.auth-forms-col {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 0 4px;
}
.auth-back-btn {
    align-self: flex-start;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 0.78rem;
    margin-bottom: 2px;
}
.auth-heading {
    margin-bottom: 2px;
}
.auth-heading > span {
    display: block;
    margin-bottom: 4px;
    color: #2563eb;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}
.auth-heading h1 {
    margin: 0;
    color: #172033;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.15;
}
/* =========================================================
   AUTH CARDS
   ========================================================= */

.auth-card {
    padding: 17px 19px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(220, 228, 240, 0.85);
    box-shadow:
        0 8px 25px rgba(30, 55, 90, 0.07);
}
.auth-card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}
.auth-card-heading h2 {
    margin: 0 0 2px;
    color: #172033;
    font-size: 0.98rem;
}
.auth-card-heading p {
    margin: 0;
    color: #8994a6;
    font-size: 0.7rem;
}
.auth-card-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eaf2ff;
    color: #2563eb;
    font-size: 0.9rem;
}
.login-icon {
    background: #eef1f6;
    color: #4b5568;
}
/* =========================================================
   FORMS
   ========================================================= */
.form-grid {
    display: grid;
    gap: 9px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}
.field label {
    display: block;
    margin-bottom: 4px;
    color: #3d4859;
    font-size: 0.7rem;
    font-weight: 700;
}
.field input,
.field select {
    width: 100%;
    height: 39px;
    box-sizing: border-box;
    padding: 0 11px;
    border: 1px solid #d7e1ee;
    border-radius: 10px;
    background: #f9fbfe;
    color: #273449;
    font-size: 0.8rem;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}
.field input:focus,
.field select:focus {
    border-color: #4c83e5;
    background: #fff;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.08);
}
.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}
.auth-submit {
    min-height: 39px;
    width: 100%;
    border-radius: 10px;
    font-size: 0.8rem;
    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.15);
}
/* Status alanları çok fazla yer kaplamasın */
.auth-card .status {
    margin-top: 8px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 0.72rem;
}
button.auth-back-btn {
    background: #054acada!important;
    color: #ffffff !important;
    border-radius: 11px;
    font-size: 0.78rem;
    filter: drop-shadow(0 0px 24px rgb(255, 255, 255));;
}
button.auth-back-btn:hover {
    background-color: #0f4f2c !important;
    background: #0f4f2c !important;
    color: #ffffff !important;
}
/* =========================================================
   RIGHT - HERO
   ========================================================= */
.auth-hero {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 25px;
    color: #fff;
    box-shadow:
        0 18px 45px rgba(18, 45, 85, 0.17);
    isolation: isolate;
}
/* Fotoğraf */
.auth-hero-image {
    position: absolute;
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    object-fit: cover;
    object-position: center;
    filter: blur(0px);
    transform: scale(1.03);
    z-index: -3;
}
/* Mavi overlay */
.auth-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            145deg,
            rgba(150, 192, 247, 0.11) 0%,
            rgba(253, 251, 253, 0.233) 48%,
            rgba(237, 244, 255, 0.034) 100%
        );

    z-index: -2;
}
/* Hafif ışık efekti */
.auth-hero::before {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;
    top: -100px;
    right: -80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    filter: blur(2px);
    z-index: -1;
}
.auth-hero::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    bottom: -110px;
    left: -90px;
    border-radius: 50%;
    background: rgba(238, 239, 241, 0.16);
    filter: blur(4px);
    z-index: -1;
}
/* Hero içeriği */
.auth-hero-content {
    position: relative;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(24px, 4vw, 42px);
    margin-top: clamp(-25px, 1vw, -20px);
}
.auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 11px;
    margin-top: clamp(-5px, 1vw, 5px);
    margin-bottom: clamp(12px, 2vw, 20px);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}
.auth-hero-content h1 {
    max-width: 480px;
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.auth-hero-content h1 strong {
    display: block;
    margin-top: 5px;
    color:#1449ac;
    font-weight: 800;
}
.auth-hero-content p {
    max-width: 400px;
    margin-top: auto;
    transform: translateY(clamp(30px, 2vh, 45px));
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    line-height: 1.6;
}
.auth-hero-divider {
    width: 42px;
    height: 3px;
    margin-top: clamp(8px, 3vw, 10px);
    transform: translateY(clamp(5px, 2vh, 15px));
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.7);
}
.auth-hero-caption {
    margin-top: 0px;
    transform: translateY(clamp(30px, 2vh, 45px));
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
/* Dekoratif daireler */
.auth-hero-circle {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    pointer-events: none;
}
.auth-circle-one {
    width: 260px;
    height: 260px;
    right: -100px;
    top: 13%;
}
.auth-circle-two {
    width: 150px;
    height: 150px;
    right: 12%;
    bottom: -65px;
}
.auth-logos-footer {
    width: min(1000px, calc(100% - 80px));
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin: auto auto 0;

    padding: 12px 0;

    min-height: 0;
    justify-content: center;
    gap: 10px 14px;
}
.auth-logos-footer img {
    height: 36px;
    max-width: 105px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1300px) {
    .auth-page {
        padding: 14px 20px 0;
    }
    .auth-layout {
        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(300px, 0.9fr);
        gap: 22px;
    }
    .auth-hero {
        margin-top: 20px;
    }
    .auth-card {
        padding: 14px 16px;
    }
    .form-grid {
        gap: 7px;
    }
    .field input,
    .field select {
        height: 36px;
    }
    .auth-submit {
        min-height: 36px;
    }
}
@media (max-width: 1000px) {

    .auth-page {
        padding-left: 18px;
        padding-right: 18px;
    }
    .auth-layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(260px, 0.85fr);

        gap: 16px;
    }
    .auth-hero {
        margin-top: 14px;
    }
    .auth-hero-content {
        padding: 24px;
    }
    .auth-hero-content h1 {
        font-size: 1.7rem;
    }
    .auth-card {
        padding: 12px 14px;
    }
}
/* =========================================================
   TABLET / MOBILE
   ========================================================= */
@media (max-width: 800px) {
    .auth-page {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
        padding: 16px;
    }
    .auth-layout {
        flex: none;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .auth-hero {
        min-height: 260px;
        max-height: 320px;
        order: -1;
        margin-top: 0;
    }
    .auth-hero-content {
        min-height: 260px;
        padding: 24px;
    }
    .auth-forms-col {
        justify-content: flex-start;
    }
    .auth-logos-footer {
        width: 100%;
        margin-top: 14px;
    }
}
@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .auth-hero {
        min-height: 220px;
        max-height: 280px;
        border-radius: 18px;
    }
    .auth-hero-content h1 {
        font-size: 1.65rem;
    }
    .auth-hero-content p {
        font-size: 0.76rem;
    }
    .auth-card {
        padding: 14px;
    }
    .auth-logos-footer img {
        height: 30px;
    }
}
/* For short screens */
@media (max-height: 820px) and (min-width: 801px) {
    .auth-forms-col {
        gap: 8px;
    }
    .auth-card {
        padding: 10px 13px;
    }
    .auth-card-heading {
        margin-bottom: 8px;
    }
    .form-grid {
        gap: 6px;
    }
    .field input,
    .field select {
        height: 34px;
    }
    .auth-submit {
        min-height: 34px;
    }
    .auth-hero {
        margin-top: 10px;
    }
    .auth-heading {
        margin-bottom: 0;
    }
    .auth-heading h1 {
        font-size: 1.25rem;
    }
}

@media (max-height: 700px) and (min-width: 801px) {
    .auth-card {
        padding: 8px 12px;
    }
    .auth-card-heading {
        margin-bottom: 6px;
    }
    .form-grid {
        gap: 4px;
    }
    .field label {
        margin-bottom: 2px;
        font-size: 0.65rem;
    }
    .field input,
    .field select {
        height: 30px;
        font-size: 0.75rem;
    }
    .auth-submit {
        min-height: 30px;
        font-size: 0.75rem;
    }
    .auth-logos-footer {
        padding: 6px 0;
    }
    .auth-logos-footer img {
        height: 28px;
    }
}

.btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    min-height: 48px;
    padding: 0 18px;
    text-decoration: none;
}

.btn {
    border: 0;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn.secondary {
    background: #dde8fb;
    color: var(--text);
}

.btn.ghost {
    background: transparent;
    border: 1px solid #b7caea;
    color: var(--text);
}
#back-modules {
    background-color: rgb(0, 61, 141);
    border: none;
    color: #ffffff;
    font-size: medium;
    cursor: pointer;
}
#back-modules:hover {
    background-color: rgba(0, 61, 141, 0.575);
    color: #ffffff;
}
#exit-course:hover {
    background-color: rgb(160, 7, 7);
    color: #ffffff;
}
.btn.success {
    background: var(--success);
}

.btn.danger {
    background: var(--danger);
}

.text-link {
    color: var(--primary);
    padding: 0;
}

.status,
.notice {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #edf5ff;
    color: var(--text);
}

.status.error {
    background: #ffeaea;
    color: #8a1d1d;
}

.status.success {
    background: #e9f8ef;
    color: #16693b;
}

.course-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.sidebar {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background:
        /* Diyagonal ışık 1 */
        linear-gradient(
            45deg,
            transparent 0%,
            rgba(255, 255, 255, 0.295) 18%,
            transparent 32%
        ),

        /* Diyagonal ışık 2 */
        linear-gradient(
            65deg,
            transparent 15%,
            rgba(255, 255, 255, 0.151) 28%,
            transparent 42%
        ),

        /* Ana dikey gradient */
        linear-gradient(
            180deg,
            #084177 0%,
            #5f90ca 42%,
            #a5b4f5e1 100%
        );

    background-size:
        100% 100%,
        100% 100%,
        100% 100%;

    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}
/* Sol üst ışık */
.sidebar::before {
    content: "";
    position: absolute;

    width: 400px;
    height: 650px;

    top: -250px;
    left: -230px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0.20) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 72%
    );

    filter: blur(20px);

    pointer-events: none;
    z-index: 0;
}
/* Sağ taraftaki dairesel dekorasyon */
.sidebar::after {
    content: "";
    position: absolute;

    width: 520px;
    height: 520px;

    right: -400px;
    bottom: -360px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.16);

    box-shadow:
        0 0 0 80px rgba(255, 255, 255, 0.025),
        0 0 0 160px rgba(255, 255, 255, 0.02);

    pointer-events: none;
    z-index: -1;
}
.sidebar h3,
.sidebar p {
    margin-top: 0;
}
.module-nav {
    display: grid;
    gap: 12px;
}

.module-nav button {
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    cursor: pointer;
}

.module-nav button.active,
.module-nav button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.24);
}

.module-nav button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.progress-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: #e5eefc;
    color: var(--text);
    font-size: 0.88rem;
}

.pill.done {
    background: #daf5e3;
    color: #17633a;
}
.module-card {
    border-radius: 22px;
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 22px;
    border: 2px solid transparent;
}

.module-card.locked {
    opacity: 0.64;
}

.module-card.done {
    border-color: #c9ebd5;
}
.module-panel {
    background:
        radial-gradient(
            circle at 50% 45%,
            #ffffff 0%,
            #f4f8ff 38%,
            #eaf2fc 70%,
            #e2ecfa 100%
        );
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}
/* Module panel başlığı */
.module-panel > h2 {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #183153;
    margin: 0 0 10px 0;
}

/* Module panel açıklaması */
.module-panel > p {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 1.75rem;
    line-height: 1.6;
    font-weight: 400;
    color: #2a2d31;
    margin: 0 0 24px 0;
}
/* ===== MODULES SCREEN ===== */
#modules-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;

    overflow-y: auto;
    overflow-x: hidden;

    box-sizing: border-box;
    isolation: isolate;
}
#modules-screen .card {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
}
/* Tam sayfa arka plan */
.modules-hero {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 0;
}
.modules-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    z-index: 0;
}
/* Üst içerik */
.modules-hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;
    padding: 48px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.modules-hero-content h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    margin: 0 0 6px;
    color: #1a2b4a;
    letter-spacing: -0.02em;
}

.modules-hero-content .muted {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* Çıkış butonu */
.modules-hero-content .btn.ghost {
    white-space: nowrap;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.modules-hero-content .btn.ghost:hover {
    background: #fff;
    border-color: #94a3b8;
}

/* Modül grid */
.module-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;

    width: min(1200px, calc(100% - 80px));
    margin: clamp(150px, 32vh, 220px) auto 0;

    padding-bottom: 260px;

    position: relative;
    z-index: 2;
}
/* Modül kartları */
.module-card-colored {
    border-radius: 20px;
    background: var(--mc-color, #fbbf24);
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.178);
    padding: 24px 20px;
    border: none;
    color: #1a1a2e;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 260px;
}

.module-card-colored:not(.locked):hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.527);
}

.module-card-colored.locked {
    opacity: 0.5;
    filter: grayscale(0.2);
}

.module-card-colored.done {
    opacity: 0.8;
}
/* =========================================
   ALMANCA MODÜL KARTLARI
   ========================================= */

.module-grid.lang-de {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}
.module-grid.lang-de .module-card-colored {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
}

.module-grid.lang-de .module-card-colored h3 {
    font-size: 0.83rem;
    line-height: 1.35;
    min-height: 2.7em;
    margin: 0;
}

.module-grid.lang-de .module-card-colored p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.module-grid.lang-de .module-card-colored .btn {
    margin-top: auto;
    width: 100%;
}

.module-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    font-size: 1.15rem;
    font-weight: 800;
    color: inherit;
    flex-shrink: 0;
}

.module-card-colored h3 {
    margin: 4px 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.module-card-colored p {
    margin: 0;
    font-size: 0.82rem;
    opacity: 0.7;
    line-height: 1.45;
    flex-grow: 1;
}

.module-card-colored .btn {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 12px;
    min-height: 42px;
    padding: 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.module-card-colored .btn:hover:not(:disabled) {
    background: rgba(255, 253, 253, 0.911);
    border-color: rgba(255, 255, 255, 0.35);
}

.module-card-colored .btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.module-card-colored .btn.secondary {
    background: rgba(255, 255, 255, 0.5);
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Footer */
.modules-footer {
    position: relative;

    width: min(1200px, calc(100% - 80px));

    margin: auto auto 0;

    box-sizing: border-box;

    z-index: 3;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 24px;
    flex-wrap: wrap;

    padding: 18px 40px;

    border-top: 1px solid rgba(203, 213, 225, 0.6);

    background: rgba(255, 255, 255, 0.65);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    border-radius: 16px 16px 0 0;

    flex-shrink: 0;
}

.modules-footer img {
    height: clamp(28px, 4vw, 44px);
    max-width: clamp(60px, 8vw, 110px);
    width: auto;
    object-fit: contain;
    opacity:1;
}
/* Logo 1 → en sola */
.modules-footer img:first-child {
    height: clamp(32px, 5vw, 60px);
    max-width: clamp(80px, 12vw, 180px);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Logo 2 → en sağa */
.modules-footer img:nth-child(2) {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Logo 3 ve sonrası → ortada */
.modules-footer img:nth-child(n + 3) {
    position: relative;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .module-grid,
    .module-grid.lang-de {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        margin-top: clamp(150px, 25vh, 220px);
    }

    .modules-footer {
        width: min(1000px, calc(100% - 50px));
    }
}
@media (max-height: 750px) {
    .module-grid {
        margin-top: 120px;
        gap: 14px;
        padding-bottom: 20px;
    }

    .module-card-colored {
        min-height: 200px;
        padding: 16px 14px;
    }

    .modules-hero-content {
        padding: 24px 0 10px;
    }

    .modules-hero-content h2 {
        font-size: 1.3rem;
    }

    .modules-footer {
        margin-top: 20px;
        padding: 14px 25px;
    }
}
@media (max-width: 850px) {
    .module-grid,
    .module-grid.lang-de {              /* ← EKLENDİ: lang-de dahil */
        grid-template-columns: repeat(2, 1fr);
        width: calc(100% - 40px);
        gap: 16px;
    }
    .module-card-colored {
        min-height: 220px;
        padding: 20px 16px;
    }
    .modules-footer img:first-child,
    .modules-footer img:nth-child(2) {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
    }

    .modules-footer img:first-child {
        height: 44px;
    }
}
@media (max-width: 720px) {
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: clamp(70px, 15vh, 150px);
    }

    .modules-footer img:first-child,
    .modules-footer img:nth-child(2) {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
    }
}

@media (max-width: 480px) {
    .module-grid,
    .module-grid.lang-de{
        grid-template-columns: 1fr;

        width: calc(100% - 28px);

        margin-top: 130px;

        gap: 14px;
    }

    .module-card-colored {
        min-height: 180px;
        padding: 18px 16px;
    }

    .modules-footer {
        width: calc(100% - 28px);

        padding: 14px 12px;

        gap: 12px;
    }

    .modules-footer img {
        height: 30px;
        max-width: 90px;
    }
}
.tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 18px;
}

.tab-row button {
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    background: #e5eefc;
    cursor: pointer;
}

.tab-row button.active {
    background: var(--primary);
    color: #fff;
}
button[data-tab]:disabled,
#audio-done:disabled,
#visual-done:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.content-box,
.quiz-box {
    background: #f7fbff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #dbe8fb;
}

.content-box {
    overflow: auto;
}

.content-paged {
    min-height: 200px;
}

.content-box p {
    line-height: 1.6;
    margin: 0 0 14px;
}

.course-html-content img.course-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 8px;
}

.course-html-content img.content-img {
    max-width: min(100%, 400px);
    height: auto;
    display: block;
    margin: 12px auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.content-imgs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.content-imgs img.content-img {
    flex: 0 1 auto;
    max-width: min(100%, 360px);
    margin: 0;
}

/* Uniform large sizing ONLY for build-generated course content images */
img.course-page-img {
    width: 100%;
    max-width: 720px;
    height: auto !important;
    display: block;
    margin: 16px auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.course-html-content h1,
.course-html-content h2,
.course-html-content h3,
.course-html-content h4 {
    margin: 20px 0 10px;
    line-height: 1.3;
}

.course-html-content ul,
.course-html-content ol {
    padding-left: 24px;
    margin: 0 0 14px;
}

.course-html-content li {
    line-height: 1.6;
    margin-bottom: 6px;
}

.media-summary-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

.media-full-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media-full-player {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.media-full-player audio {
    width: 100%;
}

.media-full-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: block;
}

.media-full-text p + p {
    margin-top: 14px;
}

.media-card,
.summary-card,
.leaderboard-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #dbe8fb;
    padding: 20px;
}

.media-card,
.visual-card {
    text-align: center;
}

.media-card audio {
    width: 100%;
}

.visual-card img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.summary-card p + p {
    margin-top: 14px;
}

.quiz-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.timer-pill {
    min-width: 120px;
    text-align: center;
    background: #fff;
    border: 1px solid #dbe8fb;
    border-radius: 18px;
    padding: 12px 16px;
}

.timer-pill span,
.leaderboard-table th {
    color: var(--muted);
    font-size: 0.9rem;
}

.timer-pill strong {
    display: block;
    margin-top: 4px;
    font-size: 1.4rem;
}

.quiz-question + .quiz-question {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #d7e4f8;
}

.quiz-options {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    border: 2px solid transparent;
}

.quiz-option.correct {
    border-color: #a8dfba;
    background: #effbf3;
}

.quiz-option.wrong {
    border-color: #efb2b2;
    background: #fff1f1;
}

.question-feedback {
    margin-top: 12px;
    border-radius: 14px;
    padding: 12px 14px;
}

.question-feedback.success {
    background: #e9f8ef;
    color: #16693b;
}

.question-feedback.error {
    background: #ffeaea;
    color: #8a1d1d;
}

.quiz-actions {
    margin-top: 20px;
}

/* Content pagination */
.content-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.page-indicator {
    font-weight: 600;
    color: var(--muted);
    min-width: 100px;
    text-align: center;
}

/* Quiz one-per-screen */
.quiz-one-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz-progress-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.quiz-multi-hint {
    font-size: 0.88rem;
    margin: -8px 0 8px;
}

.quiz-question-single h4 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    line-height: 1.4;
}

.quiz-btn-options {
    display: grid;
    gap: 12px;
}

.quiz-btn-option {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 2px solid #d0e3fa;
    border-radius: 14px;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.4;
    transition: background 0.15s, border-color 0.15s;
}

.quiz-btn-option:hover:not(:disabled) {
    background: #eaf2ff;
    border-color: var(--primary);
}

.quiz-btn-option.selected {
    border-color: var(--primary);
    background: #eaf2ff;
    color: var(--primary-dark);
}

.quiz-btn-option.correct {
    border-color: #2e9d57;
    background: #effbf3;
    color: #1a5e36;
}

.quiz-btn-option.wrong {
    border-color: #c74343;
    background: #fff1f1;
    color: #8a1d1d;
}

.quiz-btn-option:disabled {
    cursor: not-allowed;
}

.quiz-one-actions {
    display: flex;
    justify-content: flex-end;
}

/* Quiz review */
.quiz-review {
    margin-top: 20px;
    display: grid;
    gap: 14px;
}

.quiz-review-item {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #d0e3fa;
    background: #fff;
    line-height: 1.5;
}

.quiz-review-item.correct {
    border-color: #a8dfba;
    background: #f1fbf5;
}

.quiz-review-item.wrong {
    border-color: #efb2b2;
    background: #fff5f5;
}

.review-correct {
    color: #16693b;
    display: block;
    margin-top: 4px;
}

.review-wrong {
    color: #8a1d1d;
    display: block;
    margin-top: 4px;
}

.leaderboard-card h3 {
    margin-top: 0;
}

.leaderboard-table-wrap {
    overflow: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e4eefb;
    text-align: left;
}

#final-screen .hero-card {
        background:
        radial-gradient(
            circle at 50% 45%,
            #ffffff 0%,
            #f4f8ff 38%,
            #eaf2fc 70%,
            #e2ecfa 100%
        );
} 
#final-screen .final-actions{
        background:
        radial-gradient(
            circle at 50% 45%,
            #ffffff 0%,
            #f4f8ffa9 38%,
            #eaf2fc 70%,
            rgba(185, 186, 238, 0.2) 100%
        );
}
.certificate-card {
    display: grid;
    gap: 16px;
}

.certificate-preview {
    width: 100%;
    border-radius: 18px;
    border: 1px solid #dbe8fb;
    box-shadow: var(--shadow);
}

.final-actions {
    display: grid;
    gap: 16px;
}

.download-card {
background: radial-gradient(
    circle at 50% 45%,
    #f4f7ff 0%,
    #e8eefb 55%,
    #dfe6f8 100%
);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #dbe8fb;
}

@media (max-width: 980px) {
    .course-layout {
        grid-template-columns: 1fr;
    }

    .media-summary-grid,
    .quiz-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding-inline: 16px;
    }

    .page-shell {
        width: min(100% - 20px, 1200px);
    }

    .card,
    .module-panel,
    .sidebar {
        padding: 20px;
    }

    .quiz-header {
        align-items: stretch;
        flex-direction: column;
    }
}
