/* ==========================================================================
   Sayfaya ozel parcalar: ana sayfa, basvuru, destek, hesabim, panel.
   ========================================================================== */

/* ── ana sayfa ────────────────────────────────────────────────────────── */
body.home { min-height: 100svh; display: flex; flex-direction: column; overflow-x: hidden; }
.hero-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 12, 0.55) 0%, rgba(8, 8, 12, 0) 45%),
    linear-gradient(180deg, rgba(8, 8, 12, 0.55) 0%, rgba(8, 8, 12, 0) 18%, rgba(8, 8, 12, 0) 45%, rgba(8, 8, 12, 0.92) 82%, #08080c 100%),
    url('/img/hero.webp') 50% 30% / cover no-repeat;
}
@media (max-width: 1280px) { .hero-bg { background-image: linear-gradient(90deg, rgba(8, 8, 12, 0.55) 0%, rgba(8, 8, 12, 0) 45%), linear-gradient(180deg, rgba(8, 8, 12, 0.55) 0%, rgba(8, 8, 12, 0) 18%, rgba(8, 8, 12, 0) 45%, rgba(8, 8, 12, 0.92) 82%, #08080c 100%), url('/img/hero-1280.webp'); } }

/* Masaustunde logo arka plan gorselinin icinde (sol ust); yazilar onun altinda, solda. */
.hero { flex: 1; display: flex; align-items: flex-end; padding: 0 clamp(20px, 5.2vw, 96px) clamp(28px, 6vh, 64px); }
.hero-inner { max-width: 620px; animation: rise 0.6s ease both; }
.hero-logo { display: none; }
.slogan { font-size: clamp(38px, 5vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5); }
.lead { margin-top: 14px; font-size: clamp(15px, 1.25vw, 18px); color: var(--text-2); max-width: 460px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .eyebrow { margin-bottom: 12px; }

.ribbon { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 22px; padding: 6px 12px 6px 6px; border-radius: 99px; background: rgba(8, 8, 12, 0.7); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; color: var(--text-2); text-align: left; transition: box-shadow 0.15s; }
.ribbon:hover { box-shadow: inset 0 0 0 1px rgba(236, 26, 140, 0.55); }
.ribbon-tag { flex: none; padding: 3px 10px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 800; }
.ribbon-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ribbon-more { flex: none; color: var(--faint); font-size: 12px; }
.home .footer { padding-top: 6px; }

/* Dar ekranda gorsel karakterlere kayar, logo ayrica ortada gosterilir. */
@media (max-width: 900px), (max-aspect-ratio: 5/4) {
  .hero-bg { background-position: 62% 30%; }
  .hero { justify-content: center; text-align: center; }
  .hero-inner { display: flex; flex-direction: column; align-items: center; }
  .hero-logo { display: block; width: min(300px, 70vw); margin-bottom: 8px; filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6)); }
  .hero .eyebrow { display: none; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
}

.upd-list section + section { margin-top: 18px; }
.upd-list h3 { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 18px 0 8px; }
.upd-list ul, .popup-body ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.upd-list li, .popup-body li { position: relative; padding-left: 18px; }
.upd-list li::before, .popup-body li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.upd-item p { white-space: pre-line; color: var(--text-2); }
.upd-item img { margin-top: 10px; border-radius: var(--r-sm); width: 100%; box-shadow: inset 0 0 0 1px var(--line); }
.popup-body { margin-top: 18px; padding: 16px; max-height: 60vh; overflow: auto; }

/* ── giris kapisi ─────────────────────────────────────────────────────── */
.gate { max-width: 460px; margin: 30px auto; text-align: center; padding: 36px 28px; }
.gate h2 { font-size: 21px; margin: 14px 0 6px; }
.gate p { margin-bottom: 20px; font-size: 14.5px; }
.gate-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(88, 101, 242, 0.15); color: #8f98ff; font-size: 26px; }

/* ── gorsel ekleme ────────────────────────────────────────────────────── */
.attach-prev { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.attach-prev img { width: 84px; height: 60px; object-fit: cover; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--line); }
.drag { box-shadow: inset 0 0 0 2px rgba(236, 26, 140, 0.7) !important; }

/* ── basvuru secimi ───────────────────────────────────────────────────── */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dept-card { position: relative; display: flex; flex-direction: column; padding: 26px; min-height: 250px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.dept-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(236, 26, 140, 0.4); }
.dept-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--accent, var(--brand)) 0%, transparent 70%); opacity: 0.16; }
.dept-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); color: var(--accent, var(--brand)); font-size: 24px; margin-bottom: 18px; }
.dept-card h2 { font-size: 26px; font-weight: 800; letter-spacing: 0.02em; }
.dept-card .full { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.dept-card p { color: var(--text-2); font-size: 14px; flex: 1; }
.dept-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-size: 14px; }
.dept-card .go .i { transition: transform 0.15s; }
.dept-card:hover .go .i { transform: translateX(3px); }
.dept-card .tag { position: absolute; right: 20px; top: 22px; }

/* ── basvuru formu ────────────────────────────────────────────────────── */
.apply { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.apply-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }
.apply-side .dept-ico { margin-bottom: 14px; }
.apply-side h1 { font-size: 30px; font-weight: 800; line-height: 1.1; }
.apply-side .full { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.apply-side .tl { color: var(--text-2); font-size: 14px; margin-top: 12px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.steps a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-xs); font-size: 14px; color: var(--muted); }
.steps a:hover { background: var(--sunken); color: var(--text); }
.steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; color: var(--text-2); }
.steps a.done b { background: var(--brand-soft); color: #fff; box-shadow: inset 0 0 0 1px rgba(236, 26, 140, 0.5); }
.form-section { padding: 26px 28px 10px; }
.form-section + .form-section { box-shadow: inset 0 1px 0 var(--line); }
.form-section h2 { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; margin-bottom: 20px; scroll-margin-top: 90px; }
.form-section h2 small { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; color: var(--brand); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 28px 24px; box-shadow: inset 0 1px 0 var(--line); }

.state-card { padding: 22px; }
.state-card h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 6px; }
.state-card p { color: var(--text-2); font-size: 14px; }
.state-card.big { text-align: center; padding: 44px 28px; }
.state-card.big .state-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; font-size: 28px; margin-bottom: 14px; background: var(--sunken); }
.state-card.big h3 { justify-content: center; font-size: 22px; }
.state-card.big p { max-width: 460px; margin: 6px auto 0; }
.reason { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255, 77, 94, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 77, 94, 0.28); text-align: left; }
.reason b { display: block; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.reason p { white-space: pre-line; color: var(--text); }
.reason .by { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ── destek ───────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.side-list { display: flex; flex-direction: column; gap: 4px; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.side-head h2 { font-size: 22px; font-weight: 800; }
.li { display: flex; gap: 11px; align-items: center; width: 100%; padding: 10px 12px; border-radius: var(--r-sm); text-align: left; transition: background 0.15s; }
.li:hover { background: var(--sunken); }
.li.on { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-2); }
.li-main { flex: 1; min-width: 0; }
.li-title { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-sub { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11.5px; color: var(--faint); }
.li-meta .who { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 7px; border-radius: 99px; background: var(--sunken); color: var(--text-2); }

.chat { display: flex; flex-direction: column; min-height: 560px; }
.chat-head { display: flex; gap: 14px; align-items: flex-start; padding: 20px 24px; box-shadow: inset 0 -1px 0 var(--line); }
.chat-head h2 { font-size: 19px; font-weight: 800; line-height: 1.25; }
.chat-head .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.chat-head .meta a { color: #8fb6ff; }
.chat-head .meta a:hover { text-decoration: underline; }
.chat-head .tag { margin-left: auto; flex: none; }
.chat-extra { padding: 12px 24px; display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 13px; box-shadow: inset 0 -1px 0 var(--line); }
.chat-extra dt { color: var(--faint); }
.chat-extra dd a { color: #8fb6ff; }
.chat-extra dd a + a::before { content: ' · '; color: var(--faint); }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; max-height: 62vh; overflow-y: auto; }
.msg { max-width: min(560px, 85%); display: flex; flex-direction: column; gap: 4px; }
.msg .who { font-size: 11.5px; color: var(--faint); }
.msg .bubble { padding: 11px 15px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; word-break: break-word; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.msg .bubble img { margin-top: 8px; border-radius: 9px; max-height: 320px; cursor: zoom-in; }
.msg .bubble img:first-child { margin-top: 0; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.mine .bubble { background: rgba(236, 26, 140, 0.16); box-shadow: inset 0 0 0 1px rgba(236, 26, 140, 0.35); }
.msg.staff .bubble { background: #fff; color: #17171f; box-shadow: none; }
.msg.mine.staff .bubble { background: #fff; }
.msg.internal .bubble { background: rgba(255, 181, 71, 0.09); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.4); border: 1px dashed rgba(255, 181, 71, 0.4); }
.msg.internal .who { color: var(--amber); }
.msg.first .bubble { background: var(--sunken); color: var(--text); }
.opener { padding: 16px 18px; margin: 18px 24px 0; }
.opener dt { font-size: 11.5px; color: var(--faint); margin-top: 8px; }
.opener dt:first-child { margin-top: 0; }
.opener dd { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.opener img { margin-top: 10px; border-radius: 9px; max-height: 320px; cursor: zoom-in; }

.composer { margin: 0 18px 18px; padding: 10px; border-radius: 14px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.composer-modes { display: flex; gap: 4px; margin-bottom: 8px; }
.composer-modes button { padding: 5px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.composer-modes button.on { background: rgba(255, 255, 255, 0.08); color: #fff; }
.composer-modes button.on.note { color: var(--amber); background: rgba(255, 181, 71, 0.12); }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { flex: 1; min-height: 44px; max-height: 220px; padding: 11px 6px; border: 0; outline: 0; background: transparent; resize: none; line-height: 1.5; }
.composer textarea::placeholder { color: var(--faint); }
.composer.note-mode { box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.45); }
.composer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.closed-note { margin: 0 18px 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--sunken); color: var(--muted); font-size: 14px; text-align: center; }

.new-ticket { padding: 26px 28px; }
.new-ticket h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.new-ticket > p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.cat-grid { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── hesabim ──────────────────────────────────────────────────────────── */
.profile { display: flex; align-items: center; gap: 18px; padding: 24px; }
.profile h1 { font-size: 24px; font-weight: 800; }
.profile .roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.box-title { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.box-title h2 { font-size: 16px; font-weight: 800; }
.rows { padding: 6px 8px 10px; }
.row { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: var(--r-sm); }
a.row:hover { background: var(--sunken); }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-size: 14px; }
.row-main span { font-size: 12.5px; color: var(--muted); }
.row .reason { margin-top: 8px; }
.row.col { flex-direction: column; align-items: stretch; }
.row.col > div:first-child { display: flex; gap: 12px; align-items: center; }

/* ── panel ────────────────────────────────────────────────────────────── */
body.panel { height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.panel-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px 1fr; }
.panel-side { display: flex; flex-direction: column; min-height: 0; padding: 22px 14px 14px; box-shadow: inset -1px 0 0 var(--line); background: rgba(8, 8, 12, 0.4); }
.panel-side h1 { font-size: 24px; font-weight: 800; padding: 0 8px; margin-bottom: 14px; }
.panel-side .scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.panel-main { min-height: 0; overflow-y: auto; padding: 26px 30px 40px; }
.panel-main.full { grid-column: 1 / -1; }
.seg { display: flex; gap: 3px; padding: 3px; margin: 0 4px 12px; border-radius: 11px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 4px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.seg button.on { background: rgba(255, 255, 255, 0.09); color: #fff; }
.seg .badge { min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 5px; background: rgba(255, 255, 255, 0.85); }
.panel-search { margin: 0 4px 10px; min-height: 38px; padding: 8px 12px; font-size: 13.5px; }
.panel-empty { display: grid; place-items: center; height: 100%; color: var(--faint); font-size: 14px; }

.detail-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.detail-head h2 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.detail-head .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); margin-top: 3px; }
.detail-head .meta a, .linkish { color: #8fb6ff; cursor: pointer; }
.detail-head .meta a:hover, .linkish:hover { text-decoration: underline; }
.detail-head .tag { margin-left: auto; }
.qa { padding: 6px 20px; margin-bottom: 16px; }
.qa h3 { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin: 16px 0 6px; }
.qa dl > div { padding: 10px 0; box-shadow: inset 0 -1px 0 var(--line); }
.qa dl > div:last-child { box-shadow: none; }
.qa dt { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.qa dd { font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.actions { position: sticky; bottom: -40px; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 0; margin-top: 8px; background: linear-gradient(transparent, rgba(8, 8, 12, 0.9) 30%); padding-bottom: 14px; }
.timeline { list-style: none; padding: 4px 20px 14px; }
.timeline li { position: relative; padding: 10px 0 10px 20px; font-size: 13.5px; }
.timeline li::before { content: ''; position: absolute; left: 3px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.timeline li.reject::before { background: var(--red); }
.timeline li.approve::before { background: var(--green); }
.timeline li.interview::before { background: var(--blue); }
.timeline li.note::before { background: var(--amber); }
.timeline .when { color: var(--faint); font-size: 12px; margin-left: 6px; }
.timeline .nt { margin-top: 4px; color: var(--text-2); white-space: pre-wrap; }
.section-title { font-size: 13px; font-weight: 800; color: var(--text-2); margin: 22px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips button { padding: 6px 11px; border-radius: 99px; font-size: 12.5px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.chips button:hover { box-shadow: inset 0 0 0 1px var(--line-2); color: #fff; }

.panel-chat { display: flex; flex-direction: column; height: 100%; }
.panel-chat .msgs { max-height: none; padding: 18px 0; }
.panel-chat .composer { margin: 0; }
.panel-chat .opener { margin: 0 0 4px; }
.panel-main.chat-mode { display: flex; flex-direction: column; padding-bottom: 20px; }

.upd-form { max-width: 760px; }
.upd-form textarea.input { min-height: 120px; }
.upd-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 12px; }
.upd-opts .date { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.upd-opts .date .input { min-height: 36px; padding: 6px 10px; width: auto; }
.upd-opts .btn-primary { margin-left: auto; }
.upd-admin { max-width: 760px; margin-top: 26px; }
.upd-admin .row { align-items: flex-start; }
.upd-admin .row p { white-space: pre-line; font-size: 14px; }
.upd-admin .row img { margin-top: 8px; max-height: 120px; border-radius: 8px; }

.noaccess { max-width: 480px; margin: 60px auto; text-align: center; }

@media (max-width: 980px) {
  .dept-grid { grid-template-columns: 1fr; }
  .apply, .split, .grid-2 { grid-template-columns: 1fr; }
  .apply-side { position: static; }
  .apply-side .steps { display: none; }
  body.panel { height: auto; overflow: visible; }
  .panel-body { grid-template-columns: 1fr; }
  .panel-side { box-shadow: inset 0 -1px 0 var(--line); max-height: 46vh; }
  .panel-main { overflow: visible; padding: 20px 16px 40px; }
  .actions { bottom: 0; }
}
@media (max-width: 760px) {
  .form-section { padding: 20px 18px 6px; }
  .form-foot { padding: 16px 18px 20px; }
  .chat-head, .msgs { padding-left: 16px; padding-right: 16px; }
  .composer, .closed-note { margin: 0 10px 12px; }
  .opener { margin: 14px 16px 0; }
  .chat-extra { padding: 12px 16px; grid-template-columns: 1fr; }
  .new-ticket { padding: 20px 18px; }
}
.state-card.big .reason p { max-width: none; margin: 0; }

/* ── kurallar / aydinlatma ─────────────────────────────────────────────── */
.rules { max-width: 860px; margin: 0 auto; }
.rules h1 { font-size: 26px; font-weight: 800; }
.rules section { margin-top: 22px; }
.rules section h2 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.rules section p { color: var(--muted); white-space: pre-line; line-height: 1.65; }
.rule-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 22px; padding: 4px; border-radius: 14px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; max-width: 100%; }
.rule-tabs button { padding: 7px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.rule-tabs button:hover { color: var(--text); }
.rule-tabs button.on { background: var(--brand-soft); color: #fff; box-shadow: inset 0 0 0 1px rgba(236, 26, 140, 0.4); }

/* panel: kural duzenleyici */
.rule-edit { max-width: 860px; margin: 0 auto; }
.rule-sec { padding: 16px; margin-bottom: 12px; }
.rule-sec .head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.rule-sec .head .input { font-weight: 700; }
.rule-sec textarea.input { min-height: 90px; }
