/* Kök Renkler ve Değişkenler */
:root {
    --md-sys-color-background: #f8f9ff;
    --md-sys-color-surface: #eef2f8;
    --md-sys-color-primary: #0b2447;
    --color-surface: #ffffff;
    --color-text: #1c1b1f;
    --color-muted: #5e6570;
    --color-border: #c5cbd4;
    --color-danger: #d32f2f;
    --md-primary-container: #d7e3f7;
    --md-on-primary-container: #001b3b;
    --md-secondary-container: #dce3ef;
    --md-surface-container: #eef1f6;
    --md-surface-container-low: #f5f7fb;
    --md-surface-container-high: #e4e8ee;
    --radius-card: 20px;
    --shadow-card: 0 8px 26px rgba(20, 35, 55, 0.09);
    --sidebar-width: 296px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --md-sys-color-background: #0d141e;
    --md-sys-color-surface: #151d28;
    --md-sys-color-primary: #a9c7f5;
    --color-surface: #17212d;
    --color-text: #e6eaf0;
    --color-muted: #aeb8c6;
    --color-border: #394553;
    --md-primary-container: #233b59;
    --md-on-primary-container: #d8e7ff;
    --md-secondary-container: #293747;
    --md-surface-container: #1b2633;
    --md-surface-container-low: #131c27;
    --md-surface-container-high: #263342;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--md-sys-color-background);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

/* --- Sayfa Dizini --- */
.index-body {
    min-height: 100vh;
    padding: 48px 20px;
    background: linear-gradient(145deg, #eef3f8 0%, #f9fbfd 55%, #e8eef5 100%);
}
.index-main {
    width: min(760px, 100%);
    margin: 0 auto;
    animation: pageEnter 0.45s ease both;
}
.index-logo-wrap {
    margin-bottom: 32px;
}
.index-logo {
    display: block;
    width: min(230px, 70%);
    height: auto;
}
.index-main h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 5vw, 38px);
}
.description {
    margin: 0 0 28px;
    color: var(--color-muted);
}
.page-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.page-link {
    display: block;
    padding: 20px 22px;
    color: inherit;
    text-decoration: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(28, 27, 31, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.page-link:nth-child(1) { animation: cardEnter 0.4s 0.08s ease both; }
.page-link:nth-child(2) { animation: cardEnter 0.4s 0.16s ease both; }
.page-link:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 36, 71, 0.35);
    box-shadow: var(--shadow-card);
}
.page-link:focus-visible {
    outline: 3px solid rgba(11, 36, 71, 0.25);
    outline-offset: 3px;
}
.page-title {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}
.page-url {
    color: var(--color-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}

/* --- Animasyonlar (JS ile Geçişler İçin) --- */
.content-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.content-section.active {
    display: block;
    animation: slideIn 0.4s ease forwards;
}

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

@keyframes cardEnter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Login Animasyonları */
.step-container {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}
.step-container.active {
    display: block;
    animation: popIn 0.4s ease forwards;
}
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- Giriş Ekranı (Login) --- */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: radial-gradient(circle at top left, #dfe8f2, transparent 46%), #f2f5f8;
}
.login-card {
    background: var(--color-surface);
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 400px;
}
.login-logo-wrap {
    margin-bottom: 24px;
    text-align: center;
}
.login-logo-wrap-compact { margin-bottom: 20px; }
.login-logo {
    display: block;
    width: min(210px, 78%);
    height: auto;
    margin: 0 auto;
}
.login-title {
    margin: 0 0 8px;
    text-align: center;
}
.login-description {
    margin: 0 0 16px;
    color: var(--color-muted);
    text-align: center;
}
.login-description-large { margin-bottom: 32px; }
.login-field {
    width: 100%;
    margin-bottom: 24px;
}
.login-field-compact { margin-bottom: 16px; }
.code-field { text-align: center; }
.primary-action {
    width: 100%;
    height: 48px;
}
.button-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.button-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: buttonSpin 0.7s linear infinite;
}
.primary-action.is-loading .button-spinner { display: inline-block; }
@keyframes buttonSpin {
    to { transform: rotate(360deg); }
}
.back-action {
    margin-top: 16px;
    text-align: center;
}
.timer-display {
    margin: 0;
    color: var(--color-danger);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}
.timer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 24px;
    color: var(--color-danger);
}
.timer-icon { font-size: 26px; }

/* --- Panel Düzeni (Dashboard) --- */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--md-sys-color-surface);
    border-right: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}
.sidebar-header {
    padding: 28px 24px;
    color: #1c1b1f;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 22px;
}
.brand-icon { color: var(--md-sys-color-primary); }
.sidebar-list {
    flex: 1;
    background: transparent;
}
.nav-divider { margin: 8px 0; }
.sidebar-footer {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #777;
    font-weight: 500;
}

md-list-item {
    margin: 4px 12px;
    border-radius: 28px;
    cursor: pointer;
}
.nav-item.active {
    background-color: rgba(11, 36, 71, 0.11);
    --md-list-item-label-text-color: var(--md-sys-color-primary);
    --md-list-item-leading-icon-color: var(--md-sys-color-primary);
    font-weight: 500;
}

.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.page-title {
    font-size: 32px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.title-icon {
    font-size: 36px;
    color: var(--md-sys-color-primary);
}

.md-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: 0 2px 12px rgba(28, 27, 31, 0.05);
}
.list-card {
    padding: 0;
    overflow: hidden;
}
.pdf-icon { color: var(--color-danger); }

/* --- Filtreler --- */
.filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}
.filters > md-outlined-select { flex: 1; }
.filter-button { height: 56px; }

/* --- Izgara (Dosyalarım) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.grid-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
}
.card-icon {
    font-size: 56px;
    color: var(--md-sys-color-primary);
    margin-bottom: 16px;
}
.card-title { margin: 8px 0; }
.card-description {
    margin: 0 0 24px;
    color: var(--color-muted);
    font-size: 14px;
}
.section-description {
    margin: -18px 0 24px;
    color: var(--color-muted);
}

/* --- Hesap Bilgilerim (YENİ) --- */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.account-card {
    padding: 24px;
}
.acc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.acc-icon {
    font-size: 32px;
}
.account-title { margin: 0; }
.platform-gmail { color: #ea4335; }
.platform-trendyol { color: #f27a1a; }
.platform-yemeksepeti { color: #e0004d; }
.platform-getir { color: #5d3eb2; }
.platform-instagram { color: #e1306c; }
.acc-input {
    width: 100%;
    margin-bottom: 16px;
}
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.reveal-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* --- Formlar (Kullanıcı İşlemleri) --- */
.forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}
.form-note {
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.4;
}
.form-note-icon {
    font-size: 14px;
    vertical-align: middle;
}
.dialog-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dialog-icon { color: var(--md-sys-color-primary); }
.dialog-description {
    margin-bottom: 24px;
    color: var(--color-muted);
}
.dialog-field { width: 100%; }

/* --- Mobil Görünüm --- */
.mobile-header {
    display: none;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--md-sys-color-surface);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-title {
    font-size: 22px;
    font-weight: 400;
    margin-left: 16px;
}
.scrim {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.32);
    z-index: 999;
}

@media (max-width: 900px) {
    .layout { flex-direction: column; }
    .sidebar {
        position: fixed;
        top: 0; bottom: 0; left: 0;
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }
    .mobile-header { display: flex; }
    .scrim.active { display: block; }
    .main-content { padding: 24px 16px; }
    .forms-grid { grid-template-columns: 1fr; }
    .filters { flex-direction: column; align-items: stretch; }
    .filters > md-outlined-select { width: 100%; }
}

@media (max-width: 520px) {
    .index-body { padding: 32px 16px; }
    .login-body { padding: 16px; }
    .login-card {
        padding: 28px 22px;
        border-radius: 22px;
    }
    .main-content { padding: 24px 14px; }
    .page-title {
        margin-bottom: 24px;
        font-size: 27px;
    }
    .md-card { padding: 24px 20px; }
    .accounts-grid,
    .grid-container {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --- Yerel HTML bileşenleri: dış arayüz kütüphanesine bağımlı değildir --- */
button,
input,
select {
    font: inherit;
}

.button {
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible,
.icon-button:focus-visible,
.nav-item:focus-visible,
.form-control:focus-visible {
    outline: 3px solid rgba(11, 36, 71, 0.2);
    outline-offset: 2px;
}
.button:disabled { cursor: wait; opacity: 0.82; }
.button-primary {
    color: #ffffff;
    background: var(--md-sys-color-primary);
    box-shadow: 0 7px 18px rgba(11, 36, 71, 0.2);
}
.button-primary:hover { background: #123660; }
.button-danger {
    color: #ffffff;
    background: #ba1a1a;
    box-shadow: 0 7px 18px rgba(186, 26, 26, 0.2);
}
.button-danger:hover { background: #93000a; }
.button-secondary {
    color: var(--md-sys-color-primary);
    background: #e8eef5;
}
.button-ghost {
    color: var(--md-sys-color-primary);
    background: transparent;
}
.icon-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 50%;
    color: var(--md-sys-color-primary);
    background: transparent;
    font-size: 21px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.18s ease, transform 0.18s ease;
}
.icon-button:hover {
    background: rgba(11, 36, 71, 0.08);
    transform: scale(1.04);
}

.field-group {
    display: block;
    min-width: 0;
    flex: 1;
    position: relative;
}
.field-label {
    position: absolute;
    top: 18px;
    left: 16px;
    z-index: 1;
    padding: 0 4px;
    color: #535d69;
    background: #fff;
    font-size: 16px;
    font-weight: 400;
    pointer-events: none;
    transform-origin: left center;
    transition: top .18s ease, left .18s ease, color .18s ease, font-size .18s ease;
}
.form-control {
    width: 100%;
    min-height: 56px;
    padding: 15px 16px 0;
    border: 1px solid #cbd3dd;
    border-radius: 12px;
    color: var(--color-text);
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.form-control::placeholder { color: transparent; }
input.form-control {
    padding-top: 0;
    padding-bottom: 0;
    font-size: 1rem;
    line-height: 1.35;
}
.form-control:focus + .field-label,
.form-control:not(:placeholder-shown) + .field-label,
.field-group.is-select .field-label {
    top: -7px;
    left: 12px;
    color: var(--md-sys-color-primary);
    font-size: 12px;
    font-weight: 500;
}
.field-group.is-select .form-control { padding-top: 4px; }
.field-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    color: #52606e;
    font-size: 23px;
    pointer-events: none;
}
.form-control.has-leading-icon { padding-left: 52px; }
.has-leading-icon + .field-label { left: 52px; }
.has-leading-icon:focus + .field-label,
.has-leading-icon:not(:placeholder-shown) + .field-label { left: 12px; }
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
}
.button-icon { font-size: 20px; }
.material-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: currentColor;
    opacity: .15;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: materialRipple .55s ease-out forwards;
}
@keyframes materialRipple {
    to { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
.form-control:hover { border-color: #93a0af; }
.form-control:focus {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 3px rgba(11, 36, 71, 0.1);
    outline: 0;
}
.form-control:disabled {
    color: #6d7680;
    background: #eef1f4;
}
.code-control {
    text-align: center;
    font-size: 20px;
    letter-spacing: 0.35em;
}

.login-shell {
    width: 100%;
    max-width: 420px;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.login-form .primary-action { margin-top: 2px; }
.back-action {
    width: 100%;
    margin-top: -4px;
}
.primary-action.is-loading .button-spinner { display: block; }

.sidebar-logo {
    display: block;
    width: min(190px, 100%);
    height: auto;
}
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 12px;
}
.nav-item {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #3e4650;
    background: transparent;
    font: inherit;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}
.nav-item:hover {
    color: var(--md-sys-color-primary);
    background: rgba(11, 36, 71, 0.06);
    transform: translateX(2px);
}
.nav-item.active {
    color: var(--md-sys-color-primary);
    background: rgba(11, 36, 71, 0.11);
    font-weight: 700;
}
.nav-symbol {
    width: 23px;
    color: currentColor;
    font-size: 19px;
    text-align: center;
}
.nav-divider {
    height: 1px;
    margin: 8px 4px;
    background: var(--color-border);
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.page-eyebrow {
    margin: 0 0 7px;
    color: var(--md-sys-color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.page-heading .page-title { margin-bottom: 28px; }
.filters .field-group { max-width: 260px; }
.filter-button {
    min-width: 120px;
    height: 50px;
    align-self: flex-end;
}
.report-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
}
.report-row + .report-row { border-top: 1px solid var(--color-border); }
.file-badge {
    min-width: 44px;
    padding: 7px 5px;
    border-radius: 9px;
    color: #ffffff;
    background: #b3261e;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}
.row-content {
    min-width: 0;
    flex: 1;
}
.row-content h2 {
    margin: 0 0 5px;
    font-size: 16px;
}
.row-content p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
}
.card-symbol {
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 12px;
    border-radius: 18px;
    place-items: center;
    color: var(--md-sys-color-primary);
    background: #e8eef5;
    font-size: 30px;
}
.grid-card,
.account-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.grid-card:hover,
.account-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.card-title,
.account-title,
.form-title { font-size: 19px; }
.account-card .field-group + .password-wrapper { margin-top: 16px; }
.platform-mark {
    display: grid;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    place-items: center;
    color: #ffffff;
    font-weight: 700;
}
.platform-gmail { background: #ea4335; }
.platform-trendyol { background: #f27a1a; }
.platform-yemeksepeti { background: #e0004d; }
.platform-getir { background: #5d3eb2; }
.platform-instagram { background: #e1306c; }
.password-wrapper .field-group { width: 100%; }
.password-wrapper .form-control { padding-right: 54px; }
.password-wrapper .reveal-btn {
    top: 30px;
    right: 5px;
}
.form-card { align-self: start; }

.security-dialog {
    width: min(460px, calc(100% - 32px));
    padding: 0;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(11, 36, 71, 0.25);
}
.security-dialog::backdrop {
    background: rgba(8, 22, 39, 0.54);
    backdrop-filter: blur(2px);
}
.dialog-panel { padding: 28px; }
.dialog-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dialog-heading h2 {
    margin: 0;
    font-size: 21px;
}
.dialog-symbol {
    color: var(--md-sys-color-primary);
    font-size: 20px;
}
.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}
.scrim {
    border: 0;
    cursor: pointer;
}

@media (max-width: 900px) {
    .sidebar { box-shadow: 12px 0 40px rgba(11, 36, 71, 0.16); }
    .filters .field-group { width: 100%; max-width: none; }
    .filter-button { width: 100%; align-self: stretch; }
}

@media (max-width: 520px) {
    .report-row { padding: 17px 15px; gap: 11px; }
    .file-badge { min-width: 39px; }
    .row-content h2 { font-size: 15px; }
    .dialog-panel { padding: 23px 20px; }
}

/* --- Material 3 görsel katmanı --- */
.sidebar {
    border-right: 0;
    background: var(--md-sys-color-surface);
}
.sidebar-header { padding: 30px 28px 22px; }
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sidebar-toggle { margin-left: auto; }
.main-content { padding: 40px clamp(24px, 4vw, 56px); }
.page-title {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 500;
}
.md-card {
    border-color: rgba(68, 77, 90, 0.16);
    border-radius: var(--radius-card);
}
.nav-item { border-radius: 28px; }
.nav-item.active { background: var(--md-primary-container); }
.page-heading > div:first-child { max-width: 660px; }
.page-heading { align-items: flex-start; }
.page-subtitle {
    margin: -18px 0 30px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.55;
}
.page-heading .page-subtitle { margin-bottom: 28px; }
.section-lead { max-width: 680px; }
.profile-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 13px 8px 8px;
    border-radius: 28px;
    color: var(--md-on-primary-container);
    background: var(--md-primary-container);
    margin-left: auto;
    flex: 0 0 auto;
}
.profile-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    place-items: center;
    color: #fff;
    background: var(--md-sys-color-primary);
    font-size: 13px;
    font-weight: 700;
}
.profile-chip strong,
.profile-chip small { display: block; }
.profile-chip strong { font-size: 13px; }
.profile-chip small { margin-top: 2px; color: #4d5c70; font-size: 11px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 42px;
}
.stat-card {
    min-height: 140px;
    padding: 22px;
    border-radius: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--md-surface-container-low);
    box-shadow: inset 0 0 0 1px rgba(68, 77, 90, 0.12);
    transition: transform .2s ease, background-color .2s ease;
}
.stat-card:hover { transform: translateY(-2px); background: #fff; }
.stat-link { position: relative; cursor: pointer; }
.stat-status-light {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 9px;
    border-radius: 50%;
    color: rgba(186, 26, 26, .14);
    background: #ba1a1a;
    box-shadow: 0 0 0 4px currentColor;
    vertical-align: 1px;
}
.stat-link:hover .stat-status-light,
.stat-link:focus-visible .stat-status-light { color: rgba(249, 168, 37, .2); background: #f9a825; }
.stat-card-primary {
    color: var(--md-on-primary-container);
    background: var(--md-primary-container);
    box-shadow: none;
}
.stat-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    place-items: center;
    color: var(--md-sys-color-primary);
    background: rgba(255,255,255,.72);
    font-size: 20px;
}
.stat-card p { margin: 2px 0 8px; color: var(--color-muted); font-size: 12px; font-weight: 700; }
.stat-card strong { display: block; font-size: 18px; }
.stat-card small { display: block; margin-top: 9px; color: var(--color-muted); font-size: 11px; line-height: 1.4; }
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.section-heading h2 { margin: 0; font-size: 25px; font-weight: 500; }
.status-badge {
    padding: 8px 12px;
    border-radius: 18px;
    color: #245c35;
    background: #d9f3df;
    font-size: 12px;
    font-weight: 700;
}
.status-badge span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #2e7d47;
}
.button-tonal {
    min-height: 40px;
    color: var(--md-on-primary-container);
    background: var(--md-primary-container);
}
.row-action { min-width: 88px; }
.nav-item-danger { color: #ba1a1a; }
.nav-item-danger:hover {
    color: #93000a;
    background: #ffdad6;
}
.report-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px;
    border-radius: 20px;
    background: var(--md-surface-container-low);
    box-shadow: inset 0 0 0 1px rgba(68, 77, 90, .12);
}
.report-filters .field-group { width: 100%; max-width: none; }
.report-filters .filter-button { width: 100%; min-width: 0; align-self: stretch; }
.empty-reports {
    padding: 42px 24px;
    text-align: center;
}
.empty-reports .material-symbols-outlined {
    color: var(--color-muted);
    font-size: 42px;
}
.empty-reports h3 { margin: 12px 0 6px; }
.empty-reports p { margin: 0; color: var(--color-muted); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.service-card { transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.service-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.service-icon {
    display: grid;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    place-items: center;
    color: var(--md-on-primary-container);
    background: var(--md-primary-container);
}
.service-status {
    padding: 7px 11px;
    border-radius: 16px;
    color: #245c35;
    background: #d9f3df;
    font-size: 11px;
    font-weight: 700;
}
.service-card h2 { margin: 0 0 22px; font-size: 20px; font-weight: 500; }
.service-details { margin: 0; }
.service-details div {
    padding: 12px 0;
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 16px;
    border-top: 1px solid rgba(68, 77, 90, .12);
}
.service-details dt { color: var(--color-muted); font-size: 12px; font-weight: 500; }
.service-details dd { margin: 0; color: var(--color-text); font-size: 13px; font-weight: 500; }
.service-details a { color: var(--md-sys-color-primary); text-decoration: none; }
.service-details a:hover { text-decoration: underline; }

.report-archive {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.year-group {
    border: 1px solid rgba(68, 77, 90, 0.16);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
}
.year-summary {
    min-height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--md-on-primary-container);
    background: var(--md-primary-container);
    cursor: pointer;
    list-style: none;
}
.year-summary::-webkit-details-marker { display: none; }
.year-summary strong,
.year-summary small { display: block; }
.year-summary strong { font-size: 24px; font-weight: 500; }
.year-summary small { margin-top: 3px; color: #526174; font-size: 12px; }
.year-chevron { transition: transform .2s ease; }
.year-group[open] .year-chevron { transform: rotate(180deg); }
.year-report-list { animation: yearOpen .24s ease both; }
@keyframes yearOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.report-record { position: relative; }
.report-status {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px currentColor;
}
.report-status.is-read { color: rgba(46, 125, 71, .14); background: #2e7d47; }
.report-status.is-unread { color: rgba(186, 26, 26, .13); background: #ba1a1a; }
.report-record:hover .report-status {
    color: rgba(249, 168, 37, .16);
    background: #f9a825;
}
.report-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}
.report-title-line h3 { margin: 0; font-size: 16px; font-weight: 500; }
.special-badge {
    padding: 4px 8px;
    border-radius: 12px;
    color: #6c4300;
    background: #ffddb1;
    font-size: 10px;
    font-weight: 700;
}
.report-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.report-actions .material-symbols-outlined { font-size: 19px; }
.report-action-menu {
    position: relative;
    z-index: 3;
    margin-left: auto;
    flex: 0 0 auto;
}
.dropdown-trigger {
    min-width: 154px;
    list-style: none;
    user-select: none;
}
.dropdown-trigger::-webkit-details-marker { display: none; }
.dropdown-chevron {
    margin-left: auto;
    transition: transform .18s ease;
}
.report-action-menu[open] .dropdown-chevron { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 190px;
    padding: 7px;
    border: 1px solid rgba(68, 77, 90, .14);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(11, 36, 71, .18);
    animation: dropdownOpen .16s ease both;
}
.report-record:last-child .dropdown-menu {
    top: auto;
    bottom: calc(100% + 8px);
}
@keyframes dropdownOpen {
    from { opacity: 0; transform: translateY(-6px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-item {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 11px;
    position: relative;
    overflow: hidden;
    color: var(--color-text);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: color .16s ease, background-color .16s ease;
}
.dropdown-item:hover { color: var(--md-sys-color-primary); background: var(--md-primary-container); }
.dropdown-item:focus-visible { outline: 3px solid rgba(11, 36, 71, .2); outline-offset: -2px; }
.platform-facebook { background: #1877f2; }

.pdf-dialog {
    width: min(1080px, calc(100% - 32px));
    height: min(86vh, 820px);
    padding: 0;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 26px 80px rgba(7, 24, 44, .28);
}
.pdf-dialog::backdrop {
    background: rgba(8, 22, 39, .62);
    backdrop-filter: blur(3px);
}
.pdf-dialog-shell {
    height: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr;
    background: var(--md-surface-container);
}
.pdf-dialog-header {
    padding: 18px 20px 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
}
.pdf-dialog-header h2 { margin: 0; font-size: 21px; font-weight: 500; }
.pdf-dialog-header .page-eyebrow { margin-bottom: 4px; }
.pdf-read-progress {
    min-height: 44px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--md-on-primary-container);
    background: var(--md-primary-container);
    font-size: 13px;
    font-weight: 500;
}
.pdf-read-progress .material-symbols-outlined { font-size: 19px; }
.pdf-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #dce2ea;
}

@media (max-width: 900px) {
    .profile-chip { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: 116px; }
    .services-grid { grid-template-columns: 1fr; }
    .report-filters { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
    .sidebar { transition: width .26s cubic-bezier(.2, 0, 0, 1), transform .3s cubic-bezier(.4, 0, .2, 1); }
    .sidebar.collapsed { width: 92px; }
    .sidebar.collapsed .sidebar-header {
        padding-right: 16px;
        padding-left: 16px;
        justify-content: center;
    }
    .sidebar.collapsed .sidebar-logo,
    .sidebar.collapsed .sidebar-footer,
    .sidebar.collapsed .nav-item > span:not(.nav-symbol) {
        display: none;
    }
    .sidebar.collapsed .sidebar-toggle { margin: 0; }
    .sidebar.collapsed .sidebar-list { padding-right: 12px; padding-left: 12px; }
    .sidebar.collapsed .nav-item {
        padding: 0;
        justify-content: center;
    }
    .sidebar.collapsed .nav-symbol { width: auto; }
}

@media (max-width: 520px) {
    .section-heading { align-items: flex-start; flex-direction: column; }
    .row-action { min-width: 44px; padding: 0 12px; font-size: 0; }
    .row-action span { font-size: 18px; }
    .report-record { align-items: flex-start; flex-wrap: wrap; }
    .report-record .row-content { width: calc(100% - 80px); }
    .report-actions { width: 100%; padding-left: 26px; }
    .report-actions .button { flex: 1; }
    .year-summary { padding: 0 18px; }
    .pdf-dialog { width: 100%; height: 100%; max-height: none; border-radius: 0; }
    .report-filters .filter-button { min-width: 0; }
    .service-details div { grid-template-columns: 1fr; gap: 5px; }
    .dropdown-trigger { min-width: 52px; width: 52px; padding: 0; font-size: 0; }
    .dropdown-trigger > .material-symbols-outlined:first-child { font-size: 22px; }
    .dropdown-chevron { display: none; }
}

/* --- Responsive yüzde 130 tipografi ölçeği --- */
body { font-size: clamp(18px, 1.45vw, 20.8px); }
.button,
.nav-item,
.dropdown-item,
.form-control,
.field-label { font-size: 1rem; }
.page-title { font-size: clamp(39px, 5.2vw, 55px); }
.index-main h1 { font-size: clamp(36px, 6.5vw, 49px); }
.login-title { font-size: 1.75rem; }
.page-subtitle,
.card-description,
.dialog-description,
.row-content p { font-size: .94rem; }
.page-eyebrow,
.stat-card p,
.stat-card small,
.profile-chip small,
.service-details dt,
.year-summary small,
.form-note { font-size: .75rem; }
.profile-chip strong,
.service-details dd,
.page-url { font-size: .82rem; }
.stat-card strong { font-size: 1.125rem; }
.section-heading h2 { font-size: 1.56rem; }
.report-title-line h3 { font-size: 1rem; }
.year-summary strong { font-size: 1.5rem; }
.service-card h2,
.card-title,
.account-title,
.form-title { font-size: 1.25rem; }
.special-badge { font-size: .68rem; }
.material-symbols-outlined { font-size: 1.45rem; }

@media (max-width: 700px) {
    body { font-size: 18px; }
    .page-title { font-size: clamp(34px, 9vw, 43px); }
}

/* --- Widget, başlık ve katman iyileştirmeleri --- */
.stats-grid { margin-bottom: 28px; }
.stat-card {
    min-height: 0;
    padding: 20px 22px;
    align-items: center;
    color: var(--color-text);
    background: #fff;
    cursor: default;
    box-shadow: inset 0 0 0 1px rgba(68, 77, 90, .12);
}
.stat-card:hover,
.stat-card:focus-visible {
    color: #fff;
    background: var(--md-sys-color-primary);
    box-shadow: 0 12px 30px rgba(11, 36, 71, .24);
    outline: 0;
}
.stat-card p {
    margin: 0 0 7px;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.stat-card strong {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}
.stat-card small {
    margin-top: 5px;
    font-size: .8rem;
    line-height: 1.35;
}
.stat-card:hover p,
.stat-card:hover small,
.stat-card:focus-visible p,
.stat-card:focus-visible small { color: rgba(255,255,255,.82); }
.stat-card:hover .stat-icon,
.stat-card:focus-visible .stat-icon {
    color: var(--md-sys-color-primary);
    background: #fff;
}

.profile-chip {
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.profile-chip:hover,
.profile-chip:focus-visible {
    background: #c5d7f1;
    box-shadow: 0 8px 20px rgba(11, 36, 71, .14);
    transform: translateY(-1px);
    outline: 0;
}
.profile-chip small {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    letter-spacing: .04em;
}
.profile-chip small .material-symbols-outlined { font-size: 1rem; }

.section-title-row,
.content-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.section-title-icon,
.content-title-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 16px;
    place-items: center;
    color: var(--md-on-primary-container);
    background: var(--md-primary-container);
}
.content-title-row { margin-bottom: 24px; }
.content-title-row .page-title { margin-bottom: 0; }
.content-title-row + .page-subtitle { margin-top: -10px; }
.section-title-row .page-eyebrow { margin-bottom: 4px; }

.year-group {
    position: relative;
    overflow: visible;
}
.year-summary { border-radius: 22px; }
.year-group[open] .year-summary { border-radius: 22px 22px 0 0; }
.year-report-list {
    border-radius: 0 0 22px 22px;
    overflow: visible;
    background: #fff;
}
.report-record { z-index: 1; }
.report-record:has(.report-action-menu[open]) { z-index: 1000; }
.year-group:has(.report-action-menu[open]) { z-index: 1000; }
.report-action-menu { z-index: 1001; }
.dropdown-menu { z-index: 1002; }

.form-control:not(:disabled):hover {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 3px 10px rgba(11, 36, 71, .09);
}

.home-shortcuts-heading {
    margin: 64px 0 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.home-shortcuts-heading h2 {
    margin: 0;
    font-size: 1.56rem;
    font-weight: 500;
}
.home-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.home-shortcut-card {
    min-height: 220px;
    padding: 24px 20px;
    border: 1px solid rgba(68, 77, 90, .14);
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    color: var(--color-text);
    background: #fff;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.home-shortcut-card > .material-symbols-outlined:first-child {
    display: grid;
    width: 76px;
    height: 76px;
    border-radius: 24px;
    place-items: center;
    color: var(--md-on-primary-container);
    background: var(--md-primary-container);
    font-size: 2.35rem;
}
.home-shortcut-card strong,
.home-shortcut-card small { display: block; }
.home-shortcut-card strong { margin-bottom: 8px; font-size: 1.16rem; }
.home-shortcut-card small { color: #4f5965; font-size: .98rem; line-height: 1.5; }
.home-shortcut-card > span:nth-child(2) { align-self: start; }
.shortcut-arrow { color: var(--color-muted); transition: transform .2s ease; }
.home-shortcut-card .shortcut-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
}
.home-shortcut-danger > .material-symbols-outlined:first-child {
    color: #93000a;
    background: #ffdad6;
}
.home-shortcut-danger:hover,
.home-shortcut-danger:focus-visible { background: #ba1a1a; }
.home-shortcut-card:hover,
.home-shortcut-card:focus-visible {
    color: #fff;
    background: var(--md-sys-color-primary);
    box-shadow: 0 12px 30px rgba(11, 36, 71, .22);
    transform: translateY(-2px);
    outline: 0;
}
.home-shortcut-card:hover small,
.home-shortcut-card:focus-visible small,
.home-shortcut-card:hover .shortcut-arrow,
.home-shortcut-card:focus-visible .shortcut-arrow { color: rgba(255,255,255,.78); }
.home-shortcut-card:hover .shortcut-arrow,
.home-shortcut-card:focus-visible .shortcut-arrow { transform: translateX(4px); }

@media (max-width: 900px) {
    .home-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .home-shortcuts { grid-template-columns: 1fr; }
    .home-shortcut-card { min-height: 190px; grid-template-columns: 1fr; padding: 22px 16px; gap: 12px; }
    .home-shortcut-card > .material-symbols-outlined:first-child { width: 68px; height: 68px; font-size: 2.05rem; }
}

.log-list {
    padding: 0;
    overflow: hidden;
}
.log-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(68, 77, 90, .12);
    transition: background-color .18s ease;
}
.log-row:last-child { border-bottom: 0; }
.log-row:hover { background: var(--md-sys-color-surface-container-low); }
.log-row h2 { margin: 0 0 5px; font-size: 1rem; }
.log-row p { margin: 0; color: var(--color-muted); font-size: .88rem; }
.log-icon {
    display: grid;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    place-items: center;
}
.log-success { color: #176b3a; background: #d8f7e3; }
.log-info { color: #15558a; background: #d9ecff; }
.log-download { color: #675000; background: #fff0b8; }
.log-neutral { color: #515b68; background: #e9edf2; }
.log-badge {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--md-sys-color-primary);
    background: var(--md-primary-container);
    font-size: .78rem;
    font-weight: 700;
}

/* Portal veri listeleri ve geniş hizmet özeti */
.filter-results-summary { cursor: default; }
.filter-results-summary .material-symbols-outlined { font-size: 30px; }
.data-list {
    padding: 0;
    overflow: hidden;
}
.data-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(68, 77, 90, .12);
    transition: background-color .18s ease;
}
.data-row:last-child { border-bottom: 0; }
.data-row:hover { background: var(--md-sys-color-surface-container-low); }
.data-row-main { min-width: 0; }
.data-row-main h3 { margin: 0 0 5px; font-size: 1rem; font-weight: 600; }
.data-row-main p { margin: 0; overflow: hidden; color: var(--color-muted); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.file-type-icon {
    display: grid;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    place-items: center;
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
}
.file-ai { background: #d56b00; }
.file-pdf { background: #b3261e; }
.file-png { background: #176b3a; }
.file-generic { background: #4f5f73; }
.file-results-info {
    margin: -2px 2px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--color-muted);
    font-size: .84rem;
    font-weight: 600;
}
.file-results-info .material-symbols-outlined { color: var(--md-sys-color-primary); font-size: 1.2rem; }
.file-list-toolbar {
    margin: -2px 2px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.file-list-toolbar .file-results-info { margin: 0; }
.file-list-controls { display: flex; align-items: center; gap: 12px; }
.file-list-controls label { display: flex; align-items: center; gap: 7px; color: var(--color-muted); font-size: .78rem; font-weight: 600; }
.toolbar-select {
    min-height: 40px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    background: var(--color-surface);
    font: inherit;
    font-size: .84rem;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.toolbar-select:hover:not(:disabled),
.toolbar-select:focus { border-color: var(--md-sys-color-primary); box-shadow: 0 0 0 3px rgba(11, 36, 71, .1); outline: 0; }
.toolbar-select:disabled { opacity: .48; cursor: not-allowed; }
.sort-select { min-width: 170px; }
.file-results-jump { display: none; }
.file-pagination {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
.file-pagination > span {
    min-width: 58px;
    color: var(--color-muted);
    font-size: .86rem;
    font-weight: 700;
    text-align: center;
}
.file-pagination .button { min-width: 112px; }
.file-pagination .button:disabled { opacity: .42; box-shadow: none; cursor: not-allowed; transform: none; }
.file-pagination.is-disabled { opacity: .6; }
.file-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.file-filters .field-group,
.file-filters .form-control,
.file-filters .filter-button { width: 100%; min-height: 56px; height: 56px; }
.clearable-field .form-control { padding-right: 48px; }
.field-clear-button {
    position: absolute;
    top: 9px;
    right: 8px;
    z-index: 3;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    color: var(--color-muted);
    background: transparent;
    cursor: pointer;
    transform: scale(.75);
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease, background-color .16s ease;
}
.field-clear-button.is-visible { opacity: 1; visibility: visible; transform: scale(1); }
.field-clear-button:hover { color: var(--md-sys-color-primary); background: var(--md-primary-container); }
.field-clear-button .material-symbols-outlined { font-size: 1.2rem; }
.file-list .data-row:hover {
    z-index: 1;
    background: var(--md-primary-container);
    box-shadow: inset 4px 0 0 var(--md-sys-color-primary), 0 8px 22px rgba(11, 36, 71, .12);
    transform: translateX(4px);
}
.data-meta { min-width: 90px; color: var(--color-muted); font-size: .86rem; text-align: right; }
.data-extension {
    min-width: 48px;
    padding: 6px 9px;
    border-radius: 10px;
    color: var(--md-sys-color-primary);
    background: var(--md-primary-container);
    font-size: .72rem;
    font-weight: 800;
    text-align: center;
}
.compact-button { min-width: 110px; }
.compact-button .material-symbols-outlined { font-size: 1.15rem; }
.service-overview {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) minmax(300px, 1.15fr);
    align-items: center;
    gap: 28px;
    padding: 28px;
}
.service-overview-icons {
    display: grid;
    grid-template-columns: repeat(3, 48px);
    gap: 10px;
}
.service-overview-icons .material-symbols-outlined {
    display: grid;
    width: 48px;
    height: 48px;
    margin-left: 0;
    border: 0;
    border-radius: 15px;
    place-items: center;
    color: var(--md-sys-color-primary);
    background: var(--md-primary-container);
}
.service-overview-icons .material-symbols-outlined:nth-child(2n) { background: var(--md-secondary-container); }
.service-overview-icons .material-symbols-outlined:nth-child(1) { color: #7a3e00; background: #ffddb8; }
.service-overview-icons .material-symbols-outlined:nth-child(2) { color: #8b3155; background: #ffd9e3; }
.service-overview-icons .material-symbols-outlined:nth-child(3) { color: #713600; background: #ffdcc2; }
.service-overview-icons .material-symbols-outlined:nth-child(4) { color: #176b3a; background: #d8f7e3; }
.service-overview-icons .material-symbols-outlined:nth-child(5) { color: #5d3b8c; background: #ebddff; }
.service-overview-icons .material-symbols-outlined:nth-child(6) { color: #15558a; background: #d9ecff; }
.service-overview-icons .material-symbols-outlined:nth-child(7) { color: #6c4300; background: #fff0b8; }
.service-overview-icons .material-symbols-outlined:nth-child(8) { color: #31546f; background: #dceaf5; }
.service-overview-icons .material-symbols-outlined:nth-child(9) { color: #174ea6; background: #dbe7ff; }
.service-overview-icons .material-symbols-outlined:nth-child(3n + 1) { border-radius: 50% 35% 50% 35%; transform: rotate(-7deg); }
.service-overview-icons .material-symbols-outlined:nth-child(3n + 2) { border-radius: 12px 24px 12px 24px; transform: translateY(5px) rotate(5deg); }
.service-overview-icons .material-symbols-outlined:nth-child(3n) { border-radius: 24px 12px 24px 12px; transform: rotate(8deg); }
.service-overview-icons .material-symbols-outlined { transition: transform .2s ease, box-shadow .2s ease; }
.service-overview-icons .material-symbols-outlined:hover { z-index: 1; box-shadow: 0 9px 20px rgba(11, 36, 71, .18); transform: translateY(-3px) rotate(0) scale(1.08); }
.service-overview-main h2 { margin: 10px 0 9px; font-size: 1.38rem; line-height: 1.25; letter-spacing: -.01em; }
.service-overview-main p { margin: 0; color: var(--color-muted); font-size: .94rem; line-height: 1.65; }
.service-overview-details { margin: 0; }
.service-overview-details div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 8px 0; }
.service-overview-details dt { color: var(--color-muted); font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.service-overview-details dd { margin: 0; font-size: .92rem; font-weight: 700; line-height: 1.35; }
.service-overview-details a { color: var(--md-sys-color-primary); text-decoration: none; }
.service-pricing dd { display: flex; align-items: center; gap: 12px; }
.service-pricing del { color: #ba1a1a; font-size: .88rem; font-weight: 700; text-decoration-thickness: 2px; }
.service-pricing strong { color: #176b3a; font-size: 1.08rem; }
.service-section-heading { margin-top: 30px; }
.service-pricing-panel {
    grid-column: 1 / -1;
    width: min(520px, 100%);
    margin: 2px auto 0;
    padding: 18px 24px;
    border: 1px solid rgba(23, 107, 58, .2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    background: linear-gradient(135deg, #f4fbf6, #e4f6ea);
}
.service-pricing-panel > .material-symbols-outlined {
    display: grid;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    place-items: center;
    color: #176b3a;
    background: #ccefd8;
}
.service-pricing-panel small { display: block; margin-bottom: 6px; color: #315a40; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.service-pricing-panel p { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 14px; }
.service-pricing-panel del { color: #ba1a1a; font-size: 1.45rem; font-weight: 700; text-decoration-thickness: 3px; }
.service-pricing-panel strong { color: #176b3a; font-size: 1.45rem; }
.bank-account-card { padding: 0; overflow: hidden; }
.bank-account-header {
    min-height: 82px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--md-surface-container-low);
}
.bank-logo { display: flex; align-items: center; gap: 12px; font-size: 1.06rem; }
.bank-logo img { width: 42px; height: 42px; border-radius: 12px; object-fit: contain; background: #fff; box-shadow: 0 4px 12px rgba(11, 36, 71, .12); }
.bank-detail-list { display: grid; grid-template-columns: 1fr 1fr; }
.bank-detail {
    min-width: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    border-top: 1px solid rgba(68, 77, 90, .12);
    border-right: 1px solid rgba(68, 77, 90, .12);
    transition: background-color .18s ease;
}
.bank-detail:last-child { border-right: 0; }
.bank-detail:hover { background: var(--md-surface-container-low); }
.bank-detail > .material-symbols-outlined { color: var(--md-sys-color-primary); }
.bank-detail small,
.bank-detail strong { display: block; }
.bank-detail small { margin-bottom: 5px; color: var(--color-muted); font-size: .72rem; }
.bank-detail strong { overflow-wrap: anywhere; font-size: .84rem; }
.bank-owner-detail strong { margin-bottom: 6px; font-size: 1rem; }
.bank-owner-detail div > span { display: block; color: var(--color-text); font-size: .9rem; font-weight: 700; }
.bank-detail em { display: block; margin-top: 3px; color: var(--color-muted); font-size: .72rem; font-style: normal; font-weight: 400; }
.bank-copy-button {
    position: relative;
    top: auto;
    right: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    flex: 0 0 auto;
    justify-self: end;
}
.list-section-heading { display: flex; align-items: center; gap: 14px; margin: 34px 0 16px; }
.list-section-heading > .material-symbols-outlined { color: var(--md-sys-color-primary); font-size: 30px; }
.list-section-heading h2 { margin: 0; font-size: 1.45rem; }
.list-section-heading .page-eyebrow { margin-bottom: 3px; }
.invoice-icon { color: #6c4300; background: #ffddb1; font-size: 1.55rem; }
.status-pill { padding: 7px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.status-paid { color: #176b3a; background: #d8f7e3; }
.accounts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.account-card {
    padding: 20px;
    border: 1px solid rgba(68, 77, 90, .15);
    background: #fff;
    box-shadow: 0 4px 18px rgba(11, 36, 71, .07);
}
.account-card:hover { transform: translateY(-4px); box-shadow: 0 15px 36px rgba(11, 36, 71, .15); }
.account-card .acc-header {
    min-height: 70px;
    margin: -4px -4px 22px;
    padding: 13px 15px;
    border-bottom: 1px solid rgba(68, 77, 90, .12);
    border-radius: 0;
    background: transparent;
}
.account-card .platform-mark { box-shadow: 0 7px 16px rgba(11, 36, 71, .14); }
.account-card .account-title { font-size: 1.08rem; font-weight: 700; }
.account-card .field-group {
    border-radius: 14px;
    background: #f7f9fc;
}
.account-card .field-group::before {
    position: absolute;
    top: 17px;
    left: 15px;
    z-index: 2;
    color: var(--md-sys-color-primary);
    font-family: 'Material Symbols Outlined';
    font-size: 21px;
    font-weight: normal;
    pointer-events: none;
}
.account-card > .field-group::before { content: 'alternate_email'; }
.account-card .password-wrapper .field-group::before { content: 'lock'; }
.account-card .form-control {
    padding-left: 48px;
    padding-right: 50px;
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(68, 77, 90, .12);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: 0;
}
.account-card .field-label { left: 44px; background: #f7f9fc; }
.account-card .field-label { font-size: .78rem; line-height: 1; }
.account-card .form-control:focus + .field-label,
.account-card .form-control:not(:placeholder-shown) + .field-label { left: 42px; }
.account-card .form-control:hover { border-color: rgba(11, 36, 71, .48); background: #fff; }
.account-card .form-control:focus { border-color: var(--md-sys-color-primary); box-shadow: 0 0 0 3px rgba(11, 36, 71, .11); }
.account-card .reveal-btn {
    color: var(--md-sys-color-primary);
    background: var(--md-primary-container);
}
.account-card .password-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
}
.account-reveal-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    gap: 9px;
    font-size: .84rem;
}
.account-reveal-btn .material-symbols-outlined { width: 1.15rem; flex: 0 0 1.15rem; font-size: 1.15rem; text-align: center; }
.field-copy-button {
    position: absolute;
    top: 9px;
    right: 8px;
    z-index: 4;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    color: var(--md-sys-color-primary);
    background: var(--md-primary-container);
    cursor: pointer;
    transform: scale(.75);
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease, box-shadow .16s ease;
}
.field-copy-button .material-symbols-outlined { font-size: 1.15rem; }
.account-card > .field-group:hover .field-copy-button,
.account-card > .field-group:focus-within .field-copy-button,
.password-copy-field.can-copy:hover .field-copy-button,
.password-copy-field.can-copy:focus-within .field-copy-button { opacity: 1; visibility: visible; transform: scale(1); }
.field-copy-button:hover { box-shadow: 0 5px 13px rgba(11, 36, 71, .2); }
.bank-detail .bank-copy-button {
    position: relative;
    top: auto;
    right: auto;
    justify-self: end;
    opacity: 1;
    visibility: visible;
    transform: none;
}
.account-card .account-title { line-height: 1.25; letter-spacing: 0; }

@media (min-width: 901px) {
    .home-shortcut-danger {
        grid-column: 1 / -1;
        min-height: 150px;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: 1fr;
        justify-content: center;
        justify-items: center;
        padding: 26px 42px;
        text-align: center;
    }
    .home-shortcut-danger > span:nth-child(2) { align-self: center; }
}

@media (max-width: 1050px) {
    .service-overview { grid-template-columns: auto 1fr; }
    .service-overview-details { grid-column: 1 / -1; }
    .accounts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .bank-detail-list { grid-template-columns: 1fr; }
    .bank-detail { border-right: 0; }
    .file-filters { grid-template-columns: 1fr; }
    .data-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
    .data-meta { grid-column: 2; justify-self: start; min-width: 0; text-align: left; }
    .data-extension { display: none; }
    .data-row .compact-button,
    .data-row > .icon-button { grid-column: 3; grid-row: 1 / span 2; }
    .invoice-list .status-pill { grid-column: 2; justify-self: start; }
    .service-overview { grid-template-columns: 1fr; padding: 22px; }
    .service-overview-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .service-overview-icons .material-symbols-outlined { width: 100%; }
    .service-overview-details { grid-column: auto; }
    .accounts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .log-row { grid-template-columns: auto minmax(0, 1fr); padding: 17px 16px; }
    .log-badge { grid-column: 2; justify-self: start; }
}

.copyright-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.copyright-line .material-symbols-outlined { font-size: 1rem; }
.footer-site-link {
    display: inline-block;
    margin-top: 7px;
    color: var(--md-sys-color-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}
.footer-site-link:hover,
.footer-site-link:focus-visible {
    color: #315a8c;
    transform: translateY(-1px);
    outline: 0;
    text-decoration: underline;
}

.dashboard-topbar {
    min-height: 58px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.mobile-topbar-logo { display: none; }
.mobile-logo-button,
.mobile-account-icon,
.mobile-menu-action,
.mobile-profile-icon { display: none; }

.topbar-action {
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    color: var(--md-sys-color-primary);
    background: var(--md-primary-container);
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.topbar-action:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(11, 36, 71, .18); }
.topbar-action:focus-visible { outline: 3px solid rgba(84, 135, 193, .3); outline-offset: 2px; }
.topbar-action .material-symbols-outlined { font-size: 1.25rem; }
.topbar-logout { color: #fff; background: #ba1a1a; }
.topbar-logout:hover { background: #93000a; }
.topbar-refresh { width: 48px; padding: 0; }
.topbar-refresh .material-symbols-outlined { transition: transform .35s ease; }
.topbar-refresh:hover .material-symbols-outlined { transform: rotate(120deg); }
.theme-switch {
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid rgba(68, 77, 90, .18);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    overflow: hidden;
    color: var(--md-sys-color-primary);
    background: var(--color-surface);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.theme-switch:hover { border-color: var(--md-sys-color-primary); box-shadow: 0 8px 20px rgba(11, 36, 71, .15); transform: translateY(-1px); }
.theme-switch:focus-visible { outline: 3px solid rgba(84, 135, 193, .3); outline-offset: 2px; }
.theme-switch > .material-symbols-outlined { font-size: 1.15rem; }
.theme-switch-track {
    width: 48px;
    height: 28px;
    padding: 3px;
    border-radius: 999px;
    display: flex;
    background: #d8dee8;
    transition: background-color .22s ease;
}
.theme-switch-thumb {
    display: grid;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    place-items: center;
    color: #fff;
    background: var(--md-sys-color-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
    transition: transform .22s cubic-bezier(.2, 0, 0, 1);
}
.theme-switch-thumb .material-symbols-outlined { font-size: .88rem; }
.theme-switch[aria-checked="true"] .theme-switch-track { background: #315173; }
.theme-switch[aria-checked="true"] .theme-switch-thumb { color: #0b2447; background: #d8e7ff; transform: translateX(20px); }
.forms-grid { grid-template-columns: 1fr; }

.invoice-archive { display: flex; flex-direction: column; gap: 16px; }
.invoice-row { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
.invoice-payment-light {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px currentColor;
}
.invoice-payment-light.is-paid { color: rgba(46, 125, 71, .16); background: #2e7d47; }
.invoice-payment-light.is-unpaid { color: rgba(186, 26, 26, .14); background: #ba1a1a; }
.status-unpaid { color: #93000a; background: #ffdad6; }
.invoice-amount { color: var(--color-text); font-size: .94rem; font-weight: 700; }
.service-overview {
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-overview:hover {
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 35%, transparent);
    box-shadow: 0 14px 36px rgba(11, 36, 71, .14);
    transform: translateY(-2px);
}
.service-overview-main { min-width: 0; }
.service-overview-main p { font-size: .92rem; }

/* Ortak Material durum katmanı */
.md-card,
.stat-card,
.data-row,
.log-row,
.year-summary,
.profile-chip,
.nav-item {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.data-row:hover,
.log-row:hover { box-shadow: inset 4px 0 0 var(--md-sys-color-primary); }
.year-summary:hover { filter: brightness(.97); }
.md-card:focus-within { border-color: var(--md-sys-color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-sys-color-primary) 18%, transparent); }
button:active,
.year-summary:active,
.nav-item:active { transform: scale(.98); }

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .mobile-header,
html[data-theme="dark"] .md-card,
html[data-theme="dark"] .year-group,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .home-shortcut-card,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .security-dialog,
html[data-theme="dark"] .dialog-panel,
html[data-theme="dark"] .pdf-dialog-shell { background-color: var(--color-surface); color: var(--color-text); }
html[data-theme="dark"] .account-card { background: var(--color-surface); }
html[data-theme="dark"] .account-card .acc-header,
html[data-theme="dark"] .account-card .field-group { background: var(--md-surface-container-low); }
html[data-theme="dark"] .account-card .acc-header { background: transparent; }
html[data-theme="dark"] .account-card .field-label { background: var(--md-surface-container-low); }
html[data-theme="dark"] .account-card .form-control:hover { background: var(--md-surface-container); }
html[data-theme="dark"] .service-overview-icons .material-symbols-outlined { border-color: var(--color-surface); }
html[data-theme="dark"] .form-control { color: var(--color-text); background: var(--md-surface-container-low); border-color: var(--color-border); }
html[data-theme="dark"] .home-shortcut-card small,
html[data-theme="dark"] .year-summary small,
html[data-theme="dark"] .profile-chip small { color: var(--color-muted); }
html[data-theme="dark"] .home-shortcut-card:hover small,
html[data-theme="dark"] .home-shortcut-card:focus-visible small { color: rgba(255, 255, 255, .82); }
html[data-theme="dark"] .year-summary { color: var(--md-on-primary-container); background: var(--md-primary-container); }
html[data-theme="dark"] .topbar-logout { color: #fff; background: #ba1a1a; }
html[data-theme="dark"] .sidebar-list .nav-item,
html[data-theme="dark"] .sidebar-footer,
html[data-theme="dark"] .sidebar-footer .footer-site-link { color: #f3f6fb; }
html[data-theme="dark"] .sidebar-list .nav-item:hover { color: #fff; background: #26384d; }
html[data-theme="dark"] .sidebar-list .nav-item.active { color: #fff; background: #315173; }
html[data-theme="dark"] .sidebar-list .nav-item-danger { color: #ffb4ab; }
html[data-theme="dark"] .sidebar-list .nav-item-danger:hover { color: #fff; background: #7f1d1d; }
html[data-theme="dark"] .sidebar-toggle { color: #f3f6fb; }
html[data-theme="dark"] .nav-divider { background: #3a4655; }
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .year-report-list,
html[data-theme="dark"] .pdf-dialog-header,
html[data-theme="dark"] .profile-chip,
html[data-theme="dark"] .page-link { color: var(--color-text); background: var(--color-surface); }
html[data-theme="dark"] .stat-card:hover,
html[data-theme="dark"] .stat-card:focus-visible,
html[data-theme="dark"] .home-shortcut-card:hover,
html[data-theme="dark"] .home-shortcut-card:focus-visible { color: #fff; background: #294867; }
html[data-theme="dark"] .stat-card:hover .stat-icon,
html[data-theme="dark"] .stat-card:focus-visible .stat-icon { color: #d8e7ff; background: #17283d; }
html[data-theme="dark"] .field-label { color: var(--color-muted); background: var(--md-surface-container-low); }
html[data-theme="dark"] .field-group:focus-within .field-label,
html[data-theme="dark"] .field-group.has-value .field-label,
html[data-theme="dark"] .field-group.is-select .field-label { color: var(--md-sys-color-primary); background: var(--md-surface-container-low); }
html[data-theme="dark"] .report-filters,
html[data-theme="dark"] .data-row:hover,
html[data-theme="dark"] .log-row:hover { background: var(--md-surface-container-low); }
html[data-theme="dark"] .dropdown-item { color: var(--color-text); }
html[data-theme="dark"] .dropdown-item:hover { color: #d8e7ff; background: #294867; }
html[data-theme="dark"] .button-primary { color: #fff; background: #315a8c; }
html[data-theme="dark"] .button-primary:hover { background: #3d6ca2; }
html[data-theme="dark"] .button-tonal { color: #d8e7ff; background: #294867; }
html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .button-ghost { color: var(--md-sys-color-primary); background: transparent; border-color: var(--color-border); }
html[data-theme="dark"] .pdf-frame { background: #101720; }
html[data-theme="dark"] .file-list .data-row:hover { background: #294867; }
html[data-theme="dark"] .bank-account-header,
html[data-theme="dark"] .bank-detail:hover { background: var(--md-surface-container-low); }
html[data-theme="dark"] .service-pricing del { color: #ffb4ab; }
html[data-theme="dark"] .service-pricing strong { color: #8fddb0; }
html[data-theme="dark"] .service-pricing-panel { border-color: rgba(143, 221, 176, .25); background: linear-gradient(135deg, #17271f, #1d3527); }
html[data-theme="dark"] .service-pricing-panel small { color: #b8d9c5; }
html[data-theme="dark"] .service-pricing-panel del { color: #ffb4ab; }
html[data-theme="dark"] .service-pricing-panel strong { color: #8fddb0; }
html[data-theme="dark"] .service-overview-icons .material-symbols-outlined:nth-child(1) { color: #ffbd75; background: #513114; }
html[data-theme="dark"] .service-overview-icons .material-symbols-outlined:nth-child(2) { color: #ffb0ca; background: #55283a; }
html[data-theme="dark"] .service-overview-icons .material-symbols-outlined:nth-child(3) { color: #ffc18e; background: #51301a; }
html[data-theme="dark"] .service-overview-icons .material-symbols-outlined:nth-child(4) { color: #8fddb0; background: #183d29; }
html[data-theme="dark"] .service-overview-icons .material-symbols-outlined:nth-child(5) { color: #d4b9ff; background: #3d2b58; }
html[data-theme="dark"] .service-overview-icons .material-symbols-outlined:nth-child(6) { color: #a8d2ff; background: #1d3d59; }
html[data-theme="dark"] .service-overview-icons .material-symbols-outlined:nth-child(7) { color: #f5d170; background: #4a3d17; }
html[data-theme="dark"] .service-overview-icons .material-symbols-outlined:nth-child(8) { color: #b9d9ee; background: #263f50; }
html[data-theme="dark"] .service-overview-icons .material-symbols-outlined:nth-child(9) { color: #b7ceff; background: #243b64; }

/* Hizmet kartı ve kullanıcı formları için ortak görsel standart */
.service-overview {
    grid-template-columns: minmax(0, 1.45fr) minmax(285px, .8fr);
    grid-template-rows: auto 1fr auto;
    align-items: stretch;
    gap: 22px 28px;
    padding: 28px;
    border: 1px solid rgba(68, 77, 90, .14);
    border-top: 5px solid var(--md-sys-color-primary);
    background: var(--color-surface);
    box-shadow: 0 8px 28px rgba(11, 36, 71, .08);
}
.service-overview-icons {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(9, 42px);
    gap: 7px;
    align-self: start;
}
.service-overview-icons .material-symbols-outlined,
.service-overview-icons .material-symbols-outlined:nth-child(n) {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    transform: none;
}
.service-overview-icons .material-symbols-outlined:hover { transform: translateY(-3px) scale(1.06); }
.service-overview-main { grid-column: 1; grid-row: 2; align-self: start; }
.service-overview-main h2 { max-width: 650px; margin-top: 8px; font-size: 1.45rem; }
.service-overview-main p { max-width: 760px; font-size: .93rem; line-height: 1.7; }
.service-scope-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.service-scope-list > span {
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.4;
}
.scope-social { color: #7a3e00; background: #ffddb8; border-color: #efc792; }
.scope-food { color: #176b3a; background: #d8f7e3; border-color: #b5e4c6; }
.scope-content { color: #8b3155; background: #ffd9e3; border-color: #efb9ca; }
.scope-video { color: #713600; background: #ffdcc2; border-color: #efc09b; }
.scope-ads { color: #15558a; background: #d9ecff; border-color: #b6d7f5; }
.service-overview-details {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--md-surface-container-low);
}
.service-overview-details div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(68, 77, 90, .12);
}
.service-overview-details div:last-child { border-bottom: 0; }
.service-overview-details dt { font-size: .74rem; text-transform: uppercase; }
.service-overview-details dd { font-size: .94rem; }
.service-pricing-panel { grid-column: 1 / -1; grid-row: 3; box-shadow: inset 0 0 0 1px rgba(23, 107, 58, .08); }

.forms-grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-card {
    width: 100%;
    padding: 0 24px 24px;
    border: 1px solid rgba(68, 77, 90, .14);
    background: var(--color-surface);
    box-shadow: 0 5px 20px rgba(11, 36, 71, .06);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.form-card:hover { border-color: rgba(11, 36, 71, .28); box-shadow: 0 15px 36px rgba(11, 36, 71, .14); transform: translateY(-4px); }
.form-card .form-title {
    min-height: 72px;
    margin: 0 -24px 24px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(68, 77, 90, .12);
    color: var(--color-text);
    font-size: 1.08rem;
}
.form-card .form-title .material-symbols-outlined {
    display: grid;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    place-items: center;
    color: var(--md-sys-color-primary);
    background: var(--md-primary-container);
}
.form-card .form-stack { gap: 18px; margin-top: 0; }
.form-card .field-group { border-radius: 14px; background: var(--md-surface-container-low); }
.form-card .form-control {
    min-height: 56px;
    border-color: transparent;
    border-radius: 14px;
    background: var(--md-surface-container-low);
    box-shadow: inset 0 0 0 1px rgba(68, 77, 90, .16);
    font-size: .96rem;
}
.form-card .field-label { background: var(--md-surface-container-low); font-size: .82rem; }
.form-card .form-control:hover:not(:disabled) { background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--md-sys-color-primary), 0 4px 12px rgba(11, 36, 71, .08); }
.form-card .form-control:focus { background: var(--color-surface); box-shadow: inset 0 0 0 2px var(--md-sys-color-primary), 0 0 0 3px rgba(11, 36, 71, .1); }
.form-card .form-control:disabled { opacity: .7; cursor: not-allowed; }
.form-card .button { width: min(300px, 100%); align-self: flex-start; }
.form-card .form-note { max-width: 760px; }

html[data-theme="dark"] .service-overview,
html[data-theme="dark"] .form-card { background: var(--color-surface); border-color: var(--color-border); }
html[data-theme="dark"] .service-overview-details,
html[data-theme="dark"] .form-card .field-group,
html[data-theme="dark"] .form-card .field-label,
html[data-theme="dark"] .form-card .form-control { background: var(--md-surface-container-low); }
html[data-theme="dark"] .form-card .form-control:hover:not(:disabled),
html[data-theme="dark"] .form-card .form-control:focus { background: var(--md-surface-container); }
html[data-theme="dark"] .scope-social { color: #ffbd75; background: #513114; border-color: #75502d; }
html[data-theme="dark"] .scope-food { color: #8fddb0; background: #183d29; border-color: #2d5b40; }
html[data-theme="dark"] .scope-content { color: #ffb0ca; background: #55283a; border-color: #784259; }
html[data-theme="dark"] .scope-video { color: #ffc18e; background: #51301a; border-color: #765036; }
html[data-theme="dark"] .scope-ads { color: #a8d2ff; background: #1d3d59; border-color: #345a78; }
.log-toolbar {
    margin-bottom: 24px;
    padding: 18px 20px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
}
.log-toolbar > div { display: flex; align-items: center; gap: 13px; }
.log-toolbar > div > .material-symbols-outlined {
    display: grid;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    place-items: center;
    color: var(--md-sys-color-primary);
    background: var(--md-primary-container);
}
.log-toolbar strong,
.log-toolbar small { display: block; }
.log-toolbar strong { margin-bottom: 4px; font-size: .95rem; }
.log-toolbar small { color: var(--color-muted); font-size: .8rem; }
.log-toolbar .field-group { width: min(240px, 100%); flex: 0 0 240px; }
.log-filter-controls {
    display: grid;
    grid-template-columns: 180px 190px minmax(220px, 1fr) 56px;
    align-items: stretch;
    gap: 12px;
}
.log-filter-controls .field-group { width: 100%; max-width: none; }
.log-filter-controls .form-control { min-height: 56px; }
.log-filter-clear {
    width: 56px;
    height: 56px;
    align-self: center;
    color: #93000a;
    background: #ffdad6;
}
.log-filter-clear:hover { color: #fff; background: #ba1a1a; }
.log-groups { display: flex; flex-direction: column; gap: 22px; }
.log-period-heading { display: flex; align-items: center; gap: 11px; margin: 0 4px 10px; }
.log-period-heading > .material-symbols-outlined { color: var(--md-sys-color-primary); }
.log-period-heading div { min-width: 0; }
.log-period-heading h2 { margin: 0; font-size: 1.05rem; }
.log-period-heading small { display: block; margin-top: 3px; color: var(--color-muted); font-size: .76rem; }

@media (max-width: 1050px) {
    .service-overview { grid-template-columns: 1fr; grid-template-rows: auto; }
    .service-overview-icons,
    .service-overview-main,
    .service-overview-details,
    .service-pricing-panel { grid-column: 1; grid-row: auto; }
}

@media (max-width: 600px) {
    .profile-chip#account-shortcut { display: none !important; }
    .file-list-controls { align-items: stretch; flex-direction: column; }
    .file-list-controls label { width: 100%; flex: none; justify-content: space-between; }
    .file-results-jump.is-visible { width: 100%; display: inline-flex; }
    .file-list { scroll-margin-top: 92px; }
    .service-overview { padding: 20px; }
    .service-overview-icons { grid-template-columns: repeat(5, 42px); }
    .form-card { padding: 0 18px 20px; }
    .form-card .form-title { margin-right: -18px; margin-left: -18px; padding: 0 18px; }
    .form-card .button { width: 100%; }
    .forms-grid { grid-template-columns: 1fr; }
    .log-toolbar { align-items: stretch; flex-direction: column; }
    .log-toolbar .field-group { width: 100%; flex-basis: auto; }
    .log-filter-controls { grid-template-columns: 1fr; }
    .log-filter-clear { width: 100%; border-radius: 14px; }
}

@media (min-width: 601px) and (max-width: 1000px) {
    .log-filter-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .log-filter-clear { width: 56px; justify-self: end; }
}

/* Sabit ve kompakt mobil üst bar */
@media (max-width: 900px) {
    .mobile-header { display: none; }
    .dashboard-topbar {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1201;
        min-height: 72px;
        height: 72px;
        margin: 0;
        padding: 0 8px;
        gap: 6px;
        color: var(--color-text);
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 5px 18px rgba(11, 36, 71, .1);
    }
    .main-content { padding-top: 112px; }
    .dashboard-topbar .profile-chip { display: none; }
    .dashboard-topbar .theme-switch {
        order: 1;
        width: 46px;
        min-height: 42px;
        padding: 0 3px;
        border-radius: 14px;
        justify-content: center;
    }
    .dashboard-topbar .theme-switch > .material-symbols-outlined { display: none; }
    .dashboard-topbar .theme-switch-track { width: 38px; height: 24px; padding: 3px; }
    .dashboard-topbar .theme-switch-thumb { width: 18px; height: 18px; }
    .dashboard-topbar .theme-switch[aria-checked="true"] .theme-switch-thumb { transform: translateX(14px); }
    .dashboard-topbar .topbar-action { width: 42px; min-height: 42px; padding: 0; border-radius: 14px; }
    .dashboard-topbar .topbar-action-label { display: none; }
    .dashboard-topbar .topbar-logout { order: 2; color: var(--md-sys-color-primary); background: var(--md-primary-container); }
    .dashboard-topbar .topbar-logout:hover { color: var(--md-sys-color-primary); background: var(--md-secondary-container); }
    .dashboard-topbar .desktop-logout-icon { display: none; }
    .dashboard-topbar .mobile-profile-icon { display: block; }
    .dashboard-topbar .topbar-refresh { order: 3; }
    .dashboard-topbar .mobile-menu-action { order: 4; display: inline-flex; color: var(--md-sys-color-primary); background: var(--md-primary-container); }
    .mobile-logo-button {
        order: -2;
        width: 82px;
        min-height: 42px;
        margin-right: auto;
        padding: 4px 6px;
        border: 0;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: transparent;
        cursor: pointer;
    }
    .mobile-logo-button:hover { background: var(--md-surface-container-low); }
    .mobile-topbar-logo {
        display: block;
        width: 72px;
        max-height: 30px;
        object-fit: contain;
        transform: scale(1.5) translateX(10px);
    }
    .sidebar { z-index: 1300; }
    .sidebar { overflow: hidden; }
    .sidebar-header,
    .sidebar-footer { flex: 0 0 auto; }
    .sidebar-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .scrim { z-index: 1290; }
    body.menu-open { overflow: hidden; touch-action: none; }
    body.menu-open .sidebar { touch-action: pan-y; }
}

@media (max-width: 380px) {
    .dashboard-topbar { gap: 4px; padding-right: 5px; padding-left: 5px; }
    .mobile-logo-button { width: 66px; }
    .mobile-topbar-logo { width: 58px; }
}

html[data-theme="dark"] .mobile-header,
html[data-theme="dark"] .dashboard-topbar { color: var(--color-text); background: var(--color-surface); border-color: var(--color-border); }

@media (max-width: 900px) {
    .profile-chip#account-shortcut { display: none !important; }
}

@media (max-width: 600px) {
    .home-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .home-shortcut-card {
        min-height: 180px;
        padding: 18px 10px;
        gap: 12px;
    }
    .home-shortcut-card > .material-symbols-outlined:first-child { width: 58px; height: 58px; font-size: 1.8rem; }
    .home-shortcut-card strong { font-size: .94rem; }
    .home-shortcut-card small { font-size: .78rem; }
    .home-shortcut-danger { grid-column: 1 / -1; min-height: 135px; }

    .report-record {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 17px 14px;
    }
    .report-record .row-content { width: auto; }
    .report-record .report-action-menu {
        grid-column: 1 / -1;
        width: 100%;
        margin: 2px 0 0;
    }
    .report-record .dropdown-trigger {
        width: 100%;
        min-width: 0;
        padding: 0 16px;
        justify-content: center;
        font-size: .86rem;
    }
    .report-record .dropdown-chevron { display: inline-block; margin-left: 4px; }
    .report-record .dropdown-menu { top: calc(100% + 7px); bottom: auto; width: 100%; }

    .file-list .compact-button {
        width: 48px;
        min-width: 48px;
        padding: 0;
        font-size: 0;
    }
    .file-list .compact-button .material-symbols-outlined { font-size: 1.3rem; }
    .file-list .data-row-main p { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.45; }
    .file-list .data-meta { color: var(--color-text); font-weight: 800; }

    .page-heading,
    .content-section > .page-eyebrow,
    .content-section > .page-subtitle,
    .content-title-row,
    .home-shortcuts-heading { justify-content: center; text-align: center; }
    .page-heading > div { width: 100%; }
    .welcome-title { flex-direction: column; gap: 2px; }
    .welcome-text { font-weight: 700; }
    .welcome-name { font-size: .78em; font-weight: 400; }
    .content-title-row { flex-direction: column; gap: 9px; }
    .content-title-row .page-title { justify-content: center; text-align: center; }
    .stat-card { flex-direction: column; justify-content: center; align-items: center; text-align: center; }
    .stat-card .stat-icon { margin-bottom: 3px; }
    .home-shortcuts-heading { flex-direction: column; }
    .service-overview-main,
    .service-overview-details { text-align: center; }
    .service-scope-list { justify-content: center; }
    .account-card .acc-header,
    .form-card .form-title { justify-content: center; }
    .list-section-heading { justify-content: center; text-align: center; }
}

@media (min-width: 901px) {
    .layout { align-items: flex-start; }
    .sidebar {
        position: sticky !important;
        top: 0;
        height: 100vh;
        max-height: 100vh;
        align-self: flex-start;
        flex: 0 0 auto;
        overflow: hidden;
    }
    .sidebar-header,
    .sidebar-footer { flex: 0 0 auto; }
    .sidebar-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
    .main-content { min-width: 0; }
    .sidebar-toggle { display: none; }
    .welcome-title { gap: .28em; }
    .welcome-name { font-weight: inherit; }
}
html[data-theme="dark"] .theme-switch { color: #f3f6fb; background: var(--color-surface); border-color: var(--color-border); }
html[data-theme="dark"] .toolbar-select { color: var(--color-text); background: var(--color-surface); border-color: var(--color-border); }
html[data-theme="dark"] .home-shortcut-card > .material-symbols-outlined:first-child,
html[data-theme="dark"] .stat-icon,
html[data-theme="dark"] .content-title-icon,
html[data-theme="dark"] .section-title-icon {
    color: #d8e7ff;
    background: #233b59;
}
html[data-theme="dark"] .home-shortcut-danger > .material-symbols-outlined:first-child { color: #ffb4ab; background: #5c2020; }

@media (max-width: 900px) {
    .dashboard-topbar { min-height: 52px; margin-bottom: 14px; }
    .dashboard-topbar .profile-chip { display: flex; }
}

@media (max-width: 700px) {
    .file-list-toolbar { align-items: flex-start; flex-direction: column; }
    .file-list-controls { width: 100%; }
    .file-list-controls label { flex: 1; }
    .toolbar-select { width: 100%; min-width: 0; }
    .file-pagination { justify-content: space-between; }
    .file-pagination .button { min-width: 0; flex: 1; }
    .theme-switch { padding: 0 9px; }
    .theme-switch > .material-symbols-outlined { display: none; }
    .topbar-action { width: 48px; padding: 0; }
    .topbar-action-label { display: none; }
    .invoice-row { grid-template-columns: auto auto minmax(0, 1fr); }
    .invoice-row .invoice-amount,
    .invoice-row .status-pill { grid-column: 3; justify-self: start; }
}
select.form-control { cursor: pointer; }
.button:hover,
.icon-button:hover,
.nav-item:hover,
.dropdown-item:hover { box-shadow: 0 7px 18px rgba(11, 36, 71, .14); }

@media (max-width: 900px) {
    .stat-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
