/* ============================
   GENEL GÖVDE & UYGULAMA İSKELETİ
   ============================ */

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f5f9;
    color: #1f2933;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================
   TOPBAR
   ============================ */

.topbar {
    height: 64px;
    background: linear-gradient(90deg, #003366, #0066cc);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Eski .logo yapısı yerine image + text */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 32px;
    height: 32px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 12px;
    opacity: 0.85;
}

/* Kullanıcı rozeti */
.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
}

.topbar-right .user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
}

.user-sub {
    font-size: 11px;
    opacity: 0.8;
}

.topbar-logout-link {
    margin-left: 0;
    flex: 0 0 auto;
    font-size: 13px;
    color: #e5e7eb;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(229, 231, 235, 0.6);
}

.topbar-logout-link:hover {
    background: rgba(15, 23, 42, 0.15);
}

/* ============================
   ANA LAYOUT
   ============================ */

.layout {
    display: flex;
    flex: 1;
}

/* ============================
   SIDEBAR
   ============================ */

.sidebar {
    width: 220px;
    background: #0b1727;
    color: #cbd2e1;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 0 16px 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
}

.sidebar-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
}

.sidebar-menu {
    padding: 12px 0;
}

.menu-title {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0 16px 6px 16px;
    color: #6b7280;
}

.menu-link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
}

.menu-link:hover {
    background: #122033;
    color: #ffffff;
}

.menu-link.active {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

/* Sidebar "Para Gönder" açılır menüsü (ileri kullanım için) */
.has-sub {
    margin-bottom: 4px;
}

/* Alt menü başlıklarının hizalanması için */
.sidebar-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 20px;   /* normal menü ile aynı padding */
    font-size: 15px;
    color: #d0d0d0;
    cursor: pointer;
    display: block;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
}

.sidebar-sub {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;  /* alt elemanları biraz içe alıyoruz */
    display: none;
}

/* Aktif üst başlık rengi */
.has-sub.open > .sidebar-toggle,
.sidebar-toggle.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.has-sub.open .sidebar-sub {
    display: block;
}

.sidebar-sub li a {
    display: block;
    padding: 4px 10px;
    font-size: 13px;
    color: #cbd5f5;
    border-radius: 6px;
}

.sidebar-sub li a:hover {
    background: rgba(255, 255, 255, 0.06);
}
.sidebar-sub li a.active-sub {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}


/* ============================
   İÇERİK ALANI
   ============================ */

.content {
    flex: 1;
    padding: 24px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.content-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.content-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6b7280;
}

.content-header.actions-only {
    justify-content: flex-end;
    min-height: 0;
}

/* Ana kart yapısı */
.content-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    padding: 24px 28px 32px;
}

.page-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 22px;
    color: #111827;
}

/* ============================
   DASHBOARD & İSTATİSTİK KARTLARI
   ============================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.stat-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
}

.stat-main {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color: #eff6ff;
    border: none;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.stat-value {
    margin-top: 6px;
    font-size: 20px;
    font-weight: 600;
}

.stat-sub {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.section-title {
    margin-top: 12px;
    font-size: 16px;
    color: #111827;
}

/* ============================
   TABLOLAR
   ============================ */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 14px;
}

.data-table thead {
    background: #e5edf8;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.data-table th {
    font-weight: 600;
    color: #1f2937;
}

.data-table tr:nth-child(even) {
    background: #f9fbff;
}

.data-table .iban {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 13px;
}

.data-table .amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Daha kompakt tablo */
.data-table.compact th,
.data-table.compact td {
    padding: 6px 8px;
}

/* ============================
   FORMLAR
   ============================ */

.form-card {
    max-width: 420px;
    margin-top: 16px;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.form-row label {
    font-size: 13px;
    margin-bottom: 4px;
    color: #374151;
}

.form-row input,
.form-row select,
.input-control {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
}

.form-row input:focus,
.form-row select:focus,
.input-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.form-actions {
    margin-top: 8px;
}

/* Tutar alanı */
.form-row-inline .amount-input {
    display: flex;
    max-width: 260px;
}

.amount-input input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.amount-suffix {
    padding: 0 12px;
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-left: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    background: #f9fafb;
    font-size: 13px;
}

/* Yardım metni */
.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #374151;
}

.field-help {
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
}

/* ============================
   BUTONLAR
   ============================ */

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
}

/* Ana buton */
.btn-primary {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: #2563eb;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #1d4ed8, #1e40af);
}

/* İkincil buton */
.btn-secondary {
    background: #ffffff;
    color: #1f2933;
    border-color: #cbd5e1;
    padding: 6px 14px;
    font-size: 13px;
}

.btn-secondary:hover {
    background: #e5edf8;
}

/* Ghost buton (transfer sonucu, vb.) */
.btn-ghost {
    border-radius: 6px;
    padding: 6px 14px;
    border-color: #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
}

.btn-ghost:hover {
    background: #f9fafb;
}

/* ============================
   UYARILAR
   ============================ */

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ============================
   ALT BİLGİ
   ============================ */

.footer {
    height: 36px;
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* ============================
   HESAPLARIM SAYFASI
   ============================ */

.accounts-header {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.search-input {
    width: 260px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.search-input::placeholder {
    color: #9ca3af;
}

.accounts-table-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.accounts-group-title {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a;
}

.accounts-group-separator {
    height: 16px;
}

/* Tek tek hesap kartları */
.account-card {
    display: flex;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-bottom: 6px;
    background: #ffffff;
    overflow: hidden;
}

.account-card-left-border {
    width: 4px;
    background: linear-gradient(#2563eb, #f97316);
}

.account-card-body {
    flex: 1;
    padding: 10px 12px;
}

.account-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.account-card-main {
    display: flex;
    flex-direction: column;
}

.account-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.account-branch {
    font-size: 14px;
    color: #4b5563;
}

.account-iban {
    font-size: 14px;
    color: #b37171;
    font-family: "Consolas", "Courier New", monospace;
}

.account-card-actions {
    text-align: right;
    font-size: 12px;
    white-space: nowrap;
}

.account-link {
    color: #2563eb;
    text-decoration: none;
}

.account-link:hover {
    text-decoration: underline;
}

.account-link-sep {
    margin: 0 4px;
    color: #9ca3af;
}

.account-card-bottom {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    font-size: 13px;
}

.account-balance-label {
    color: #6b7280;
}

.account-balance {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ============================
   HESAP DETAYI (HAREKETLER)
   ============================ */

.account-detail-header {
    margin-top: 12px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: stretch;
}

.account-summary-card {
    flex: 1;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 12px 14px;
}

.account-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.account-balance-card {
    width: 220px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 12px 14px;
    text-align: right;
}

.summary-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.summary-balance {
    font-size: 20px;
    font-weight: 600;
}

/* İşlem tutarı renkleri */
.amount-negative,
.amount-out {
    color: #b91c1c;
}

.amount-positive,
.amount-in {
    color: #166534;
}

/* ============================
   TRANSFER SAYFASI
   ============================ */

.transfer-form {
    margin-top: 8px;
}

.transfer-two-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transfer-section {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px 18px 18px;
    border: 1px solid #e5e7eb;
}

/* Bölüm başlığı + sekmeler */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header .section-title {
    margin: 0;
}

/* Yeni Alıcı / Tanımlı Alıcı sekmeleri */
.pill-tabs {
    display: flex;
    gap: 6px;
}

.pill-tab {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.pill-tab-active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.pill-tab-disabled {
    background: #e5e7eb;
    border-color: #e5e7eb;
    color: #6b7280;
}

/* Sol kart – "Hesabım" seçimi */
.account-select-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 14px 10px;
    border: 1px solid #e5e7eb;
}

.select-lg {
    width: 100%;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
}

.select-lg:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

/* Hesabım kartının altındaki ek bilgiler */
.account-select-extra {
    margin-top: 10px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 8px;
}

.account-extra-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 2px;
}

.extra-label {
    color: #6b7280;
}

.extra-value {
    font-variant-numeric: tabular-nums;
}

/* Sağ taraf form alanları */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================
   TRANSFER SONUCU
   ============================ */

.transfer-result {
    display: flex;
    justify-content: center;
}

.result-card {
    max-width: 640px;
    width: 100%;
    background: #ffffff;
    padding: 24px 28px 28px;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.result-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.result-icon.success {
    color: #16a34a;
}

.result-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111827;
}

.result-message {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 16px;
}

.result-summary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.summary-label {
    font-size: 13px;
    color: #6b7280;
}

.summary-value {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.result-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* ============================
   DEKONT TASARIMI
   ============================ */

.receipt-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 24px 32px 32px;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06),
                0 18px 45px rgba(15, 23, 42, 0.15);
    font-size: 14px;
}

.receipt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.receipt-logo img {
    height: 90px;
    width: auto;
}

.receipt-bank-name {
    font-size: 12px;
    color: #6b7280;
}

.receipt-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.receipt-section {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #f9fafb;
}

.receipt-block-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.receipt-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.receipt-col {
    flex: 1 1 0;
    min-width: 220px;
}

.receipt-col-full {
    flex: 1 1 100%;
}

.receipt-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    margin-top: 6px;
    margin-bottom: 2px;
}

.receipt-value {
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.receipt-footer {
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
}

.receipt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.receipt-icon a {
    color: #2563eb;
    font-size: 20px;
}

.receipt-icon a:hover {
    color: #1e40af;
}

/* ==== RECEIPT MODAL ==== */

.receipt-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.receipt-modal.show {
    display: flex;
}

.receipt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.receipt-modal-dialog {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    background: #f9fafb;
    border-radius: 16px;
    padding: 16px 20px 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    z-index: 1;
}

.receipt-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: #e5e7eb;
    color: #111827;
    font-size: 18px;
    cursor: pointer;
}

.receipt-modal-close:hover {
    background: #d1d5db;
}

/* ============================
   LOGIN SAYFASI
   ============================ */

.main-fullwidth {
    margin-left: 0;
}

.login-page {
    max-width: 1100px;
    margin: 40px auto 70px;
}

.login-card {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 36px 40px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* Sol taraf (logo) */
.login-left {
    flex: 0 0 40%;
    text-align: left;
    border-right: 1px solid #e5e7eb;
    padding-right: 32px;
}

/* KRİTİK HATA DÜZELTİLDİ: width: 250% → 100% */
.login-logo-main {
    max-width: 250px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.login-bank-name {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.login-bank-subtitle {
    font-size: 13px;
    color: #6b7280;
}

/* Sağ taraf (form) */
.login-right {
    flex: 1;
    padding-left: 8px;
}

.login-form-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.login-demo-info {
    margin-top: 18px;
    font-size: 13px;
    color: #6b7280;
}

/* Alt güvenlik bloğu */
.login-warnings {
    margin-top: 24px;
    padding: 18px 22px;
    border-radius: 16px;
    background: #0f172a;
    color: #e5e7eb;
}

.login-warnings-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.login-warnings ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
}

.login-warnings li + li {
    margin-top: 4px;
}

/* ============================
   MOBİL UYUM
   ============================ */

@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .login-card {
        flex-direction: column;
        align-items: stretch;
    }

    .login-left {
        border-right: none;
        padding-right: 0;
    }

    .login-right {
        padding-left: 0;
        border-left: none;
    }
}

/* Kurumsal internet subesi kabugu */
.topbar {
    height: 70px;
    padding: 0 22px;
    background: #073763;
    box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 4px 16px rgba(7,29,52,.15);
}
.logo-img { width: 38px; height: 38px; object-fit: contain; background:#fff; border-radius:4px; }
.logo-main { font-size:19px; letter-spacing:0; }
.logo-sub { color:#c8d8e5; opacity:1; }
.user-avatar { border-radius:6px; background:#d8f7f1; color:#087f72; }
.topbar-logout-link { border-radius:6px; border-color:rgba(255,255,255,.28); padding:7px 11px; }

.sidebar {
    width: 252px;
    min-width:252px;
    min-height:calc(100vh - 70px);
    padding:18px 12px 14px;
    box-sizing:border-box;
    background:#071d34;
    color:#c7d5df;
    border-right:1px solid #143a58;
}
.sidebar-menu { flex:1; padding:0; }
.menu-title { padding:0 12px 11px; color:#7893a8; font-size:10px; font-weight:800; letter-spacing:1px; }
.menu-link,.sidebar-toggle {
    position:relative;
    display:flex;
    align-items:center;
    gap:11px;
    width:100%;
    min-height:44px;
    margin:2px 0;
    padding:0 12px;
    box-sizing:border-box;
    border-radius:6px;
    color:#c7d5df;
    font-size:13px;
    font-weight:650;
}
.menu-link:hover,.sidebar-toggle:hover { background:#102f4a; color:#fff; }
.menu-link.active,.has-sub.open>.sidebar-toggle,.sidebar-toggle.active {
    background:#103b5c;
    color:#fff;
    box-shadow:inset 3px 0 0 #2dd4bf;
}
.nav-icon { width:19px; color:#86a6b9; text-align:center; font-size:14px; }
.active>.nav-icon,.menu-link:hover .nav-icon,.sidebar-toggle:hover .nav-icon,.sidebar-toggle.active .nav-icon { color:#2dd4bf; }
.nav-label { display:flex; align-items:center; gap:11px; flex:1; }
.nav-chevron { margin-left:auto; color:#7893a8; font-size:10px; transition:transform .18s ease; }
.has-sub.open .nav-chevron { transform:rotate(180deg); }
.has-sub { margin:0; }
.sidebar-sub { margin:2px 0 5px 31px; padding:3px 0 3px 11px; border-left:1px solid #28506d; }
.sidebar-sub li a { padding:7px 10px; border-radius:5px; color:#9fb4c5; font-size:12px; text-decoration:none; }
.sidebar-sub li a:hover,.sidebar-sub li a.active-sub { background:#102f4a; color:#fff; }
.sidebar-sub li a.active-sub { box-shadow:inset 2px 0 0 #2dd4bf; }
.sidebar-footer { display:flex; align-items:center; gap:10px; margin-top:auto; padding:13px 11px 2px; border-top:1px solid #183b56; color:#8da7b9; }
.sidebar-footer>i { color:#2dd4bf; }
.sidebar-footer span,.sidebar-footer small { display:block; }
.sidebar-footer strong { color:#c7d5df; font-size:11px; }
.sidebar-footer small { margin-top:2px; font-size:9px; }
.content { min-width:0; padding:22px 24px 32px; background:#f3f6f8; }
.content-header { min-height:42px; margin-bottom:14px; }
.content-title { color:#071d34; font-size:20px; font-weight:800; }

@media (max-width:900px) {
    .topbar { padding:0 14px; }
    .user-info { display:none; }
    .topbar-logout-link { margin-left:8px; }
    .sidebar { width:100%; min-width:0; min-height:auto; padding:8px 10px; overflow-x:auto; border-right:0; }
    .sidebar-menu { display:flex; align-items:flex-start; gap:5px; min-width:max-content; }
    .menu-title,.sidebar-footer { display:none; }
    .menu-link,.sidebar-toggle { width:auto; min-width:max-content; padding:0 12px; }
    .has-sub { position:relative; }
    .sidebar-sub { position:absolute; z-index:120; top:46px; left:0; min-width:220px; margin:0; padding:6px; background:#071d34; border:1px solid #28506d; border-radius:6px; box-shadow:0 12px 28px rgba(0,0,0,.28); }
    .content { padding:16px 12px 28px; }
}
.admin-dashboard {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 28px 32px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-links {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* Kredi kartı listesi */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============================
   MTH BANK KREDİ KARTI TASARIMI
   ============================ */

/* Kartın kendisi */
.credit-card {
    position: relative;
    width: 320px;
    height: 210px;
    border-radius: 20px;
    padding: 18px 22px 24px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
    background: radial-gradient(circle at 20% 0%, #1e4b9a 0, #0a1730 45%, #050814 100%);
    color: #f7f7f7;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Arka plandaki büyük daire / watermark efektleri */
.credit-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 60%);
    top: -80px;
    right: -60px;
    opacity: 0.7;
}

.credit-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    bottom: -40px;
    left: -30px;
    opacity: 0.5;
}

/* HEADER: Logo + chip alanı */
.cc-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cc-logo-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Logonun kendisi */
.cc-logo-img {
    width: 80px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);  /* mavi logoyu kart üzerinde beyaza çevirir */
}

/* PLATINUM yazısı */
.cc-brand-line {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

/* Kart numarası – kabartma efekti */
.cc-number {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    font-size: 19px;
    letter-spacing: 3px;
    font-weight: 600;
    font-family: "Courier New", monospace;
    color: #fdfdfd;
    text-shadow:
        0 1px 0 rgba(0,0,0,0.8),
        0 -1px 0 rgba(255,255,255,0.25),
        1px 0 0 rgba(0,0,0,0.6),
        -1px 0 0 rgba(255,255,255,0.4);
}

/* Kart alt kısmı (isim, SKT, CVV) */
.cc-footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}


.cc-footer-bottom {
    display: flex;
    gap: 24px;
    margin-top: 4px;
}

.cc-exp,
.cc-cvv {
    display: flex;
    flex-direction: column;
}

/* Ortak label / value stilleri (kabartma hissi) */
.cc-label {
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}

.cc-value {
    font-size: 13px;
    font-weight: 600;
    margin-top: 3px;
    color: #fdfdfd;
    text-shadow:
        0 1px 0 rgba(0,0,0,0.7),
        0 -1px 0 rgba(255,255,255,0.25);
}

/* ============================
   Kartın altındaki bilgi kutusu
   ============================ */

.card-meta {
    margin-top: 10px;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    font-size: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px 16px;
}

.meta-label {
    display: block;
    opacity: 0.6;
}

.meta-value {
    font-weight: 500;
}

/* Yardımcı sınıflar */
.muted {
    font-size: 11px;
    color: #64748b;
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.tag-success {
    background: #dcfce7;
    color: #166534;
}

.tag-muted {
    background: #e5e7eb;
    color: #4b5563;
}

.page-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
/* 3D perspektif – kart çevresindeki kab */
.card-wrapper {
    perspective: 1200px;
    margin-bottom: 18px;
}

/* Ön/arka yüzü tutan iç kab */
.card-flip {
    position: relative;
    width: 320px;
    height: 210px;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.35s;
}

/* Hafif hover tilt (flip olmadan da cool dursun istersen) */
.card-wrapper:hover .card-flip {
    transform: rotateY(180deg) rotateX(2deg);
}

/* Kartın iki yüzü */
.credit-card-front,
.credit-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
}

/* Arka yüzü 180 derece çeviriyoruz */
.credit-card-back {
    transform: rotateY(180deg);
    background: radial-gradient(circle at 10% 0%, #111827 0, #020617 50%, #000000 100%);
}

/* Manyetik şerit */
.cc-mag-strip {
    margin-top: 18px;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #020617, #020617 60%, #111827);
    border-radius: 4px;
}

/* Arka yüz gövde alanı */
.cc-back-body {
    margin-top: 18px;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

/* İmza alanı */
.cc-signature-block {
    flex: 1 1 auto;
}

.cc-signature-area {
    margin-top: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    height: 32px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 11px;
    color: #111827;
    font-family: "Segoe Script", "Bradley Hand", cursive;
}

.cc-signature-name {
    white-space: nowrap;
}

/* Arka yüz CVV kutusu */
.cc-back-cvv-block {
    flex: 0 0 70px;
}

.cc-back-cvv-box {
    margin-top: 4px;
    height: 32px;
    background: #0f172a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: inset 0 0 0 1px rgba(148,163,184,0.6);
}

/* Arka yüz alt metin */
.cc-back-footer {
    margin-top: 18px;
    padding: 0 10px 8px;
}

.cc-back-text {
    font-size: 9px;
    line-height: 1.4;
    color: rgba(209,213,219,0.85);
}
/* Kart network rozeti (TROY, VISA vb.) */
.cc-network-badge {
    position: absolute;
    right: 20px;
    bottom: 16px;
    z-index: 3;
}

.cc-network {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(0,0,0,0.45);
}

/* TROY özel renkleri */
.cc-network-troy {
    background: #00a19a;
    color: #f9fafb;
}
/* Kart Network Rozeti (TROY vs diğerleri) */
.cc-network-badge {
    position: absolute;
    right: 20px;
    bottom: 18px;
    z-index: 5;
}

.cc-network {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(0,0,0,0.35);
}

/* TROY özel rengi */
.cc-network-troy {
    background: #00a19a;
    color: #ffffff;
}

/* Corporate virtual POS / mail order */
.pos-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    margin-bottom: 16px;
    color: #fff;
    background: #082f49;
    border-radius: 8px;
}
.pos-page-head h1 { margin: 6px 0; font-size: 26px; }
.pos-page-head p { margin: 0; color: #cbdde7; }
.pos-eyebrow { color: #2dd4bf; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.pos-security { display: flex; align-items: center; gap: 12px; min-width: 190px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.2); }
.pos-security i { color: #2dd4bf; font-size: 24px; }
.pos-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
.pos-corporate-form, .pos-summary-panel { background: #fff; border: 1px solid #d6e1e8; border-radius: 8px; }
.pos-corporate-form { padding: 22px; }
.pos-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pos-section-title > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #0f8b7e; color: #fff; font-weight: 800; }
.pos-section-title h2 { margin: 0; font-size: 18px; }
.pos-section-title p { margin: 2px 0 0; color: #607485; font-size: 12px; }
.pos-section-spaced { margin-top: 28px; padding-top: 22px; border-top: 1px solid #dce5ea; }
.pos-card-preview { display: grid; grid-template-columns: 1fr auto; gap: 18px; max-width: 520px; padding: 22px; margin-bottom: 20px; color: #fff; background: #0b3550; border-radius: 8px; box-shadow: 0 14px 30px rgba(8,47,73,.17); }
.pos-card-brand { display: flex; flex-direction: column; }
.pos-card-brand small, .pos-card-preview small { color: #b9ced9; font-size: 9px; }
.pos-card-preview > i { color: #2dd4bf; font-size: 27px; }
.pos-card-number { grid-column: 1 / -1; font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.pos-card-preview > div:last-child { text-align: right; }
.pos-card-preview > div > strong { display: block; margin-top: 3px; }
.pos-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pos-field { display: flex; flex-direction: column; gap: 7px; color: #1e3342; font-size: 12px; font-weight: 700; }
.pos-field.full { grid-column: 1 / -1; }
.pos-field input, .pos-field select, .pos-field textarea { width: 100%; box-sizing: border-box; padding: 12px 13px; border: 1px solid #bdccd6; border-radius: 6px; background: #fff; color: #102a3c; font: inherit; font-size: 14px; }
.pos-field input:focus, .pos-field select:focus, .pos-field textarea:focus { outline: 2px solid rgba(15,139,126,.18); border-color: #0f8b7e; }
.pos-amount-input { display: grid; grid-template-columns: 1fr 72px; }
.pos-amount-input input { border-radius: 6px 0 0 6px; }
.pos-amount-input span { display: grid; place-items: center; background: #24c9b7; color: #073247; border-radius: 0 6px 6px 0; font-weight: 900; }
.pos-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #dce5ea; }
.pos-submit-row > span { color: #607485; font-size: 11px; }
.pos-summary-panel { padding: 22px; position: sticky; top: 90px; }
.pos-summary-panel h2 { margin: 7px 0 20px; font-size: 19px; }
.pos-summary-panel > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e3eaee; font-size: 13px; }
.pos-summary-panel > div span { color: #617484; }
.pos-ready { color: #0f8b7e; }
.pos-summary-panel p { margin: 18px 0 0; padding: 13px; background: #e8f7f4; color: #315665; font-size: 12px; line-height: 1.55; }
@media (max-width: 900px) {
    .pos-workspace { grid-template-columns: 1fr; }
    .pos-summary-panel { position: static; }
}
@media (max-width: 620px) {
    .pos-page-head { align-items: flex-start; flex-direction: column; }
    .pos-security { min-width: 0; width: 100%; box-sizing: border-box; }
    .pos-form-grid { grid-template-columns: 1fr; }
    .pos-field { grid-column: 1; }
    .pos-submit-row { align-items: stretch; flex-direction: column; }
}

/* ==========================================================
   BANKSIM GLOBAL DESIGN SYSTEM
   Central tokens and shared component behavior
   ========================================================== */
:root {
    --bs-background: #f4f6f9;
    --bs-surface: #ffffff;
    --bs-sidebar: #0b192c;
    --bs-sidebar-hover: #132943;
    --bs-primary: #00a8cc;
    --bs-primary-hover: #008eae;
    --bs-primary-soft: #e1f7fb;
    --bs-heading: #1e293b;
    --bs-text: #334155;
    --bs-muted: #64748b;
    --bs-border: #dce3eb;
    --bs-success: #10b981;
    --bs-success-soft: #e8f8f2;
    --bs-danger: #ef4444;
    --bs-danger-soft: #fef0f0;
    --bs-warning: #f59e0b;
    --bs-warning-soft: #fff7e6;
    --bs-shadow: 0 1px 3px rgba(15, 23, 42, 0.10);
    --bs-shadow-raised: 0 8px 24px rgba(15, 23, 42, 0.10);
    --bs-radius: 12px;
    --bs-control-radius: 8px;
}

html { background: var(--bs-background); }
body {
    font-family: "Inter", "Roboto", "Segoe UI", sans-serif;
    background: var(--bs-background);
    color: var(--bs-text);
    font-variant-numeric: tabular-nums;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 300;
    height: 72px;
    box-sizing: border-box;
    background: var(--bs-surface);
    color: var(--bs-heading);
    border-bottom: 1px solid var(--bs-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.topbar-left { min-width: 0; }
.topbar-brand { display:flex; align-items:center; gap:10px; color:inherit; text-decoration:none; flex:0 0 auto; }
.logo-img { width:40px; height:40px; border:1px solid #e4eaf0; box-shadow:none; }
.logo-main { color:var(--bs-sidebar); font-size:17px; font-weight:800; }
.logo-sub { color:var(--bs-muted); font-size:10px; }
.topbar-divider { width:1px; height:30px; margin:0 6px; background:var(--bs-border); }
.topbar-context { min-width:0; color:var(--bs-heading); font-size:14px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topbar-right { gap:8px; }
.topbar-icon-button {
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    padding:0;
    border:1px solid transparent;
    border-radius:var(--bs-control-radius);
    background:transparent;
    color:var(--bs-muted);
    cursor:pointer;
    font-size:16px;
}
.topbar-icon-button:hover,.topbar-icon-button[aria-expanded="true"] { color:var(--bs-primary-hover); background:var(--bs-primary-soft); border-color:#c7edf4; }
.topbar-popover-wrap { position:relative; }
.topbar-popover {
    position:absolute;
    top:48px;
    right:0;
    z-index:400;
    width:min(340px,calc(100vw - 28px));
    overflow:hidden;
    background:var(--bs-surface);
    border:1px solid var(--bs-border);
    border-radius:var(--bs-radius);
    box-shadow:var(--bs-shadow-raised);
}
.topbar-popover-title { padding:14px 16px; color:var(--bs-heading); font-weight:800; border-bottom:1px solid var(--bs-border); }
.topbar-popover-body { max-height:320px; overflow:auto; padding:14px 16px; color:var(--bs-muted); font-size:12px; line-height:1.55; }
.global-notification-item { padding:10px 0; border-bottom:1px solid #edf1f5; }
.global-notification-item:last-child { border-bottom:0; }
.global-notification-item strong { display:block; margin-bottom:3px; color:var(--bs-heading); }
.topbar-right .user-badge { min-height:40px; padding:0 8px; border-left:1px solid var(--bs-border); }
.user-avatar { width:34px; height:34px; border-radius:8px; background:var(--bs-primary-soft); color:var(--bs-primary-hover); }
.user-name { color:var(--bs-heading); font-weight:700; }
.user-sub { color:var(--bs-muted); opacity:1; }
.topbar-logout-link { display:flex; align-items:center; gap:7px; min-height:38px; box-sizing:border-box; border-radius:var(--bs-control-radius); border-color:var(--bs-border); color:var(--bs-heading); font-weight:600; }
.topbar-logout-link:hover { color:var(--bs-danger); background:var(--bs-danger-soft); border-color:#facaca; }

.layout { align-items:flex-start; }
.sidebar {
    position:sticky;
    top:72px;
    height:calc(100vh - 72px);
    min-height:0;
    overflow-y:auto;
    background:var(--bs-sidebar);
    border-right:0;
}
.menu-title { color:#7890aa; }
.menu-link,.sidebar-toggle { border-radius:8px; color:#c9d5e4; }
.menu-link:hover,.sidebar-toggle:hover { background:var(--bs-sidebar-hover); }
.menu-link.active,.has-sub.open>.sidebar-toggle,.sidebar-toggle.active {
    background:rgba(0,168,204,.16);
    box-shadow:inset 3px 0 0 var(--bs-primary);
}
.nav-icon,.sidebar-footer>i { color:#88a0b9; }
.active>.nav-icon,.menu-link:hover .nav-icon,.sidebar-toggle:hover .nav-icon,.sidebar-toggle.active .nav-icon { color:#39c9e8; }
.sidebar-sub li a:hover,.sidebar-sub li a.active-sub { background:rgba(0,168,204,.13); }
.sidebar-sub li a.active-sub { box-shadow:inset 2px 0 0 var(--bs-primary); }

.content { min-height:calc(100vh - 72px); background:var(--bs-background); padding:24px 28px 36px; }
.content-header { min-height:44px; margin-bottom:16px; }
.content-title,.page-title { color:var(--bs-heading); font-weight:800; }
.content-title { font-size:21px; }
.page-container { width:100%; }

.content-card,.admin-dashboard,.detail-panel,.session-panel,.form-card,
.dashboard-panel,.transfer-panel,.accounts-panel,.loan-panel,
.pos-corporate-form,.pos-summary-panel,.stat-card {
    background:var(--bs-surface);
    border:1px solid var(--bs-border);
    border-radius:var(--bs-radius);
    box-shadow:var(--bs-shadow);
}
.content-card,.admin-dashboard { box-shadow:var(--bs-shadow); }
.stat-card { background:var(--bs-surface); }
.stat-main { background:var(--bs-sidebar); color:#fff; border-color:var(--bs-sidebar); }
.stat-label,.field-help,.muted { color:var(--bs-muted); }
.stat-value,.amount,.account-balance,.balance,.price,.total,[data-balance] { font-weight:700; font-variant-numeric:tabular-nums; }

.btn-primary,.btn-secondary,.btn-ghost {
    border-radius:var(--bs-control-radius);
    font-family:inherit;
    font-weight:700;
    transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}
.btn-primary { background:var(--bs-primary); border-color:var(--bs-primary); color:#052b35; box-shadow:0 1px 2px rgba(0,142,174,.18); }
.btn-primary:hover { background:var(--bs-primary-hover); border-color:var(--bs-primary-hover); color:#fff; }
.btn-secondary,.btn-ghost { background:var(--bs-surface); border-color:var(--bs-border); color:var(--bs-heading); }
.btn-secondary:hover,.btn-ghost:hover { background:var(--bs-primary-soft); border-color:#bce7f0; color:var(--bs-primary-hover); }

input:not([type="checkbox"]):not([type="radio"]),select,textarea,.input-control {
    border-color:#cbd5e1;
    border-radius:var(--bs-control-radius);
    background:var(--bs-surface);
    color:var(--bs-heading);
    font-family:inherit;
}
input:not([type="checkbox"]):not([type="radio"]):focus,select:focus,textarea:focus,.input-control:focus {
    outline:none;
    border-color:var(--bs-primary);
    box-shadow:0 0 0 3px rgba(0,168,204,.14);
}
.field-label,.form-row label { color:var(--bs-heading); font-weight:600; }
.amount-suffix { background:var(--bs-primary); border-color:var(--bs-primary); color:#052b35; font-weight:800; }

.data-table { color:var(--bs-text); }
.data-table thead { background:#eef3f7; }
.data-table th { color:var(--bs-heading); font-weight:700; }
.data-table th,.data-table td { border-bottom-color:var(--bs-border); }
.data-table tr:nth-child(even) { background:#f8fafc; }
.data-table tbody tr:hover { background:var(--bs-primary-soft); }

.alert,.alert-error,.alert-success { border-radius:var(--bs-control-radius); }
.alert-success { background:var(--bs-success-soft); color:#087a58; border-color:#b8ead8; }
.alert-error { background:var(--bs-danger-soft); color:#b4232e; border-color:#facaca; }
.status-success,.status-completed,.positive { color:var(--bs-success); }
.status-error,.status-rejected,.negative { color:var(--bs-danger); }
.status-warning,.status-pending { color:#a56600; background:var(--bs-warning-soft); }

.balances-hidden .balance-sensitive { filter:blur(6px); user-select:none; pointer-events:none; }

@media (max-width:900px) {
    .topbar { height:64px; }
    .topbar-divider,.topbar-context,.topbar-popover-wrap:nth-of-type(2) { display:none; }
    .sidebar { position:static; width:100%; height:auto; min-height:auto; overflow-x:auto; overflow-y:visible; }
    .content { min-height:0; padding:16px 12px 28px; }
}
@media (max-width:620px) {
    .logo-text,.topbar-right .user-badge,.topbar-logout-link span { display:none; }
    .topbar { padding:0 10px; }
    .topbar-right { gap:2px; }
    .topbar-icon-button { width:38px; height:38px; }
    .topbar-logout-link { width:38px; justify-content:center; padding:0; border:0; }
}

/* ==========================================================
   CORPORATE SIDEBAR FLYOUT NAVIGATION
   Desktop submenus open beside the navigation; mobile keeps
   the compact in-flow menu behavior.
   ========================================================== */
@media (min-width:901px) {
    .sidebar {
        height:auto;
        min-height:calc(100vh - 72px);
        overflow:visible;
        align-self:stretch;
    }

    .sidebar-menu { overflow:visible; }
    .has-sub { position:relative; }

    .has-sub.open > .sidebar-sub,
    .has-sub > .sidebar-sub {
        position:fixed;
        z-index:1000;
        top:var(--flyout-top, 84px);
        left:var(--flyout-left, 262px);
        display:none;
        width:292px;
        max-height:calc(100vh - 24px);
        margin:0;
        padding:10px;
        overflow-y:auto;
        list-style:none;
        background:#ffffff;
        border:1px solid var(--bs-border);
        border-radius:10px;
        box-shadow:0 18px 42px rgba(11,25,44,.18), 0 4px 12px rgba(11,25,44,.08);
    }

    .has-sub.flyout-open > .sidebar-sub,
    .has-sub.flyout-hover > .sidebar-sub {
        display:block;
        animation:sidebarFlyoutIn .16s ease-out;
    }

    .sidebar-sub::before {
        content:attr(data-menu-title);
        display:block;
        margin:0 2px 8px;
        padding:5px 8px 10px;
        color:var(--bs-heading);
        border-bottom:1px solid var(--bs-border);
        font-size:12px;
        font-weight:800;
        letter-spacing:0;
        text-transform:none;
    }

    .sidebar-sub li a {
        position:relative;
        display:flex;
        align-items:center;
        min-height:38px;
        padding:0 30px 0 12px;
        color:var(--bs-text);
        border-radius:7px;
        font-size:12px;
        font-weight:650;
        text-decoration:none;
        transition:background-color .15s ease,color .15s ease,transform .15s ease;
    }

    .sidebar-sub li a::after {
        content:"\f054";
        position:absolute;
        right:12px;
        color:#94a3b8;
        font-family:"Font Awesome 6 Free";
        font-size:9px;
        font-weight:900;
    }

    .sidebar-sub li a:hover,
    .sidebar-sub li a.active-sub {
        background:var(--bs-primary-soft);
        color:#087f9b;
        box-shadow:none;
    }

    .sidebar-sub li a:hover { transform:translateX(2px); }
    .sidebar-sub li a.active-sub::before {
        content:"";
        position:absolute;
        left:0;
        top:9px;
        bottom:9px;
        width:3px;
        border-radius:3px;
        background:var(--bs-primary);
    }

    .nav-chevron { transform:none !important; }
    .has-sub.flyout-open > .sidebar-toggle .nav-chevron,
    .has-sub.flyout-hover > .sidebar-toggle .nav-chevron { color:#39c9e8; transform:translateX(2px) !important; }

    @keyframes sidebarFlyoutIn {
        from { opacity:0; transform:translateX(-6px); }
        to { opacity:1; transform:translateX(0); }
    }
}

@media (max-width:900px) {
    .sidebar-sub::before { display:none; }
    .has-sub.open .nav-chevron { transform:rotate(90deg); }
    .sidebar-sub {
        position:fixed;
        z-index:1000;
        top:128px;
        left:12px;
        right:12px;
        width:auto;
        min-width:0;
        max-height:calc(100vh - 144px);
        margin:0;
        padding:8px;
        overflow-y:auto;
        background:var(--bs-sidebar);
        border:1px solid #28506d;
        border-radius:8px;
        box-shadow:0 18px 38px rgba(7,29,52,.30);
    }
    .sidebar-sub li a {
        min-height:40px;
        padding:0 12px;
        font-size:12px;
    }
}
/* Privacy and account lifecycle */
.login-policy-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    color: #64748b;
    font-size: 13px;
}

.login-policy-links a { color: #0b7285; font-weight: 600; }

.policy-page {
    width: min(920px, calc(100% - 32px));
    margin: 28px auto;
}

.policy-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    color: #fff;
    background: #0b192c;
    border-radius: 12px;
}

.policy-hero h1 { margin: 6px 0; color: #fff; }
.policy-hero p { margin: 0; color: #cbd5e1; }
.policy-hero .eyebrow { color: #67e8f9; font-weight: 700; }

.policy-card {
    margin-top: 18px;
    padding: 30px;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.policy-card h2 { margin: 26px 0 8px; color: #1e293b; }
.policy-card h2:first-child { margin-top: 0; }
.policy-card p { color: #475569; line-height: 1.65; }
.policy-form-card { max-width: 640px; margin-right: auto; margin-left: auto; }

.policy-warning {
    display: grid;
    gap: 4px;
    margin: 18px 0;
    padding: 14px;
    color: #92400e;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
}

@media (max-width: 720px) {
    .policy-page { width: min(100% - 20px, 920px); margin: 10px auto; }
    .policy-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
    .policy-card { padding: 22px; }
}

/* Admin customer accounts */
.admin-accounts-page { padding: 0; overflow: hidden; }
.admin-accounts-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 26px; border-bottom:1px solid #dce5ec; }
.admin-accounts-heading .page-title { margin:4px 0 5px; }
.admin-accounts-heading p { margin:0; color:#64748b; font-size:13px; }
.admin-section-kicker { color:#008fae; font-size:10px; font-weight:800; letter-spacing:.08em; }
.admin-create-account-button { display:inline-flex; align-items:center; gap:8px; flex:0 0 auto; }
.admin-accounts-page > .alert { margin:16px 26px 0; }
.admin-account-list-heading { display:flex; align-items:center; justify-content:space-between; padding:20px 26px 12px; }
.admin-account-list-heading > div { display:flex; align-items:baseline; gap:10px; }
.admin-account-list-heading .section-title { margin:0; }
.admin-account-list-heading span { color:#64748b; font-size:12px; }
.admin-account-table-wrap { overflow-x:auto; padding:0 26px 26px; }
.admin-account-table { min-width:1040px; margin:0; }
.admin-account-table .amount { color:#0b6f68; font-weight:750; font-variant-numeric:tabular-nums; }
.admin-account-table .iban { font-family:ui-monospace, SFMono-Regular, Consolas, monospace; font-size:12px; }

body.modal-open { overflow:hidden; }
.admin-account-modal[hidden] { display:none; }
.admin-account-modal { position:fixed; inset:0; z-index:2200; display:grid; place-items:center; padding:20px; }
.admin-account-modal-backdrop { position:absolute; inset:0; width:100%; height:100%; border:0; background:rgba(4,18,34,.66); backdrop-filter:blur(3px); cursor:default; }
.admin-account-modal-dialog { position:relative; z-index:1; width:min(720px,100%); max-height:calc(100vh - 40px); overflow-y:auto; border:1px solid #d8e2ea; border-radius:10px; background:#fff; box-shadow:0 24px 70px rgba(2,16,30,.34); opacity:0; transform:translateY(10px); transition:opacity .16s ease,transform .16s ease; }
.admin-account-modal.is-open .admin-account-modal-dialog { opacity:1; transform:translateY(0); }
.admin-account-modal-header { display:grid; grid-template-columns:46px 1fr 34px; align-items:start; gap:13px; padding:22px 24px 18px; border-bottom:1px solid #dce5ec; }
.admin-account-modal-icon { display:grid; place-items:center; width:46px; height:46px; border-radius:8px; background:#dff8f5; color:#087f72; font-size:18px; }
.admin-account-modal-header span { color:#008fae; font-size:9px; font-weight:850; letter-spacing:.08em; }
.admin-account-modal-header h2 { margin:4px 0; color:#13243a; font-size:20px; }
.admin-account-modal-header p { margin:0; color:#64748b; font-size:12px; }
.admin-account-modal-close { display:grid; place-items:center; width:34px; height:34px; border:0; border-radius:6px; background:#edf2f6; color:#465b6c; cursor:pointer; }
.admin-account-modal-close:hover { background:#dfe8ee; color:#0b192c; }
.admin-account-modal-form { display:grid; grid-template-columns:1fr 1fr; gap:17px 16px; padding:22px 24px 24px; }
.admin-account-field { display:grid; align-content:start; gap:7px; min-width:0; }
.admin-account-field-wide { grid-column:1 / -1; }
.admin-account-field label { color:#263c4e; font-size:12px; font-weight:750; }
.admin-account-field label span { color:#7b8e9c; font-size:10px; font-weight:600; }
.admin-account-field input,.admin-account-field select { width:100%; min-height:44px; box-sizing:border-box; border:1px solid #c8d5df; border-radius:6px; background:#fff; color:#172b3d; padding:10px 12px; font:inherit; font-size:13px; }
.admin-account-field input:focus,.admin-account-field select:focus { outline:2px solid rgba(0,168,204,.2); border-color:#00a8cc; }
.admin-account-field small { color:#6b7f8e; font-size:10px; line-height:1.45; }
.admin-account-amount-field { display:grid; grid-template-columns:1fr auto; }
.admin-account-amount-field input { border-radius:6px 0 0 6px; }
.admin-account-amount-field span { display:grid; place-items:center; min-width:58px; border-radius:0 6px 6px 0; background:#20c7b7; color:#052b39; font-size:12px; font-weight:850; }
.admin-account-modal-actions { grid-column:1 / -1; display:flex; justify-content:flex-end; gap:9px; margin-top:3px; padding-top:17px; border-top:1px solid #dce5ec; }
.admin-account-modal-actions .btn-primary { display:inline-flex; align-items:center; gap:7px; }

@media (max-width:680px) {
    .admin-accounts-heading { align-items:flex-start; padding:20px; }
    .admin-accounts-heading p { display:none; }
    .admin-account-list-heading,.admin-account-table-wrap { padding-left:20px; padding-right:20px; }
    .admin-account-modal { padding:10px; }
    .admin-account-modal-dialog { max-height:calc(100vh - 20px); }
    .admin-account-modal-form { grid-template-columns:1fr; padding:18px; }
    .admin-account-field-wide,.admin-account-modal-actions { grid-column:1; }
    .admin-account-modal-header { padding:18px; grid-template-columns:40px 1fr 32px; }
    .admin-account-modal-icon { width:40px; height:40px; }
}
