:root {
    --bg-deep: #0a0e17;
    --bg-mid: #121a2b;
    --gold: #c9a227;
    --gold-bright: #e8c547;
    --gold-dim: rgba(201, 162, 39, 0.35);
    --text: #f4f0e6;
    --text-muted: rgba(244, 240, 230, 0.55);
    --province-default: #1e2d45;
    --province-stroke: #2a3f5c;
    --province-active: #c9a227;
    --province-glow: rgba(232, 197, 71, 0.65);
    --glass: rgba(18, 26, 43, 0.72);
    --glass-border: rgba(201, 162, 39, 0.22);
    --radius: 16px;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-ui: "Outfit", system-ui, sans-serif;
    --transition: 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    --header-avatar: clamp(148px, 18vw, 240px);
    --header-logos: clamp(100px, 12vw, 160px);
    --map-max-height: 56vh;
    --map-scale: 0.92;
    --map-pos: 65;
    --map-shift: 4.8vw;
    --header-name: clamp(2rem, 5vw, 4rem);
    --header-prefix: clamp(1.1rem, 2.4vw, 1.75rem);
    --header-city: clamp(1.05rem, 2vw, 1.4rem);
    --header-faculty: clamp(0.7rem, 1.1vw, 0.85rem);
    --header-padding-y: 1.5rem;
    --gap-city-map: clamp(1.25rem, 2.8vh, 2.25rem);
    --ambient-glow: rgba(201, 162, 39, 0.08);
}

/* Boyut değişkenleri yalnızca JS (applyPresentationLayout) ile body üzerinde ayarlanır */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-ui);
    background: var(--bg-deep);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.ambient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, var(--ambient-glow) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(40, 80, 140, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 35% at 85% 15%, rgba(180, 60, 80, 0.06) 0%, transparent 45%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
    pointer-events: none;
    z-index: 0;
}

.grain {
    position: fixed;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* —— Öğrenci başlığı —— */
.student-header {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: var(--header-padding-y) 3rem calc(0.65rem + var(--gap-city-map));
    flex-shrink: 0;
    min-width: 0;
    overflow: visible;
    transition: padding 0.35s ease;
}

.student-photo-wrap {
    position: relative;
    width: var(--header-avatar);
    height: var(--header-avatar);
    flex-shrink: 0;
    align-self: center;
    transition: width 0.35s ease, height 0.35s ease;
}

.student-photo,
.student-photo-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow:
        0 0 0 4px rgba(201, 162, 39, 0.15),
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 60px var(--gold-dim);
}

.student-photo {
    object-fit: cover;
}

.student-photo[hidden],
.student-photo-placeholder[hidden] {
    display: none !important;
}

.student-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--bg-mid), var(--bg-deep));
    color: var(--gold-dim);
}

.student-photo-placeholder .photo-icon {
    width: 45%;
    height: 45%;
}

.student-photo-wrap.is-loading .student-photo-placeholder {
    display: flex !important;
}

.student-photo-wrap.is-loading .student-photo-placeholder .photo-icon {
    display: none;
}

.photo-loader {
    width: 42%;
    height: 42%;
    border-radius: 50%;
    border: 3px solid rgba(201, 162, 39, 0.2);
    border-top-color: var(--gold);
    animation: photo-spin 0.75s linear infinite;
    box-shadow: 0 0 24px var(--gold-dim);
}

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

/* Tam ekran dokunma / tıklama bölgeleri */
.fs-nav-zone {
    display: none;
    position: fixed;
    z-index: 40;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body.is-fullscreen .fs-nav-zone {
    display: block;
}

.fs-nav-next {
    bottom: 0;
    right: 0;
    width: min(38vw, 280px);
    height: min(28vh, 200px);
}

.fs-nav-prev {
    bottom: 0;
    left: 0;
    width: min(38vw, 280px);
    height: min(28vh, 200px);
}

.fs-nav-zone:active {
    background: radial-gradient(circle at center, rgba(201, 162, 39, 0.12), transparent 70%);
}

@media (hover: hover) {
    body.is-fullscreen .fs-nav-next:hover {
        background: radial-gradient(circle at 85% 85%, rgba(201, 162, 39, 0.1), transparent 65%);
    }

    body.is-fullscreen .fs-nav-prev:hover {
        background: radial-gradient(circle at 15% 85%, rgba(201, 162, 39, 0.1), transparent 65%);
    }
}

.student-info {
    min-width: 0;
    text-align: center;
    justify-self: center;
    align-self: center;
    width: 100%;
    max-width: 52rem;
    padding: 0.25rem 0.5rem;
    overflow: visible;
}

.faculty-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
    font-size: var(--header-faculty);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-fakulte, var(--gold));
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.faculty-line {
    display: block;
}

.student-name {
    font-family: var(--font-display);
    font-size: var(--header-name);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
    transition: opacity var(--transition);
    overflow: visible;
    padding: 0.1em 0 0.22em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.04em;
}

.name-prefix {
    font-size: var(--header-prefix);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-unvan, var(--gold));
    -webkit-text-fill-color: var(--color-unvan, var(--gold));
    white-space: nowrap;
    line-height: 1.05;
}

.name-prefix[hidden] {
    display: none;
}

.name-text {
    font-size: 1em;
    line-height: 1.06;
    white-space: nowrap;
    display: block;
    max-width: 100%;
    color: var(--color-isim, var(--text));
    padding-bottom: 0.1em;
    overflow: visible;
}

.student-city {
    margin-top: 0.35rem;
    font-size: var(--header-city);
    color: var(--color-il, var(--gold-bright));
    font-weight: 400;
    letter-spacing: 0.04em;
}

.student-city:empty {
    display: none;
}

.header-logos {
    --logo-badge-size: calc((var(--header-logos) - 0.45rem) / 2);
    flex: 0 0 auto;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    align-self: start;
    justify-self: end;
    gap: 0.45rem;
    width: var(--header-logos);
    max-width: var(--header-logos);
    height: var(--header-logos);
    max-height: var(--header-logos);
    min-width: 0;
    /* Rozet parıltısı kenarlardan kesilmesin */
    overflow: visible;
    transition: width 0.35s ease, height 0.35s ease;
}

.header-logo-badge {
    flex: 0 0 var(--logo-badge-size);
    width: var(--logo-badge-size);
    height: var(--logo-badge-size);
    max-width: var(--logo-badge-size);
    max-height: var(--logo-badge-size);
    min-width: 0;
    min-height: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem;
    border: 2px solid var(--gold);
    box-shadow:
        0 0 0 3px rgba(201, 162, 39, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 32px var(--gold-dim);
    background: rgba(10, 14, 23, 0.35);
    overflow: hidden;
}

.header-logo-badge img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* —— Harita —— */
.map-stage {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gap-city-map) clamp(1.25rem, 3vw, 2.5rem) 1rem;
    min-height: 0;
}

.map-frame {
    position: relative;
    width: min(
        calc(84vw * var(--map-scale, 1)),
        calc(1180px * var(--map-scale, 1)),
        calc(var(--map-max-height, 56vh) * var(--map-aspect, 2.37) * var(--map-scale, 1))
    );
    max-height: calc(var(--map-max-height, 56vh) * var(--map-scale, 1));
    aspect-ratio: var(--map-aspect, 2.37);
    margin: 0 auto;
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.map-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-glow {
    position: absolute;
    inset: 5%;
    background: radial-gradient(ellipse at center, var(--gold-dim) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

body.has-active-province .map-glow {
    opacity: 1;
}

.turkey-map {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.turkey-map svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.45));
}

#province-base,
#province-highlight {
    pointer-events: none;
}

#adana-overlay {
    pointer-events: none;
}

#adana-overlay .adana-beam {
    stroke: var(--gold-bright);
    stroke-width: 1.8;
    stroke-linecap: round;
    opacity: 0.9;
    filter: drop-shadow(0 0 8px var(--province-glow));
    stroke-dasharray: 8 7;
    animation: adana-beam-flow 1.4s linear infinite;
}

#adana-overlay .adana-marker-ring {
    fill: rgba(0, 0, 0, 0.25);
    stroke: var(--gold);
    stroke-width: 1.4;
}

#adana-overlay .adana-marker-logo {
    filter: drop-shadow(0 0 8px var(--gold-dim));
}

.turkey-map path {
    fill: var(--province-default);
    stroke: var(--province-stroke);
    stroke-width: 0.6;
    transition: fill var(--transition), stroke var(--transition), opacity var(--transition);
    cursor: default;
}

/* Parlama: CSS filter yerine SVG katmanı (iOS Safari / tablet uyumlu) */
#province-highlight path.province-glow {
    fill: var(--province-active);
    fill-opacity: 0.45;
    stroke: var(--gold-bright);
    stroke-width: 3.5;
    stroke-opacity: 0.55;
    paint-order: stroke fill;
    filter: url(#provinceGlowFilter);
    animation: province-glow-pulse 2.5s ease-in-out infinite;
}

#province-highlight path.is-active {
    fill: var(--province-active);
    stroke: var(--gold-bright);
    stroke-width: 1.35;
    paint-order: stroke fill;
    filter: none;
    animation: province-active-pulse 2.5s ease-in-out infinite;
}

@keyframes province-glow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.95; }
}

@keyframes province-active-pulse {
    0%, 100% { stroke-width: 1.25; }
    50% { stroke-width: 1.65; }
}

@keyframes adana-beam-flow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -30; }
}

/* Masaüstü: ek CSS gölge (tabletlerde bozulduğu için kapalı) */
@media (hover: hover) and (pointer: fine) {
    #province-highlight path.province-glow {
        filter: url(#provinceGlowFilter) drop-shadow(0 0 14px var(--province-glow));
    }
}

/* Tablet / telefon: harita gölgesi SVG filtrelerini kesiyor */
@media (hover: none), (pointer: coarse) {
    .turkey-map svg {
        filter: none;
    }

    #province-highlight path.province-glow {
        filter: none;
        fill-opacity: 0.55;
        stroke-width: 5;
        stroke-opacity: 0.8;
    }
}

/* —— Kontroller —— */
.controls-bar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem 1.75rem;
    flex-shrink: 0;
    transition: opacity 0.4s, transform 0.4s;
}

body.is-fullscreen .controls-bar {
    display: none !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
}

.btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #a8841a 100%);
    color: var(--bg-deep);
    box-shadow: 0 4px 24px var(--gold-dim);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(201, 162, 39, 0.45);
}

.btn-ghost {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
}

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

.btn-danger-outline {
    background: transparent;
    color: #e88;
    border: 1px solid rgba(232, 136, 136, 0.4);
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-ui);
}

.btn-danger-outline:hover {
    background: rgba(232, 80, 80, 0.12);
}

/* Ayarlar tetikleyici — tam ekranda gizli */
.settings-trigger {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.2s;
}

.settings-trigger svg {
    width: 22px;
    height: 22px;
}

.settings-trigger:hover {
    opacity: 1;
    transform: scale(1.05);
}

body.is-fullscreen .settings-trigger,
body.is-fullscreen .modal-overlay {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* —— Modal —— */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5, 8, 14, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-wide {
    width: min(720px, 100%);
}

.modal-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.size-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    border: 1px solid var(--province-stroke);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
}

.size-option:has(input:checked) {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold-bright);
}

.size-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.student-list-order .list-actions {
    display: none;
}

.color-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.color-row label {
    flex: 1;
    margin-bottom: 0;
}

.color-row input[type="color"] {
    width: 3.5rem;
    height: 2.5rem;
    padding: 0.15rem;
    border: 1px solid var(--province-stroke);
    border-radius: 8px;
    background: var(--bg-deep);
    cursor: pointer;
}

.color-preview {
    height: 4rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--glass-border);
    background: linear-gradient(135deg, var(--bg-deep) 40%, var(--province-default) 40%, var(--province-default) 70%, var(--gold) 70%);
}

.color-error {
    font-size: 0.85rem;
    color: #e88;
    margin: 0.5rem 0 0.75rem;
}

.color-group-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin: 1.25rem 0 0.75rem;
}

.scale-row {
    display: grid;
    grid-template-columns: 1fr 3.25rem;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.85rem;
}

.scale-row label {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.scale-row input[type="range"] {
    width: 100%;
    accent-color: var(--gold);
}

.scale-value {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.scale-hint {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.color-error[hidden] {
    display: none;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    line-height: 1.4;
}

.edit-photo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    overflow: hidden;
    background: var(--bg-deep);
}

.edit-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-photo-empty {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.5rem;
}

.edit-photo-empty[hidden],
.edit-photo-preview img[hidden] {
    display: none;
}

.modal-auth {
    z-index: 250;
}

.student-list-order .order-num {
    min-width: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
}

.modal {
    width: min(560px, 100%);
    max-height: 90vh;
    background: var(--bg-mid);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-bright);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    overflow-y: auto;
    padding: 1.25rem 1.5rem 1.5rem;
}

.settings-section {
    margin-bottom: 1.75rem;
}

.settings-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 0.85rem;
}

.settings-section .hint {
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.settings-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.settings-note code {
    font-size: 0.75rem;
    color: var(--gold);
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.toggle-row input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--gold);
}

#vetHekUnvanRow.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.save-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.save-status.is-ok {
    color: #8bc98b;
}

.save-status.is-error {
    color: #e88;
}

.form-row {
    margin-bottom: 0.85rem;
}

.form-row label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--province-stroke);
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.95rem;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-save-status {
    margin: 0.75rem 0 0.5rem;
}

.form-save-status[hidden] {
    display: none !important;
}

.form-save-message {
    font-size: 0.85rem;
    color: var(--gold-bright);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.form-save-progress {
    height: 5px;
    background: var(--province-stroke);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.form-save-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
    transition: width 0.35s ease;
}

.form-save-progress-bar.is-indeterminate {
    width: 42% !important;
    animation: form-progress-slide 1.1s ease-in-out infinite;
}

@keyframes form-progress-slide {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(320%);
    }
}

form.is-saving .btn-primary[type="submit"] {
    opacity: 0.75;
    cursor: wait;
}

form.is-saving .btn-primary[type="submit"]:disabled {
    pointer-events: none;
}

.student-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.student-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--bg-deep);
    border: 1px solid var(--province-stroke);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.student-list-item--order {
    cursor: default;
}

@media (hover: hover) and (pointer: fine) {
    .student-list-order .student-list-item--order:has(.drag-handle) {
        cursor: grab;
    }
}

.student-list-item.is-current {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold-dim);
}

.student-list-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.drag-handle {
    color: var(--text-muted);
    user-select: none;
    cursor: grab;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0.25rem;
}

.drag-handle svg {
    width: 1.35rem;
    height: 1.35rem;
}

.order-hint-touch {
    display: none;
}

.student-list-order.is-touch-reorder .order-move {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

.order-move {
    display: none;
}

.student-list-order.is-touch-reorder .student-list-item--order {
    touch-action: manipulation;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.order-move-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 7.5rem;
    min-height: 3rem;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--gold-bright);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.order-move-btn svg {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.order-move-label {
    line-height: 1;
}

.order-move-btn:active:not(:disabled) {
    transform: scale(0.98);
    background: rgba(201, 162, 39, 0.2);
    border-color: var(--gold);
}

.order-move-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

@media (hover: none), (pointer: coarse) {
    .order-hint-desktop {
        display: none;
    }

    .order-hint-touch {
        display: block;
    }
}

.list-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-mid);
    flex-shrink: 0;
}

.list-thumb-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--province-stroke);
    flex-shrink: 0;
}

.list-info {
    flex: 1;
    min-width: 0;
}

.list-info strong {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.list-actions {
    display: flex;
    gap: 0.35rem;
}

.list-actions button {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--province-stroke);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-ui);
}

.list-actions button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.list-actions .btn-delete:hover {
    border-color: #c55;
    color: #e88;
}

.keyboard-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

kbd {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: var(--bg-deep);
    border: 1px solid var(--province-stroke);
    font-size: 0.75rem;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    padding: 0.75rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.9rem;
    backdrop-filter: blur(12px);
    animation: toast-in 0.35s ease;
}

.toast[hidden] {
    display: none;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Geçiş animasyonu */
.student-header.is-changing .student-name,
.student-header.is-changing .student-photo,
.student-header.is-changing .student-photo-placeholder,
.student-header.is-changing .header-logo-badge img {
    opacity: 0.4;
}

@media (max-width: 768px) {
    .student-header {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        padding: 1rem 1.25rem calc(0.5rem + var(--gap-city-map));
        gap: 1rem;
    }

    .student-photo-wrap {
        grid-column: 1;
        grid-row: 1;
    }

    .header-logos {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: start;
        max-width: min(var(--header-logos), 42vw);
    }

    .student-info {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}
