:root {
    /* Light Theme Colors */
    --bg-app: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.8);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-on-primary: #ffffff;
    
    --border-color: #e2e8f0;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.1);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-app: #020617;
    --bg-sidebar: #0f172a;
    --bg-card: #1e293b;
    --bg-header: rgba(15, 23, 42, 0.8);
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    
    --border-color: #334155;
    --primary: #3b82f6;
    --primary-soft: rgba(59, 130, 246, 0.1);
    
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* --- SIDEBAR --- */
.app-sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-brand {
    padding: 32px 24px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-brand span { color: var(--text-main); }

.sidebar-menu {
    flex: 1;
    padding: 0 12px;
    overflow-y: auto;
}

.menu-group {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 24px 16px 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.menu-item:hover, .menu-item.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.menu-item .icon { font-size: 1.2rem; }

/* --- MAIN LAYOUT --- */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-header {
    height: 72px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    flex-shrink: 0;
    position: sticky; /* Always visible */
    top: 0;
    z-index: 80;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.header-left h1,
.header-page-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.header-page-title[hidden] {
    display: none !important;
}

.header-dashboard-welcome {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.header-dashboard-welcome[hidden] {
    display: none !important;
}

.header-welcome-greeting {
    flex-shrink: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.header-welcome-greeting strong {
    font-weight: 800;
}

.header-welcome-sep {
    flex-shrink: 0;
    color: var(--border-color);
    font-weight: 700;
    user-select: none;
}

.header-welcome-tagline-wrap {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.header-welcome-tagline {
    display: block;
    min-width: 0;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    transition: opacity 0.55s ease, filter 0.55s ease, transform 0.55s ease;
}

.header-welcome-tagline-text {
    display: inline;
}

.header-welcome-tagline-cursor {
    display: inline-block;
    width: 2px;
    height: 0.92em;
    margin-left: 2px;
    vertical-align: -0.08em;
    border-radius: 1px;
    background: var(--primary);
    opacity: 0;
    transform: scaleY(0.85);
    transition: opacity 0.2s ease;
}

.header-welcome-tagline--typing .header-welcome-tagline-cursor {
    opacity: 0.65;
    animation: header-tagline-cursor-blink 1.05s step-end infinite;
}

.header-welcome-tagline--blur-out {
    opacity: 0;
    filter: blur(6px);
}

.header-welcome-tagline--blur-in {
    opacity: 0;
    filter: blur(6px);
}

.header-welcome-tagline--reveal-start {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(4px);
}

@keyframes header-tagline-cursor-blink {
    0%, 45% { opacity: 0.65; }
    50%, 100% { opacity: 0.12; }
}

@media (prefers-reduced-motion: reduce) {
    .header-welcome-tagline {
        transition: opacity 0.2s ease;
        filter: none !important;
        transform: none !important;
    }

    .header-welcome-tagline--blur-out,
    .header-welcome-tagline--blur-in,
    .header-welcome-tagline--reveal-start {
        filter: none !important;
        transform: none !important;
    }

    .header-welcome-tagline-cursor,
    .header-welcome-tagline--typing .header-welcome-tagline-cursor {
        display: none;
        animation: none;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--primary-soft);
    border: none;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile-wrap {
    position: relative;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

button.user-profile-trigger {
    margin: 0;
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 6px 8px 6px 4px;
    transition: background 0.2s;
}

button.user-profile-trigger:hover {
    background: var(--primary-soft);
}

button.user-profile-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 200px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 120;
}

.user-dropdown[hidden] {
    display: none !important;
}

.user-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.user-dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.user-dropdown-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Bildirimler sayfası üst şerit + okundu işareti */
.notifs-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.notifs-page-intro h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.notifs-page-intro p {
    color: var(--text-muted);
    margin: 0;
    max-width: 520px;
    line-height: 1.45;
}

.btn-mark-all-read {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
    white-space: nowrap;
}

[data-theme="dark"] .btn-mark-all-read {
    border-color: rgba(59, 130, 246, 0.35);
}

.btn-mark-all-read:hover {
    background: rgba(37, 99, 235, 0.16);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-mark-all-read:active {
    transform: translateY(0);
}

.btn-mark-all-read-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-on-primary);
    font-size: 0.7rem;
    font-weight: 800;
}

/* Vitrin toast (snackbar) */
.sa-snackbar-host {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: min(420px, calc(100vw - 40px));
}

.sa-snackbar {
    pointer-events: auto;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    animation: saSnackbarIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.sa-snackbar.sa-snackbar-info {
    border-left: 4px solid var(--primary);
}

.sa-snackbar.sa-snackbar-success {
    border-left: 4px solid #10b981;
}

.sa-snackbar.sa-snackbar-warning {
    border-left: 4px solid #f59e0b;
}

.sa-snackbar.sa-snackbar-error {
    border-left: 4px solid #ef4444;
}

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

@media (max-width: 600px) {
    .sa-snackbar-host {
        right: 16px;
        left: 16px;
        bottom: 16px;
        max-width: none;
    }
    .notifs-page-header {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-mark-all-read {
        justify-content: center;
    }
}

.avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* --- CONTENT AREA --- */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-msg { margin-bottom: 32px; }
.welcome-msg h2 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.welcome-msg p { color: var(--text-muted); }

/* --- FORM STANDARDI: tek satır alanlar + textarea + dosya --- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="datetime-local"],
select,
.form-control:not(textarea) {
    appearance: none;
    width: 100%;
    min-height: 48px;
    height: 48px;
    padding: 0 16px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: block;
    line-height: normal;

    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

textarea,
textarea.form-control {
    appearance: none;
    width: 100%;
    min-height: 120px;
    height: auto;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.45;
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    display: block;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

input[type="file"],
input[type="file"].form-control {
    appearance: none;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    cursor: pointer;
}

input[type="file"]:hover::file-selector-button {
    background: var(--primary);
    color: var(--text-on-primary);
}

/* Odak (tek tip) */
input:focus,
select:focus,
textarea:focus,
.tag-input-container:focus-within,
input[type="file"]:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Disabled */
input:disabled,
textarea:disabled,
select:disabled,
.tag-input-container.disabled,
input[type="file"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
    background: var(--bg-app) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
}

/* Opsiyonel: blok etiket + alan grupları */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-row {
    display: grid;
    gap: 16px;
}

.form-row--2 {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
    .form-row--2 {
        grid-template-columns: 1fr;
    }
}

.btn-primary--block {
    width: 100%;
}

.portal-belge-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.portal-belge-toolbar-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-items: end;
}

.portal-belge-toolbar-upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portal-belge-toolbar-upload-row .form-control[type="file"] {
    flex: 1 1 220px;
    min-width: 0;
}

.portal-belge-toolbar-upload-row .portal-card-toolbar-btn {
    flex-shrink: 0;
}

.customer-users-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 720px;
    align-items: center;
}

.customer-users-toolbar .form-control {
    flex: 1;
    min-width: 220px;
}

.customer-users-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

/* Yenile + Kullanıcı Ekle: aynı font boyutu ve satır yüksekliği (chevron sonrası denge) */
.customer-users-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 10px;
}

/* Yenile ile aynı ölçü; basılı (açık) iken hafif iç gölge — toggle hissi */
.btn-toolbar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: var(--text-on-primary, #fff);
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: 48px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.btn-toolbar-toggle-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

/* Kapalı: aşağı ok; açık: 180° — form altta / kapatma ipucu */
.btn-toolbar-toggle[aria-pressed="true"] .btn-toolbar-toggle-chevron,
.btn-toolbar-toggle.is-pressed .btn-toolbar-toggle-chevron {
    transform: rotate(180deg);
}

.btn-toolbar-toggle:hover {
    opacity: 0.94;
}

.btn-toolbar-toggle[aria-pressed="true"],
.btn-toolbar-toggle.is-pressed {
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.22);
    transform: scale(0.98);
}

[data-theme="dark"] .btn-toolbar-toggle[aria-pressed="true"],
[data-theme="dark"] .btn-toolbar-toggle.is-pressed {
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45);
}

.invite-user-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 720px;
}

.invite-user-grid .form-control {
    min-width: 0;
}

.invite-user-span-cols {
    grid-column: 1 / -1;
}

.invite-user-grid .btn-primary {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
}

@media (min-width: 600px) {
    .invite-user-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invite-user-grid .btn-primary {
        justify-self: start;
        width: auto;
        min-width: 200px;
    }
}

.odeme-bildirim-fields {
    display: grid;
    gap: 12px;
}

/* Tagbox - İç çerçeve ve farklı stil yasak */
.tag-input-container {
    appearance: none;
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 2px 12px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

.tags-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}

.ui-tag {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag-input-container input {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 40px !important;
    box-shadow: none !important;
    min-width: 150px;
    flex: 1;
}

/* Limit Uyarısı */
.tag-input-container input.limit-reached::placeholder {
    color: #ef4444 !important;
    opacity: 1 !important;
}

/* Tema Değişkenleri Senkronu */
[data-theme="light"] {
    --border-color: #e2e8f0;
    --bg-card: #ffffff;
    --bg-app: #f8fafc;
}
[data-theme="dark"] {
    --border-color: #334155;
    --bg-card: #1e293b;
    --bg-app: #0f172a;
}

/* Grid Dashboard */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card h4 { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.card .value { font-size: 2rem; font-weight: 800; }

/* Table Style */
.table-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 16px 24px;
    background: var(--bg-app);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

/* Son görevler — sütun filtreleri */
.son-gorevler-table .son-gorevler-filtre-row th {
    padding: 8px 12px 12px;
    vertical-align: top;
    background: var(--bg-app);
    border-bottom: 1px solid var(--border-color);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.son-gorev-filtre-input {
    width: 100%;
    min-width: 0;
    padding: 7px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

@media (max-width: 900px) {
    .son-gorevler-table .son-gorevler-filtre-row {
        display: none;
    }
}

/* Son görevler — sayfalama */
.son-gorevler-pagination {
    padding: 14px 24px 18px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-app);
}

.son-gorevler-pagination-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.son-gorevler-pager-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.son-gorevler-pager-actions {
    display: flex;
    gap: 10px;
}

.son-gorev-pager-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
}

.son-gorev-pager-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.son-gorev-pager-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Local Setting & Required Styles */
.required-mark { color: var(--danger); margin-left: 4px; }
.local-toggle-wrap { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.local-toggle-wrap input { width: 16px; height: 16px; cursor: pointer; }

/* Global Save Area */
.settings-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    background: var(--bg-app);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--primary-soft); }

.btn-primary:disabled,
.btn-primary[disabled] {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

.btn-primary:disabled:hover,
.btn-primary[disabled]:hover {
    transform: none;
    box-shadow: none;
}

/* Kart başlığındaki Yenile, tablodaki Ödeme Bildir ve belge yükle — aynı minimum genişlik, hizalı görünüm */
.portal-card-toolbar-btn {
    min-width: 11rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Aboneliklerim: bekleyen ödemeler + belgeler — İşlem sütunu ve Belge yükle / İndir aynı genişlikte, üst üste hizalı */
#settings-list-view {
    --portal-islem-col: 8.25rem;
}

/* Yenile / Ödeme Bildir / Belge yükle / İndir — kompakt ve aynı ölçü */
#settings-list-view .portal-card-toolbar-btn {
    min-width: var(--portal-islem-col);
    width: var(--portal-islem-col);
    padding: 6px 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: 32px;
    border-radius: 8px;
}

#settings-list-view .beklenen-odemeler-table,
#settings-list-view .portal-belgeler-table {
    table-layout: fixed;
}

/*
 * Bekleyen ödemeler: Dönem/Durum ~yarı genişlik, Kalan ~%25 dar, fazla alan Ürün’e (sabit px).
 * Referans ~160px sütunlar için: Dönem/Durum 80px, Kalan 120px; Son Bildirim tarih için 158px.
 */
#settings-list-view .beklenen-odemeler-table .col-urun {
    width: auto;
    min-width: 160px;
}

#settings-list-view .beklenen-odemeler-table .col-donem,
#settings-list-view .beklenen-odemeler-table .col-durum {
    width: 120px;
    max-width: 120px;
}

#settings-list-view .beklenen-odemeler-table .col-kalan {
    width: 120px;
    max-width: 120px;
}

#settings-list-view .beklenen-odemeler-table .col-son-bildirim {
    width: 210px;
    max-width: 210px;
}

#settings-list-view .beklenen-odemeler-table .col-donem,
#settings-list-view .beklenen-odemeler-table .col-durum,
#settings-list-view .beklenen-odemeler-table .col-kalan {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#settings-list-view .beklenen-odemeler-table th.col-islem,
#settings-list-view .beklenen-odemeler-table td.col-islem,
#settings-list-view .portal-belgeler-table th.col-islem,
#settings-list-view .portal-belgeler-table td.col-islem {
    width: var(--portal-islem-col);
    min-width: var(--portal-islem-col);
    max-width: var(--portal-islem-col);
    box-sizing: border-box;
    /* Üstteki Belge yükle ile aynı genişlik ve sağ hiza; önceki sütunun padding-right boslugu yeter */
    padding-top: 16px;
    padding-bottom: 16px;
    padding-left: 0;
    padding-right: 0;
}

#settings-list-view .beklenen-odemeler-table th.col-islem,
#settings-list-view .portal-belgeler-table th.col-islem {
    text-align: center;
}

#settings-list-view .beklenen-odemeler-table td.col-islem,
#settings-list-view .portal-belgeler-table td.col-islem {
    text-align: right;
    vertical-align: middle;
}

#settings-list-view .beklenen-odemeler-table td.col-islem .portal-card-toolbar-btn,
#settings-list-view .portal-belgeler-table td.col-islem .portal-card-toolbar-btn {
    width: 100%;
    min-width: 0;
}

#settings-list-view .portal-belge-toolbar-upload-row .portal-card-toolbar-btn {
    flex-shrink: 0;
}

/* Logout Button */
.logout-area {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover { background: #ef4444; color: white; }

/* --- DRILL-DOWN & HIERARCHY --- */
.view-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-back {
    background: var(--primary-soft);
    border: none;
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.btn-back:hover { background: var(--primary); color: white; }

.hierarchy-titles { display: flex; flex-direction: column; }
.hierarchy-sub { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.hierarchy-main { font-size: 1.25rem; font-weight: 800; }

/* Iconic Agent Grid */
.iconic-agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.agent-icon-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.agent-icon-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.agent-icon-card .agent-circle {
    width: 50px;
    height: 50px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 10px;
}

.agent-icon-card span {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-icon-card .agent-machine-badge {
    margin-top: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

/* Agent Detail Header */
.agent-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.agent-large-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.agent-meta h3 { font-size: 1.5rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.agent-meta p { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }

/* Tab Container refinement for drill-down */
.drill-view { display: none; }
.drill-view.active { display: block; animation: slideIn 0.3s ease; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 1024px) {
    body {
        height: auto;
        overflow-y: auto;
        display: block;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 200;
        background: var(--bg-sidebar);
    }

    .app-sidebar.open {
        transform: translateX(0);
        box-shadow: 20px 0 50px rgba(0,0,0,0.3);
    }

    .app-main {
        width: 100% !important;
        margin-left: 0 !important;
        min-height: 100vh;
    }

    .app-header {
        position: sticky;
        top: 0;
        z-index: 150;
        padding: 0 16px;
        background: var(--bg-card);
        height: 64px;
        display: flex;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--primary-soft);
        color: var(--primary);
        border: none;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1.1rem;
        cursor: pointer;
        margin-right: 8px;
    }

    .app-content {
        padding: 24px 16px;
    }

    /* Table to Card Stack on Mobile */
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block;
        width: 100%;
    }
    .data-table tr {
        margin-bottom: 16px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        padding: 8px;
        position: relative; /* For absolute checkbox positioning */
    }
    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
    }
    .data-table td:last-child { border-bottom: none; }

    /* İşlem sütunu: masaüstü sabit genişliği kart yığınında kaldır */
    #settings-list-view .beklenen-odemeler-table td.col-islem,
    #settings-list-view .portal-belgeler-table td.col-islem {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }
    #settings-list-view .beklenen-odemeler-table td.col-islem .portal-card-toolbar-btn,
    #settings-list-view .portal-belgeler-table td.col-islem .portal-card-toolbar-btn {
        width: auto;
        min-width: min(100%, var(--portal-islem-col, 8.25rem));
        max-width: 100%;
    }
    
    /* Header Row (Ayar Adı -> Name) */
    .data-table td[data-label="Ayar Adı"]::before { display: none; }
    .data-table td[data-label="Ayar Adı"] {
        text-align: left;
        display: block;
        font-size: 1.1rem;
        font-weight: 800;
        padding-top: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    /* Hide Value label and expand input */
    .data-table td[data-label="Değer"]::before { display: none; }
    .data-table td[data-label="Değer"] {
        padding: 8px 16px 16px;
        display: block;
    }
    
    /* Fixed Value labeling for other fields if any */
    .data-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
        color: var(--text-muted);
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    /* Header Compactness */
    .header-right {
        gap: 12px;
    }
    .user-profile-wrap {
        padding-left: 12px;
    }
    .user-profile {
        gap: 8px;
    }
    .user-info {
        display: none; /* Hide name/role on mobile to save space */
    }
    .avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    /* Local Checkbox to the Top Right */
    .data-table td[data-label="Lokal"] {
        position: absolute;
        top: 20px;
        right: 16px;
        border: none;
        width: auto;
        padding: 0;
    }
    .data-table td[data-label="Lokal"]::before { display: none; }
    .local-toggle-wrap { color: var(--primary); }
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 90;
    animation: fadeIn 0.2s ease;
}

.sidebar-overlay.active {
    display: block;
}

/* --- CHART CONTROLS --- */
.segmented-control {
    display: flex;
    background: var(--bg-app);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.segment-btn {
    padding: 8px 16px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.segment-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* chart-sub-select: genel select kuralları ile aynı görünüm (ek sıkı stil yok) */

@media (max-width: 600px) {
    .chart-header { flex-direction: column; align-items: flex-start !important; }
    .chart-filters { width: 100%; flex-direction: column; align-items: stretch !important; }
}

/* --- NOTIFICATIONS --- */
.badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
}

.badge-count {
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: auto;
    font-weight: 800;
}

.notif-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
}
.notif-item:hover { transform: translateX(4px); border-color: var(--primary); }
.notif-item.unread { border-left: 4px solid var(--primary); background: var(--primary-soft); }

.notif-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notif-content { flex: 1; }
.notif-content h4 { font-size: 1rem; margin-bottom: 4px; font-weight: 700; }
.notif-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; line-height: 1.4; }
.notif-time { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

.ni-info { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.ni-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.ni-warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.ni-error { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* --- SELECTION CARDS --- */
.selection-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    padding: 40px 32px;
}

.selection-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-soft);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.selection-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
}

.premium-border {
    border: 2px solid var(--primary-soft);
    background: linear-gradient(180deg, var(--bg-card), var(--primary-soft) 300%);
    position: relative;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* --- NOTIF SETTINGS GRID --- */
.notif-settings-grid {
    display: grid;
    grid-template-columns: 200px repeat(2, 1fr) auto;
    gap: 16px;
    align-items: flex-end; /* Labels flow above, inputs align at bottom */
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.notif-settings-grid .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Agent ayar tablosu — tablo içi input (genel form yüksekliği ile uyumlu) */
.notif-settings-grid .setting-value-input {
    min-height: 48px !important;
    height: 48px !important;
    box-sizing: border-box;
    padding: 0 16px !important;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}

/* Button style separated but height-matched */
.btn-align-input {
    height: 48px !important;
    padding: 0 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-settings-grid .setting-value-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Hide/Show logic based on parent class */
.notif-settings-grid .tg-field {
    display: none;
}
.notif-settings-grid.show-telegram .tg-field {
    display: flex;
}

@media (max-width: 1200px) {
    .notif-settings-grid { grid-template-columns: 1fr 1fr; }
    .notif-settings-grid.show-telegram .tg-field { display: flex; }
}

@media (max-width: 768px) {
    .notif-settings-grid { grid-template-columns: 1fr; }
}

/* --- CUSTOM DIALOG --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: none; /* JS toggles display: flex */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    display: flex;
}

.modal-card {
    background: var(--bg-card);
    width: 90%;
    max-width: 400px;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.modal-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

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

.modal-actions button {
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

/* --- SUPPORT & FEEDBACK --- */
.support-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
}

/* Destek formları: alanlar global form standardını kullanır; gri zemin ayrımı kaldırıldı */
.support-grid .form-label {
    margin-bottom: 0;
}

.mini-ticket-item {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-app);
    margin-bottom: 12px;
}

.star-rating-simple {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.star-rating-simple span {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star-rating-simple span:hover,
.star-rating-simple span.hovered,
.star-rating-simple span.selected {
    color: #f59e0b;
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

@media (max-width: 992px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
}

.modal-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: var(--bg-app);
    color: var(--text-main);
    border: 1px solid var(--border-color) !important;
}

.btn-secondary:hover {
    background: var(--border-color);
}

.pc-check-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.pc-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

/* --- COMPONENT RESPONSIVENESS IMPROVEMENTS --- */

/* Subscription Detail Summary Grid */
.sub-detail-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 32px; 
    margin-bottom: 30px;
}

.detail-label {
    display: block; 
    font-size: 0.7rem; 
    color: var(--text-muted); 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    font-weight: 700; 
    font-size: 1.15rem;
    color: var(--text-main);
}

/* Notification Channels Layout */
.notif-channels-wrapper {
    display: flex; 
    flex-direction: column; 
    gap: 20px;
}

.notif-channel-row {
    display: flex; 
    align-items: flex-start; 
    gap: 24px;
}

.channel-label {
    min-width: 180px; 
    padding-top: 10px;
}

.channel-label label {
    display: flex; 
    align-items: center; 
    gap: 12px; 
    cursor: pointer;
}

.channel-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.wpf-data-grid input[type="checkbox"]:disabled {
    opacity: 1;
    accent-color: var(--primary);
}

.channel-title {
    font-weight: 700;
    font-size: 1rem;
}

.channel-content {
    flex: 1;
    min-width: 0;
}

.tg-input-group {
    display: flex; 
    gap: 12px;
}

.save-actions {
    display: flex; 
    justify-content: flex-end; 
    margin-top: 24px;
}

.save-actions .btn-primary {
    min-width: 240px;
    height: 52px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Responsive Mobile Adjustments */
@media (max-width: 768px) {
    .sub-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .notif-channel-row {
        flex-direction: column;
        gap: 12px;
        background: var(--bg-app);
        padding: 16px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }

    .channel-label {
        min-width: 100%;
        padding-top: 0;
    }

    .channel-content {
        width: 100%;
    }

    .tg-input-group {
        flex-direction: column;
        gap: 12px;
    }

    .save-actions {
        margin-top: 12px;
    }

    .save-actions .btn-primary {
        width: 100%;
    }

    .tab-body {
        padding: 20px 16px !important;
    }
}

@media (max-width: 480px) {
    .welcome-msg h2 {
        font-size: 1.5rem;
    }
    
    .detail-value {
        font-size: 1rem;
    }

    .app-header h1 {
        font-size: 1rem;
    }
}

/* Vitrin ürün kartları (yeni abonelik) */
.vitrin-urun-card {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.vitrin-urun-card:hover {
    border-color: var(--border-color);
}

.vitrin-urun-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}

.vitrin-urun-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--bg-app);
    margin-bottom: 12px;
}

.vitrin-urun-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
}

/* Aboneliklerim başlık özeti */
.subs-dates-summary {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 8px;
}

/* Vitrin tür filtreleri */
.vitrin-tur-filtre-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.vitrin-filtre-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.vitrin-filtre-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.vitrin-filtre-btn.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}

.vitrin-urun-card-inner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.vitrin-urun-col-thumb {
    flex: 0 0 96px;
}

.vitrin-urun-col-thumb .vitrin-urun-thumb {
    width: 96px;
    height: 96px;
    margin-bottom: 0;
}

.vitrin-tip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.vitrin-tip-chip {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.vitrin-tip-saas {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--primary);
}

.vitrin-tip-agent {
    border-color: rgba(16, 185, 129, 0.45);
    color: #059669;
}

[data-theme="dark"] .vitrin-tip-agent {
    color: #34d399;
}

.vitrin-paket-mini {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vitrin-paket-mini li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    border-bottom: 1px dashed var(--border-color);
}

.vitrin-paket-mini li:last-child {
    border-bottom: none;
}

.vitrin-paket-ad {
    font-weight: 600;
    color: var(--text-main);
}

.vitrin-urun-expanded {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: none;
}

.vitrin-urun-card.selected .vitrin-urun-expanded {
    display: block;
}

.vitrin-detail-snippet {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.45;
}

.btn-vitrin-detaylar {
    width: 100%;
    margin-top: 4px;
}

/* Ürün detay sayfası */
.urun-detay-card {
    padding: 24px;
}

.urun-detay-hero {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.urun-detay-thumb-wrap .vitrin-urun-thumb {
    width: 120px;
    height: 120px;
    margin-bottom: 0;
}

.urun-detay-kisa {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.urun-detay-tipler {
    margin-top: 10px;
}

.urun-detay-paketler {
    margin-top: 14px;
}

.urun-detay-body {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.55;
    margin-bottom: 20px;
}

.urun-detay-ozellikler h4 {
    margin-bottom: 10px;
}

.urun-detay-ozellik-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.urun-detay-cta {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

/* Abonelik kartı (liste) */
.sub-selector-card {
    flex-direction: row !important;
    align-items: stretch;
}

.sub-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sub-card-dates {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.sub-card-thumb-wrap {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-app);
    align-self: center;
}

.sub-card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-muted);
}

/* Ödeme modal */
.payment-modal-card {
    max-width: 440px;
    width: 100%;
}

.pay-muted {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.pay-tutar-block {
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.pay-tutar-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pay-tutar-icerik {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.45;
}

.pay-method-intro {
    margin-bottom: 14px;
}

.pay-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pay-method-primary {
    width: 100%;
    padding: 12px 14px;
    font-weight: 700;
}

.pay-method-secondary {
    width: 100%;
    padding: 12px 14px;
    font-weight: 600;
}

.btn-outline-muted {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius);
    cursor: not-allowed;
    opacity: 0.65;
}

.pay-banka-panel {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.pay-banka-intro {
    margin-bottom: 10px;
}

.pay-iban-list {
    margin: 0 0 12px;
    padding-left: 18px;
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.5;
}

.pay-aktivasyon-notu {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
}

.pay-modal-footer {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.pay-footer-cancel {
    min-width: 120px;
    padding: 10px 18px;
    font-weight: 600;
}

@media (max-width: 520px) {
    .pay-method-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Dashboard KPI özeti (4 kart) --- */
.dashboard-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-kpi-card {
    display: flex;
    flex-direction: column;
    min-height: 148px;
    padding: 22px 24px;
}

.dashboard-kpi-card .card-icon {
    margin-bottom: 12px;
    flex-shrink: 0;
}

.dashboard-kpi-card__label {
    min-height: 2.75em;
    margin-bottom: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-kpi-card__metrics {
    margin-top: auto;
    padding-top: 12px;
}

.dashboard-kpi-card .value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.dashboard-kpi-card .value.value--kpi-compact {
    font-size: 1.65rem;
    line-height: 1.2;
}

.dashboard-kpi-card .kpi-sub {
    margin: 6px 0 0;
    min-height: 1.2em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.2;
}

.dashboard-kpi-card .kpi-sub--placeholder {
    visibility: hidden;
    user-select: none;
}

.dashboard-kpi-card .kpi-sub--hint {
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.85;
}

.dashboard-kpi-card--action {
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dashboard-kpi-card--action:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary-soft);
}

.dashboard-kuyruk-ozet {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-app);
    font-size: 0.86rem;
    color: var(--text-muted);
}

.dashboard-kuyruk-ozet__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.dashboard-kuyruk-ozet__item strong {
    font-weight: 800;
}

.dashboard-kuyruk-ozet__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dashboard-kuyruk-ozet__dot--bekleyen {
    background: #f59e0b;
}

.dashboard-kuyruk-ozet__dot--isleniyor {
    background: #2563eb;
}

.dashboard-kuyruk-ozet__hint {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}

.dashboard-kuyruk-card {
    margin-top: 0;
}

@media (max-width: 768px) {
    .dashboard-kuyruk-ozet__hint {
        width: 100%;
        margin-left: 0;
    }
}

.dashboard-abonelik-uyari {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.88rem;
    line-height: 1.45;
}

[data-theme="dark"] .dashboard-abonelik-uyari {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

.dashboard-tasarruf-card {
    margin-bottom: 24px;
    padding: 28px 32px;
}

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

.dashboard-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.dashboard-section-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

.tasarruf-varsayilan-notu {
    font-size: 0.78rem;
    color: var(--text-muted);
    max-width: 280px;
    text-align: right;
    margin: 0;
}

.dashboard-tasarruf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.tasarruf-stat {
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-app);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tasarruf-stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.tasarruf-stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.tasarruf-stat-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tasarruf-stat--kazanc .tasarruf-stat-value { color: #10b981; }
.tasarruf-stat--isgucu .tasarruf-stat-value { color: #2563eb; }

.dashboard-agent-tasarruf-card {
    margin-bottom: 24px;
}

.dashboard-agent-tasarruf-table td,
.dashboard-agent-tasarruf-table th {
    font-size: 0.88rem;
}

.dashboard-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 20px;
}

.dashboard-toolbar__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    min-width: 0;
}

.dashboard-toolbar__meta-primary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.dashboard-toolbar__meta-status {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
}

.dashboard-toolbar__title {
    flex-shrink: 0;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.dashboard-toolbar__desc {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-toolbar__desc::before {
    content: '·';
    margin-right: 10px;
    color: var(--border-color);
    font-weight: 700;
}

.dashboard-toolbar__controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
}

.dashboard-toolbar__controls .segmented-control {
    flex-shrink: 0;
}

.dashboard-toolbar__selects {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 118px;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.dashboard-toolbar__selects .form-control,
.dashboard-toolbar__selects select {
    width: 100%;
    min-width: 0;
    max-width: none;
    display: block;
}

.dashboard-toolbar__select--refresh {
    width: 100%;
}

.dashboard-section-nav-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
    margin: 8px 0 20px;
    padding: 0 4px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-section-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    border-bottom: none;
    flex: 1;
    min-width: 0;
}

.dashboard-section-nav-actions:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 8px;
}

.dashboard-section-nav-actions[hidden] {
    display: none !important;
}

.son-gorev-nav-action-btn {
    padding: 5px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 8px;
    white-space: nowrap;
}

.son-gorev-nav-action-btn--icon {
    min-width: 2rem;
    padding: 5px 8px;
    font-size: 1rem;
    line-height: 1;
}

.dashboard-section-nav__btn {
    background: none;
    border: none;
    padding: 0 0 12px;
    margin: 0;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.dashboard-section-nav__btn:hover {
    color: var(--text-main);
}

.dashboard-section-nav__btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.dashboard-pane[hidden] {
    display: none !important;
}

.dashboard-pane .dashboard-kpi-grid {
    margin-top: 0;
}

.son-gorev-durum-detay-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

.son-gorev-durum-detay-btn:hover {
    opacity: 0.85;
}

.son-gorev-durum-detay-btn[aria-expanded="true"] {
    text-decoration-style: solid;
}

.son-gorev-detay-row td {
    padding: 0 16px 14px 16px !important;
    border-top: none;
    background: color-mix(in srgb, var(--bg-card, #fff) 92%, var(--primary) 8%);
}

.son-gorev-detay-panel {
    border-left: 3px solid var(--border-color, #e2e8f0);
    padding: 10px 12px 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 0.86rem;
    line-height: 1.45;
}

.son-gorev-detay-row--hata .son-gorev-detay-panel {
    border-left-color: #ef4444;
    background: color-mix(in srgb, #fef2f2 55%, transparent);
}

.son-gorev-detay-row--basarili .son-gorev-detay-panel {
    border-left-color: #10b981;
}

.son-gorev-detay-baslik {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--text-main, #0f172a);
    font-weight: 600;
}

.son-gorev-detay-etiket {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg-muted, #f1f5f9);
    color: var(--text-muted);
}

.son-gorev-detay-row--hata .son-gorev-detay-etiket {
    background: #fee2e2;
    color: #b91c1c;
}

.son-gorev-detay-row--basarili .son-gorev-detay-etiket {
    background: #d1fae5;
    color: #047857;
}

.son-gorev-detay-ozet {
    margin: 0 0 6px 0;
}

.son-gorev-detay-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-muted);
}

.son-gorev-detay-list li + li {
    margin-top: 4px;
}

.son-gorev-detay-bos {
    margin: 0;
    color: var(--text-muted);
    font-style: italic;
}

.dashboard-son-gorevler-card {
    margin-top: 0;
}

.dashboard-insight-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-insight-card {
    padding: 24px 28px;
    min-width: 0;
}

.dashboard-insight-card__header {
    margin-bottom: 16px;
}

.donem-sonuc-blocks {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.donem-sonuc-block__title {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.donem-sonuc-bar {
    display: flex;
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    margin-bottom: 14px;
}

.donem-sonuc-bar__tam {
    background: #10b981;
    transition: width 0.35s ease;
    min-width: 0;
}

.donem-sonuc-bar__hata {
    background: #ef4444;
    transition: width 0.35s ease;
    min-width: 0;
}

.donem-sonuc-bar__bekleyen {
    background: #f59e0b;
    transition: width 0.35s ease;
    min-width: 0;
}

.donem-sonuc-bar__isleniyor {
    background: #2563eb;
    transition: width 0.35s ease;
    min-width: 0;
}

.donem-sonuc-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.donem-sonuc-legend__item {
    display: grid;
    grid-template-rows: 10px minmax(2.4em, auto) auto;
    gap: 6px;
    align-content: start;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.donem-sonuc-legend__label {
    line-height: 1.35;
    align-self: start;
}

.donem-sonuc-legend__value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    align-self: end;
}

.donem-sonuc-legend__value--oran {
    color: var(--primary);
}

.donem-sonuc-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    align-self: start;
}

.donem-sonuc-legend__dot--tam { background: #10b981; }
.donem-sonuc-legend__dot--hata { background: #ef4444; }
.donem-sonuc-legend__dot--bekleyen { background: #f59e0b; }
.donem-sonuc-legend__dot--isleniyor { background: #2563eb; }

.donem-sonuc-legend__dot--ghost {
    visibility: hidden;
}

@media (max-width: 520px) {
    .donem-sonuc-legend {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .donem-sonuc-legend__item {
        grid-template-rows: auto auto auto;
    }
}

.dashboard-chart-card {
    padding: 28px 32px;
    margin-bottom: 32px;
}

.dashboard-chart-card--full {
    width: 100%;
}

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

.dashboard-chart-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #059669;
}

.dashboard-live-indicator[data-state="connecting"],
.dashboard-live-indicator[data-state="reconnecting"] {
    color: #d97706;
}

.dashboard-live-indicator[data-state="disconnected"],
.dashboard-live-indicator[data-state="unavailable"] {
    color: var(--text-muted);
}

.dashboard-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.dashboard-live-indicator[data-state="connected"] .dashboard-live-dot {
    animation: dashboard-live-pulse 1.6s ease-in-out infinite;
}

@keyframes dashboard-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.dashboard-son-guncelleme {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.dashboard-chart-container {
    position: relative;
    height: 350px;
    width: 100%;
}

.dashboard-durum-chart-container {
    position: relative;
    width: 100%;
    min-width: 0;
    height: clamp(200px, 28vw, 300px);
    max-height: 300px;
}

.son-gorev-agent-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.son-gorev-agent-link:hover {
    color: var(--primary-hover);
}

@media (max-width: 900px) {
    .dashboard-toolbar__desc {
        display: none;
    }

    .dashboard-toolbar__desc::before {
        content: none;
    }

    .dashboard-toolbar__controls {
        grid-template-columns: 1fr;
    }

    .dashboard-toolbar__selects {
        grid-template-columns: 1fr;
    }

    .segmented-control {
        width: 100%;
        justify-content: stretch;
    }

    .segmented-control .segment-btn {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .dashboard-toolbar__meta {
        flex-wrap: wrap;
    }

    .dashboard-toolbar__meta-status {
        width: 100%;
        justify-content: flex-end;
    }

    .header-welcome-tagline-wrap,
    .header-welcome-sep {
        display: none;
    }

    .header-welcome-greeting {
        font-size: 0.92rem;
        max-width: min(100%, 220px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-section-nav-bar {
        flex-wrap: wrap;
    }

    .dashboard-section-nav {
        gap: 14px;
    }

    .dashboard-section-nav__btn {
        font-size: 0.9rem;
    }

    .dashboard-section-nav-actions:not([hidden]) {
        width: 100%;
        justify-content: flex-end;
        padding-bottom: 10px;
    }

    .dashboard-chart-container {
        height: 260px;
    }

    .dashboard-durum-chart-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .dashboard-tasarruf-card,
    .dashboard-chart-card {
        padding: 20px;
    }

    .tasarruf-varsayilan-notu {
        text-align: left;
        max-width: none;
    }
}

