/* ==========================================================================
   Aly Bayi Portalı — premium tasarım sistemi
   ========================================================================== */

:root {
    --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "SFMono-Regular", monospace;

    --brand-1: #6366f1;
    --brand-2: #8b5cf6;
    --brand-3: #06b6d4;
    --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
    --grad-soft: linear-gradient(135deg, rgba(99,102,241,.14), rgba(168,85,247,.14));

    --bg: #f4f5fb;
    --surface: #ffffff;
    --surface-2: #f8f9fd;
    --border: #e6e8f2;
    --border-strong: #d5d9ea;
    --text: #151a33;
    --text-2: #4a5073;
    --text-3: #8187a8;
    --ring: rgba(99, 102, 241, .28);

    --success: #10b981;  --success-bg: rgba(16,185,129,.12);  --success-tx: #047857;
    --danger: #ef4444;   --danger-bg: rgba(239,68,68,.10);    --danger-tx: #b91c1c;
    --info: #0ea5e9;     --info-bg: rgba(14,165,233,.12);     --info-tx: #0369a1;
    --violet: #8b5cf6;   --violet-bg: rgba(139,92,246,.13);   --violet-tx: #6d28d9;
    --muted-bg: rgba(129,135,168,.16);

    --sidebar-w: 264px;
    --radius: 16px;
    --radius-sm: 11px;
    --shadow-sm: 0 1px 2px rgba(21,26,51,.04), 0 1px 3px rgba(21,26,51,.04);
    --shadow: 0 1px 2px rgba(21,26,51,.04), 0 8px 24px -8px rgba(21,26,51,.10);
    --shadow-lg: 0 24px 60px -18px rgba(21,26,51,.35);
}

[data-theme="dark"] {
    --bg: #0b0e1d;
    --surface: #131730;
    --surface-2: #181d3a;
    --border: #232949;
    --border-strong: #303860;
    --text: #eceffd;
    --text-2: #aab0d4;
    --text-3: #747ba3;
    --ring: rgba(139, 146, 255, .35);
    --success-tx: #34d399;
    --danger-tx: #fca5a5;
    --info-tx: #7dd3fc;
    --violet-tx: #c4b5fd;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -10px rgba(0,0,0,.55);
    --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: var(--mono); }
.icon { flex: none; vertical-align: middle; }
.muted { color: var(--text-3); }
.only-mobile { display: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; border-radius: 6px; }

/* ---------- Uygulama iskeleti ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 40;
    width: var(--sidebar-w);
    display: flex; flex-direction: column;
    padding: 20px 14px 14px;
    color: #c9cffa;
    background:
        radial-gradient(420px 260px at -10% -5%, rgba(99,102,241,.38), transparent 60%),
        radial-gradient(360px 260px at 110% 105%, rgba(168,85,247,.28), transparent 60%),
        #0c1030;
    border-right: 1px solid rgba(255,255,255,.05);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; color: #fff; }
.brand-mark {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px; color: #fff;
    background: var(--grad);
    box-shadow: 0 8px 20px -6px rgba(124, 92, 255, .8), inset 0 1px 0 rgba(255,255,255,.35);
}
.brand-mark.lg { width: 48px; height: 48px; border-radius: 14px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-size: 15px; font-weight: 500; }
.brand-text strong { font-weight: 800; letter-spacing: -.01em; }
.brand-text small { margin-top: 3px; font-size: 11px; font-weight: 500; color: #8a92d6; letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; padding-right: 2px; }
.nav-label { margin: 18px 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #656da8; }
.nav-link {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 12px;
    font-weight: 550; color: #b4bbed;
    transition: background .18s, color .18s, transform .18s;
}
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(99,102,241,.38), rgba(139,92,246,.14));
    box-shadow: inset 0 0 0 1px rgba(139,146,255,.28);
}
.nav-link.active::before {
    content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #a5b4fc, #c084fc);
}

.sidebar-foot { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.user-card {
    display: flex; align-items: center; gap: 11px; padding: 10px;
    border-radius: 14px; background: rgba(255,255,255,.05);
}
.user-card form { margin: 0 0 0 auto; }
.user-card .icon-btn { color: #aab2ee; }
.user-card .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.user-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.user-meta strong { color: #fff; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: #7d85c6; font-size: 11.5px; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 32px;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar-title { min-width: 0; }
.crumb { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.topbar-title h1 { font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.content { padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 1480px; margin: 0 auto; }

.scrim { display: none; }

[data-theme="light"] .theme-moon, [data-theme="dark"] .theme-sun { display: none; }
.theme-sun, .theme-moon { display: inline-flex; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent;
    font-weight: 600; font-size: 13.5px; white-space: nowrap; background: none;
    transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 8px 20px -8px rgba(124,92,255,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(124,92,255,1), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-1px); }
.btn-soft { color: var(--brand-1); background: var(--grad-soft); border-color: rgba(99,102,241,.18); }
[data-theme="dark"] .btn-soft { color: #b4baff; }
.btn-soft:hover { border-color: rgba(99,102,241,.4); }
.btn-ghost { color: var(--text-2); background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 8px 18px -8px rgba(239,68,68,.8); }
.btn-block { width: 100%; }
.btn-lg { height: 48px; font-size: 15px; border-radius: 13px; }

.icon-btn {
    display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2);
    transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--brand-1); border-color: var(--border); }
.icon-btn.danger:hover { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.topbar .icon-btn { border-color: var(--border); background: var(--surface); }

/* ---------- Kart ---------- */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 6px; }
.card-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card-head p { margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--brand-1); }
[data-theme="dark"] .link { color: #aab0ff; }
.link:hover { text-decoration: underline; }

/* ---------- Dashboard ---------- */
.hero-card {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 28px 32px; border-radius: 20px; color: #fff;
    background:
        radial-gradient(500px 240px at 90% -20%, rgba(255,255,255,.28), transparent 60%),
        radial-gradient(420px 260px at 0% 120%, rgba(6,182,212,.45), transparent 60%),
        var(--grad);
    box-shadow: 0 24px 50px -22px rgba(99,102,241,.75);
}
.hero-card h2 { margin: 12px 0 6px; font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.hero-card p { max-width: 560px; color: rgba(255,255,255,.85); font-size: 14.5px; }
.hero-card p strong { color: #fff; }

.badge-soft {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 650; color: var(--brand-1); background: var(--grad-soft); border: 1px solid rgba(99,102,241,.2);
}
[data-theme="dark"] .badge-soft { color: #c2c7ff; }
.badge-soft.light { color: #fff; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28); }

.hero-ring { flex: none; }
.ring {
    display: grid; place-content: center; text-align: center;
    width: 112px; height: 112px; border-radius: 50%;
    background:
        radial-gradient(closest-side, rgba(20,16,70,.55) 80%, transparent 82% 100%),
        conic-gradient(#fff calc(var(--pct) * 1%), rgba(255,255,255,.22) 0);
}
.hero-ring .ring span { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.hero-ring .ring small { font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.kpi {
    display: flex; align-items: center; gap: 14px; padding: 18px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .2s, border-color .2s;
}
a.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.kpi-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; color: #fff; }
.kpi-body { display: flex; flex-direction: column; min-width: 0; }
.kpi-body small { font-size: 12px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-body strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }

.tone-0 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.tone-1 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.tone-2 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.tone-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.tone-4 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.tone-5 { background: linear-gradient(135deg, #14b8a6, #22c55e); }

.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }

.bars { display: flex; align-items: flex-end; gap: 14px; height: 220px; padding: 18px 26px 20px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.bar { width: 100%; max-width: 54px; height: var(--h); min-height: 3px; border-radius: 10px 10px 4px 4px; background: var(--grad); box-shadow: 0 10px 20px -10px rgba(124,92,255,.8); transform-origin: bottom; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
.bar-val { font-size: 12px; font-weight: 700; color: var(--text-2); }
.bar-label { font-size: 11.5px; font-weight: 600; text-transform: capitalize; color: var(--text-3); }
@keyframes grow { from { transform: scaleY(.05); opacity: .3; } to { transform: scaleY(1); opacity: 1; } }

.hbars { list-style: none; margin: 0; padding: 14px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.hbar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 7px; font-weight: 600; }
.hbar-top strong { font-weight: 750; }
.hbar-top small { font-weight: 500; color: var(--text-3); margin-left: 4px; }
.hbar { height: 8px; border-radius: 999px; background: var(--muted-bg); overflow: hidden; }
.hbar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-3), var(--brand-1), var(--brand-2)); animation: slide .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes slide { from { width: 0; } }

/* ---------- Toolbar / Arama ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.search {
    display: flex; align-items: center; gap: 10px; flex: 1 1 280px; min-width: 220px; height: 42px; padding: 0 14px;
    border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.search:focus-within { background: var(--surface); border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--ring); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.search input::placeholder { color: var(--text-3); }

.segmented { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: block; padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: .15s; }
.segmented input:checked + span { color: #fff; background: var(--grad); box-shadow: 0 6px 14px -6px rgba(124,92,255,.9); }
.segmented input:focus-visible + span { outline: 2px solid var(--brand-1); outline-offset: 2px; }

.filter-chip {
    display: inline-flex; align-items: center; gap: 8px; margin: 14px 18px 0; padding: 6px 8px 6px 12px; border-radius: 999px;
    font-size: 13px; color: var(--violet-tx); background: var(--violet-bg); align-self: flex-start; width: fit-content;
}
.filter-chip a { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(139,92,246,.2); }
.filter-chip a:hover { background: rgba(139,92,246,.35); }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th {
    padding: 12px 18px; text-align: left; white-space: nowrap;
    font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3);
    background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--brand-1) 5%, transparent); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.actions { display: table-cell; }
td.actions > * { display: inline-flex; vertical-align: middle; margin: 0; }
.row-muted td:not(.actions):not(.keep) { opacity: .62; }

.cell-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-user a { font-weight: 600; }
.cell-user a:hover { color: var(--brand-1); }
.cell-stack { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cell-stack small { color: var(--text-3); font-size: 12px; }
.inline-ico { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.inline-ico.muted { color: var(--text-3); }
.violet-text { color: var(--violet-tx) !important; font-weight: 600; }

.avatar {
    display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
    font-size: 13px; font-weight: 750; letter-spacing: .02em; color: #fff;
}
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 11.5px; }
.user-card .avatar { border-radius: 50%; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.success { color: var(--success-tx); background: var(--success-bg); }
.chip.muted { color: var(--text-3); background: var(--muted-bg); }
.chip.violet { color: var(--violet-tx); background: var(--violet-bg); }
.chip.info { color: var(--info-tx); background: var(--info-bg); }

.code-pill {
    display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 10px; border-radius: 9px;
    font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--brand-1); background: var(--grad-soft); border: 1px solid rgba(99,102,241,.2);
}
[data-theme="dark"] .code-pill { color: #b4baff; }
.code-pill.sm { min-width: 0; height: 22px; padding: 0 7px; font-size: 11.5px; margin-right: 6px; }

code.key { padding: 3px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--text); background: var(--surface-2); border: 1px dashed var(--border-strong); }
.key-copy { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--text-3); transition: color .15s; }
.key-copy:hover { color: var(--brand-1); }
.key-copy.copied { color: var(--success); }
.key-copy.copied code.key { border-color: var(--success); border-style: solid; }

.count-link { display: inline-flex; align-items: baseline; gap: 1px; padding: 3px 10px; border-radius: 9px; font-weight: 750; color: var(--brand-1); background: var(--grad-soft); }
[data-theme="dark"] .count-link { color: #b4baff; }
.count-link small { font-weight: 600; color: var(--text-3); }
.count-link:hover { box-shadow: 0 0 0 3px var(--ring); }

.switch { position: relative; width: 42px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: var(--border-strong); transition: background .2s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); transition: transform .22s cubic-bezier(.3,1.4,.5,1); }
.switch.on { background: linear-gradient(135deg, #10b981, #06b6d4); }
.switch.on .knob { transform: translateX(18px); }
.table td form { margin: 0; }

/* ---------- Sayfalama ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); }
.pager-info { font-size: 13px; color: var(--text-3); }
.pager-info strong { color: var(--text); }
.pager-links { display: flex; gap: 4px; }
.pg { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; font-size: 13px; font-weight: 650; color: var(--text-2); border: 1px solid transparent; }
.pg:hover { background: var(--surface-2); border-color: var(--border); }
.pg.current { color: #fff; background: var(--grad); box-shadow: 0 6px 14px -6px rgba(124,92,255,.9); }

/* ---------- Boş durum ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 24px; text-align: center; }
.empty.small { padding: 28px 12px; color: var(--text-3); }
.empty h3 { font-size: 17px; font-weight: 700; }
.empty p { max-width: 380px; color: var(--text-3); margin-bottom: 8px; }
.empty-ico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 20px; color: var(--brand-1); background: var(--grad-soft); }
.empty-ico.danger { color: var(--danger); background: var(--danger-bg); }

/* ---------- Formlar ---------- */
.form-card { padding: 28px; max-width: 860px; display: flex; flex-direction: column; gap: 22px; }
.form-card.narrow { max-width: 640px; }
.form-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.form-head h3 { font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.form-head p { margin-top: 2px; color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.span-2 { grid-column: span 2; }
.form-foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border); }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > .label { font-size: 13px; font-weight: 650; color: var(--text-2); }
.input {
    width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; outline: 0;
    background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: color-mix(in srgb, var(--brand-1) 45%, var(--border-strong)); }
.input:disabled, .input[readonly] { opacity: .72; cursor: not-allowed; background: var(--muted-bg); color: var(--text-2); }
.input:focus { background: var(--surface); border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--ring); }
.input.mono { font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
select.input { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238187a8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select.select-sm { width: auto; height: 42px; min-width: 190px; }
.input.input-validation-error { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }
.field-error, .field-validation-error { min-height: 0; font-size: 12.5px; font-weight: 550; color: var(--danger-tx); }
.field-validation-valid { display: none; }

.input-action { display: flex; gap: 10px; }
.input-action .btn { height: 44px; }

.input-icon { position: relative; }
.input-icon .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: grid; pointer-events: none; }
.input-icon .input { padding-left: 44px; }
.reveal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--text-3); }
.reveal:hover, .reveal.on { color: var(--brand-1); background: var(--grad-soft); }
.input-icon .reveal ~ * { }
.input-icon:has(.reveal) .input { padding-right: 46px; }

.type-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.type-pick label { position: relative; cursor: pointer; }
.type-pick input { position: absolute; opacity: 0; inset: 0; }
.type-card { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--surface-2); transition: .18s; color: var(--text-2); }
.type-card .icon { grid-row: span 2; padding: 9px; width: 40px; height: 40px; border-radius: 11px; background: var(--muted-bg); color: var(--text-2); transition: .18s; }
.type-card strong { color: var(--text); font-weight: 700; }
.type-card small { color: var(--text-3); font-size: 12px; }
.type-pick input:checked + .type-card { border-color: var(--brand-1); background: var(--grad-soft); box-shadow: 0 0 0 4px var(--ring); }
.type-pick input:checked + .type-card .icon { background: var(--grad); color: #fff; }
.type-pick input:focus-visible + .type-card { outline: 2px solid var(--brand-1); outline-offset: 2px; }

.toggle-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-2); cursor: pointer; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row strong { display: block; font-weight: 700; color: var(--text); }
.toggle-row small { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.switch-ui { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--border-strong); transition: background .2s; }
.switch-ui .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); transition: transform .22s cubic-bezier(.3,1.4,.5,1); }
.toggle-row input:checked + .switch-ui { background: linear-gradient(135deg, #10b981, #06b6d4); }
.toggle-row input:checked + .switch-ui .knob { transform: translateX(20px); }
.toggle-row input:focus-visible + .switch-ui { outline: 2px solid var(--brand-1); outline-offset: 3px; }

.meta-row { display: flex; gap: 32px; margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--border-strong); }
.meta-row dt { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.meta-row dd { margin: 2px 0 0; font-weight: 650; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 550; }
.alert.danger { color: var(--danger-tx); background: var(--danger-bg); border: 1px solid rgba(239,68,68,.25); }
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }

/* ---------- Toast & onay ---------- */
.toasts { position: fixed; z-index: 90; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; }
.toast {
    display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; padding: 13px 16px;
    border-radius: 14px; font-weight: 600; font-size: 13.5px; cursor: pointer;
    color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--success); animation: toast-in .35s cubic-bezier(.2,.9,.3,1.2) both;
}
.toast.success .icon { color: var(--success); }
.toast.danger { border-left-color: var(--danger); }
.toast.danger .icon { color: var(--danger); }
.toast.hide { animation: toast-out .3s ease both; }
@keyframes toast-in { from { transform: translateX(30px); opacity: 0; } }
@keyframes toast-out { to { transform: translateX(30px); opacity: 0; } }

dialog.confirm { width: min(420px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--border); border-radius: 20px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-lg); text-align: center; }
dialog.confirm::backdrop { background: rgba(8, 10, 30, .55); backdrop-filter: blur(4px); }
dialog.confirm[open] { animation: pop .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.confirm-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; color: var(--danger); background: var(--danger-bg); }
.confirm.tone-primary .confirm-icon { color: var(--violet-tx); background: var(--violet-bg); }
.confirm h3 { font-size: 18px; font-weight: 750; }
.confirm p { margin: 6px 0 22px; color: var(--text-3); }
.confirm-actions { display: flex; justify-content: center; gap: 10px; }

/* ---------- Giriş sayfası ---------- */
.auth-body {
    min-height: 100vh; overflow-x: hidden; position: relative; color: #e8ebff;
    background:
        radial-gradient(900px 500px at 15% 0%, rgba(99,102,241,.35), transparent 60%),
        radial-gradient(700px 500px at 100% 100%, rgba(168,85,247,.28), transparent 60%),
        #080b22;
}
.orb { position: fixed; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: float 14s ease-in-out infinite; }
.orb-1 { width: 380px; height: 380px; top: -80px; left: -60px; background: #6366f1; }
.orb-2 { width: 320px; height: 320px; bottom: -80px; right: 8%; background: #a855f7; animation-delay: -5s; }
.orb-3 { width: 220px; height: 220px; top: 38%; left: 38%; background: #06b6d4; opacity: .28; animation-delay: -9s; }
@keyframes float { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.12); } }

.auth-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; max-width: 1280px; margin: 0 auto; }
.auth-shell.single { grid-template-columns: 1fr; }
.auth-hero { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 56px 56px 56px 40px; }
.auth-logo { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 500; color: #fff; }
.auth-logo strong { font-weight: 800; }
.auth-hero h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.auth-hero h2 em { font-style: normal; background: linear-gradient(90deg, #a5b4fc, #e879f9, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { max-width: 460px; font-size: 16px; color: #aab1e0; }
.auth-points { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 12px; color: #d7dbff; font-weight: 550; }
.auth-points .icon { padding: 9px; width: 38px; height: 38px; border-radius: 11px; color: #c4b5fd; background: rgba(139,92,246,.18); border: 1px solid rgba(167,139,250,.25); }
.auth-hero-foot { margin-top: 28px; font-size: 12.5px; color: #6f77ad; }

.auth-card-wrap { display: grid; place-items: center; padding: 32px 24px; }
.auth-card {
    width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 20px; padding: 36px;
    border-radius: 24px; color: var(--text);
    background: rgba(19, 23, 48, .72); border: 1px solid rgba(160,170,255,.16);
    backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.07);
    animation: rise .6s cubic-bezier(.2,.8,.2,1) both;
}
.auth-card.center { align-items: center; text-align: center; }
.auth-card.center p { color: var(--text-3); }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }
.auth-card-head h1 { margin: 12px 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.auth-card-head p { color: #8f97c9; }
.auth-card .input-icon .input { height: 48px; background: rgba(8,11,34,.55); }
.auth-card .input:focus { background: rgba(8,11,34,.85); }
.auth-card .field > label { color: #b7bde8; }

.check { position: relative; display: inline-flex; align-items: center; gap: 10px; color: #aab1e0; cursor: pointer; width: fit-content; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); color: transparent; transition: .15s; }
.check input:checked + .box { background: var(--grad); border-color: transparent; color: #fff; }
.check input:focus-visible + .box { outline: 2px solid var(--brand-1); outline-offset: 2px; }

/* ---------- Bulut yedekleme & ticket ---------- */
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chip.danger { color: var(--danger-tx); background: var(--danger-bg); }
.chip.warning { color: #b45309; background: rgba(245,158,11,.16); }
[data-theme="dark"] .chip.warning { color: #fcd34d; }

.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-block; padding: 2px 9px; margin-left: 8px; border-radius: 8px; font-size: 11.5px; font-weight: 650; color: var(--text-2); background: var(--muted-bg); }
.tags .tag { margin-left: 0; }
.msg-cell { max-width: 460px; }
.msg-cell a { color: var(--text); font-weight: 550; }
.msg-cell a:hover { color: var(--brand-1); }
.seg-count { margin-left: 4px; opacity: .7; font-weight: 700; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #d97706; }
.rating .icon { fill: currentColor; }
code.key.small { font-size: 11px; word-break: break-all; }

.form-section { grid-column: 1 / -1; margin: 6px 0 -4px; padding-top: 6px; font-size: 11.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-1); display: flex; align-items: center; gap: 12px; }
[data-theme="dark"] .form-section { color: #aab0ff; }
.form-section::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.form-grid > .form-section:first-child { margin-top: 0; padding-top: 0; }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; }

.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.ticket-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ticket-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 22px 24px; }
.ticket-title h2 { margin: 8px 0 2px; font-size: 22px; font-weight: 780; letter-spacing: -.02em; }
.ticket-title p { color: var(--text-3); }
.state-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.state-actions form { margin: 0; }

.thread { display: flex; flex-direction: column; gap: 16px; }
.bubble { display: flex; gap: 14px; align-items: flex-start; }
.bubble .avatar { margin-top: 2px; }
.bubble-body { flex: 1; min-width: 0; padding: 16px 18px; border-radius: 6px 18px 18px 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.bubble.from-support { flex-direction: row-reverse; }
.bubble.from-support .bubble-body { border-radius: 18px 6px 18px 18px; background: var(--grad-soft); border-color: rgba(99,102,241,.25); }
.bubble-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.bubble-meta strong { font-weight: 700; }
.bubble-meta span { color: var(--text-3); font-size: 12.5px; }
.bubble-meta time { margin-left: auto; color: var(--text-3); font-size: 12px; }
.bubble-text { white-space: pre-wrap; line-height: 1.65; word-break: break-word; }
.thread-empty { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 18px; border-radius: 14px; border: 1px dashed var(--border-strong); color: var(--text-3); }

.ticket-side { padding: 22px; }
.ticket-side h3 { margin-bottom: 14px; font-size: 15px; font-weight: 700; }
.detail-list { margin: 0; display: flex; flex-direction: column; }
.detail-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--text-3); font-size: 12.5px; font-weight: 600; flex: none; }
.detail-list dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; word-break: break-word; }

/* ---------- Giriş sayfası · premium ---------- */
.auth-grid {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(150,160,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150,160,255,.06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 20%, transparent 75%);
}
.auth-hero { gap: 26px; }
.auth-copy { display: flex; flex-direction: column; gap: 18px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px; width: fit-content; padding: 6px 13px 6px 11px;
    border-radius: 999px; font-size: 12.5px; font-weight: 650; letter-spacing: .02em; color: #c7ccff;
    background: rgba(99,102,241,.14); border: 1px solid rgba(139,148,255,.28);
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

.showcase { position: relative; max-width: 470px; height: 232px; margin: 4px 0 2px; }
.glass-card {
    position: absolute; border-radius: 18px; color: #e8ebff;
    background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
    border: 1px solid rgba(180,188,255,.2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 50px -22px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.12);
}
.sc-main { left: 0; top: 0; width: 272px; padding: 18px 20px 16px; animation: bob 7s ease-in-out infinite; }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sc-title { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #aab1e0; }
.sc-title .icon { color: #a5b4fc; }
.sc-trend { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 750; color: #6ee7b7; background: rgba(16,185,129,.16); }
.sc-value { margin: 8px 0 12px; font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.sc-value small { font-size: 13px; font-weight: 600; color: #8f97c9; letter-spacing: 0; }
.sc-bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; }
.sc-bars i {
    flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; transform-origin: bottom;
    background: linear-gradient(180deg, #a5b4fc, rgba(99,102,241,.35)); animation: grow .9s cubic-bezier(.2,.8,.2,1) both;
}
.sc-bars i:nth-child(2) { animation-delay: .06s; } .sc-bars i:nth-child(3) { animation-delay: .12s; }
.sc-bars i:nth-child(4) { animation-delay: .18s; } .sc-bars i:nth-child(5) { animation-delay: .24s; }
.sc-bars i:nth-child(6) { animation-delay: .30s; } .sc-bars i:nth-child(7) { animation-delay: .36s; }
.sc-bars i:nth-child(8) { animation-delay: .42s; background: linear-gradient(180deg, #e879f9, rgba(168,85,247,.4)); }
@keyframes grow { from { transform: scaleY(.1); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.sc-mini { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; }
.sc-mini strong { display: block; font-size: 13.5px; font-weight: 700; color: #fff; }
.sc-mini span:not(.sc-ico) { display: block; font-size: 12px; color: #9aa2d6; }
.sc-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; color: #fff; }
.sc-ico.c1 { background: linear-gradient(135deg, #06b6d4, #6366f1); }
.sc-ico.c2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.sc-a { right: 0; top: 6px; animation: bob 8s ease-in-out -2s infinite; }
.sc-b { right: 6px; top: 122px; animation: bob 9s ease-in-out -4s infinite; }

.auth-points { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; margin: 0; }
.auth-points li { font-size: 13.5px; }
.auth-points .icon { width: 34px; height: 34px; padding: 8px; }
.auth-hero-foot { margin-top: 6px; }

/* Kart: dönen ışıltılı çerçeve */
@property --auth-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.auth-card-frame {
    position: relative; width: 100%; max-width: 448px; padding: 1.5px; border-radius: 26px;
    background: conic-gradient(from var(--auth-angle), rgba(99,102,241,.1), #818cf8 12%, rgba(99,102,241,.1) 30%, rgba(232,121,249,.1) 55%, #e879f9 68%, rgba(232,121,249,.1) 85%, rgba(99,102,241,.1));
    animation: spin-angle 9s linear infinite;
    box-shadow: 0 50px 90px -40px rgba(99,102,241,.55);
}
@keyframes spin-angle { to { --auth-angle: 360deg; } }
.auth-card-frame .auth-card { max-width: none; border: 0; border-radius: 24.5px; padding: 40px 38px 34px; gap: 22px; background: rgba(14,17,40,.9); }
.auth-card-head { display: flex; flex-direction: column; align-items: flex-start; }
.auth-emblem {
    display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px; color: #fff;
    background: var(--grad); box-shadow: 0 14px 30px -10px rgba(124,92,255,.95), inset 0 1px 0 rgba(255,255,255,.3);
}
.auth-card-head h1 { margin: 0 0 6px; font-size: 28px; }
.auth-card .field { gap: 8px; }
.auth-card .input-icon .input { height: 50px; border-radius: 13px; border-color: rgba(160,170,255,.18); background: rgba(8,11,34,.6); transition: border-color .18s, box-shadow .18s, background .18s; }
.auth-card .input-icon .input:hover { border-color: rgba(160,170,255,.34); }
.auth-card .input-icon .input:focus { border-color: #818cf8; box-shadow: 0 0 0 4px rgba(99,102,241,.22); }
.auth-card .input-icon:focus-within .ico { color: #a5b4fc; }
.caps-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #fcd34d; }
.caps-hint[hidden] { display: none; }

.btn-submit { position: relative; overflow: hidden; margin-top: 4px; height: 52px; }
.btn-submit::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transition: transform .7s;
}
.btn-submit:hover::after { transform: translateX(120%); }
.btn-submit .btn-label { display: inline-flex; align-items: center; gap: 8px; transition: opacity .15s, transform .15s; }
.btn-submit .btn-label .icon { transition: transform .2s; }
.btn-submit:hover .btn-label .icon { transform: translateX(4px); }
.btn-spinner {
    position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; opacity: 0; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-submit.loading { pointer-events: none; }
.btn-submit.loading .btn-label { opacity: 0; transform: scale(.96); }
.btn-submit.loading .btn-spinner { opacity: 1; }

.auth-secure { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(160,170,255,.12); font-size: 12.5px; color: #7d85b9; }
.auth-secure .icon { color: #6ee7b7; flex: none; }
.auth-session-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; color: #8b93c4; }
.auth-session-note .icon { flex: none; color: #a5b4fc; }
.alert.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

@media (max-width: 1100px) {
    .showcase { display: none; }
}
@media (max-width: 960px) {
    .auth-card-frame { max-width: 440px; }
}
@media (max-width: 480px) {
    .auth-card-frame .auth-card { padding: 30px 22px 26px; }
    .auth-card-head h1 { font-size: 24px; }
}

/* ---------- Müşteri destek portalı (cx) ---------- */
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip.lg { padding: 7px 14px; font-size: 13px; }
.btn-ghost.danger { color: var(--danger-tx); }
.btn-ghost.danger:hover { background: var(--danger-bg); }

body.cx { min-height: 100vh; display: flex; flex-direction: column; }
.cx-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cx-bg i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .22; }
.cx-bg i:first-child { width: 520px; height: 520px; top: -180px; left: -120px; background: #6366f1; }
.cx-bg i:last-child { width: 440px; height: 440px; top: 140px; right: -160px; background: #d946ef; opacity: .14; }
[data-theme="dark"] .cx-bg i { opacity: .3; }
[data-theme="dark"] .cx-bg i:last-child { opacity: .2; }

.cx-top { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.cx-top-in { display: flex; align-items: center; gap: 28px; max-width: 1180px; margin: 0 auto; padding: 12px 24px; }
.cx-brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.cx-brand-text { display: flex; flex-direction: column; line-height: 1.15; font-size: 15px; font-weight: 500; }
.cx-brand-text strong { display: inline; font-weight: 800; letter-spacing: -.01em; }
.cx-brand-text small { margin-top: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.cx-nav { display: flex; gap: 6px; }
.cx-nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 11px; font-weight: 600; color: var(--text-2); transition: background .18s, color .18s; }
.cx-nav-link:hover { background: var(--muted-bg); color: var(--text); }
.cx-nav-link.active { color: var(--brand-1); background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(99,102,241,.22); }
[data-theme="dark"] .cx-nav-link.active { color: #c2c7ff; }
.cx-top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cx-user { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.cx-user-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cx-user-meta strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.cx-user-meta small { font-size: 11px; color: var(--text-3); }
.cx-logout { margin: 0; }

.cx-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 24px 40px; }
.cx-foot { padding: 20px; text-align: center; font-size: 12.5px; color: var(--text-3); }

.cx-eyebrow { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: .03em; color: var(--brand-1); background: var(--grad-soft); border: 1px solid rgba(99,102,241,.22); }
[data-theme="dark"] .cx-eyebrow { color: #c2c7ff; }

.cx-hero {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center;
    padding: 36px; border-radius: 26px; color: #eef0ff;
    background:
        radial-gradient(520px 300px at 0% 0%, rgba(99,102,241,.55), transparent 62%),
        radial-gradient(460px 320px at 100% 100%, rgba(217,70,239,.38), transparent 60%),
        #0e1235;
    border: 1px solid rgba(160,170,255,.16); box-shadow: var(--shadow-lg);
}
.cx-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cx-hero .cx-eyebrow { color: #d7dbff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.cx-hero h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.cx-hero h1 em { font-style: normal; background: linear-gradient(90deg, #a5b4fc, #f0abfc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx-hero p { max-width: 520px; font-size: 15px; color: #b6bdf0; }
.cx-hero p strong { color: #fff; }

.cx-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650; }
.cx-pill.neutral { color: var(--text-2); background: var(--muted-bg); }
.cx-pill.ok { color: var(--success-tx); background: var(--success-bg); }
.cx-pill.warning { color: #b45309; background: rgba(245,158,11,.16); }
.cx-pill.danger { color: var(--danger-tx); background: var(--danger-bg); }
[data-theme="dark"] .cx-pill.warning { color: #fcd34d; }
.cx-hero .cx-pill.ok { color: #6ee7b7; background: rgba(16,185,129,.2); }
.cx-hero .cx-pill.warning { color: #fcd34d; background: rgba(245,158,11,.2); }
.cx-hero .cx-pill.danger { color: #fca5a5; background: rgba(239,68,68,.2); }

.cx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cx-stat {
    position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px;
    color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cx-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cx-stat.on { border-color: var(--brand-1); box-shadow: 0 0 0 3px var(--ring); }
.cx-stat-ico { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px; border-radius: 12px; color: #fff; }
.cx-stat.amber .cx-stat-ico { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 8px 18px -8px rgba(245,158,11,.9); }
.cx-stat.blue .cx-stat-ico { background: linear-gradient(135deg, #0ea5e9, #6366f1); box-shadow: 0 8px 18px -8px rgba(14,165,233,.9); }
.cx-stat.green .cx-stat-ico { background: linear-gradient(135deg, #10b981, #14b8a6); box-shadow: 0 8px 18px -8px rgba(16,185,129,.9); }
.cx-stat.violet .cx-stat-ico { background: linear-gradient(135deg, #8b5cf6, #d946ef); box-shadow: 0 8px 18px -8px rgba(139,92,246,.9); }
.cx-stat strong { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.cx-stat small { font-size: 12px; font-weight: 600; color: var(--text-3); }
.cx-hero .cx-stat { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: none; }
.cx-hero .cx-stat:hover { background: rgba(255,255,255,.14); }
.cx-hero .cx-stat small { color: #aab2e8; }
.cx-stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }

.cx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-top: 22px; }
.cx-form { display: flex; flex-direction: column; gap: 22px; padding: 28px; }
.cx-form-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.cx-form-head h2 { font-size: 20px; font-weight: 780; letter-spacing: -.02em; }
.cx-form-head p { margin-top: 2px; color: var(--text-3); }
.cx-readonly { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cx-readonly > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 13px; background: var(--surface-2); border: 1px dashed var(--border-strong); }
.cx-readonly small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.cx-readonly strong { font-weight: 700; }
.req { color: var(--danger); }

.cx-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.cx-channels legend { grid-column: 1 / -1; padding: 0; margin-bottom: 2px; font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.cx-channel { position: relative; display: block; cursor: pointer; }
.cx-channel input { position: absolute; opacity: 0; pointer-events: none; }
.cx-channel-card { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 15px 16px; border-radius: 15px; border: 1.5px solid var(--border); background: var(--surface-2); transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
.cx-channel-card .icon { margin-bottom: 8px; color: var(--text-3); transition: color .18s; }
.cx-channel-card strong { font-size: 14px; font-weight: 700; }
.cx-channel-card small { font-size: 12px; color: var(--text-3); }
.cx-channel:hover .cx-channel-card { border-color: var(--border-strong); transform: translateY(-2px); }
.cx-channel input:checked + .cx-channel-card { border-color: var(--brand-1); background: var(--grad-soft); box-shadow: 0 0 0 3px var(--ring); }
.cx-channel input:checked + .cx-channel-card .icon { color: var(--brand-1); }
.cx-channel input:focus-visible + .cx-channel-card { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.cx-form .input-icon .input { height: 48px; }
.cx-form .textarea.cx-message { height: auto; min-height: 150px; }

.cx-counter { display: flex; align-items: center; gap: 12px; --fill: 0%; }
.cx-counter .bar { flex: 1; height: 5px; border-radius: 99px; overflow: hidden; background: var(--muted-bg); }
.cx-counter .bar i { display: block; height: 100%; width: var(--fill); border-radius: inherit; background: var(--danger); transition: width .2s, background .2s; }
.cx-counter.ok .bar i { background: var(--success); }
.cx-counter small { color: var(--text-3); white-space: nowrap; }
.cx-counter b { color: var(--text); }

.cx-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.cx-form-foot .btn-submit { min-width: 210px; }

.cx-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 88px; }
.cx-side .card { padding: 22px; }
.cx-side h3 { font-size: 15px; font-weight: 700; }
.cx-ring-card { text-align: center; }
.cx-ring { --p: 0; display: grid; place-items: center; width: 148px; height: 148px; margin: 16px auto 14px; border-radius: 50%; background: conic-gradient(#10b981 calc(var(--p) * 1%), var(--muted-bg) 0); }
.cx-ring > div { display: grid; place-content: center; width: 114px; height: 114px; border-radius: 50%; background: var(--surface); }
.cx-ring strong { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.cx-ring small { font-size: 12px; font-weight: 600; color: var(--text-3); }
.cx-ring-card p { color: var(--text-3); }
.cx-recent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cx-recent ul { list-style: none; margin: 0; padding: 0; }
.cx-recent li a { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.cx-recent li:last-child a { border-bottom: 0; padding-bottom: 0; }
.cx-recent-text { flex: 1; min-width: 0; font-weight: 550; line-height: 1.35; }
.cx-recent-text small { display: block; margin-top: 2px; font-weight: 500; font-size: 11.5px; color: var(--text-3); }
.cx-empty-note { padding: 10px 0 2px; color: var(--text-3); }
.cx-help { display: flex; gap: 14px; align-items: flex-start; background: var(--grad-soft); border-color: rgba(99,102,241,.22); }
.cx-help-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--grad); }
.cx-help p { margin-top: 2px; font-size: 13px; color: var(--text-2); }

.cx-pagehead { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.cx-pagehead h1 { margin-top: 10px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.cx-pagehead p { margin-top: 4px; color: var(--text-3); }
.cx-back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text-3); }
.cx-back:hover { color: var(--brand-1); }
.cx-head-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cx-head-actions form { margin: 0; }

.cx-tickets { list-style: none; margin: 0; padding: 4px 0; }
.cx-ticket { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 22px 16px 26px; border-bottom: 1px solid var(--border); transition: background .15s; }
.cx-tickets li:last-child .cx-ticket { border-bottom: 0; }
.cx-ticket:hover { background: var(--surface-2); }
.cx-ticket-bar { position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: #f59e0b; }
.cx-ticket.state-1 .cx-ticket-bar { background: #0ea5e9; }
.cx-ticket.state-2 .cx-ticket-bar { background: #10b981; }
.cx-ticket-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cx-ticket-body strong { font-weight: 650; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cx-ticket-body small { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--text-3); font-size: 12.5px; }
.cx-ticket-body small i { width: 3px; height: 3px; margin: 0 4px; border-radius: 50%; background: var(--border-strong); }
.cx-ticket-meta { display: flex; align-items: center; gap: 8px; flex: none; }
.cx-ticket-go { color: var(--text-3); transition: transform .18s, color .18s; }
.cx-ticket:hover .cx-ticket-go { color: var(--brand-1); transform: translateX(3px); }

.cx-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 22px; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.cx-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; color: var(--text-3); }
.cx-steps li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px; border-radius: 3px; background: var(--muted-bg); }
.cx-steps li:first-child::before { display: none; }
.cx-steps li.done::before { background: linear-gradient(90deg, #6366f1, #10b981); }
.cx-steps .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 50%; color: var(--text-3); background: var(--surface); border: 2px solid var(--border-strong); }
.cx-steps li.done .dot { color: #fff; border-color: transparent; background: linear-gradient(135deg, #10b981, #14b8a6); box-shadow: 0 8px 18px -8px rgba(16,185,129,.9); }
.cx-steps li.current .dot { color: var(--brand-1); border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--ring); }
.cx-steps strong { font-size: 13.5px; font-weight: 700; color: var(--text); }
.cx-steps small { font-size: 12px; }

.cx-rate { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 20px 24px; background: var(--grad-soft); border-color: rgba(99,102,241,.22); }
.cx-rate h3 { font-size: 16px; font-weight: 720; }
.cx-rate p { color: var(--text-2); }
.cx-stars { display: flex; flex-direction: row-reverse; margin: 0; }
.cx-stars button { padding: 3px; border: 0; background: transparent; color: var(--border-strong); transition: color .12s, transform .12s; }
.cx-stars button .icon { fill: currentColor; }
.cx-stars button:hover, .cx-stars button:hover ~ button { color: #f59e0b; }
.cx-stars button:hover { transform: scale(1.18); }
.rating.big { gap: 3px; }
.rating.big .off { color: var(--border-strong); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1280px) {
    .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .grid-2 { grid-template-columns: 1fr; }
    .ticket-layout { grid-template-columns: 1fr; }
    .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .only-mobile { display: inline-grid; }
    .sidebar { transform: translateX(-100%); transition: transform .28s cubic-bezier(.3,.9,.3,1); box-shadow: var(--shadow-lg); }
    .app.nav-open .sidebar { transform: none; }
    .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(8,10,30,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
    .app.nav-open .scrim { opacity: 1; pointer-events: auto; }
    .main { margin-left: 0; }
    .topbar { padding: 12px 16px; }
    .content { padding: 18px 16px 40px; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
}
@media (max-width: 640px) {
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-card { flex-direction: column; align-items: flex-start; padding: 22px; }
    .form-grid, .type-pick { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .form-card { padding: 20px; }
    .topbar-title h1 { font-size: 18px; }
    .topbar-actions .btn { padding: 0 12px; }
    .auth-card { padding: 26px 22px; }
}

/* ---------- Müşteri portalı: üç sayaç, dosya ekleri, değerlendirme (FeedBack) ---------- */
.cx-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-stats.three .cx-stat { padding: 14px 14px; }
.cx-stats.three .cx-stat strong { font-size: 26px; }
.cx-readonly > div { background: var(--surface-2); }
.cx-readonly strong { overflow-wrap: anywhere; font-size: 14px; }
.field .opt { font-weight: 500; color: var(--text-3); font-size: 12px; }

.cx-drop {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; text-align: center; cursor: pointer;
    border: 1.5px dashed var(--border-strong); border-radius: 16px; background: var(--surface-2); transition: border-color .15s, background .15s, transform .15s;
}
.cx-drop:hover, .cx-drop.over { border-color: var(--brand-1); background: var(--grad-soft); }
.cx-drop.over { transform: scale(1.01); }
.cx-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cx-drop-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--brand-1), var(--brand-2, #a855f7)); box-shadow: 0 10px 22px -10px var(--brand-1); }
.cx-drop strong { font-size: 14px; font-weight: 700; }
.cx-drop strong em { font-style: normal; color: var(--text-3); font-weight: 600; }
.cx-drop small { color: var(--text-3); font-size: 12px; }

.cx-file-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.cx-file-list:empty { display: none; margin: 0; }
.cx-file-list li {
    position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
}
.cx-file-list.picked { margin: 10px 0 0; }
.cx-file-list li > a { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: inherit; }
.cx-file-list li > a:hover .cx-file-name { color: var(--brand-1); text-decoration: underline; }
.cx-file-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: var(--brand-1); background: var(--grad-soft); }
.cx-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13.5px; }
.cx-file-list small { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.cx-file-remove { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; color: var(--text-3); background: transparent; cursor: pointer; }
.cx-file-remove:hover { color: #e11d48; background: rgba(244,63,94,.12); }
.cx-files-card { padding: 18px 20px; }
.cx-files-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 720; }
.cx-files-card .cx-file-list { margin: 0; }

.cx-rate-form { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: min(100%, 340px); margin: 0; }
.cx-rate-form .textarea { width: 100%; min-height: 0; }
.cx-rate-note { margin-top: 6px; font-style: italic; color: var(--text-2); }

/* FeedBack (herkese açık değerlendirme sayfası) */
.fb-wrap { display: flex; justify-content: center; padding: 8px 0 24px; }
.fb-card { width: 100%; max-width: 680px; padding: 0; overflow: hidden; animation: fb-in .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fb-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fb-hero {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px 32px 28px; color: #eef0ff;
    background:
        radial-gradient(420px 260px at 0% 0%, rgba(16,185,129,.5), transparent 62%),
        radial-gradient(420px 280px at 100% 100%, rgba(99,102,241,.5), transparent 60%),
        #0e1235;
}
.fb-hero .cx-eyebrow { color: #d7ffee; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.fb-hero h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.fb-hero p { color: #c3caf5; max-width: 520px; }
.fb-hero p strong { color: #fff; }
.fb-summary { display: flex; flex-direction: column; gap: 14px; padding: 24px 32px 4px; }
.fb-quote { padding: 14px 16px; border-radius: 0 14px 14px 0; border-left: 4px solid var(--brand-1); background: var(--surface-2); }
.fb-quote.ok { border-left-color: #10b981; background: rgba(16,185,129,.08); }
.fb-quote small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.fb-quote p { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.65; }
.fb-dates { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-3); font-size: 13px; }
.fb-dates span { display: inline-flex; align-items: center; gap: 6px; }
.fb-dates b { color: var(--text); font-weight: 650; }
.fb-form { display: flex; flex-direction: column; gap: 22px; padding: 22px 32px 32px; }
.fb-rating { margin: 0; padding: 22px 16px 18px; border: 1px solid var(--border); border-radius: 18px; text-align: center; background: var(--grad-soft); }
.fb-rating legend { padding: 0 10px; font-size: 15px; font-weight: 720; }
.fb-stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; }
.fb-stars input { position: absolute; opacity: 0; pointer-events: none; }
.fb-stars label { padding: 2px; color: var(--border-strong); cursor: pointer; transition: color .12s, transform .15s; }
.fb-stars label .icon { fill: currentColor; stroke: none; width: 44px; height: 44px; }
.fb-stars label:hover, .fb-stars label:hover ~ label, .fb-stars input:checked ~ label { color: #f59e0b; }
.fb-stars label:hover { transform: scale(1.18) rotate(-4deg); }
.fb-stars input:focus-visible + label { outline: 3px solid var(--ring); border-radius: 10px; }
.fb-word { min-height: 24px; margin-top: 10px; font-weight: 700; color: var(--text-3); transition: color .15s; }
.fb-word.set { color: #d97706; }
.fb-word.error { color: #e11d48; }
.fb-count { align-self: flex-end; margin-top: 4px; color: var(--text-3); font-size: 12px; }
.fb-form .btn-submit { align-self: stretch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fb-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 44px 32px; text-align: center; }
.fb-state h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.fb-state p { max-width: 460px; color: var(--text-2); }
.fb-state-ico { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; color: #fff; }
.fb-state-ico.success { background: linear-gradient(135deg, #10b981, #14b8a6); box-shadow: 0 16px 30px -12px rgba(16,185,129,.7); }
.fb-state-ico.warning { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 16px 30px -12px rgba(245,158,11,.7); }
.fb-state-ico.danger { background: linear-gradient(135deg, #f43f5e, #e11d48); box-shadow: 0 16px 30px -12px rgba(244,63,94,.7); }
.fb-pop .fb-state-ico { animation: fb-pop .6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes fb-pop { 0% { transform: scale(.3) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.fb-given { display: flex; gap: 4px; margin-top: 6px; }
.fb-given span { color: var(--border-strong); }
.fb-given span.on { color: #f59e0b; }
.fb-given .icon { fill: currentColor; stroke: none; }
.fb-given-word { font-size: 15px; }
.fb-note { max-width: 480px; margin: 6px 0 0; padding: 12px 16px; border-left: 4px solid #f59e0b; border-radius: 0 12px 12px 0; text-align: left; font-style: italic; color: var(--text-2); background: var(--surface-2); overflow-wrap: anywhere; white-space: pre-line; }
.fb-ref { margin-top: 10px; color: var(--text-3); }
.bubble-text.masked { font-weight: 700; letter-spacing: .01em; color: var(--text-2); }
.cx-readonly .pre { white-space: pre-line; overflow-wrap: anywhere; font-weight: 600; }
.cx-staff-filter { margin-bottom: 12px; }
.hint { display: block; margin-top: 4px; font-size: 12px; color: var(--text-3); }

@media (max-width: 720px) {
    .fb-hero, .fb-summary, .fb-form { padding-left: 20px; padding-right: 20px; }
    .fb-stars label .icon { width: 38px; height: 38px; }
    .cx-rate-form { align-items: stretch; }
}
@media (max-width: 1000px) {
    .cx-hero { grid-template-columns: 1fr; padding: 28px; }
    .cx-grid { grid-template-columns: 1fr; }
    .cx-side { position: static; }
    .cx-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cx-user-meta { display: none; }
}
@media (max-width: 720px) {
    .cx-top-in { gap: 12px; padding: 10px 14px; }
    .cx-brand-text small, .cx-nav-link span { display: none; }
    .cx-nav-link { padding: 10px 12px; }
    .cx-main { padding: 18px 14px 32px; }
    .cx-form { padding: 20px 16px; }
    .cx-channels, .cx-readonly { grid-template-columns: 1fr; }
    .cx-ticket { flex-wrap: wrap; padding: 14px 14px 14px 20px; }
    .cx-ticket-meta { order: 3; width: 100%; }
    .cx-ticket-go { display: none; }
    .cx-form-foot { flex-direction: column-reverse; align-items: stretch; }
    .cx-form-foot .btn { width: 100%; }
    .cx-steps { padding: 18px 10px; }
    .cx-steps small { display: none; }
}


/* ---------- Bulut portalı ---------- */
.auth-card select.input { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px); background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.cloud-banners { display: grid; gap: 12px; margin-bottom: 20px; }
.cloud-banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; border: 1px solid transparent; }
.cloud-banner small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.cloud-banner strong { font-size: 15px; font-weight: 780; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cloud-banner.firm { color: #fff; background: linear-gradient(135deg, #b91c1c, #ef4444); box-shadow: 0 14px 28px -16px rgba(185,28,28,.7); }
.cloud-banner.ok { color: #064e3b; background: linear-gradient(135deg, #d1fae5, #a7f3d0); border-color: #6ee7b7; }
.cloud-banner.warning { color: #78350f; background: linear-gradient(135deg, #fef3c7, #fde68a); border-color: #fbbf24; }
.cloud-banner.danger { color: #7f1d1d; background: linear-gradient(135deg, #fee2e2, #fecaca); border-color: #f87171; }
[data-theme="dark"] .cloud-banner.ok { color: #d1fae5; background: rgba(16,185,129,.18); border-color: rgba(16,185,129,.35); }
[data-theme="dark"] .cloud-banner.warning { color: #fde68a; background: rgba(245,158,11,.18); border-color: rgba(245,158,11,.35); }
[data-theme="dark"] .cloud-banner.danger { color: #fecaca; background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.35); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.alert.warning { color: #92400e; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.3); }
[data-theme="dark"] .alert.warning { color: #fde68a; }

/* Bulut: hero */
.cl-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 30px 32px; margin-bottom: 20px; border-radius: 22px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #312e81 0%, #1e1b4b 45%, #0f172a 100%); box-shadow: var(--shadow-lg); }
.cl-hero-glow { position: absolute; inset: -40% -10% auto auto; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.55), transparent 65%); filter: blur(10px); pointer-events: none; }
.cl-hero-main { position: relative; min-width: 0; }
.cl-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c7d2fe; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.cl-hero h1 { margin: 14px 0 12px; font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; overflow-wrap: anywhere; }
.cl-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: #e0e7ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.cl-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.cl-chip.fresh .cl-dot { background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.22); animation: clPulse 2s ease-in-out infinite; }
.cl-chip.stale .cl-dot { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.2); }
.cl-chip.old .cl-dot { background: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.2); }
@keyframes clPulse { 50% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } }

.cl-trend { margin-top: 22px; max-width: 520px; }
.cl-trend-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: #a5b4fc; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.cl-trend-bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.cl-trend-bars span { flex: 1; min-width: 6px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #a78bfa, rgba(99,102,241,.45)); transition: transform .15s, filter .15s; transform-origin: bottom; }
.cl-trend-bars span:last-child { background: linear-gradient(180deg, #6ee7b7, rgba(16,185,129,.5)); }
.cl-trend-bars span:hover { filter: brightness(1.25); transform: scaleY(1.04); }

.cl-ring { position: relative; display: grid; justify-items: center; gap: 10px; padding: 18px 22px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.cl-ring svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.cl-ring circle { fill: none; stroke-width: 10; }
.cl-ring .track { stroke: rgba(255,255,255,.1); }
.cl-ring .value { stroke: #34d399; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.cl-ring.warning .value { stroke: #fbbf24; }
.cl-ring.danger .value, .cl-ring.neutral .value { stroke: #f87171; }
.cl-ring-text { position: absolute; top: 18px; width: 132px; height: 132px; display: grid; place-content: center; text-align: center; }
.cl-ring-text strong { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.cl-ring-text small { margin-top: 4px; font-size: 11.5px; color: #c7d2fe; font-weight: 600; }
.cl-ring-foot { text-align: center; }
.cl-ring-foot small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #a5b4fc; font-weight: 700; }
.cl-ring-foot span { font-size: 13.5px; font-weight: 700; }
.cl-alert { margin-bottom: 20px; }

/* Bulut: KPI */
.cl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.cl-kpi { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.cl-kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cl-kpi > div { min-width: 0; }
.cl-kpi small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.cl-kpi strong { display: block; margin: 3px 0 1px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-kpi em { font-style: normal; font-size: 12.5px; color: var(--text-3); }
.cl-kpi-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; }
.cl-kpi-ico.violet { color: var(--violet-tx); background: var(--violet-bg); }
.cl-kpi-ico.info { color: var(--info-tx); background: var(--info-bg); }
.cl-kpi-ico.success { color: var(--success-tx); background: var(--success-bg); }
.cl-kpi-ico.amber { color: #b45309; background: rgba(245,158,11,.15); }
[data-theme="dark"] .cl-kpi-ico.amber { color: #fcd34d; }

/* Bulut: dosya listesi */
.cl-files { padding: 0; overflow: hidden; }
.cl-files-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 0; flex-wrap: wrap; }
.cl-files-head h2 { font-size: 18px; font-weight: 760; }
.cl-files-head p { color: var(--text-3); margin-top: 2px; font-size: 13px; }
.cl-files-head p strong { color: var(--text); }
.cl-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.cl-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border); transition: border-color .15s, box-shadow .15s; }
.cl-search:focus-within { border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--ring); }
.cl-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; }
.cl-toolbar select { height: 40px; padding: 0 34px 0 12px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; appearance: none; background-color: var(--surface-2); background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.cl-toolbar .btn-sm { height: 40px; }

.cl-list { display: grid; }
.cl-row { display: grid; grid-template-columns: 56px minmax(0, 1.8fr) minmax(140px, .9fr) 170px 110px; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--border); transition: background .12s; }
.cl-row:not(.cl-row-head):hover { background: var(--surface-2); }
.cl-row-head { padding-block: 11px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); }
.cl-id { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.cl-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cl-name > div { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.cl-name strong { font-family: var(--mono); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cl-name .cx-pill { padding: 3px 9px; font-size: 11px; }
.cl-file-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--violet-tx); background: var(--violet-bg); }
.cl-file-ico.zip { color: var(--info-tx); background: var(--info-bg); }
.cl-file-ico.rar { color: #b45309; background: rgba(245,158,11,.15); }
[data-theme="dark"] .cl-file-ico.rar { color: #fcd34d; }
.cl-size { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
.cl-bar { display: block; height: 6px; border-radius: 999px; background: var(--muted-bg); overflow: hidden; }
.cl-bar b { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.cl-date { display: grid; gap: 2px; font-size: 13px; font-weight: 650; }
.cl-date small { margin-left: 6px; font-weight: 500; color: var(--text-3); }
.cl-date em { font-style: normal; font-size: 12px; color: var(--text-3); }
.cl-dl { justify-self: end; }

@media (max-width: 1100px) {
    .cl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .cl-hero { grid-template-columns: 1fr; padding: 24px; }
    .cl-ring { grid-template-columns: auto 1fr; justify-items: start; align-items: center; }
    .cl-ring svg { width: 96px; height: 96px; }
    .cl-ring-text { top: 18px; left: 22px; width: 96px; height: 96px; }
    .cl-ring-text strong { font-size: 24px; }
    .cl-ring-foot { text-align: left; }
    .cl-row-head { display: none; }
    .cl-row { grid-template-columns: 1fr auto; grid-template-areas: "name dl" "size date"; gap: 10px 14px; }
    .cl-id { display: none; }
    .cl-name { grid-area: name; }
    .cl-size { grid-area: size; }
    .cl-date { grid-area: date; text-align: right; }
    .cl-dl { grid-area: dl; }
}
@media (max-width: 520px) {
    .cl-kpis { grid-template-columns: 1fr; }
    .cl-dl span { display: none; }
}

/* Talep güncelle ve kapat (ServiceOperations/UpdateRequest) */
.up-hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.up-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #b6bdf0; }
.up-back:hover { color: #fff; }
.up-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.up-hero .cx-pill.neutral { color: #dfe2ff; background: rgba(255,255,255,.1); }
.up-hero-side { display: flex; justify-content: flex-end; }
.up-timer {
    display: flex; flex-direction: column; gap: 4px; min-width: 240px; padding: 22px 24px; border-radius: 20px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.up-timer small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #aab2e8; }
.up-timer strong { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.up-timer strong.bad { color: #fca5a5; font-size: 20px; }
.up-timer span { font-size: 12px; color: #8f98d6; }

.up-form { gap: 0; padding: 0; overflow: hidden; }
.up-form > .alert { margin: 20px 28px 0; }
.up-section { display: flex; flex-direction: column; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--border); }
.up-section > header { display: flex; align-items: flex-start; gap: 14px; }
.up-section h2 { font-size: 16px; font-weight: 760; letter-spacing: -.01em; }
.up-section header p { margin-top: 2px; font-size: 13px; color: var(--text-3); }
.up-num {
    display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px;
    font-size: 13px; font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 8px 16px -8px rgba(99,102,241,.9);
}
.up-row { display: grid; gap: 14px; }
.up-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.up-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.up-readonly { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.up-closed { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.up-extra { max-width: 280px; }
.up-stepper { display: flex; align-items: stretch; gap: 0; }
.up-stepper .input { width: 72px; text-align: center; border-radius: 0; font-weight: 700; -moz-appearance: textfield; }
.up-stepper .input::-webkit-outer-spin-button, .up-stepper .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.up-stepper button {
    width: 42px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
    font-size: 18px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.up-stepper button:first-child { border-radius: 12px 0 0 12px; border-right: 0; }
.up-stepper button:last-child { border-radius: 0 12px 12px 0; border-left: 0; }
.up-stepper button:hover { background: var(--grad-soft); color: var(--brand-1); }
.up-form .cx-form-foot { padding: 20px 28px; background: var(--surface-2); }
.toggle-row.danger-tone input:checked + .switch-ui { background: linear-gradient(135deg, #f43f5e, #f97316); }

.up-side { position: sticky; top: 88px; align-self: start; }
.up-mail { display: flex; flex-direction: column; gap: 14px; }
.up-mail-head { display: flex; align-items: center; gap: 12px; }
.up-mail-head strong { display: block; font-size: 15px; font-weight: 760; }
.up-mail-head small { color: var(--text-3); font-size: 12px; }
.up-mail-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #10b981, #0ea5a4); }
.up-mail-list { display: flex; flex-direction: column; margin: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.up-mail-list > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); }
.up-mail-list > div:first-child { border-top: 0; }
.up-mail-list > div[hidden] { display: none; }
.up-mail-list dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
.up-mail-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.up-mail-cta { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; font-size: 13px; color: var(--text-2); background: var(--grad-soft); }
.up-mail-cta .icon { color: #f59e0b; fill: currentColor; stroke: none; }

/* DEĞERLENDİR kartı (talep detayları) */
.ev-card {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 24px 26px; color: #eef0ff;
    background:
        radial-gradient(360px 220px at 0% 0%, rgba(16,185,129,.45), transparent 62%),
        radial-gradient(380px 240px at 100% 100%, rgba(99,102,241,.55), transparent 60%),
        #0e1235;
    border-color: rgba(160,170,255,.18);
}
.ev-copy { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.ev-eyebrow { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a7f3d0; }
.ev-eyebrow .icon { fill: currentColor; stroke: none; }
.ev-copy h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.ev-copy p { font-size: 13.5px; color: #c3caf5; }
.ev-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.ev-scores { display: flex; gap: 8px; }
.ev-score {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 16px; font-weight: 800; color: #fff;
    text-decoration: none; box-shadow: 0 8px 18px -10px rgba(0,0,0,.6); transition: transform .15s;
}
.ev-score:hover { transform: translateY(-3px) scale(1.06); color: #fff; }
.ev-score.s1, .fb-scores .s1 { --score: #ef4444; }
.ev-score.s2, .fb-scores .s2 { --score: #f59e0b; }
.ev-score.s3, .fb-scores .s3 { --score: #0ea5e9; }
.ev-score.s4, .fb-scores .s4 { --score: #6366f1; }
.ev-score.s5, .fb-scores .s5 { --score: #10b981; }
.ev-score { background: var(--score); }
.ev-btn {
    padding: 12px 26px; border-radius: 13px; font-weight: 800; letter-spacing: .1em; color: #fff;
    background: linear-gradient(135deg, #10b981, #0ea5a4); box-shadow: 0 12px 24px -12px rgba(16,185,129,.9);
}
.ev-btn:hover { color: #fff; filter: brightness(1.08); }

/* FeedBack: eski sayfadaki 1–5 renkli yuvarlak puan düğmeleri */
.fb-scores { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.fb-scores input { position: absolute; opacity: 0; pointer-events: none; }
.fb-scores label { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 82px; cursor: pointer; }
.fb-score-num {
    display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; font-size: 28px; font-weight: 800; color: var(--score);
    background: color-mix(in srgb, var(--score) 12%, transparent); border: 2px solid color-mix(in srgb, var(--score) 45%, transparent);
    transition: transform .18s cubic-bezier(.3,1.4,.5,1), background .18s, color .18s, box-shadow .18s;
}
.fb-scores label small { font-size: 12px; font-weight: 650; color: var(--text-3); text-align: center; }
.fb-scores label:hover .fb-score-num { transform: translateY(-3px); }
.fb-scores input:checked + label .fb-score-num { color: #fff; background: var(--score); border-color: var(--score); transform: scale(1.1); box-shadow: 0 14px 26px -12px var(--score); }
.fb-scores input:checked + label small { color: var(--text); }
.fb-scores input:focus-visible + label .fb-score-num { outline: 3px solid var(--ring); outline-offset: 3px; }
.fb-word.s1 { color: #ef4444; } .fb-word.s2 { color: #d97706; } .fb-word.s3 { color: #0284c7; } .fb-word.s4 { color: #6366f1; } .fb-word.s5 { color: #059669; }

@media (max-width: 1100px) {
    .up-readonly, .up-closed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .up-side { position: static; }
}
@media (max-width: 760px) {
    .up-hero { grid-template-columns: 1fr; }
    .up-hero-side { justify-content: stretch; }
    .up-timer { min-width: 0; width: 100%; }
    .up-row.two, .up-row.three, .up-readonly, .up-closed { grid-template-columns: 1fr; }
    .up-section, .up-form .cx-form-foot { padding-left: 18px; padding-right: 18px; }
    .ev-actions { align-items: stretch; width: 100%; }
    .ev-scores { justify-content: space-between; }
    .fb-scores { gap: 6px; }
    .fb-scores label { width: 58px; }
    .fb-score-num { width: 52px; height: 52px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

