/* IQSOFT AI Tutor – az eStudy „Ocean” megjelenésére építve */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 400 800; font-display: swap; src: url(fonts/bricolage-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 400 800; font-display: swap; src: url(fonts/bricolage-latin.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; }
:root { --bg1: #1e40af; --bg2: #2563eb; --accent: #a3e635; --accent-ink: #1c2d05; --ink: #172554; --muted: rgba(255,255,255,.82); --glass: rgba(255,255,255,.1); --glass-b: rgba(255,255,255,.25); --line: #cbd5e1; --soft: #f1f5f9; --slate: #475569; --shadow: 0 10px 30px rgba(2,6,23,.35); --font: "Bricolage Grotesque", "Trebuchet MS", sans-serif; }
* { box-sizing: border-box; }
html { background: var(--bg1); color-scheme: light; }
body { margin: 0; min-height: 100vh; color: #fff; font-family: var(--font); font-size: 16px; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg1), var(--bg2)); }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); } a:hover { color: #d9f99d; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #fde047; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; }
.wrap.wide { max-width: 1400px; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.badge { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.grow { flex: 1 1 0; min-width: 0; }
.lang { display: flex; background: var(--glass); border: 1px solid var(--glass-b); border-radius: 100px; padding: 3px; gap: 2px; }
.lang button { border: 0; background: transparent; color: #fff; font-weight: 700; font-size: 13px; padding: 10px 14px; border-radius: 100px; min-height: 44px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--bg1); }
.chip { display: inline-flex; align-items: center; background: var(--glass); border: 1px solid var(--glass-b); border-radius: 100px; padding: 7px 14px; font-size: 13px; font-weight: 700; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; cursor: pointer; background: #fff; color: var(--bg1); border-radius: 100px; padding: 12px 22px; font-size: 15px; font-weight: 800; text-decoration: none; min-height: 46px; }
.btn:hover { color: var(--bg1); transform: translateY(-1px); }
.btn.accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 22px rgba(163,230,53,.4); }
.btn.blue { background: var(--bg1); color: #fff; }
.btn.line { background: #fff; color: var(--bg1); border-color: var(--bg1); }
.btn.ghost { background: var(--glass); color: #fff; border-color: var(--glass-b); }
.btn.small { padding: 8px 14px; font-size: 13.5px; min-height: 44px; }
.btn.danger { background: #fff; color: #9a3412; border-color: #9a3412; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.linkbtn { background: none; border: 0; color: var(--bg1); font-weight: 700; cursor: pointer; padding: 10px 4px; min-height: 44px; text-decoration: underline; }
.card { background: #fff; color: var(--ink); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.glass { background: var(--glass); border: 1px solid var(--glass-b); border-radius: 16px; padding: 16px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label, .lbl { font-size: 13px; font-weight: 700; color: #334155; }
.field input, .field select, .field textarea, .input { font-size: 15px; padding: 11px 12px; border: 2px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; min-width: 0; width: 100%; }
.field textarea { line-height: 1.5; resize: vertical; }
.note { font-size: 13px; line-height: 1.5; color: var(--slate); }
.err { background: #ffedd5; border: 2px solid #9a3412; color: #431407; border-radius: 12px; padding: 10px 14px; font-size: 14.5px; font-weight: 600; }
.okbox { background: #ecfccb; border: 2px solid #4d7c0f; color: #1c2d05; border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }
.pill { display: inline-block; border-radius: 100px; padding: 4px 11px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: #e2e8f0; color: var(--ink); }
.pill.green { background: #ecfccb; color: #1c2d05; } .pill.blue { background: #dbeafe; color: #1e3a8a; } .pill.orange { background: #ffedd5; color: #431407; } .pill.violet { background: #ede9fe; color: #3b0764; } .pill.yellow { background: #fef9c3; color: #422006; }
.foot { padding: 30px 0 0; font-size: 13px; color: var(--muted); }
[hidden] { display: none !important; }

/* belépés */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 30px 0 20px; }
.hero h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 800; line-height: 1.08; letter-spacing: -.5px; margin-top: 18px; }
.lead { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 560px; margin-top: 16px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 28px; max-width: 560px; }
.steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.steps b { display: block; font-size: 15px; margin-top: 10px; } .steps span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.login { flex: 1 1 340px; max-width: 440px; }
.login img { height: 150px; display: block; margin: 0 0 -18px auto; position: relative; }
.login form { display: flex; flex-direction: column; gap: 14px; }

/* kurzusok */
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding-top: 16px; }
.course { border-radius: 24px; padding: 24px; border: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.course .k { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; }
.course h3 { font-size: 23px; font-weight: 800; line-height: 1.15; }
.bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.25); overflow: hidden; } .bar i { display: block; height: 8px; background: var(--accent); }
.bar.dark { background: #e2e8f0; width: 90px; } .bar.dark i { background: var(--bg1); }

/* tanóra */
.stepper { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 16px; }
.stepper span { border-radius: 100px; padding: 8px 14px; font-size: 13px; font-weight: 700; background: var(--glass); border: 1px solid var(--glass-b); }
.stepper .done { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stepper .now { background: #fff; color: var(--bg1); border-color: #fff; }
.lesson { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.chat { flex: 1 1 400px; min-width: 0; background: var(--glass); border: 1px solid var(--glass-b); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 12px; height: calc(100vh - 150px); min-height: 560px; }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 4px; }
.m { display: flex; gap: 10px; align-items: flex-end; }
.m img { width: 38px; height: 42px; object-fit: contain; flex: none; }
.bub { border-radius: 18px 18px 18px 4px; padding: 12px 16px; font-size: 15px; line-height: 1.5; max-width: 88%; background: #fff; color: var(--ink); overflow-wrap: anywhere; }
.bub p + p, .bub ul { margin-top: 8px; } .bub ul { padding-left: 20px; margin-bottom: 0; }
.m.me { justify-content: flex-end; } .m.me .bub { background: var(--accent); color: var(--accent-ink); border-radius: 18px 18px 4px 18px; max-width: 80%; font-weight: 500; }
.typing { font-style: italic; opacity: .8; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { background: var(--glass); border: 1px solid var(--glass-b); color: #fff; font-size: 13px; font-weight: 700; border-radius: 100px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-width: 0; font-size: 15px; padding: 12px 14px; border-radius: 16px; border: 2px solid #fff; background: #fff; color: var(--ink); resize: none; }
.board { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; min-height: 560px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { font-size: 14px; font-weight: 800; border-radius: 100px; padding: 10px 16px; min-height: 44px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { border-color: var(--bg1); background: var(--bg1); color: #fff; }
.panel { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.frame { flex: 1; width: 100%; min-height: 440px; border: 0; border-radius: 16px; background: #0f172a; }
.frame.deck { background: #f6fafc; aspect-ratio: 16 / 10; }
.slideimg { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.native { flex: 1; background: var(--bg1); color: #fff; border-radius: 16px; padding: 32px; }
.native h3 { font-size: 28px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; } .native p { font-size: 17px; line-height: 1.6; white-space: pre-line; }
.empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--slate); padding: 30px; border: 2px dashed var(--line); border-radius: 16px; }
.qtext { font-size: 20px; font-weight: 800; line-height: 1.3; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: center; text-align: left; font-size: 16px; font-weight: 600; border-radius: 14px; padding: 13px 16px; min-height: 52px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.opt[aria-pressed="true"] { border-color: var(--bg1); background: #dbeafe; }
.opt.right { border: 3px solid #4d7c0f; background: #ecfccb; } .opt.wrong { border: 3px solid #9a3412; background: #ffedd5; }
.qrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.qrow span { flex: 1 1 240px; font-weight: 600; } .qrow select { flex: 0 1 260px; padding: 10px; border: 2px solid var(--line); border-radius: 10px; font-size: 15px; min-height: 44px; background: #fff; color: var(--ink); }
.ord { display: flex; gap: 8px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px; font-weight: 600; }
.ord span { flex: 1; } .ord button { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--ink); font-weight: 800; cursor: pointer; }
.qtable { border-collapse: collapse; font-size: 14.5px; } .qtable th, .qtable td { border: 1px solid var(--line); padding: 7px 12px; text-align: center; } .qtable th { background: var(--soft); }
.qvis { max-width: 100%; max-height: 300px; border: 1px solid var(--line); border-radius: 12px; align-self: flex-start; }
.pre { white-space: pre-line; }

/* admin */
.admin { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.side { flex: 1 1 200px; max-width: 240px; background: var(--glass); border: 1px solid var(--glass-b); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.side a { display: block; padding: 13px 14px; border-radius: 12px; font-size: 15px; font-weight: 700; text-decoration: none; color: #fff; }
.side a[aria-current="page"] { background: #fff; color: var(--bg1); }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.head h1 { font-size: 32px; font-weight: 800; letter-spacing: -.3px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpis b { display: block; font-size: 30px; font-weight: 800; margin-top: 4px; } .kpis span { font-size: 13px; color: var(--muted); font-weight: 700; }
.tbl { overflow-x: auto; } .tbl table { width: 100%; border-collapse: collapse; min-width: 620px; }
.tbl th { text-align: left; padding: 10px 12px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); border-bottom: 2px solid #e2e8f0; }
.tbl td { padding: 12px; font-size: 14.5px; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.sec { display: flex; flex-direction: column; gap: 14px; }
.sec > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.sec .num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; flex: none; }
.sec h2 { font-size: 20px; font-weight: 800; } .sec .sub { font-size: 13.5px; color: var(--slate); }
.dir { border: 2px solid #e2e8f0; border-radius: 16px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.dir.off { opacity: .55; } .dir .body { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; } .dir .txt { font-size: 15.5px; line-height: 1.5; white-space: pre-line; }
.box { background: var(--soft); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; min-height: 44px; } .check input { width: 20px; height: 20px; accent-color: var(--bg1); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.conv { max-height: 520px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; background: var(--soft); border-radius: 16px; padding: 14px; }
.conv div { font-size: 14px; line-height: 1.5; padding: 8px 12px; border-radius: 12px; background: #fff; white-space: pre-line; } .conv .u { background: #ecfccb; align-self: flex-end; max-width: 85%; } .conv .e { background: #e2e8f0; font-size: 12.5px; }
dialog { border: 0; border-radius: 24px; padding: 24px; max-width: 640px; width: calc(100% - 32px); color: var(--ink); box-shadow: var(--shadow); } dialog::backdrop { background: rgba(2,6,23,.6); }
code.pw { font-size: 18px; font-weight: 800; background: var(--soft); padding: 6px 12px; border-radius: 10px; user-select: all; }
@media (max-width: 900px) { .chat { height: auto; min-height: 480px; } .msgs { max-height: 50vh; } .side { max-width: none; flex-direction: row; flex-wrap: wrap; } }
.box > .field, .sec > .field, form > .field, dialog .field { flex: 0 0 auto !important; }
.check input { flex: none; }
.tbl td input[type="text"], .tbl td input[type="number"] { font-size: 14.5px; padding: 9px 10px; border: 2px solid var(--line); border-radius: 10px; color: var(--ink); width: 100%; min-width: 90px; min-height: 44px; }
