/* Fatih Mektebi — görsel çizgi (v3 §13, afiş üslubu)
   Renkler: koyu petrol #0B3D44 · turkuaz #0EAEA6 · altın #C89440 · açık altın #F3D78E · açık zemin #EEF4F4 · beyaz
   Yazı: Saira / Saira Condensed (yerel dosyalardan) */

@font-face { font-family: 'Saira'; font-weight: 400; font-display: swap; src: url(../assets/fonts/saira-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Saira'; font-weight: 400; font-display: swap; src: url(../assets/fonts/saira-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Saira'; font-weight: 500; font-display: swap; src: url(../assets/fonts/saira-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Saira'; font-weight: 500; font-display: swap; src: url(../assets/fonts/saira-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Saira'; font-weight: 600; font-display: swap; src: url(../assets/fonts/saira-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Saira'; font-weight: 600; font-display: swap; src: url(../assets/fonts/saira-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Saira'; font-weight: 700; font-display: swap; src: url(../assets/fonts/saira-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Saira'; font-weight: 700; font-display: swap; src: url(../assets/fonts/saira-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Saira Condensed'; font-weight: 600; font-display: swap; src: url(../assets/fonts/saira-condensed-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Saira Condensed'; font-weight: 600; font-display: swap; src: url(../assets/fonts/saira-condensed-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Saira Condensed'; font-weight: 700; font-display: swap; src: url(../assets/fonts/saira-condensed-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Saira Condensed'; font-weight: 700; font-display: swap; src: url(../assets/fonts/saira-condensed-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Saira Condensed'; font-weight: 800; font-display: swap; src: url(../assets/fonts/saira-condensed-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Saira Condensed'; font-weight: 800; font-display: swap; src: url(../assets/fonts/saira-condensed-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --petrol: #0B3D44; --petrol-2: #134F58; --turkuaz: #0EAEA6; --turkuaz-koyu: #0A7A74; --turkuaz-acik: #7FE0D9;
  --altin: #C89440; --altin-acik: #F3D78E; --altin-koyu: #8A5E12; --altin-metin: #7A4F0A;
  --zemin: #EEF4F4; --beyaz: #FFFFFF; --murekkep: #12333A; --soluk: #4A6369; --cizgi: #D5E3E3; --cizgi-2: #B9CFCF;
  --kirmizi: #A8322D;
  color-scheme: light;
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; height: 100%; }
body { background: #DCE7E7; color: var(--murekkep); font: 15px/1.5 'Saira', system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--turkuaz-koyu); }
:focus-visible { outline: 3px solid var(--turkuaz); outline-offset: 2px; }

/* telefon gövdesi: telefonda tam ekran, bilgisayarda ortada telefon genişliği */
.govde { max-width: 430px; min-height: 100dvh; margin: 0 auto; background: var(--zemin); display: flex; flex-direction: column; position: relative; box-shadow: 0 0 0 1px #c9d8d8, 0 20px 60px rgba(11,61,68,.12); }
@media (max-width: 460px) { .govde { box-shadow: none; } body { background: var(--zemin); } }

.yogun { font-family: 'Saira Condensed', 'Saira', sans-serif; }
.etiket { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--turkuaz-koyu); text-transform: uppercase; }
.etiket.acik { color: var(--turkuaz-acik); }
.soluk { color: var(--soluk); }
.kucuk { font-size: 12px; line-height: 1.45; }

/* üst bant */
.ust { flex-shrink: 0; background: var(--petrol); color: #fff; padding: 20px 20px 22px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.ust.buyuk { padding-bottom: 72px; gap: 16px; }
.ust .halka { position: absolute; right: -90px; top: -70px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(200,148,64,.45); pointer-events: none; }
.ust .satir { display: flex; justify-content: space-between; align-items: center; position: relative; gap: 8px; }
.kapsul { border: 1px solid var(--altin); border-radius: 999px; padding: 6px 14px; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--altin-acik); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yuvarlak { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: #fff; background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; }
.baslik-satiri { display: flex; align-items: center; gap: 12px; position: relative; flex-wrap: wrap; }
.baslik-satiri h1 { margin: 0; font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 36px; line-height: 1; text-transform: uppercase; }
.vurgu { display: inline-block; background: var(--turkuaz); color: var(--petrol); font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 30px; line-height: 1; padding: 5px 12px; transform: rotate(-2deg); box-shadow: 4px 4px 0 var(--altin); text-transform: uppercase; }
.vurgu.orta { font-size: 26px; }

/* kartlar ve düğmeler */
.icerik { flex: 1; display: flex; flex-direction: column; padding-bottom: 24px; }
.kart { background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.kart.altin { border-color: var(--altin); }
.kart.koyu { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.blok { margin: 14px 16px 0; }
.dugme { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; font-size: 15px; font-weight: 700; text-decoration: none; border: none; background: var(--petrol); color: #fff; width: 100%; padding: 0 16px; }
.dugme.ikincil { background: #fff; color: var(--petrol); border: 1px solid var(--petrol); }
.dugme.kucuk { min-height: 44px; font-size: 14px; border-radius: 10px; }
.dugme:disabled { opacity: .45; cursor: not-allowed; }
.alan { display: flex; flex-direction: column; gap: 6px; }
.girdi { min-height: 48px; padding: 12px; border: 1px solid var(--cizgi-2); border-radius: 10px; background: #fff; font-size: 16px; width: 100%; }
.girdi:focus { border-color: var(--petrol); outline: none; box-shadow: 0 0 0 3px rgba(14,174,166,.25); }
.hata { color: var(--kirmizi); font-size: 13px; font-weight: 600; }

/* kod kutuları */
.kod { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.kod .hane { height: 56px; border: 1px solid var(--cizgi-2); border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 26px; color: var(--petrol); }
.kod .hane.dolu, .kod .hane.imlec { border-color: var(--petrol); }
.kod .hane.imlec { box-shadow: 0 0 0 3px rgba(14,174,166,.25); }
.kod input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; font-size: 16px; }

/* giriş */
.giris-ust { padding: 44px 24px 40px; gap: 18px; }
.giris-ust .filigran { position: absolute; right: -70px; top: 36px; width: 210px; height: auto; opacity: .9; pointer-events: none; }
.giris-ust .logo { width: 96px; height: auto; position: relative; }
.giris-ust h1 { font-size: 46px; }
.giris-ust .vurgu { font-size: 38px; }
.logo-bandi { margin-top: auto; flex-shrink: 0; border-top: 4px solid var(--turkuaz); background: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-around; gap: 10px; }
.logo-bandi img { height: auto; }
.logo-bandi .ayrac { width: 1px; height: 48px; background: #C5D3D3; }

/* deneme hesapları listesi */
.hesaplar { display: flex; flex-direction: column; gap: 6px; }
.hesaplar button { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; background: var(--zemin); border: 1px solid var(--cizgi); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.hesaplar button span:last-child { font-size: 11px; color: var(--soluk); white-space: nowrap; }

/* öğrenci ana sayfa */
.avatar { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--altin); background: var(--petrol-2); color: var(--altin-acik); display: flex; align-items: center; justify-content: center; font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 24px; }
.ad { margin: 0; font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; text-transform: uppercase; }
.ad.uzun { font-size: 34px; }
.cubuk { height: 8px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.cubuk > div { height: 100%; border-radius: 999px; background: var(--altin-acik); }
.cubuk.acik { height: 10px; background: #DDE9E9; }
.cubuk.acik > div { background: var(--turkuaz); }
.hasat { margin: -52px 16px 0; background: #fff; border: 1px solid var(--cizgi); border-radius: 16px; padding: 18px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.buyuk-sayi { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 48px; line-height: 1; color: var(--petrol); }
.uclu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--cizgi); padding-top: 14px; }
.uclu > div { display: flex; flex-direction: column; gap: 4px; }
.uclu > div + div { border-left: 1px solid var(--cizgi); padding-left: 14px; }
.orta-sayi { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 24px; line-height: 1; color: var(--petrol); white-space: nowrap; }
.ikili { margin: 14px 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.karo { background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; text-align: left; color: var(--murekkep); }
.karo.koyu { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.karo .deger { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 32px; line-height: 1; color: var(--petrol); }
.karo.koyu .deger { color: var(--altin-acik); }
.uyari-karti { margin: 10px 16px 0; border-radius: 12px; padding: 12px 14px; border: 1px solid var(--altin); background: #FFF8E6; color: var(--altin-metin); font-size: 13px; line-height: 1.45; }
.uyari-karti b { color: var(--murekkep); }

/* alt menü */
.alt-menu { position: sticky; bottom: 0; z-index: 5; flex-shrink: 0; margin-top: auto; background: #fff; border-top: 1px solid var(--cizgi); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 8px calc(14px + env(safe-area-inset-bottom)); }
.alt-menu button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 48px; justify-content: center; color: var(--soluk); background: none; border: none; font-size: 11px; font-weight: 600; padding: 0; }
.alt-menu button.secili { color: var(--petrol); font-weight: 700; }
.alt-menu .arti { width: 40px; height: 40px; border-radius: 50%; background: var(--turkuaz); color: var(--petrol); display: flex; align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--altin); margin-top: -22px; }

/* yer tutucu */
.liste { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }

/* deneme düğmesi ve paneli */
.deneme-dugmesi { position: fixed; z-index: 20; right: max(12px, calc(50vw - 215px + 12px)); bottom: calc(96px + env(safe-area-inset-bottom)); background: var(--altin); color: var(--petrol); border: 2px solid #fff; border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 800; letter-spacing: .12em; box-shadow: 0 6px 20px rgba(11,61,68,.25); }
.perde { position: fixed; inset: 0; z-index: 30; background: rgba(11,61,68,.45); display: flex; justify-content: center; align-items: flex-end; }
.panel { width: 100%; max-width: 760px; max-height: 92dvh; background: var(--zemin); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.panel-ust { background: var(--petrol); color: #fff; padding: 14px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.sekmeler { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sekmeler button { flex: none; background: none; border: none; color: #CFE3E3; padding: 10px 12px; font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; }
.sekmeler button.secili { color: #fff; border-bottom-color: var(--turkuaz); }
.panel-icerik { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.panel h3 { margin: 0; font-size: 15px; font-weight: 700; }
.satirlar { display: flex; flex-direction: column; gap: 6px; }
.satirlar .s { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--cizgi); }
.satirlar .s:last-child { border-bottom: none; }
.dugmeler { display: flex; flex-wrap: wrap; gap: 8px; }
.dugmeler .dugme { width: auto; flex: 1 1 120px; }
.tablo-kap { overflow-x: auto; background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; }
table.tablo { border-collapse: collapse; width: 100%; font-size: 13px; }
.tablo th, .tablo td { padding: 8px 10px; border-bottom: 1px solid var(--cizgi); text-align: left; white-space: nowrap; }
.tablo th { font-size: 11px; letter-spacing: .06em; color: var(--soluk); background: #F6FAFA; position: sticky; top: 0; }
.tablo td.sayi, .tablo th.sayi { text-align: right; font-variant-numeric: tabular-nums; }
.tablo tr.ben td { background: #FFF8E6; }
.tablo tr.tik { cursor: pointer; }
.tablo tr.tik:hover td { background: #F0F7F7; }
.isaret { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.isaret.uyari { background: #FFF1CC; color: var(--altin-metin); }
.isaret.dustu { background: #F9DEDC; color: var(--kirmizi); }
.isaret.iyi { background: #D9F3F1; color: var(--turkuaz-koyu); }
.isaret.notr { background: #E6EEEE; color: var(--soluk); }
.form-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.form-izgara label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--soluk); }
.form-izgara input, .form-izgara select, .panel select, .panel input[type=number], .panel input[type=text] { min-height: 40px; border: 1px solid var(--cizgi-2); border-radius: 8px; background: #fff; padding: 6px 8px; font-size: 16px; }
.sonuc { border-radius: 10px; padding: 10px 12px; font-size: 13px; background: #D9F3F1; color: var(--petrol); }
.sonuc.olumsuz { background: #FFF1CC; color: var(--altin-metin); }
details.katlanir { background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; }
details.katlanir > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 14px; list-style: none; }
details.katlanir > summary::-webkit-details-marker { display: none; }
details.katlanir > summary::after { content: '＋'; float: right; color: var(--soluk); }
details.katlanir[open] > summary::after { content: '－'; }
details.katlanir > div { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.vazife-satiri { display: grid; grid-template-columns: minmax(0, 1fr) 88px 88px; gap: 8px; align-items: center; font-size: 13px; }
.vazife-satiri input { width: 100%; }
.vazife-satiri.baslik { font-size: 11px; color: var(--soluk); letter-spacing: .06em; }

@media (prefers-reduced-motion: no-preference) {
  .panel { animation: yuksel .18s ease-out; }
  @keyframes yuksel { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
}
details.katlanir > div.form-izgara { display: grid; }
