/* Parent portal (veli.html) */
.portal-shell { min-height: 100vh; background: var(--cream); }
.portal-top { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 30; }
.portal-top .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.portal-top .logo img { height: 54px; }
.portal-top .user { display: flex; align-items: center; gap: 10px; font-family: var(--tf); font-weight: 600; }
.portal-top .user .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; }
.portal-nav { background: var(--teal); }
.portal-nav .container { display: flex; gap: 4px; overflow-x: auto; }
.portal-nav a { color: #e3f5f4; padding: 14px 18px; font-family: var(--tf); font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; display: flex; gap: 8px; align-items: center; }
.portal-nav a.active, .portal-nav a:hover { color: #fff; border-color: var(--yellow); background: rgba(255,255,255,.08); }
.portal-main { padding: 28px 0 60px; }
.pcard { background: #fff; border-radius: 22px; box-shadow: 0 10px 30px rgba(17,98,95,.06); padding: 22px; margin-bottom: 20px; }
.pcard h2 { font-size: 22px; margin-bottom: 4px; } .pcard .sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.kid-switch { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.kid-chip { display: flex; gap: 10px; align-items: center; background: #fff; border: 2px solid transparent; border-radius: 40px; padding: 6px 16px 6px 6px; cursor: pointer; font-family: var(--tf); font-weight: 600; box-shadow: 0 6px 16px rgba(0,0,0,.05); }
.kid-chip .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--orange)); color: #fff; display: grid; place-items: center; font-size: 13px; }
.kid-chip.active { border-color: var(--orange); }
.kid-chip small { display: block; font-family: var(--bf); font-weight: 400; color: var(--muted); font-size: 11px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.mini-stat { background: var(--cream); border-radius: 16px; padding: 16px; display: flex; gap: 12px; align-items: center; }
.mini-stat i { width: 46px; height: 46px; border-radius: 14px; color: #fff; display: grid; place-items: center; font-size: 18px; }
.mini-stat b { display: block; font-family: var(--tf); font-size: 22px; } .mini-stat small { color: var(--muted); font-size: 12px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { padding: 10px 12px; border-bottom: 1px solid var(--smoke); text-align: left; }
.ptable th { font-family: var(--tf); font-weight: 600; color: var(--teal-deep); font-size: 13px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.b-green { background: #e5f6ea; color: #1e8e3e; } .b-red { background: #fde8ea; color: var(--red); } .b-orange { background: #fff1dc; color: #d9801a; } .b-blue { background: #e3f1fb; color: #1d7bc4; } .b-grey { background: #eef1f3; color: #5f6c72; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dn { text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; }
.cal .d { aspect-ratio: 1; border-radius: 12px; background: var(--cream); display: grid; place-items: center; font-size: 13px; position: relative; }
.cal .d.geldi { background: #d4f5d9; color: #1e6b33; font-weight: 600; } .cal .d.gelmedi { background: #fde8ea; color: var(--red); font-weight: 600; } .cal .d.muaf { background: #eef1f3; }
.cal .d.today { outline: 2px solid var(--orange); }
.cal .d.empty { background: transparent; }
.msg-thread { background: var(--cream); border-radius: 16px; padding: 14px; max-height: 420px; overflow-y: auto; }
.bubble { background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; max-width: 80%; font-size: 14px; }
.bubble.me { margin-left: auto; background: var(--teal); color: #fff; }
.bubble small { display: block; opacity: .7; font-size: 11px; margin-top: 4px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--smoke); flex-wrap: wrap; }
.pay-row b { font-family: var(--tf); } .pay-row .amt { font-family: var(--tf); font-size: 18px; color: var(--title); }
.notice { background: #e3f5f4; border-left: 4px solid var(--teal); padding: 12px 14px; border-radius: 12px; font-size: 13px; color: var(--teal-deep); margin-bottom: 14px; }
.notice.warn { background: #fff6d6; border-color: var(--yellow); color: #8a6000; }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.duyuru { border-left: 4px solid var(--red); background: var(--cream); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.duyuru small { color: var(--muted); display: block; margin-bottom: 4px; }
.event { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--smoke); }
.event .date { width: 56px; height: 56px; border-radius: 14px; background: var(--orange); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--tf); font-weight: 600; line-height: 1.05; }
.event .date small { font-size: 10px; font-weight: 500; }

/* login */
.login-wrap { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 30px 16px; background: var(--teal); position: relative; overflow: hidden; }
.login-box { width: 100%; max-width: 420px; background: #fff; border-radius: 26px; padding: 32px; box-shadow: 0 30px 60px rgba(0,0,0,.2); position: relative; z-index: 2; }
.login-box h1 { font-size: 24px; text-align: center; } .login-box p { text-align: center; color: var(--muted); font-size: 13px; margin-top: 0; }
.login-box label { font-size: 12px; font-weight: 600; display: block; margin: 12px 0 4px; }
.login-box input { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-family: var(--bf); font-size: 15px; background: #f1f7fb; }
.login-box .btn { width: 100%; justify-content: center; margin-top: 18px; }
.login-box .hint { font-size: 11px; color: var(--muted); background: var(--smoke); border-radius: 10px; padding: 8px 10px; margin-top: 14px; }
.modal-bg { position: fixed; inset: 0; background: rgba(10,40,40,.55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal-box { background: #fff; border-radius: 22px; width: 100%; max-width: 460px; padding: 24px; }
.modal-box h3 { font-size: 20px; }
.modal-box input, .modal-box select, .modal-box textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-family: var(--bf); font-size: 14px; margin-bottom: 10px; }
.modal-box .row { display: flex; gap: 10px; } .modal-box .row > * { flex: 1; }

/* surveys */
.anket-q { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.anket-opts { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 14px; }
.anket-opts label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.anket-q textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-family: var(--bf); font-size: 14px; resize: vertical; }
