﻿:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --sidebar: #0f172a;
    --sidebar-soft: #17213a;
    --sidebar-text: #cbd5e1;
    --sidebar-muted: #71809b;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eaf1ff;
    --success: #15803d;
    --success-soft: #eaf8ef;
    --warning: #b45309;
    --warning-soft: #fff5df;
    --danger: #dc2626;
    --danger-soft: #fff0f0;
    --purple: #7c3aed;
    --purple-soft: #f2edff;
    --info: #0369a1;
    --info-soft: #e7f5ff;
    --ink: #172033;
    --muted: #667085;
    --muted-2: #98a2b3;
    --line: #e4e9f2;
    --line-strong: #d5dce8;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-md: 0 12px 28px rgba(15, 23, 42, .08);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --sidebar-width: 270px;
    --topbar-height: 76px;
}

* { box-sizing: border-box; }
html { min-height: 100%; font-size: 16px; }
body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { display: block; width: 1.25rem; height: 1.25rem; fill: currentColor; }
img { max-width: 100%; }

.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #101a31 0%, #0b1325 100%);
    color: var(--sidebar-text);
    box-shadow: 12px 0 30px rgba(15, 23, 42, .08);
}
.brand { min-height: var(--topbar-height); display: flex; align-items: center; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-link { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-link:hover { color: #fff; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .35);
}
.brand-mark.large { width: 46px; height: 46px; border-radius: 13px; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-copy, .auth-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong, .auth-brand strong { font-size: 1.04rem; letter-spacing: -.02em; }
.brand-copy small, .auth-brand small { margin-top: 4px; color: #8fa0bf; font-size: .69rem; letter-spacing: .07em; text-transform: uppercase; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 18px 14px 24px; scrollbar-width: thin; scrollbar-color: #26334c transparent; }
.nav-section-label { padding: 18px 12px 8px; color: var(--sidebar-muted); font-size: .66rem; font-weight: 800; letter-spacing: .14em; }
.nav-section-label:first-child { padding-top: 2px; }
.nav-link {
    position: relative; display: flex; align-items: center; gap: 13px; min-height: 45px; margin: 3px 0; padding: 0 13px;
    border-radius: 10px; color: var(--sidebar-text); font-size: .9rem; font-weight: 600; transition: .18s ease;
}
.nav-link svg { width: 20px; height: 20px; color: #8493ae; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link:hover svg { color: #b8c5da; }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(37,99,235,.26), rgba(37,99,235,.12)); box-shadow: inset 0 0 0 1px rgba(96,165,250,.14); }
.nav-link.active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #60a5fa; }
.nav-link.active svg { color: #6ea8ff; }
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.system-status { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.04); }
.system-status div { display: flex; flex-direction: column; }
.system-status strong { color: #dbe5f5; font-size: .78rem; }
.system-status small { margin-top: 3px; color: #71809b; font-size: .68rem; }
.status-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.13); }

.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 35; width: 100%; border: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(2px); }
.app-main { min-height: 100vh; margin-left: var(--sidebar-width); display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 30; height: var(--topbar-height); display: flex; align-items: center; justify-content: space-between;
    padding: 0 30px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.topbar-left, .topbar-actions, .user-menu, .user-actions { display: flex; align-items: center; }
.topbar-left { gap: 13px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #475467; }
.icon-button:hover { border-color: #c7d2e4; color: var(--primary); background: #f8fbff; }
.menu-button { display: none; }
.page-context { display: flex; flex-direction: column; }
.page-context .page-eyebrow { margin-bottom: 3px; color: var(--muted-2); font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-context strong { font-size: 1rem; letter-spacing: -.015em; }
.topbar-actions { gap: 16px; }
.topbar-create { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 9px; background: var(--primary); color: #fff; font-size: .82rem; font-weight: 700; box-shadow: 0 5px 12px rgba(37,99,235,.18); }
.topbar-create:hover { color: #fff; background: var(--primary-dark); transform: translateY(-1px); }
.topbar-create svg { width: 17px; height: 17px; }
.user-menu { min-height: 46px; gap: 10px; padding-left: 16px; border-left: 1px solid var(--line); }
.user-avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; color: #1d4ed8; background: #e8efff; font-size: .85rem; font-weight: 800; }
.user-copy { min-width: 120px; display: flex; flex-direction: column; }
.user-copy strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.user-copy small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.user-actions { gap: 2px; }
.user-actions > a, .user-actions button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #7c8799; }
.user-actions > a:hover, .user-actions button:hover { color: var(--primary); background: var(--primary-soft); }
.user-actions svg { width: 17px; height: 17px; }
.logout-form { margin: 0; }
.content-area { width: 100%; max-width: 1660px; flex: 1; margin: 0 auto; padding: 28px 30px 40px; }
.app-footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; border-top: 1px solid var(--line); color: var(--muted-2); background: #fff; font-size: .72rem; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-title-group { min-width: 0; }
.page-title-group h1 { margin: 0; color: #111827; font-size: 1.55rem; line-height: 1.25; letter-spacing: -.035em; }
.page-title-group p { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--muted-2); font-size: .72rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: #c0c7d2; }

.btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: .82rem; font-weight: 700; line-height: 1; transition: .16s ease; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 4px 10px rgba(37,99,235,.15); }
.btn-primary:hover { color: #fff; background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { color: #344054; background: #fff; border-color: var(--line-strong); }
.btn-secondary:hover { color: var(--primary); border-color: #b9c7dc; background: #fbfdff; }
.btn-danger { color: var(--danger); background: #fff; border-color: #fecaca; }
.btn-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-success { color: #fff; background: var(--success); border-color: var(--success); }
.btn-sm { min-height: 34px; padding: 0 11px; font-size: .74rem; border-radius: 8px; }
.btn-block { width: 100%; }
.link-button { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3 { margin: 0; font-size: .95rem; letter-spacing: -.015em; }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: .73rem; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--line); background: #fbfcfe; border-radius: 0 0 var(--radius) var(--radius); }
.card-title-row { display: flex; align-items: center; gap: 10px; }
.card-title-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary); }
.card-title-icon svg { width: 18px; height: 18px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.metric-card { position: relative; min-height: 142px; padding: 20px; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -24px; bottom: -38px; border-radius: 50%; background: var(--primary-soft); opacity: .65; }
.metric-head { display: flex; align-items: center; justify-content: space-between; }
.metric-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--primary-soft); color: var(--primary); }
.metric-icon.success { color: var(--success); background: var(--success-soft); }
.metric-icon.warning { color: var(--warning); background: var(--warning-soft); }
.metric-icon.danger { color: var(--danger); background: var(--danger-soft); }
.metric-icon.purple { color: var(--purple); background: var(--purple-soft); }
.metric-icon svg { width: 21px; height: 21px; }
.metric-trend { display: inline-flex; align-items: center; gap: 3px; color: var(--success); font-size: .68rem; font-weight: 800; }
.metric-value { margin-top: 15px; font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.metric-label { margin-top: 8px; color: var(--muted); font-size: .76rem; }
.metric-note { margin-top: 5px; color: var(--muted-2); font-size: .66rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); gap: 18px; margin-bottom: 18px; }
.dashboard-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.insight-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow-sm); }
.insight-item { display: flex; align-items: center; gap: 13px; padding: 17px 18px; background: #fff; }
.insight-item .icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.insight-item .icon.warning { color: var(--warning); background: var(--warning-soft); }
.insight-item .icon.success { color: var(--success); background: var(--success-soft); }
.insight-item strong { display: block; font-size: 1rem; }
.insight-item span { color: var(--muted); font-size: .7rem; }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th { height: 44px; padding: 0 14px; text-align: left; color: #667085; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: .66rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.data-table td { min-height: 57px; padding: 12px 14px; border-bottom: 1px solid #edf0f5; color: #344054; font-size: .78rem; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdff; }
.data-table .cell-title { display: block; color: #1d2939; font-size: .79rem; font-weight: 700; }
.data-table .cell-subtitle { display: block; max-width: 290px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.data-table .nowrap { white-space: nowrap; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.table-action { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #667085; }
.table-action:hover { color: var(--primary); border-color: #b9c7dc; background: var(--primary-soft); }
.table-action svg { width: 15px; height: 15px; }
.avatar-cell { display: flex; align-items: center; gap: 10px; }
.company-avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #1d4ed8; background: #eaf1ff; font-size: .72rem; font-weight: 800; }
.ticket-number { color: var(--primary); font-size: .73rem; font-weight: 800; letter-spacing: .02em; }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 0 9px; border-radius: 999px; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.badge-primary { color: #1d4ed8; background: #eaf1ff; }
.badge-info { color: var(--info); background: var(--info-soft); }
.badge-success { color: var(--success); background: var(--success-soft); }
.badge-warning { color: var(--warning); background: var(--warning-soft); }
.badge-danger { color: var(--danger); background: var(--danger-soft); }
.badge-purple { color: var(--purple); background: var(--purple-soft); }
.badge-neutral { color: #667085; background: #f0f2f5; }
.status-text { display: inline-flex; align-items: center; gap: 7px; color: #475467; font-size: .72rem; font-weight: 700; }
.status-text::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #98a2b3; }
.status-text.active::before { background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.priority { display: inline-flex; align-items: center; gap: 7px; color: #475467; font-size: .7rem; font-weight: 700; }
.priority::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #94a3b8; }
.priority-low::before { background: #38bdf8; }
.priority-normal::before { background: #3b82f6; }
.priority-high::before { background: #f59e0b; }
.priority-critical::before { background: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.toolbar form, .filter-form { width: 100%; display: flex; align-items: center; gap: 9px; }
.filter-group { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.search-box { position: relative; min-width: 260px; flex: 1; }
.search-box svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; color: #98a2b3; transform: translateY(-50%); pointer-events: none; }
.search-box input { padding-left: 38px; }
.toolbar-summary { flex: 0 0 auto; color: var(--muted); font-size: .72rem; }

.form-card { max-width: 1000px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-group { min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 7px; color: #344054; font-size: .73rem; font-weight: 700; }
.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="date"], input[type="number"], select, textarea {
    width: 100%; min-height: 42px; padding: 9px 12px; color: #1d2939; background: #fff; border: 1px solid #d7deea; border-radius: 9px; outline: 0; font-size: .8rem; transition: border .16s ease, box-shadow .16s ease;
}
textarea { min-height: 110px; line-height: 1.55; resize: vertical; }
textarea.editor { min-height: 310px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .76rem; }
.form-control:focus, input:focus, select:focus, textarea:focus { border-color: #7aa7ff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-control::placeholder, input::placeholder, textarea::placeholder { color: #a5adba; }
.form-hint { display: block; margin-top: 6px; color: var(--muted-2); font-size: .66rem; line-height: 1.45; }
.field-validation-error { display: block; margin-top: 6px; color: var(--danger); font-size: .68rem; font-weight: 600; }
.input-validation-error { border-color: #fca5a5 !important; background: #fffafa !important; }
.validation-summary-errors { margin-bottom: 16px; padding: 12px 14px; color: #991b1b; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 9px; font-size: .74rem; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.checkbox-row { min-height: 42px; display: flex; align-items: center; gap: 9px; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--primary); }
.checkbox-row label { margin: 0; }
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-toggle { position: absolute; right: 7px; top: 50%; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #98a2b3; transform: translateY(-50%); }
.password-toggle:hover, .password-toggle.active { color: var(--primary); background: var(--primary-soft); }
.password-toggle svg { width: 17px; height: 17px; }

.alert { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; margin-bottom: 17px; padding: 11px 44px 11px 14px; border: 1px solid; border-radius: 10px; font-size: .77rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.alert svg { flex: 0 0 auto; width: 19px; height: 19px; }
.alert-success { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.alert-danger { color: #991b1b; background: #fff1f2; border-color: #fecdd3; }
.alert-close { position: absolute; top: 50%; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 7px; color: inherit; background: transparent; font-size: 1.15rem; transform: translateY(-50%); }
.alert-close:hover { background: rgba(0,0,0,.05); }

.progress-list { display: flex; flex-direction: column; gap: 17px; }
.progress-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; font-size: .72rem; }
.progress-item-head span:first-child { color: #344054; font-weight: 700; }
.progress-item-head span:last-child { color: var(--muted); font-weight: 700; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #eef2f7; }
.progress-fill { height: 100%; min-width: 3px; border-radius: inherit; background: var(--primary); }
.progress-fill.success { background: #22c55e; }
.progress-fill.warning { background: #f59e0b; }
.progress-fill.danger { background: #ef4444; }
.progress-fill.purple { background: #8b5cf6; }

.activity-list { display: flex; flex-direction: column; }
.activity-item { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 11px; padding: 12px 0; border-bottom: 1px solid #edf0f5; }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.activity-icon svg { width: 16px; height: 16px; }
.activity-copy strong { display: block; color: #344054; font-size: .72rem; }
.activity-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: .66rem; }
.activity-time { color: var(--muted-2); font-size: .62rem; white-space: nowrap; }

.empty-state { padding: 52px 24px; text-align: center; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 16px; color: var(--primary); background: var(--primary-soft); }
.empty-icon svg { width: 27px; height: 27px; }
.empty-state h3 { margin: 0; font-size: 1rem; }
.empty-state p { max-width: 450px; margin: 8px auto 18px; color: var(--muted); font-size: .76rem; line-height: 1.55; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
.profile-card { overflow: hidden; }
.profile-cover { height: 88px; background: linear-gradient(135deg, #1e40af, #3b82f6 70%, #60a5fa); }
.profile-main { position: relative; padding: 0 20px 20px; }
.profile-logo { width: 62px; height: 62px; display: grid; place-items: center; margin-top: -31px; border: 4px solid #fff; border-radius: 16px; color: #1d4ed8; background: #eaf1ff; box-shadow: 0 5px 15px rgba(15,23,42,.12); font-size: 1.15rem; font-weight: 900; }
.profile-main h2 { margin: 13px 0 4px; font-size: 1.08rem; }
.profile-main > p { margin: 0; color: var(--muted); font-size: .72rem; }
.profile-meta { display: grid; gap: 12px; margin-top: 18px; }
.profile-meta-item { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; align-items: start; }
.profile-meta-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #667085; background: #f3f5f8; }
.profile-meta-icon svg { width: 15px; height: 15px; }
.profile-meta-item small { display: block; margin-bottom: 3px; color: var(--muted-2); font-size: .61rem; text-transform: uppercase; letter-spacing: .04em; }
.profile-meta-item strong, .profile-meta-item a { display: block; overflow-wrap: anywhere; color: #344054; font-size: .72rem; font-weight: 700; }
.mini-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 16px 0 0; }
.mini-metric { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.mini-metric strong { display: block; font-size: 1.15rem; }
.mini-metric span { color: var(--muted); font-size: .65rem; }

.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 325px; gap: 18px; }
.ticket-subject { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.ticket-subject h1 { margin: 3px 0 0; font-size: 1.35rem; line-height: 1.35; }
.ticket-description { margin-top: 18px; padding: 17px; color: #344054; background: #f8fafc; border: 1px solid #edf0f5; border-radius: 10px; font-size: .8rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-meta-list { display: grid; gap: 0; }
.ticket-meta-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid #edf0f5; }
.ticket-meta-row:last-child { border-bottom: 0; }
.ticket-meta-row span:first-child { color: var(--muted); font-size: .7rem; }
.ticket-meta-row span:last-child { max-width: 190px; color: #344054; font-size: .72rem; font-weight: 700; text-align: right; }
.conversation { margin-top: 18px; }
.message { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 11px; margin-bottom: 15px; }
.message-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #1d4ed8; background: #eaf1ff; font-size: .7rem; font-weight: 800; }
.message.internal .message-avatar { color: var(--warning); background: var(--warning-soft); }
.message-box { padding: 14px 15px; border: 1px solid var(--line); border-radius: 0 11px 11px 11px; background: #fff; }
.message.internal .message-box { background: #fffbeb; border-color: #fde68a; }
.message-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.message-head strong { font-size: .73rem; }
.message-head span { color: var(--muted-2); font-size: .62rem; }
.message-body { color: #475467; font-size: .76rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-card textarea { min-height: 125px; }
.sla-indicator { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.sla-indicator strong { display: block; font-size: .75rem; }
.sla-indicator span { display: block; margin-top: 5px; color: var(--muted); font-size: .67rem; }
.sla-indicator.breached { border-color: #fecaca; background: #fff7f7; }
.sla-indicator.breached strong { color: var(--danger); }

.content-preview { color: #344054; font-size: .86rem; line-height: 1.75; }
.content-preview h1, .content-preview h2, .content-preview h3 { color: #172033; letter-spacing: -.02em; }
.content-preview img { border-radius: 10px; }
.content-preview blockquote { margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--primary); background: #f6f9ff; }

.auth-body { min-height: 100vh; background: #0f172a; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(430px, .95fr); }
.auth-showcase { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: 42px 6.5vw 34px; overflow: hidden; color: #fff; background: radial-gradient(circle at 15% 20%, rgba(59,130,246,.28), transparent 30%), radial-gradient(circle at 85% 78%, rgba(124,58,237,.2), transparent 28%), linear-gradient(145deg, #0b1325, #13213e 65%, #16294c); }
.auth-showcase::before, .auth-showcase::after { content: ""; position: absolute; border: 1px solid rgba(148,163,184,.1); border-radius: 50%; pointer-events: none; }
.auth-showcase::before { width: 500px; height: 500px; right: -260px; top: 4%; }
.auth-showcase::after { width: 330px; height: 330px; left: -180px; bottom: -120px; }
.auth-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; }
.showcase-copy { position: relative; z-index: 2; max-width: 690px; margin: auto 0; padding: 80px 0; }
.showcase-kicker { display: inline-flex; align-items: center; gap: 9px; color: #7fb0ff; font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.showcase-kicker::before { content: ""; width: 24px; height: 2px; background: #3b82f6; }
.showcase-copy h1 { max-width: 650px; margin: 20px 0 18px; font-size: clamp(2.25rem, 4.2vw, 4rem); line-height: 1.08; letter-spacing: -.055em; }
.showcase-copy > p { max-width: 610px; margin: 0; color: #aebbd0; font-size: 1rem; line-height: 1.7; }
.showcase-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-top: 45px; }
.showcase-features > div { padding: 16px; border: 1px solid rgba(148,163,184,.13); border-radius: 12px; background: rgba(255,255,255,.035); backdrop-filter: blur(8px); }
.showcase-features > div > span { display: block; margin-bottom: 12px; color: #5e9bff; font-size: .65rem; font-weight: 900; letter-spacing: .1em; }
.showcase-features p { margin: 0; }
.showcase-features strong { display: block; font-size: .76rem; }
.showcase-features small { display: block; margin-top: 6px; color: #8493aa; font-size: .67rem; line-height: 1.45; }
.showcase-footer { position: relative; z-index: 2; color: #697891; font-size: .68rem; letter-spacing: .04em; }
.auth-main { display: grid; place-items: center; min-height: 100vh; padding: 34px; background: #f7f9fc; }
.auth-card-wrap { width: 100%; max-width: 440px; }
.auth-card { padding: 33px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 50px rgba(15,23,42,.1); }
.auth-card h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.035em; }
.auth-card > p { margin: 8px 0 26px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-options { display: flex; align-items: center; justify-content: space-between; margin: 3px 0 20px; }
.auth-options .checkbox-row { min-height: auto; }
.auth-options a { font-size: .7rem; font-weight: 700; }
.auth-security-note { display: flex; gap: 9px; margin-top: 20px; padding: 12px; color: #667085; background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; font-size: .66rem; line-height: 1.45; }
.auth-security-note svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--success); }
.demo-credentials { margin-top: 14px; padding: 12px 13px; color: #344054; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 9px; font-size: .68rem; line-height: 1.55; }
.demo-credentials strong { color: #1d4ed8; }

.pagination { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; color: var(--muted); font-size: .7rem; }
.code-inline { padding: 2px 6px; border-radius: 5px; color: #344054; background: #f1f3f6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-muted { color: var(--muted) !important; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.w-100 { width: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }

@media (max-width: 1280px) {
    .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .showcase-features { grid-template-columns: 1fr; max-width: 440px; }
    .showcase-features > div { display: grid; grid-template-columns: 35px 1fr; align-items: start; }
    .showcase-features > div > span { margin: 2px 0 0; }
}

@media (max-width: 1024px) {
    :root { --sidebar-width: 260px; }
    .sidebar { transform: translateX(-101%); transition: transform .22s ease; }
    .sidebar.open { transform: translateX(0); }
    body.sidebar-open .sidebar-overlay { display: block; }
    .app-main { margin-left: 0; }
    .menu-button { display: grid; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-showcase { display: none; }
    .auth-main { min-height: 100vh; }
}

@media (max-width: 760px) {
    .topbar { height: 66px; padding: 0 15px; }
    .page-context .page-eyebrow, .user-copy, .topbar-create span { display: none; }
    .topbar-create { width: 40px; padding: 0; justify-content: center; }
    .user-menu { padding-left: 9px; gap: 6px; }
    .content-area { padding: 21px 15px 32px; }
    .page-header { flex-direction: column; align-items: stretch; }
    .page-actions { width: 100%; }
    .page-actions .btn { flex: 1; }
    .metrics-grid { grid-template-columns: 1fr; }
    .insight-strip { grid-template-columns: 1fr; }
    .dashboard-grid.equal, .detail-grid, .ticket-layout { grid-template-columns: 1fr; }
    .form-grid, .form-grid.three { grid-template-columns: 1fr; }
    .toolbar, .filter-form { align-items: stretch; flex-direction: column; }
    .filter-group { width: 100%; align-items: stretch; flex-direction: column; }
    .search-box { min-width: 0; width: 100%; }
    .toolbar .btn { width: 100%; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .btn { width: 100%; }
    .app-footer { align-items: flex-start; flex-direction: column; padding: 15px; }
    .auth-main { padding: 18px; }
    .auth-card { padding: 24px; }
}

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

/* Public content and SEO pages */
.public-body { min-height: 100vh; display: flex; flex-direction: column; color: #172033; background: #f7f9fc; }
.public-container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.public-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(208,213,221,.85); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.public-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.public-brand { display: flex; align-items: center; gap: 11px; color: #172033; text-decoration: none; }
.public-brand > span:last-child { display: flex; flex-direction: column; }
.public-brand strong { font-size: .95rem; letter-spacing: -.025em; }
.public-brand small { margin-top: 2px; color: #667085; font-size: .62rem; }
.public-main { flex: 1; padding: 72px 0 90px; }
.public-article { max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 64px); border: 1px solid #e2e7ef; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(15,23,42,.08); }
.public-article > h1 { max-width: 760px; margin: 12px 0 28px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.055em; }
.public-kicker { color: #2563eb; font-size: .68rem; font-weight: 900; letter-spacing: .16em; }
.public-footer { padding: 22px 0; color: #667085; border-top: 1px solid #e2e7ef; background: #fff; font-size: .68rem; }
.public-footer .public-container { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
@media (max-width: 620px) {
    .public-container { width: min(100% - 28px, 1120px); }
    .public-header-inner { min-height: 66px; }
    .public-brand small { display: none; }
    .public-main { padding: 32px 0 48px; }
    .public-article { padding: 24px 20px; border-radius: 14px; }
    .public-footer .public-container { align-items: flex-start; flex-direction: column; }
}

/* Customer portal */
.customer-body { background: #f4f7fb; }
.customer-sidebar { background: linear-gradient(180deg, #0c1830 0%, #0a1223 100%); }
.customer-topbar { box-shadow: 0 1px 0 rgba(15,23,42,.02); }
.customer-content { max-width: 1500px; }
.customer-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 26px 28px; overflow: hidden; color: #fff; border-radius: 16px; background: radial-gradient(circle at 80% 20%, rgba(96,165,250,.28), transparent 30%), linear-gradient(135deg, #172554, #1e3a8a 58%, #2563eb); box-shadow: 0 18px 36px rgba(30,58,138,.18); }
.customer-hero::after { content: ""; position: absolute; width: 250px; height: 250px; right: -120px; bottom: -160px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.customer-hero > * { position: relative; z-index: 1; }
.customer-hero-kicker { display: inline-block; margin-bottom: 8px; color: #93c5fd; font-size: .66rem; font-weight: 900; letter-spacing: .16em; }
.customer-hero h1 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.2rem); letter-spacing: -.04em; }
.customer-hero p { max-width: 720px; margin: 8px 0 0; color: #c7d7f3; font-size: .84rem; line-height: 1.6; }
.customer-hero p strong { color: #fff; }
.customer-hero .btn-primary { color: #1d4ed8; background: #fff; border-color: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.18); }
.customer-hero .btn-primary:hover { color: #1e40af; background: #eff6ff; }
.customer-metrics .metric-card { min-height: 136px; }
.customer-help-card { align-self: start; }
.customer-steps { display: grid; gap: 6px; }
.customer-steps > div { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.customer-steps > div:last-child { border-bottom: 0; }
.customer-steps > div > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #1d4ed8; background: #eaf1ff; font-size: .7rem; font-weight: 900; }
.customer-steps p { margin: 0; }
.customer-steps strong { display: block; color: #344054; font-size: .76rem; }
.customer-steps small { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.customer-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.customer-security-card { position: sticky; top: calc(var(--topbar-height) + 18px); }
.customer-security-list { display: grid; gap: 17px; }
.customer-security-list > div { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; align-items: start; }
.customer-security-list svg { width: 30px; height: 30px; padding: 7px; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.customer-security-list p { margin: 0; }
.customer-security-list strong { display: block; font-size: .74rem; }
.customer-security-list small { display: block; margin-top: 4px; color: var(--muted); font-size: .66rem; line-height: 1.5; }
.form-help { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--muted-2); font-size: .64rem; }
.customer-ticket-layout .support-message .message-avatar { color: #166534; background: #dcfce7; }
.customer-ticket-layout .customer-message .message-avatar { color: #1d4ed8; background: #eaf1ff; }
.customer-ticket-layout .customer-message .message-box { background: #f8fbff; border-color: #dbe8ff; }
.customer-closed-note { padding: 14px 16px; color: #475467; border: 1px solid #d7deea; border-radius: 10px; background: #f8fafc; font-size: .74rem; }
.customer-privacy-note { display: flex; gap: 12px; align-items: flex-start; }
.customer-privacy-note svg { flex: 0 0 auto; width: 32px; height: 32px; padding: 7px; border-radius: 9px; color: #15803d; background: #eaf8ef; }
.customer-privacy-note strong { display: block; font-size: .73rem; }
.customer-privacy-note span { display: block; margin-top: 4px; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.customer-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.customer-product-card { padding: 19px; }
.customer-product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.customer-product-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #1d4ed8; background: #eaf1ff; }
.customer-product-icon svg { width: 21px; height: 21px; }
.customer-product-card h2 { margin: 16px 0 5px; font-size: 1rem; letter-spacing: -.025em; }
.customer-product-card > p { margin: 0; color: var(--muted); font-size: .72rem; }
.customer-product-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.customer-product-meta span { display: block; color: var(--muted-2); font-size: .61rem; text-transform: uppercase; letter-spacing: .04em; }
.customer-product-meta strong { display: block; margin-top: 4px; color: #344054; font-size: .7rem; overflow-wrap: anywhere; }
.customer-product-actions { margin-top: 18px; }
.auth-kicker { margin-bottom: 9px; color: var(--primary); font-size: .65rem; font-weight: 900; letter-spacing: .14em; }
.auth-divider { position: relative; margin: 18px 0; text-align: center; }
.auth-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.auth-divider span { position: relative; padding: 0 10px; color: var(--muted-2); background: #fff; font-size: .65rem; }
.admin-demo { margin-top: 8px; background: #f8fafc; border-color: var(--line); }
.auth-card-register { max-width: 540px; }
.auth-card-wrap:has(.auth-card-register) { max-width: 540px; }
.auth-form-grid { gap: 12px; }
.password-requirements { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 8px; }
.password-requirements span { padding: 5px 8px; border-radius: 999px; color: #667085; background: #f2f4f7; font-size: .6rem; font-weight: 700; }
.register-terms { min-height: auto; margin-top: 12px; align-items: flex-start; }
.register-terms label { color: #475467; font-size: .68rem; line-height: 1.45; }
.auth-login-link { margin-top: 18px; color: var(--muted); font-size: .72rem; text-align: center; }
.auth-login-link a { font-weight: 800; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

@media (max-width: 1180px) {
    .customer-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .customer-form-layout { grid-template-columns: 1fr; }
    .customer-security-card { position: static; }
}
@media (max-width: 760px) {
    .customer-hero { align-items: stretch; flex-direction: column; padding: 22px 20px; }
    .customer-hero .btn { width: 100%; }
    .customer-product-grid { grid-template-columns: 1fr; }
    .customer-product-meta { grid-template-columns: 1fr; }
    .auth-form-grid { grid-template-columns: 1fr; }
    .form-help { align-items: flex-start; flex-direction: column; }
}

/* v8.5 - Destek personeli / level görünümü */
.message-author { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.message-author strong { max-width: 100%; color: #172033; font-size: .75rem; line-height: 1.25; overflow-wrap: anywhere; }
.message-author small { color: #667085; font-size: .61rem; font-weight: 700; line-height: 1.25; }
.message.support-message .message-avatar { color: #166534; background: #dcfce7; }
.message.customer-message .message-avatar { color: #1d4ed8; background: #eaf1ff; }
.message.customer-message .message-box { background: #f8fbff; border-color: #dbe8ff; }
.support-level-code { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; margin-bottom: 3px; border-radius: 999px; color: #1d4ed8; background: #eaf1ff; font-size: .64rem; font-weight: 900; letter-spacing: .04em; }
.field-help { display: block; margin-top: 6px; color: var(--muted-2); font-size: .66rem; line-height: 1.45; }
.form-group.full-span { grid-column: 1 / -1; }

/* v8.9 - Uras Yazilim yeni logo / ikon ve lime + cyan kurumsal tema */
:root {
    --bg: #f4f7f6;
    --surface: #ffffff;
    --surface-muted: #f8fbfa;
    --sidebar: #181a1d;
    --sidebar-soft: #212428;
    --sidebar-text: #e9edef;
    --sidebar-muted: #929ba0;
    --primary: #b8f000;
    --primary-dark: #9fd000;
    --primary-ink: #4d6500;
    --primary-soft: #efffc1;
    --accent: #00c0d0;
    --accent-dark: #009aaa;
    --accent-soft: #dcfbfd;
    --ink: #1b1d20;
    --muted: #687176;
    --muted-2: #98a1a6;
    --line: #e0e6e6;
    --line-strong: #cfd8d9;
    --shadow-sm: 0 1px 2px rgba(24,26,29,.04), 0 1px 3px rgba(24,26,29,.06);
    --shadow-md: 0 12px 28px rgba(24,26,29,.09);
}

a { color: var(--accent-dark); }
a:hover { color: #007886; }

.sidebar,
.customer-sidebar {
    background:
        radial-gradient(circle at 18% 5%, rgba(184,240,0,.14), transparent 24%),
        radial-gradient(circle at 88% 34%, rgba(0,192,208,.10), transparent 28%),
        linear-gradient(180deg, #202327 0%, #15171a 100%);
    box-shadow: 12px 0 30px rgba(24,26,29,.13);
}
.brand { border-bottom-color: rgba(184,240,0,.12); }
.brand-link { width: 100%; }
.brand-mark.brand-mark-image {
    width: 42px;
    height: 42px;
    overflow: visible;
    padding: 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
}
.brand-icon-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-copy strong { color: #fff; }
.brand-copy small { color: #aeb8bc; }
.nav-section-label { color: #7e888e; }
.nav-link svg { color: #9aa4a9; }
.nav-link:hover { color: #fff; background: rgba(0,192,208,.075); }
.nav-link:hover svg { color: var(--accent); }
.nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(184,240,0,.18), rgba(0,192,208,.07));
    box-shadow: inset 0 0 0 1px rgba(184,240,0,.11);
}
.nav-link.active::before { background: var(--primary); box-shadow: 0 0 13px rgba(184,240,0,.52); }
.nav-link.active svg { color: var(--primary); }
.system-status { background: rgba(0,192,208,.045); }
.system-status strong { color: #edf2f3; }
.system-status small { color: #929ca1; }
.status-dot { background: var(--primary); box-shadow: 0 0 0 4px rgba(184,240,0,.12); }

.topbar-create,
.btn-primary {
    color: #151719;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 5px 14px rgba(137,181,0,.20);
}
.topbar-create:hover,
.btn-primary:hover {
    color: #101214;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.icon-button:hover { border-color: #9fe9ef; color: var(--accent-dark); background: #f2fdfe; }
.user-avatar { color: #004d56; background: var(--accent-soft); }
.user-actions > a:hover,
.user-actions button:hover { color: var(--accent-dark); background: var(--accent-soft); }

.btn-secondary:hover,
.table-action:hover { color: var(--accent-dark); border-color: #8edce3; background: #f3fdfe; }
.company-avatar,
.customer-product-icon { color: #405500; background: var(--primary-soft); }
.message-avatar { color: #006873; background: var(--accent-soft); }
.badge-primary,
.support-level-code { color: #405500; background: var(--primary-soft); }
.form-control:focus,
input:focus,
select:focus,
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,192,208,.16); }
.content-preview blockquote { background: #f6feff; border-left-color: var(--accent); }
.profile-cover { background: linear-gradient(135deg, #181a1d, #24282b 58%, #007985 78%, #6f9000); }
.profile-logo { color: #405500; background: var(--primary-soft); }
.card-title-icon { background: var(--accent-soft); color: var(--accent-dark); }
.metric-icon { background: var(--accent-soft); color: var(--accent-dark); }

.auth-body { background: #15171a; }
.auth-showcase {
    background:
        radial-gradient(circle at 14% 18%, rgba(184,240,0,.19), transparent 30%),
        radial-gradient(circle at 86% 78%, rgba(0,192,208,.15), transparent 31%),
        linear-gradient(145deg, #101214, #1a1d20 60%, #20262a);
}
.auth-showcase::before { border-color: rgba(184,240,0,.10); }
.auth-showcase::after { border-color: rgba(0,192,208,.10); }
.auth-brand-logo {
    position: relative;
    z-index: 2;
    width: min(460px, 78%);
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(0,192,208,.18);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,.20);
}
.auth-logo-img { width: 100%; height: auto; display: block; }
.auth-mobile-brand { display: none; width: min(340px, 84vw); margin: 0 auto 22px; }
.auth-mobile-brand img { width: 100%; height: auto; display: block; }
.showcase-kicker { color: var(--primary); }
.showcase-kicker::before { background: var(--accent); }
.showcase-copy > p { color: #c8ced0; }
.showcase-features > div { border-color: rgba(0,192,208,.13); background: rgba(0,192,208,.035); }
.showcase-features > div > span { color: var(--primary); }
.showcase-features small { color: #9da7ab; }
.showcase-footer { color: #899398; }
.auth-main { background: #f4f7f6; }
.auth-card { border-color: #dce4e4; box-shadow: 0 22px 50px rgba(24,26,29,.11); }
.demo-credentials { color: #24464a; background: #ecfdfe; border-color: #b7edf1; }
.demo-credentials strong { color: #007985; }

.public-body { color: var(--ink); background: #f4f7f6; }
.public-header { border-bottom-color: rgba(215,224,224,.92); }
.public-brand-logo { width: min(420px, 56vw); }
.public-logo-img { width: 100%; max-height: 58px; object-fit: contain; object-position: left center; display: block; }
.public-kicker { color: var(--accent-dark); }
.public-article { border-color: #dde5e5; box-shadow: 0 24px 60px rgba(24,26,29,.08); }

.customer-body { background: #f4f7f6; }
.customer-hero {
    color: #fff;
    background:
        radial-gradient(circle at 78% 14%, rgba(184,240,0,.21), transparent 31%),
        radial-gradient(circle at 18% 84%, rgba(0,192,208,.17), transparent 31%),
        linear-gradient(135deg, #181a1d, #24282b 58%, #064e56);
    box-shadow: 0 18px 36px rgba(24,26,29,.18);
}
.customer-hero-kicker { color: var(--primary); }
.customer-hero p { color: #d4dadd; }
.customer-hero .btn-primary { color: #121416; background: var(--primary); border-color: var(--primary); }
.customer-hero .btn-primary:hover { color: #121416; background: var(--primary-dark); border-color: var(--primary-dark); }
.customer-steps > div > span { color: #405500; background: var(--primary-soft); }
.customer-ticket-layout .customer-message .message-avatar,
.message.customer-message .message-avatar { color: #006873; background: var(--accent-soft); }
.customer-ticket-layout .customer-message .message-box,
.message.customer-message .message-box { background: #f3fdfe; border-color: #cceff2; }
.message.support-message .message-avatar { color: #405500; background: var(--primary-soft); }
.customer-security-list svg { color: var(--accent-dark); background: var(--accent-soft); }

@media (max-width: 1024px) {
    .auth-mobile-brand { display: block; }
}
@media (max-width: 620px) {
    .public-brand-logo { width: min(280px, 66vw); }
    .public-logo-img { max-height: 46px; }
}

/* v9.0 - Uras Yazilim daha sakin kurumsal tema
   Logo renkleri korunur; fosfor lime UI yuzeylerinde daha mat kullanilir. */
:root {
    --bg: #f3f6f5;
    --surface: #ffffff;
    --surface-muted: #f7f9f8;
    --sidebar: #191d1f;
    --sidebar-soft: #22272a;
    --sidebar-text: #e8edee;
    --sidebar-muted: #919b9f;

    /* Logodaki lime'in daha sakin arayuz karsiligi */
    --primary: #7f9828;
    --primary-dark: #667b20;
    --primary-ink: #35400f;
    --primary-soft: #eef3df;

    /* Logodaki cyan'in daha yumusak arayuz karsiligi */
    --accent: #2399a2;
    --accent-dark: #176f76;
    --accent-soft: #e6f3f4;

    --ink: #1c2022;
    --muted: #687277;
    --muted-2: #99a2a6;
    --line: #e0e6e5;
    --line-strong: #cfd8d7;
    --shadow-sm: 0 1px 2px rgba(25,29,31,.04), 0 1px 3px rgba(25,29,31,.06);
    --shadow-md: 0 12px 28px rgba(25,29,31,.08);
}

a { color: var(--accent-dark); }
a:hover { color: #105c62; }

.sidebar,
.customer-sidebar {
    background:
        radial-gradient(circle at 15% 4%, rgba(127,152,40,.055), transparent 25%),
        radial-gradient(circle at 90% 34%, rgba(35,153,162,.045), transparent 30%),
        linear-gradient(180deg, #202528 0%, #171a1c 100%);
    box-shadow: 12px 0 30px rgba(25,29,31,.11);
}

.brand { border-bottom-color: rgba(127,152,40,.09); }
.nav-link:hover { color: #fff; background: rgba(35,153,162,.055); }
.nav-link:hover svg { color: #75c3c9; }
.nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(127,152,40,.13), rgba(35,153,162,.045));
    box-shadow: inset 0 0 0 1px rgba(127,152,40,.08);
}
.nav-link.active::before { background: var(--primary); box-shadow: none; }
.nav-link.active svg { color: #a9bd63; }
.system-status { background: rgba(35,153,162,.035); }
.status-dot { background: #7f9828; box-shadow: 0 0 0 3px rgba(127,152,40,.10); }

.topbar-create,
.btn-primary {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 11px rgba(92,112,27,.15);
}
.topbar-create:hover,
.btn-primary:hover {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.icon-button:hover,
.btn-secondary:hover,
.table-action:hover {
    border-color: #afd8db;
    color: var(--accent-dark);
    background: #f4fbfb;
}

.user-avatar,
.message-avatar,
.card-title-icon,
.metric-icon {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.company-avatar,
.customer-product-icon,
.badge-primary,
.support-level-code,
.profile-logo,
.customer-steps > div > span {
    color: var(--primary-ink);
    background: var(--primary-soft);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #62b9bf;
    box-shadow: 0 0 0 3px rgba(35,153,162,.10);
}

.profile-cover {
    background: linear-gradient(135deg, #191d1f, #252a2d 60%, #215d62 82%, #586a22);
}

.auth-showcase {
    background:
        radial-gradient(circle at 14% 18%, rgba(127,152,40,.075), transparent 31%),
        radial-gradient(circle at 86% 78%, rgba(35,153,162,.065), transparent 32%),
        linear-gradient(145deg, #111416, #1b1f21 60%, #22282b);
}
.auth-showcase::before { border-color: rgba(127,152,40,.065); }
.auth-showcase::after { border-color: rgba(35,153,162,.065); }
.auth-brand-logo { border-color: rgba(35,153,162,.12); box-shadow: 0 16px 38px rgba(0,0,0,.16); }
.showcase-kicker { color: #a7bc58; }
.showcase-kicker::before { background: #54afb6; }
.showcase-features > div { border-color: rgba(35,153,162,.085); background: rgba(35,153,162,.025); }
.showcase-features > div > span { color: #a7bc58; }
.auth-main { background: #f3f6f5; }
.demo-credentials { color: #315257; background: #eff8f8; border-color: #cce7e9; }
.demo-credentials strong { color: var(--accent-dark); }

.customer-body { background: #f3f6f5; }
.customer-hero {
    color: #fff;
    background:
        radial-gradient(circle at 78% 14%, rgba(127,152,40,.085), transparent 33%),
        radial-gradient(circle at 18% 84%, rgba(35,153,162,.075), transparent 33%),
        linear-gradient(135deg, #191d1f, #242a2d 58%, #17494d);
    box-shadow: 0 16px 32px rgba(25,29,31,.14);
}
.customer-hero-kicker { color: #b5c870; }
.customer-hero p { color: #d3d9da; }
.customer-hero .btn-primary {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}
.customer-hero .btn-primary:hover {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.customer-ticket-layout .customer-message .message-box,
.message.customer-message .message-box { background: #f5fbfb; border-color: #d4e9ea; }
.customer-security-list svg { color: var(--accent-dark); background: var(--accent-soft); }

/* v9.1 - Executive Uras theme: quieter, denser, support-platform focused */
:root {
    --bg: #f4f6f6;
    --surface: #ffffff;
    --surface-muted: #f8f9f9;
    --sidebar: #171b1d;
    --sidebar-soft: #202629;
    --sidebar-text: #eef1f2;
    --sidebar-muted: #929da1;
    --primary: #1f7f87;
    --primary-dark: #176970;
    --primary-ink: #123f43;
    --primary-soft: #e8f2f3;
    --accent: #8ea638;
    --accent-dark: #71852d;
    --accent-soft: #f0f3e5;
    --ink: #1d2326;
    --muted: #677176;
    --muted-2: #98a1a5;
    --line: #e0e5e6;
    --line-strong: #ccd4d6;
    --shadow-sm: 0 1px 2px rgba(17,24,28,.035), 0 2px 6px rgba(17,24,28,.04);
    --shadow-md: 0 16px 38px rgba(17,24,28,.08);
}

body { color: var(--ink); }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

.sidebar,
.customer-sidebar {
    background: linear-gradient(180deg, #191e20 0%, #14181a 100%);
    box-shadow: 10px 0 28px rgba(17,24,28,.10);
}
.brand { border-bottom-color: rgba(255,255,255,.07); }
.brand-mark.brand-mark-image { width: 38px; height: 38px; }
.brand-copy strong { font-size: 1rem; letter-spacing: -.025em; }
.brand-copy small { color: #8f999d; letter-spacing: .055em; }
.nav-section-label { color: #737f84; }
.nav-link { border: 1px solid transparent; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.035); }
.nav-link:hover svg { color: #8bc5c9; }
.nav-link.active {
    color: #fff;
    background: rgba(31,127,135,.12);
    border-color: rgba(31,127,135,.11);
    box-shadow: none;
}
.nav-link.active::before { width: 2px; background: #3f9da4; box-shadow: none; }
.nav-link.active svg { color: #71b8bd; }
.system-status { border-color: rgba(255,255,255,.06); background: rgba(255,255,255,.025); }
.status-dot { background: #8ea638; box-shadow: 0 0 0 3px rgba(142,166,56,.10); }

.topbar-create,
.btn-primary {
    color: #fff;
    background: #1f7f87;
    border-color: #1f7f87;
    box-shadow: 0 5px 14px rgba(31,127,135,.14);
}
.topbar-create:hover,
.btn-primary:hover {
    color: #fff;
    background: #176970;
    border-color: #176970;
    transform: translateY(-1px);
}
.btn-secondary:hover,
.table-action:hover,
.icon-button:hover {
    color: #176970;
    border-color: #b9d7d9;
    background: #f5fbfb;
}
.badge-primary,
.support-level-code,
.company-avatar,
.customer-product-icon,
.profile-logo,
.customer-steps > div > span {
    color: #5e6f24;
    background: #f0f3e5;
}
.user-avatar,
.message-avatar,
.card-title-icon,
.metric-icon {
    color: #176970;
    background: #e8f2f3;
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #76b1b6;
    box-shadow: 0 0 0 3px rgba(31,127,135,.085);
}
.profile-cover { background: linear-gradient(135deg, #181d1f, #222a2d 72%, #244a4e); }

/* Auth screen */
.auth-body { background: #f4f6f6; }
.auth-shell { grid-template-columns: minmax(500px, 1.02fr) minmax(440px, .98fr); }
.auth-showcase {
    padding: 42px clamp(42px, 5vw, 84px) 32px;
    background: linear-gradient(145deg, #121719 0%, #181e20 58%, #1b2528 100%);
}
.auth-showcase::before {
    width: 420px;
    height: 420px;
    right: -255px;
    top: -80px;
    border-color: rgba(64,144,151,.10);
}
.auth-showcase::after {
    width: 280px;
    height: 280px;
    left: -185px;
    bottom: -120px;
    border-color: rgba(142,166,56,.065);
}
.auth-brand-logo { display: none; }
.auth-brand-compact {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    color: #fff;
    text-decoration: none;
}
.auth-brand-compact:hover { color: #fff; }
.auth-brand-icon {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
}
.auth-brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.auth-brand-wordmark strong {
    color: #f7f9f9;
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: .025em;
}
.auth-brand-wordmark small {
    margin-top: 6px;
    color: #8f9a9e;
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .17em;
}
.showcase-copy {
    max-width: 590px;
    margin: auto 0;
    padding: 54px 0 48px;
}
.showcase-kicker {
    color: #8dbcc0;
    font-size: .63rem;
    letter-spacing: .14em;
}
.showcase-kicker::before { width: 22px; background: #2a929a; }
.showcase-copy h1 {
    max-width: 570px;
    margin: 18px 0 16px;
    font-size: clamp(2.15rem, 3.25vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}
.showcase-copy > p {
    max-width: 560px;
    color: #b7c0c3;
    font-size: .91rem;
    line-height: 1.7;
}
.showcase-features {
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    margin-top: 34px;
}
.showcase-features > div {
    min-height: 108px;
    padding: 14px 15px;
    border-color: rgba(255,255,255,.075);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    backdrop-filter: none;
}
.showcase-features > div > span {
    margin-bottom: 9px;
    color: #899f3e;
    font-size: .59rem;
}
.showcase-features strong { color: #eef2f2; font-size: .72rem; }
.showcase-features small { color: #879297; font-size: .62rem; }
.showcase-footer { color: #687479; font-size: .62rem; }
.auth-main { padding: 34px clamp(28px, 4vw, 58px); background: #f4f6f6; }
.auth-card-wrap { max-width: 430px; }
.auth-card {
    padding: 34px;
    border-color: #dde4e5;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(17,24,28,.075);
}
.auth-kicker { color: #176970; }
.demo-credentials { color: #41565a; background: #f2f7f7; border-color: #dce9ea; }
.demo-credentials strong { color: #176970; }
.auth-security-note { color: #6a7478; }
.auth-mobile-brand {
    display: none;
    width: fit-content;
    margin: 0 auto 22px;
}
.auth-mobile-brand .auth-brand-wordmark strong { color: #1d2326; }
.auth-mobile-brand .auth-brand-wordmark small { color: #6d777b; }

/* Customer portal */
.customer-body { background: #f4f6f6; }
.customer-hero {
    color: #fff;
    background: linear-gradient(135deg, #181d1f 0%, #20272a 68%, #1d4a4e 100%);
    box-shadow: 0 14px 30px rgba(17,24,28,.12);
}
.customer-hero::after { border-color: rgba(255,255,255,.08); }
.customer-hero-kicker { color: #8dbcc0; }
.customer-hero p { color: #c3cbce; }
.customer-hero .btn-primary { color: #fff; background: #1f7f87; border-color: #1f7f87; }
.customer-hero .btn-primary:hover { color: #fff; background: #176970; border-color: #176970; }
.customer-security-list svg { color: #176970; background: #e8f2f3; }

/* Public pages */
.public-body { background: #f5f7f7; }
.public-header { background: rgba(255,255,255,.97); }
.public-article { border-color: #e0e5e6; box-shadow: 0 18px 44px rgba(17,24,28,.065); }
.public-kicker { color: #176970; }
.public-brand-logo { width: min(300px, 45vw); }
.public-logo-img { max-height: 46px; }

@media (max-width: 1280px) {
    .auth-shell { grid-template-columns: minmax(460px, 1fr) minmax(420px, 1fr); }
    .showcase-copy h1 { font-size: clamp(2rem, 3vw, 3rem); }
    .showcase-features { grid-template-columns: 1fr; max-width: 430px; }
    .showcase-features > div { min-height: 0; display: grid; grid-template-columns: 34px 1fr; }
    .showcase-features > div > span { margin: 2px 0 0; }
}

@media (max-width: 1024px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-showcase { display: none; }
    .auth-main { min-height: 100vh; }
    .auth-mobile-brand { display: inline-flex; }
}

@media (max-width: 620px) {
    .auth-main { padding: 20px 16px; }
    .auth-card { padding: 25px 20px; border-radius: 12px; }
    .auth-brand-icon { width: 42px; height: 42px; }
    .auth-brand-wordmark strong { font-size: .92rem; }
    .public-brand-logo { width: min(240px, 62vw); }
    .public-logo-img { max-height: 40px; }
}

/* v9.2 - Gercek Uras tam logo gorunurlugu
   Kullanici tarafindan verilen uras-logo.png degistirilmeden kullanilir. */
.brand {
    min-height: 86px;
    padding: 0 15px;
}
.brand-link-full-logo {
    width: 100%;
    justify-content: flex-start;
    gap: 0;
}
.brand-logo-card {
    width: 100%;
    max-width: 214px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    background: #f7f9f9;
    box-shadow: 0 7px 18px rgba(0,0,0,.10);
}
.brand-full-logo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.auth-brand-logo-visible {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: fit-content;
    text-decoration: none;
}
.auth-logo-card {
    width: clamp(220px, 24vw, 300px);
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: #f7f9f9;
    box-shadow: 0 12px 28px rgba(0,0,0,.13);
}
.auth-full-logo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}
.auth-mobile-brand {
    display: none;
    width: fit-content;
    margin: 0 auto 22px;
}
.auth-mobile-brand .auth-logo-card {
    width: min(300px, 82vw);
    height: 82px;
    border-color: #dce3e4;
    background: #fff;
    box-shadow: 0 8px 20px rgba(17,24,28,.07);
}

@media (max-width: 1024px) {
    .auth-mobile-brand { display: inline-flex; }
}

@media (max-width: 620px) {
    .brand { min-height: 78px; padding: 0 12px; }
    .brand-logo-card { max-width: 204px; height: 58px; }
    .auth-mobile-brand .auth-logo-card { width: min(280px, 84vw); height: 76px; }
}


/* v9.3 - Auth screen split layout refinement
   Sol panel beyaz, sag panel koyu kurumsal zemin. */
.auth-body {
    background: #edf2f3;
}
.auth-shell {
    grid-template-columns: minmax(560px, 1.08fr) minmax(420px, .92fr);
}
.auth-showcase {
    color: #172126;
    background:
        radial-gradient(circle at 12% 16%, rgba(31,127,135,.06), transparent 26%),
        radial-gradient(circle at 86% 84%, rgba(142,166,56,.08), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
    border-right: 1px solid #dde6e8;
}
.auth-showcase::before {
    border-color: rgba(31,127,135,.08);
}
.auth-showcase::after {
    border-color: rgba(142,166,56,.08);
}
.auth-brand-logo-visible {
    max-width: 360px;
}
.auth-logo-card {
    width: clamp(240px, 26vw, 360px);
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.auth-full-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.showcase-kicker {
    color: #1f7f87;
}
.showcase-kicker::before {
    background: #1f7f87;
}
.showcase-copy {
    max-width: 620px;
    padding: 42px 0 42px;
}
.showcase-copy h1 {
    max-width: 620px;
    color: #12181b;
    font-size: clamp(2.1rem, 3vw, 3.35rem);
    line-height: 1.06;
}
.showcase-copy > p {
    max-width: 590px;
    color: #516066;
    font-size: .94rem;
}
.showcase-features > div {
    border-color: #dbe5e7;
    background: rgba(255,255,255,.72);
    box-shadow: 0 8px 18px rgba(17,24,28,.04);
}
.showcase-features > div > span {
    color: #90aa31;
}
.showcase-features strong {
    color: #172126;
}
.showcase-features small {
    color: #5d6b70;
}
.showcase-footer {
    color: #7b8a8f;
}
.auth-main {
    position: relative;
    min-height: 100vh;
    padding: 34px clamp(26px, 4vw, 54px);
    background:
        radial-gradient(circle at 80% 16%, rgba(31,127,135,.12), transparent 23%),
        linear-gradient(160deg, #171b1d 0%, #1b2326 62%, #18363a 100%);
}
.auth-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,0));
    pointer-events: none;
}
.auth-card-wrap {
    position: relative;
    z-index: 1;
}
.auth-card {
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 22px 50px rgba(0,0,0,.22);
}
.auth-kicker {
    color: #1f7f87;
}
.auth-mobile-brand .auth-logo-card {
    width: min(320px, 84vw);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
@media (max-width: 1280px) {
    .auth-shell {
        grid-template-columns: minmax(500px, 1fr) minmax(390px, .9fr);
    }
}
@media (max-width: 1024px) {
    .auth-main {
        background: #f4f6f6;
    }
    .auth-mobile-brand .auth-logo-card {
        width: min(300px, 84vw);
    }
}


/* v9.4 - Admin ve Musteri paneli split theme refinement */
.app-body,
.customer-body {
    background: #edf2f3;
}
.app-shell,
.customer-app-shell {
    background: transparent;
}
.sidebar {
    background: linear-gradient(180deg, #14191c 0%, #171d20 55%, #162d31 100%);
    box-shadow: 16px 0 34px rgba(17, 24, 28, .14);
}
.nav-section-label {
    color: #7f8d94;
}
.nav-link.active {
    background: linear-gradient(90deg, rgba(31,127,135,.28), rgba(31,127,135,.08));
    box-shadow: inset 0 0 0 1px rgba(82,185,195,.13);
}
.nav-link.active::before {
    background: #27a1ab;
}
.nav-link.active svg {
    color: #6cd1d8;
}
.app-main {
    background: #f6f8f8;
}
.topbar {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #dde6e8;
    box-shadow: 0 10px 28px rgba(17,24,28,.04);
}
.page-context .page-eyebrow {
    color: #6e7c82;
}
.page-context strong {
    color: #172126;
}
.topbar-create {
    background: #1f7f87;
    box-shadow: 0 8px 18px rgba(31,127,135,.18);
}
.topbar-create:hover {
    background: #176970;
}
.user-avatar {
    color: #176970;
    background: #e7f2f3;
}
.content-area {
    max-width: 1720px;
    padding: 24px 28px 38px;
}
.app-footer {
    border-top: 1px solid #dde6e8;
    background: #f9fbfb;
    color: #7b878d;
}
.page-header {
    position: relative;
    align-items: center;
    margin-bottom: 18px;
    padding: 22px 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
    border: 1px solid #dde6e8;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(17,24,28,.045);
}
.page-header::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: min(220px, 26%);
    background: linear-gradient(145deg, rgba(31,127,135,.10), rgba(142,166,56,.06));
    clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}
.page-title-group,
.page-actions {
    position: relative;
    z-index: 1;
}
.page-title-group h1 {
    color: #172126;
}
.page-title-group p {
    color: #58656b;
}
.breadcrumb,
.breadcrumb a {
    color: #7b878d;
}
.btn-primary {
    background: #1f7f87;
    border-color: #1f7f87;
    box-shadow: 0 6px 14px rgba(31,127,135,.14);
}
.btn-primary:hover {
    background: #176970;
    border-color: #176970;
}
.btn-secondary:hover,
.table-action:hover,
.user-actions > a:hover,
.user-actions button:hover {
    color: #176970;
    background: #edf6f6;
}
.card {
    border-color: #dde6e8;
    box-shadow: 0 12px 26px rgba(17,24,28,.045);
}
.card-header {
    border-bottom-color: #e6edee;
}
.card-footer {
    background: #fbfcfc;
    border-top-color: #e6edee;
}
.card-title-icon,
.metric-icon,
.insight-item .icon,
.company-avatar {
    color: #176970;
    background: #e8f2f3;
}
.metric-card {
    border-color: #dfe7e8;
}
.metric-card::after {
    background: linear-gradient(135deg, rgba(31,127,135,.12), rgba(142,166,56,.14));
    opacity: .9;
}
.metric-value {
    color: #172126;
}
.metric-label {
    color: #5b676d;
}
.metric-note {
    color: #8a9599;
}
.toolbar {
    border-color: #dde6e8;
    box-shadow: 0 10px 22px rgba(17,24,28,.038);
}
.data-table th {
    background: #f8fbfb;
}
.data-table tbody tr:hover {
    background: #fbfdfd;
}
.ticket-number,
.public-kicker,
.auth-kicker {
    color: #176970;
}
.badge-primary { color: #176970; background: #e8f2f3; }
.badge-info { color: #0f6d82; background: #e7f4f7; }
.customer-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 28px 30px;
    overflow: hidden;
    color: #172126;
    background: linear-gradient(180deg, #ffffff 0%, #fafcfc 100%);
    border: 1px solid #dde6e8;
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(17,24,28,.05);
}
.customer-hero::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 34%);
    background: linear-gradient(160deg, #171b1d 0%, #1b2326 62%, #18363a 100%);
    border-radius: 0 22px 22px 0;
}
.customer-hero > div,
.customer-hero > a {
    position: relative;
    z-index: 1;
}
.customer-hero > div {
    max-width: 700px;
}
.customer-hero-kicker {
    color: #1f7f87;
}
.customer-hero h1 {
    margin: 14px 0 10px;
    color: #11181c;
    font-size: clamp(1.9rem, 2.8vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}
.customer-hero p {
    max-width: 560px;
    color: #556369;
}
.customer-hero .btn-primary {
    background: #1a2225;
    border-color: #1a2225;
    box-shadow: 0 12px 24px rgba(0,0,0,.16);
}
.customer-hero .btn-primary:hover {
    background: #176970;
    border-color: #176970;
}
.customer-help-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
}
.empty-state {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
    border-color: #dde6e8;
}
@media (max-width: 1100px) {
    .page-header {
        padding: 20px 20px;
    }
    .page-header::after {
        width: 180px;
    }
    .customer-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .customer-hero::before {
        width: 100%;
        height: 108px;
        top: auto;
        bottom: 0;
        border-radius: 0 0 22px 22px;
    }
    .customer-hero .btn-primary {
        justify-self: flex-start;
    }
}
@media (max-width: 768px) {
    .content-area {
        padding: 18px 16px 30px;
    }
    .page-header {
        padding: 18px;
        border-radius: 14px;
    }
    .page-header::after {
        display: none;
    }
    .customer-hero {
        padding: 22px 18px;
        border-radius: 16px;
    }
    .customer-hero::before {
        height: 92px;
        border-radius: 0 0 16px 16px;
    }
}


/* v9.5 - Admin ve Musteri paneli renk yer degisimi */
.app-body,
.customer-body {
    background: #171b1d;
}
.sidebar {
    background: linear-gradient(180deg, #fbfcfc 0%, #f5f8f8 100%);
    border-right: 1px solid #dde6e8;
    box-shadow: 16px 0 34px rgba(17,24,28,.06);
}
.brand {
    border-bottom-color: #e3eaeb;
}
.nav-section-label {
    color: #6b787e;
}
.nav-link {
    color: #1b2529;
}
.nav-link svg {
    color: #738288;
}
.nav-link:hover {
    background: #f0f6f6;
    color: #122024;
}
.nav-link:hover svg {
    color: #1f7f87;
}
.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #1b2326 0%, #1f7f87 100%);
    box-shadow: 0 10px 20px rgba(31,127,135,.18);
}
.nav-link.active::before {
    background: #90aa31;
}
.nav-link.active svg {
    color: #dffbff;
}
.system-status {
    background: #f2f7f7;
    border: 1px solid #dce8e8;
}
.system-status strong {
    color: #182328;
}
.system-status small {
    color: #6f7d84;
}
.status-dot {
    background: #90aa31;
    box-shadow: 0 0 0 6px rgba(144,170,49,.12);
}
.app-main {
    background:
        radial-gradient(circle at 100% 0%, rgba(31,127,135,.18), transparent 24%),
        radial-gradient(circle at 0% 100%, rgba(144,170,49,.12), transparent 22%),
        linear-gradient(180deg, #171b1d 0%, #1b2326 60%, #162e32 100%);
}
.topbar {
    background: rgba(23,27,29,.78);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: none;
    backdrop-filter: blur(10px);
}
.page-context .page-eyebrow {
    color: #91a0a6;
}
.page-context strong {
    color: #f4f8f8;
}
.icon-button,
.menu-button {
    color: #dbe5e7;
}
.icon-button:hover,
.menu-button:hover {
    background: rgba(255,255,255,.06);
}
.user-copy strong {
    color: #f4f8f8;
}
.user-copy small {
    color: #a9b5ba;
}
.user-avatar {
    color: #f4f8f8;
    background: rgba(31,127,135,.28);
}
.user-actions > a,
.user-actions button {
    color: #dbe5e7;
}
.user-actions > a:hover,
.user-actions button:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}
.content-area {
    padding: 24px 28px 38px;
}
.page-header,
.card,
.toolbar,
.empty-state,
.customer-help-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
    border-color: #dde6e8;
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
}
.page-header::after {
    background: linear-gradient(145deg, rgba(31,127,135,.12), rgba(144,170,49,.08));
}
.data-table th {
    background: #f6fafb;
}
.data-table tbody tr:hover {
    background: #f9fcfc;
}
.app-footer {
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(14,18,19,.34);
    color: #9ba8ad;
}
.customer-hero {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
    border-color: #dde6e8;
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
}
.customer-hero::before {
    background: linear-gradient(160deg, #171b1d 0%, #1b2326 62%, #18363a 100%);
}
.topbar-create {
    background: #90aa31;
    border-color: #90aa31;
    color: #172126;
    box-shadow: 0 8px 18px rgba(144,170,49,.22);
}
.topbar-create:hover {
    background: #7f9828;
    border-color: #7f9828;
    color: #10181b;
}
.btn-primary {
    background: #1f7f87;
    border-color: #1f7f87;
    box-shadow: 0 8px 18px rgba(31,127,135,.18);
}
.btn-primary:hover {
    background: #176970;
    border-color: #176970;
}
.metric-card::after {
    background: linear-gradient(135deg, rgba(31,127,135,.12), rgba(144,170,49,.15));
}
.sidebar-overlay {
    background: rgba(7,10,11,.48);
}
@media (max-width: 1024px) {
    .sidebar {
        box-shadow: 18px 0 40px rgba(0,0,0,.18);
    }
    .topbar {
        background: rgba(23,27,29,.92);
    }
}


/* v9.6 - Sidebar logo okunaklilik iyilestirmesi */
.brand {
    min-height: 92px;
    padding: 0 12px;
}
.brand-link-full-logo {
    justify-content: center;
}
.brand-logo-card {
    width: 100%;
    max-width: 242px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.brand-full-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: scale(1.12);
    transform-origin: center;
}
@media (max-width: 620px) {
    .brand {
        min-height: 84px;
        padding: 0 10px;
    }
    .brand-logo-card {
        max-width: 224px;
        height: 66px;
    }
    .brand-full-logo-img {
        transform: scale(1.1);
    }
}

/* v9.7 - Customer portal account and password management */
.portal-account-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid #dde6e8;
    border-radius: 12px;
    background: #f8fbfb;
}
.portal-account-summary > div,
.profile-readonly-grid > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.portal-account-summary small,
.profile-readonly-grid small,
.portal-status-box small {
    color: #7b878d;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.portal-account-summary strong,
.profile-readonly-grid strong {
    overflow-wrap: anywhere;
    color: #172126;
    font-size: .82rem;
}
.portal-status-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0 4px;
    padding: 13px 14px;
    border: 1px solid #e2e8e9;
    border-radius: 11px;
    background: #f8fafb;
}
.portal-status-box.active {
    border-color: #d5e6e7;
    background: #f1f8f8;
}
.portal-status-box > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.portal-status-box strong {
    color: #172126;
    font-size: .76rem;
}
.portal-status-box span {
    overflow-wrap: anywhere;
    color: #68757b;
    font-size: .66rem;
}
.profile-security-grid {
    grid-template-columns: minmax(300px, .78fr) minmax(420px, 1.22fr);
}
.profile-readonly-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.password-field .password-toggle {
    z-index: 2;
}
@media (max-width: 960px) {
    .portal-account-summary,
    .profile-readonly-grid,
    .profile-security-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 620px) {
    .portal-status-box {
        align-items: stretch;
        flex-direction: column;
    }
}

/* v12.6 - Production Health Center */
.health-page-header { align-items: center; }
.health-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.health-summary-card {
    position: relative;
    min-height: 118px;
    padding: 20px;
    overflow: hidden;
}
.health-summary-card::after {
    content: "";
    position: absolute;
    width: 78px;
    height: 78px;
    right: -24px;
    bottom: -28px;
    border-radius: 50%;
    background: rgba(31,127,135,.08);
}
.health-summary-value {
    position: relative;
    z-index: 1;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.045em;
    color: #172126;
}
.health-summary-label {
    position: relative;
    z-index: 1;
    margin-top: 11px;
    color: #68777c;
    font-size: .75rem;
    font-weight: 700;
}
.health-summary-card.health-ok { border-top: 3px solid #2f8f5b; }
.health-summary-card.health-warning { border-top: 3px solid #c48a1b; }
.health-summary-card.health-error { border-top: 3px solid #c74343; }
.health-summary-card.health-neutral { border-top: 3px solid #1f7f87; }

.health-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.health-check-card {
    min-height: 178px;
    padding: 18px;
}
.health-check-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.health-check-head h2 {
    margin: 0 0 7px;
    color: #172126;
    font-size: .92rem;
    letter-spacing: -.015em;
}
.health-state-pill {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .03em;
}
.health-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    margin-top: 4px;
    border-radius: 50%;
    background: #8c989d;
    box-shadow: 0 0 0 5px rgba(140,152,157,.10);
}
.health-check-card.health-ok .health-state-pill { color: #256d47; background: #e8f5ee; }
.health-check-card.health-ok .health-dot { background: #2f8f5b; box-shadow: 0 0 0 5px rgba(47,143,91,.11); }
.health-check-card.health-warning .health-state-pill { color: #8a5d08; background: #fff4da; }
.health-check-card.health-warning .health-dot { background: #c48a1b; box-shadow: 0 0 0 5px rgba(196,138,27,.11); }
.health-check-card.health-error .health-state-pill { color: #9f3030; background: #fff0f0; }
.health-check-card.health-error .health-dot { background: #c74343; box-shadow: 0 0 0 5px rgba(199,67,67,.11); }
.health-check-card.health-unknown .health-state-pill { color: #66757a; background: #eef2f3; }
.health-check-summary {
    display: block;
    margin-bottom: 8px;
    color: #1b2529;
    font-size: .83rem;
}
.health-check-card p {
    margin: 0;
    color: #6a777c;
    font-size: .71rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.health-detail-grid { align-items: start; }
.health-detail-list {
    margin: 0;
}
.health-detail-list > div {
    display: grid;
    grid-template-columns: minmax(130px, .8fr) minmax(0, 1.3fr);
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f2;
}
.health-detail-list > div:first-child { padding-top: 0; }
.health-detail-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.health-detail-list dt {
    color: #77858a;
    font-size: .68rem;
    font-weight: 800;
}
.health-detail-list dd {
    min-width: 0;
    margin: 0;
    color: #263237;
    font-size: .72rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: right;
}
.health-detail-list-spaced { margin-top: 18px; }
.health-note {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: .7rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.health-note strong { display: block; margin-bottom: 5px; }
.health-note p { margin: 0; }
.health-note ul { margin: 7px 0 0; padding-left: 18px; }
.health-warning-note { color: #795612; background: #fff9ea; border-color: #f1d89c; }
.health-error-note { color: #8e3232; background: #fff5f5; border-color: #f0c0c0; }
.health-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}
.health-stat-grid > div {
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 13px;
    border: 1px solid #e2e9ea;
    border-radius: 10px;
    background: #f9fbfb;
}
.health-stat-grid strong {
    color: #172126;
    font-size: 1.25rem;
    line-height: 1;
}
.health-stat-grid span {
    margin-top: 7px;
    color: #76858a;
    font-size: .64rem;
    font-weight: 700;
}
.health-event-block {
    padding: 15px 0;
    border-bottom: 1px solid #edf1f2;
}
.health-event-block:first-child { padding-top: 0; }
.health-event-block:last-child { padding-bottom: 0; border-bottom: 0; }
.health-event-label {
    display: block;
    margin-bottom: 6px;
    color: #1f7f87;
    font-size: .6rem;
    font-weight: 900;
    letter-spacing: .11em;
}
.health-event-block strong {
    display: block;
    color: #1e292d;
    font-size: .79rem;
}
.health-event-block small {
    display: block;
    margin-top: 5px;
    color: #8a969a;
    font-size: .64rem;
}
.health-event-block p {
    margin: 8px 0 0;
    color: #657378;
    font-size: .7rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.health-footer-note {
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid #d9e5e6;
    border-radius: 10px;
    color: #627176;
    background: #f7fbfb;
    font-size: .69rem;
    line-height: 1.55;
}
.health-footer-note strong { color: #1f7f87; }

@media (max-width: 1180px) {
    .health-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .health-check-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
    .health-summary-grid,
    .health-check-grid,
    .health-stat-grid { grid-template-columns: 1fr; }
    .health-detail-list > div { grid-template-columns: 1fr; gap: 4px; }
    .health-detail-list dd { text-align: left; }
}


/* v12.7 - Password strength meter */
.password-strength-meter {
    margin: 10px 0 12px;
    padding: 12px 13px;
    border: 1px solid #dfe7e8;
    border-radius: 11px;
    background: #f9fbfb;
}
.password-strength-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #59666c; font-size: .68rem; font-weight: 700; }
.password-strength-header strong { color: #758187; font-size: .69rem; }
.password-strength-track { width: 100%; height: 7px; overflow: hidden; border-radius: 999px; background: #e7ecee; }
.password-strength-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: #98a2b3; transition: width .22s ease, background-color .22s ease; }
.password-strength-meter[data-strength="weak"] .password-strength-track > span { background: #c84a4a; }
.password-strength-meter[data-strength="medium"] .password-strength-track > span { background: #b57924; }
.password-strength-meter[data-strength="good"] .password-strength-track > span { background: #2d8890; }
.password-strength-meter[data-strength="strong"] .password-strength-track > span { background: #66872e; }
.password-strength-meter[data-strength="weak"] .password-strength-header strong { color: #a83d3d; }
.password-strength-meter[data-strength="medium"] .password-strength-header strong { color: #98631d; }
.password-strength-meter[data-strength="good"] .password-strength-header strong { color: #1f737a; }
.password-strength-meter[data-strength="strong"] .password-strength-header strong { color: #577526; }
.password-strength-rules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.password-strength-rules span { position: relative; padding: 5px 8px 5px 20px; border: 1px solid #e2e7e9; border-radius: 999px; color: #7a858a; background: #fff; font-size: .6rem; font-weight: 700; transition: .16s ease; }
.password-strength-rules span::before { content: "•"; position: absolute; left: 9px; top: 50%; color: #a3adb1; transform: translateY(-50%); }
.password-strength-rules span.is-met { color: #4f6f24; border-color: #d7e2bd; background: #f3f7ea; }
.password-strength-rules span.is-met::before { content: "✓"; color: #66872e; }
.password-match-status { margin-top: 9px; color: #8a9599; font-size: .64rem; font-weight: 700; }
.password-match-status.is-match { color: #577526; }
.password-match-status.is-mismatch { color: #b23e3e; }
.password-strength-note { display: block; margin-top: 6px; color: #98a2a6; font-size: .58rem; line-height: 1.45; }
@media (max-width: 620px) {
    .password-strength-meter { padding: 11px; }
    .password-strength-rules { gap: 5px; }
    .password-strength-rules span { font-size: .58rem; }
}

/* Ticket attachment security / UX */
.attachment-upload input[type="file"] {
    padding: 9px 11px;
    min-height: 46px;
}

.message-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.message-attachment {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    padding: 9px 11px;
    border: 1px solid rgba(20, 35, 55, .12);
    border-radius: 10px;
    background: rgba(245, 248, 252, .92);
    color: inherit;
    text-decoration: none;
}

.message-attachment:hover {
    border-color: rgba(20, 35, 55, .25);
    text-decoration: none;
}

.message-attachment-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    background: rgba(30, 64, 175, .09);
    font-size: 18px;
    font-weight: 700;
}

.message-attachment > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.message-attachment strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 360px;
    font-size: 13px;
}

.message-attachment small {
    margin-top: 2px;
    opacity: .65;
    font-size: 11px;
}
