/* Orhan AI Proje Portalı - Gelişmiş Stiller */
:root,
html[data-theme="light"] {
    --ink: #0f172a;
    --ink-soft: #475569;
    --line: #e2e8f0;
    --line-subtle: #f1f5f9;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-card: #ffffff;
    --body-bg: #f8fafc;
    --sidebar-bg: #ffffff;
    --panel-bg: #ffffff;
    --auth-panel-bg: rgba(255, 255, 255, 0.98);
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --teal: #0ea5e9;
    --teal-dark: #0284c7;
    --teal-subtle: #e0f2fe;
    --amber: #f59e0b;
    --red: #ef4444;
    --green: #10b981;
    --purple: #8b5cf6;
    --purple-subtle: #ede9fe;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    --card-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

html[data-theme="dark"] {
    --ink: #f1f5f9;
    --ink-soft: #94a3b8;
    --line: #242f3e;
    --line-subtle: #192231;
    --surface: #151d2a;
    --surface-soft: #0e1622;
    --surface-card: #151d2a;
    --body-bg: #090e17;
    --sidebar-bg: #0f1724;
    --panel-bg: #151d2a;
    --auth-panel-bg: rgba(21, 29, 42, 0.96);
    --input-bg: #090e17;
    --input-border: #2d3b4e;
    --teal: #38bdf8;
    --teal-dark: #0284c7;
    --teal-subtle: rgba(56, 189, 248, 0.12);
    --amber: #fbbf24;
    --red: #f87171;
    --green: #34d399;
    --purple: #a78bfa;
    --purple-subtle: rgba(167, 139, 250, 0.12);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--body-bg);
    transition: background 0.2s ease, color 0.2s ease;
}

button, input, select {
    font: inherit;
}

/* Auth Ekranı */
.auth-body {
    min-height: 100vh;
    background: #07101b;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
    position: relative;
}

.auth-visual {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(7, 16, 27, 0.96) 0%, rgba(7, 16, 27, 0.88) 42%, rgba(7, 16, 27, 0.2) 100%),
        url("server-hero.png") center right / cover no-repeat;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), transparent 32%, rgba(0, 0, 0, 0.2));
    pointer-events: none;
}

.brand-mark, .auth-copy, .auth-foot {
    position: relative;
    z-index: 1;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 23px;
    letter-spacing: 0;
    color: inherit;
}

.brand-mark span:last-child,
.brand-mark strong span {
    color: var(--teal);
}

.brand-symbol {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 4px solid var(--teal);
    border-radius: 14px;
    color: transparent;
    box-shadow: 0 0 34px rgba(14, 165, 233, 0.34);
}

.auth-copy h1 {
    max-width: 620px;
    margin: 0 0 14px;
    font-size: clamp(38px, 4.5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.auth-copy p {
    margin: 0;
    color: #94a3b8;
    font-size: 19px;
    line-height: 1.6;
}

.auth-foot {
    color: #64748b;
    font-size: 14px;
}

.auth-panel-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 24px;
    position: relative;
    background: var(--body-bg);
}

.auth-top-bar {
    width: min(480px, 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.auth-panel {
    width: min(480px, 100%);
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--auth-panel-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* Tema Değiştirici Buton */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-card);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--teal);
    background: var(--teal-subtle);
    color: var(--teal-dark);
    transform: translateY(-1px);
}

html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: inline-block; }
html[data-theme="dark"] .theme-icon-sun { display: inline-block; }
html[data-theme="dark"] .theme-icon-moon { display: none; }

/* Kompakt Durum Hapı */
.auth-hosting-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 650;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.tab {
    height: 50px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--ink-soft);
    font-weight: 700;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tab.active {
    color: var(--teal);
    border-color: var(--teal);
}

.auth-form {
    display: none;
    gap: 16px;
}

.auth-form.active {
    display: grid;
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 700;
}

input, select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 0 14px;
    background: var(--input-bg);
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus, select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.primary-button, .outline-button, .mini, .search button, .logout-form button {
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.primary-button {
    margin-top: 6px;
    color: #fff;
    background: linear-gradient(180deg, #0ea5e9, #0284c7);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.primary-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.outline-button, .search button {
    color: var(--teal);
    background: var(--surface-card);
    border-color: var(--teal);
}

.outline-button:hover, .search button:hover {
    background: var(--teal-subtle);
}

.form-note, .muted {
    color: var(--ink-soft);
    font-size: 13.5px;
}

.notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
    background: var(--teal-subtle);
    color: var(--teal-dark);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.notice.error { background: rgba(239, 68, 68, 0.1); color: var(--red); border-color: rgba(239, 68, 68, 0.25); }
.notice.warning { background: rgba(245, 158, 11, 0.1); color: var(--amber); border-color: rgba(245, 158, 11, 0.25); }
.notice.success { background: rgba(16, 185, 129, 0.1); color: var(--green); border-color: rgba(16, 185, 129, 0.25); }

/* Dashboard Düzeni */
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--body-bg);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 26px 18px;
    border-right: 1px solid var(--line);
    background: var(--sidebar-bg);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.brand-mark.compact {
    font-size: 19px;
}

.brand-mark.compact .brand-symbol {
    width: 38px;
    height: 38px;
    border-width: 3px;
    border-radius: 12px;
}

nav {
    display: grid;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 750;
    font-size: 14px;
    transition: all 0.15s ease;
}

.nav-item.active, .nav-item:hover {
    color: var(--teal);
    background: var(--teal-subtle);
}

.nav-item span {
    min-width: 26px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.16);
    color: var(--amber);
    font-size: 12px;
    font-weight: 800;
}

.sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 14px;
}

.sidebar-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sidebar-actions .theme-toggle {
    width: 100%;
    justify-content: center;
}

.logout-form {
    margin: 0;
}

.logout-form button {
    width: 100%;
    color: var(--ink-soft);
    background: var(--surface-card);
    border-color: var(--line);
}

.logout-form button:hover {
    color: var(--red);
    border-color: var(--red);
    background: rgba(239, 68, 68, 0.08);
}

.profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.profile > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #0ea5e9, #0284c7);
    color: #fff;
    font-weight: 900;
    flex-shrink: 0;
}

.profile div {
    display: grid;
    min-width: 0;
}

.profile strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14.5px;
}

.profile small {
    color: var(--ink-soft);
    font-size: 12.5px;
}

.dashboard {
    padding: 32px 38px 60px;
}

.dashboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard h1 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.02em;
}

.dashboard p {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: 14.5px;
}

.search {
    display: flex;
    gap: 10px;
}

.search input {
    width: 260px;
}

/* ========================================================
   HOSTING LİMİTLERİ VE SAYAÇ KARTLARI
   ======================================================== */
.hosting-summary {
    margin-bottom: 30px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-card);
    box-shadow: var(--card-shadow);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hosting-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 16px;
}

.hosting-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hosting-title small {
    color: var(--ink-soft);
    font-size: 12.5px;
    display: block;
    margin-top: 2px;
}

.hosting-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.webmail-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: var(--purple-subtle);
    color: var(--purple);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: all 0.15s ease;
}

.webmail-pill:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--purple);
    transform: translateY(-1px);
}

.refresh-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--teal);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: all 0.15s ease;
}

.refresh-pill:hover {
    background: var(--teal-subtle);
    border-color: var(--teal);
    transform: translateY(-1px);
}

.refresh-pill svg {
    transition: transform 0.3s ease;
}

.refresh-pill:hover svg {
    transform: rotate(90deg);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.quota-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quota-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    transition: all 0.2s ease;
}

.quota-card:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.quota-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quota-icon-wrap {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--teal-subtle);
    color: var(--teal);
    flex-shrink: 0;
}

.quota-icon-wrap.mail {
    background: var(--purple-subtle);
    color: var(--purple);
}

.quota-icon-wrap.disk {
    background: rgba(16, 185, 129, 0.12);
    color: var(--green);
}

.quota-icon-wrap.net {
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber);
}

.quota-badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    background: rgba(14, 165, 233, 0.12);
    color: var(--teal-dark);
}

html[data-theme="dark"] .quota-badge {
    color: var(--teal);
}

.quota-badge.mail {
    background: var(--purple-subtle);
    color: var(--purple);
}

.quota-badge.safe {
    background: rgba(16, 185, 129, 0.12);
    color: var(--green);
}

.quota-body {
    display: grid;
    gap: 8px;
}

.quota-title {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.quota-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.quota-value .count {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1;
}

.quota-value .count.disk-val {
    font-size: 20px;
}

.quota-value .limit {
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 750;
}

.quota-progress {
    width: 100%;
    height: 7px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.quota-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.quota-bar.mail {
    background: linear-gradient(90deg, #a78bfa, #8b5cf6);
}

.quota-bar.disk {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.quota-bar.net {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.quota-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: var(--ink-soft);
    font-weight: 650;
}

/* ========================================================
   PROJE KARTLARI
   ======================================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
}

.project-card {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-card);
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

.project-card:hover {
    border-color: var(--teal);
    transform: translateY(-1px);
}

.project-info {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.project-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.project-card h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.status-pill.active {
    background: rgba(16, 185, 129, 0.12);
    color: var(--green);
}

.status-pill.empty {
    background: var(--surface-soft);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.db-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--teal-subtle);
    color: var(--teal-dark);
}

html[data-theme="dark"] .db-pill {
    color: var(--teal);
}

.settings-grid-layout {
    display: grid;
    gap: 24px;
}

.project-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
}

.folder-icon {
    width: 42px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(180deg, #0ea5e9, #0284c7);
    position: relative;
}

.folder-icon::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 7px;
    top: -5px;
    left: 4px;
    border-radius: 5px 5px 0 0;
    background: #0ea5e9;
}

/* ========================================================
   PANELLER VE TABLOLAR
   ======================================================== */
.panel {
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-bg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.panel h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.panel-head span {
    color: var(--ink-soft);
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th, td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

th {
    color: var(--ink);
    background: var(--surface-soft);
    font-weight: 800;
}

.actions {
    display: flex;
    gap: 8px;
}

.actions form {
    margin: 0;
}

.mini {
    min-height: 34px;
    padding: 0 12px;
    background: var(--surface-card);
}

.mini.approve { color: var(--teal); border-color: var(--teal); }
.mini.reject { color: var(--red); border-color: var(--red); }

.status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12.5px;
    font-weight: 800;
    background: var(--surface-soft);
    color: var(--ink-soft);
}

.status.active { color: var(--green); background: rgba(16, 185, 129, 0.12); }
.status.pending { color: var(--amber); background: rgba(245, 158, 11, 0.12); }
.status.rejected, .status.suspended { color: var(--red); background: rgba(239, 68, 68, 0.12); }

.user-admin {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 16px;
    padding: 18px;
}

.settings-form {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.access-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 14px;
}

.access-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 90px;
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-card);
    box-shadow: var(--card-shadow);
}

.access-card.is-open {
    border-color: var(--teal);
}

.access-card.is-closed {
    border-color: rgba(239, 68, 68, 0.4);
    background: var(--surface-soft);
}

.access-card-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.access-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: 0;
}

.access-card h3 span {
    color: var(--teal);
    font-weight: 900;
}

.access-card.is-closed h3 span {
    color: var(--red);
}

.access-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.35;
}

.access-toggle {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    flex: 0 0 auto;
}

.access-toggle label {
    display: block;
    cursor: pointer;
}

.access-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.access-toggle span {
    min-width: 54px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 900;
    transition: all 0.16s ease;
}

.access-toggle input:checked + span {
    color: #fff;
    background: linear-gradient(180deg, #0ea5e9, #0284c7);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.access-toggle label:last-child input:checked + span {
    background: linear-gradient(180deg, #ef4444, #dc2626);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.user-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-card);
}

.user-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.user-row div {
    display: grid;
    gap: 4px;
}

.user-row small {
    color: var(--ink-soft);
}

.control-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

fieldset {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

legend {
    padding: 0 6px;
    color: var(--ink);
    font-weight: 800;
    font-size: 13.5px;
}

.checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px;
}

.checks label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
    color: var(--ink-soft);
}

.checks input {
    width: 16px;
    height: 16px;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.danger-link {
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--red);
    font-weight: 800;
    cursor: pointer;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: var(--surface-card);
    color: var(--ink-soft);
    font-weight: 700;
}

/* ========================================================
   DUYARLI TASARIM (RESPONSIVE)
   ======================================================== */
@media (max-width: 1120px) {
    .quota-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .auth-shell, .app-shell {
        grid-template-columns: 1fr;
    }
    .auth-visual {
        min-height: 38vh;
        padding: 34px 24px;
    }
    .auth-panel-wrapper {
        padding: 20px 16px;
    }
    .auth-panel {
        margin: 12px auto;
    }
    .sidebar {
        position: static;
        height: auto;
    }
    .dashboard {
        padding: 28px 20px 44px;
    }
    .dashboard-head {
        display: grid;
    }
    .project-grid, .user-admin, .access-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .auth-copy h1 {
        font-size: 34px;
    }
    .auth-panel {
        padding: 24px;
    }
    .quota-grid {
        grid-template-columns: 1fr;
    }
    .search {
        display: grid;
    }
    .search input {
        width: 100%;
    }
    .project-card {
        grid-template-columns: 42px 1fr;
    }
    .project-card .outline-button {
        grid-column: 1 / -1;
    }
    .control-row, .checks {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   E-POSTA SAYFASI (GMAIL / OUTLOOK TARZI)
   ========================================== */
.mail-mode .dashboard.mail-dashboard {
    padding: 16px 24px 24px;
}

.mail-shell {
    display: grid;
    grid-template-columns: 240px 380px 1fr;
    height: calc(100vh - 48px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

/* 1. SOL PANEL: HESAP & KLASÖRLER */
.mail-sidebar {
    background: var(--surface-soft);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    gap: 14px;
}

.mail-account-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-select-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    font-weight: 700;
    padding-left: 4px;
}

.account-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}
.account-select:focus {
    border-color: var(--teal);
}

.compose-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--teal);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
    transition: all 0.2s ease;
}
.compose-btn:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
}

.mail-folder-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    flex: 1;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s ease;
}
.folder-item:hover {
    background: var(--line-subtle);
    color: var(--ink);
}
.folder-item.active {
    background: var(--teal-subtle);
    color: var(--teal-dark);
    font-weight: 700;
}
html[data-theme="dark"] .folder-item.active {
    color: var(--teal);
}

.folder-item .folder-icon {
    font-size: 16px;
}
.folder-item .folder-name {
    flex: 1;
}
.folder-badge {
    background: var(--teal);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
}
.folder-count {
    color: var(--ink-soft);
    font-size: 12px;
}

.mail-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.webmail-sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: all 0.15s ease;
}
.webmail-sso-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.mail-config-btn {
    padding: 8px;
    background: transparent;
    border: none;
    color: var(--ink-soft);
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    border-radius: 6px;
    transition: background 0.15s ease;
}
.mail-config-btn:hover {
    background: var(--line-subtle);
    color: var(--ink);
}

/* 2. ORTA PANEL: E-POSTA LİSTESİ */
.mail-list-panel {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    background: var(--surface);
    min-width: 0;
}

.mail-list-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.mail-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--ink-soft);
}
.mail-search input {
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    width: 100%;
    outline: none;
}
.mail-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mail-icon-btn:hover {
    color: var(--teal);
    border-color: var(--teal);
}

.mail-list-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mail-item-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-subtle);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.mail-item-card:hover {
    background: var(--surface-soft);
}
.mail-item-card.active {
    background: var(--teal-subtle);
    border-left: 3px solid var(--teal);
}
.mail-item-card.unseen .mail-sender {
    font-weight: 700;
    color: var(--ink);
}
.mail-item-card.unseen .mail-item-subj {
    font-weight: 600;
    color: var(--ink);
}

.mail-item-indicator {
    width: 10px;
    padding-top: 4px;
    display: flex;
    justify-content: center;
}
.unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    display: inline-block;
}

.mail-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mail-item-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.mail-sender {
    font-size: 13.5px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mail-date {
    font-size: 11.5px;
    color: var(--ink-soft);
    white-space: nowrap;
}

.mail-item-subj {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.att-clip {
    font-size: 12px;
}

.mail-item-snippet {
    font-size: 12px;
    color: var(--ink-soft);
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.empty-inbox {
    padding: 60px 20px;
    text-align: center;
    color: var(--ink-soft);
}
.empty-inbox .empty-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

/* 3. SAĞ PANEL: E-POSTA OKUMA & HIZLI YANIT */
.mail-view-panel {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    min-width: 0;
    overflow-y: auto;
}

.mail-placeholder {
    margin: auto;
    padding: 40px;
    text-align: center;
    color: var(--ink-soft);
    max-width: 360px;
}
.placeholder-art {
    font-size: 54px;
    display: block;
    margin-bottom: 14px;
    opacity: 0.7;
}
.mail-placeholder h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 18px;
}
.mail-placeholder p {
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
}

.mail-view-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.mail-view-head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mail-title-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.mail-headline {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.35;
}
.mail-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-mail-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-mail-action:hover {
    border-color: var(--teal);
    color: var(--teal);
}
.btn-mail-action.danger:hover {
    border-color: var(--red);
    color: var(--red);
}

.mail-participant-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mail-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--purple));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.mail-sender-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sender-name-row {
    font-size: 14.5px;
    color: var(--ink);
}
.sender-raw {
    font-size: 13px;
    color: var(--ink-soft);
    margin-left: 4px;
}
.recipient-row {
    font-size: 12.5px;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 6px;
}
.recipient-row .dot {
    opacity: 0.5;
}

.attachments-container {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.att-heading {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
}
.att-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.att-item-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    font-size: 12.5px;
    color: var(--ink);
    font-weight: 500;
    transition: all 0.15s ease;
}
.att-item-pill:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-1px);
}
.att-size {
    color: var(--ink-soft);
    font-size: 11px;
}

.mail-content-area {
    padding: 24px;
    flex: 1;
    color: var(--ink);
    line-height: 1.65;
    font-size: 14px;
}
.mail-render-frame {
    width: 100%;
    min-height: 480px;
    border: none;
    background: transparent;
}
.mail-text-formatted {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
}
.mail-text-formatted a {
    color: var(--teal);
    text-decoration: underline;
}

/* HIZLI CEVAPLAMA ALANI */
.mail-quick-reply-box {
    margin: 0 24px 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
    padding: 16px;
    box-shadow: var(--card-shadow);
}
.quick-reply-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reply-header {
    font-size: 13px;
    color: var(--ink-soft);
}
.reply-input-wrap textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: var(--surface);
    color: var(--ink);
    font-size: 13.5px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border 0.2s ease;
}
.reply-input-wrap textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-subtle);
}
.reply-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-attach-file {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px dashed var(--line);
    background: var(--surface);
    transition: all 0.15s ease;
}
.btn-attach-file:hover {
    color: var(--teal);
    border-color: var(--teal);
}

/* MODALLAR (YENİ E-POSTA & HESAP AYARLARI) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-dialog {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: modalIn 0.2s ease-out;
}
.modal-dialog.compose-dialog {
    max-width: 680px;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}
.modal-dialog-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--ink);
}
.btn-modal-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.btn-modal-close:hover {
    background: var(--line-subtle);
    color: var(--ink);
}

.compose-form-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.field-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.field-row label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.field-row input, .field-row select, .field-row textarea {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: var(--surface);
    color: var(--ink);
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
}
.field-row input:focus, .field-row select:focus, .field-row textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-subtle);
}
.modal-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
}

.unread-total {
    background: var(--teal);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    margin-left: auto;
}

@media (max-width: 1080px) {
    .mail-shell {
        grid-template-columns: 200px 320px 1fr;
    }
}

@media (max-width: 860px) {
    .mail-shell {
        grid-template-columns: 1fr;
        height: auto;
    }
    .mail-sidebar, .mail-list-panel {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .mail-list-items {
        max-height: 400px;
    }
}

/* ==========================================
   GELİŞMİŞ UYARI, TOAST & ONAY PENCERELERİ
   ========================================== */

/* 1. Portal Uyarı Banner & Toast */
.portal-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.25s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.portal-notice.floating-toast {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 10000;
    min-width: 300px;
    max-width: 440px;
    margin-bottom: 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Renk Temaları */
/* Başarılı (Success) */
html[data-theme="light"] .portal-notice.success {
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #065f46;
}
html[data-theme="dark"] .portal-notice.success {
    background: rgba(6, 44, 33, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    box-shadow: 0 12px 36px rgba(16, 185, 129, 0.15);
}

/* Hata (Error) */
html[data-theme="light"] .portal-notice.error {
    background: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #991b1b;
}
html[data-theme="dark"] .portal-notice.error {
    background: rgba(45, 12, 12, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
    box-shadow: 0 12px 36px rgba(239, 68, 68, 0.15);
}

/* Uyarı (Warning) */
html[data-theme="light"] .portal-notice.warning {
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #92400e;
}
html[data-theme="dark"] .portal-notice.warning {
    background: rgba(45, 30, 8, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
    box-shadow: 0 12px 36px rgba(245, 158, 11, 0.15);
}

/* Bilgi (Info) */
html[data-theme="light"] .portal-notice.info {
    background: #f0f9ff;
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #075985;
}
html[data-theme="dark"] .portal-notice.info {
    background: rgba(8, 30, 48, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    box-shadow: 0 12px 36px rgba(56, 189, 248, 0.15);
}

.notice-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-text-box {
    flex: 1;
    line-height: 1.45;
}

.notice-close-btn {
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.65;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, background 0.15s ease;
}
.notice-close-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}
html[data-theme="dark"] .notice-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* 2. Özel Temalı Onay Modalı (Confirm Modal) */
.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.confirm-modal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: confirmScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes confirmScaleIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.confirm-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.confirm-modal-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--ink);
    font-weight: 700;
}

.confirm-modal-card p {
    margin: 0 0 24px;
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.danger-button {
    background: var(--red);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.danger-button:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

/* 3. Tam Sayfa Hata Ekranı (Error Page) */
.error-page-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--body-bg);
    color: var(--ink);
    padding: 24px;
}

.error-card-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow);
}

.error-code-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 20px 0 12px;
}

.error-card-shell h2 {
    font-size: 22px;
    margin: 0 0 10px;
    color: var(--ink);
}

.error-card-shell p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0 0 28px;
}
