:root {
    --ink: #0c1222;
    --navy: #12263a;
    --navy-2: #1a3348;
    --gold: #c4a35a;
    --gold-soft: #e8d7a8;
    --paper: #f6f3ec;
    --surface: #ffffff;
    --muted: #6b7280;
    --line: #e5dfd2;
    --success: #1f7a5c;
    --danger: #b42318;
    --info: #1d4e89;
    --shadow: 0 8px 24px rgba(18, 38, 58, 0.08);
    --radius: 12px;
    --sidebar: 250px;
    --topbar: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    height: 100%;
}

body, #page-top {
    height: 100%;
    margin: 0;
}

body,
body.app-body,
body.auth-body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    font-size: 9px;
    line-height: 1.4;
}

a { color: var(--navy); }
a:hover { color: var(--gold); text-decoration: none; }

.app-shell {
    display: flex;
    align-items: stretch;
    height: 100%;
    width: 100%;
}

.app-sidebar {
    width: var(--sidebar);
    flex: 0 0 var(--sidebar);
    background: linear-gradient(180deg, #0e1a28 0%, #163044 100%);
    color: #f4efe4;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 40;
    transition: left 0.3s ease;
}

body:not(.sidebar-open) .app-sidebar {
    left: calc(var(--sidebar) * -1);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--topbar);
    flex: 0 0 var(--topbar);
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: inherit;
}

.app-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 3px;
}

.app-brand-copy small {
    display: block;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: 10px;
    color: var(--gold-soft);
}

.app-brand-copy strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
}

.app-nav {
    padding: 16px 12px;
    flex: 1;
    overflow: auto;
}

.app-nav-label {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.42);
    padding: 6px 10px 6px;
}

.app-nav-label--section { margin-top: 18px; }

.app-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.82);
    padding: 7px 10px;
    border-radius: 8px;
    margin-bottom: 2px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}

.app-nav a i { width: 18px; text-align: center; color: var(--gold); font-size: 14px;}
.app-nav a:hover,
.app-nav a.is-active {
    background: rgba(196,163,90,.16);
    color: #fff;
}

.app-nav a.is-active {
    position: relative;
    background: rgba(196,163,90,.13);
    font-weight: 700;
}

.app-nav a.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 0 2px 2px 0;
    background: var(--gold);
}

.app-nav-link--utility {
    margin-top: 2px;
    color: rgba(255,255,255,.62) !important;
    font-size: 12px !important;
}

.app-nav-link--utility i { color: rgba(232, 215, 168, .72) !important; font-size: 12px !important; }
.app-nav-link--utility:hover,
.app-nav-link--utility.is-active { color: #fff !important; }

.app-sidebar-foot {
    margin-top: auto;
    height: 35px;
    flex: 0 0 35px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.app-sidebar-foot-note {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    text-align: center;
}

/* Sidebar Logout Button */
.app-sidebar-logout-form {
    width: 100%;
    margin: 0;
}

.app-sidebar-logout-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s ease;
}

.app-sidebar-logout-btn i {
    width: 18px;
    text-align: center;
    color: var(--gold);
    font-size: 14px;
}

.app-sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fff;
}

.app-main {
    flex: 1;
    margin-left: var(--sidebar);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: margin-left 0.3s ease;
}

body:not(.sidebar-open) .app-main {
    margin-left: 0;
}

.app-topbar {
    min-height: var(--topbar);
    height: auto;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 13px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.app-topbar-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.app-page-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none !important;
    padding: 0;
    color: var(--ink);
}

.app-menu-btn:hover {
    background: var(--paper);
    border-color: var(--gold);
}

.app-menu-btn:focus,
.app-menu-btn:focus-visible {
    outline: none;
    box-shadow: none !important;
}

.app-menu-btn:active,
.app-menu-btn:active:focus {
    outline: none;
    box-shadow: none !important;
    background: #fff;
    border-color: var(--line);
}

.app-page-kicker {
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}

.app-page-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.app-user-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px 6px 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    max-width: 100%;
}

.app-user-btn span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-btn i { font-size: 24px; color: var(--navy); }

.app-dropdown {
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: var(--shadow);
    padding: 6px;
    margin-top: 6px;
}

.app-dropdown a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 10px;
}

.app-dropdown a:hover { background: var(--paper); }
.app-dropdown .is-danger { color: var(--danger); }
.app-dropdown .divider { height: 1px; background: var(--line); margin: 5px 3px; }

.app-content {
    flex: 1;
    padding: 9px 9px 13px;
    overflow-y: auto;
    overflow-x: hidden;
}

.app-footer {
    height: 35px;
    flex: 0 0 35px;
    border-top: 1px solid var(--line);
    width: 100%;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .02em;
    background: #fff;
}

.app-footer-link { color: var(--gold); font-weight: 700; text-decoration: none; }
.app-footer-link:hover { color: var(--gold-dark); text-decoration: none; }

.app-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.app-card-head {
    padding: 8px 11px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.app-card-head h2, .app-card-head h4, .app-card-head h6 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
}

.app-card-body { padding: 10px; }

.page-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.page-hero h1 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.page-hero p { margin: 0; color: var(--muted); font-size: 11px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 650;
}

.chip-ok { background: #e8f6ef; color: var(--success); }
.chip-wait { background: #fff4d6; color: #8a5a00; }
.chip-off { background: #f3f4f6; color: var(--muted); }

.btn, .btn-primary, .pay-submit-btn, .auth-btn {
    border-radius: 8px !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
    font-size: 11px !important;
}

.btn-primary,
.btn-success,
.pay-submit-btn,
.auth-btn {
    background: var(--navy) !important;
    border-color: var(--navy) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-success:hover,
.auth-btn:hover {
    background: #0c1b2a !important;
    border-color: #0c1b2a !important;
}

.form-control, .form-control-user {
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    min-height: 40px;
    background: #fff !important;
    font-size: 11px !important;
}

.form-control:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 4px rgba(196,163,90,.18) !important;
}

label, .form-control-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #3d4a59;
}

.table {
    color: var(--ink);
}

.table thead th {
    border-bottom: 1px solid var(--line);
    background: #faf7f0;
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #5c6570;
    white-space: nowrap;
}

.table td { vertical-align: middle; font-size: 11px; }

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 5px 8px;
}

/* ═══════════════════════════════════════════════════
   PAYMENT PAGE – Premium Corporate UI
   ═══════════════════════════════════════════════════ */

/* --- Keyframe Animations --- */
@keyframes payFadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes payPulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 163, 90, 0); }
    50%      { box-shadow: 0 0 0 8px rgba(196, 163, 90, .15); }
}

@keyframes payCheckPop {
    0%   { transform: rotate(45deg) scale(0); }
    60%  { transform: rotate(45deg) scale(1.2); }
    100% { transform: rotate(45deg) scale(1); }
}

@keyframes payShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

/* --- Container & Layout --- */
.pay-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 16px 32px;
}

.pay-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

/* --- Main Card (Left) --- */
.pay-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(18, 38, 58, .06);
    animation: payFadeInUp .5s ease both;
}

.pay-card-main {
    padding: 0;
    overflow: hidden;
}

/* Header Banner */
.pay-hero-header {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a52 60%, #1d4e68 100%);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.pay-hero-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 163, 90, .12) 0%, transparent 70%);
    pointer-events: none;
}

.pay-hero-header::after {
    content: "";
    position: absolute;
    bottom: -60%;
    left: -10%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .04) 0%, transparent 70%);
    pointer-events: none;
}

.pay-customer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.pay-customer span {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    font-weight: 600;
}

.pay-customer strong {
    font-size: 15px;
    color: #fff;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pay-secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(31, 122, 92, .18);
    color: #6ee7b7;
    border: 1px solid rgba(31, 122, 92, .25);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pay-secure-pill i {
    font-size: 12px;
}

/* Amount Hero Section */
.pay-amount-section {
    padding: 28px 24px 24px;
    text-align: center;
}

.pay-amount-title {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 14px;
    font-weight: 700;
}

.pay-amount-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 320px;
    margin: 0 auto;
    background: linear-gradient(145deg, #fdfcf8 0%, #f8f4eb 100%);
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 4px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.pay-amount-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(196, 163, 90, .14), 0 8px 24px rgba(196, 163, 90, .1);
    background: linear-gradient(145deg, #fff 0%, #fdfaf2 100%);
}

.pay-amount-input {
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 800;
    padding: 12px 40px 12px 16px;
    color: var(--ink);
    outline: none;
    text-align: center;
    letter-spacing: .02em;
}

.pay-amount-input::placeholder {
    color: #c4bbab;
}

.pay-currency {
    position: absolute;
    right: 18px;
    font-size: 22px;
    color: var(--gold);
    font-weight: 800;
    pointer-events: none;
}

.pay-total-display {
    max-width: 360px;
    min-height: 17px;
    margin: 8px auto 0;
    color: #176247;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

/* Security Notice (in main card) */
.pay-security-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.5;
    padding: 8px 12px;
    margin: 0 20px 16px;
    background: #f8f6f0;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.pay-security-notice i {
    flex-shrink: 0;
    font-size: 13px;
    margin-top: 0;
    color: var(--gold);
}

/* Payment result must remain visually distinct from ordinary card text. */
.pay-card-main .pay-result-banner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 20px 10px !important;
    padding: 9px 12px !important;
    border-radius: 9px !important;
}

.pay-card-main .pay-result-banner--success {
    border: 1px solid #b9e7d1 !important;
    background: #edf9f3 !important;
    color: #176247 !important;
}

.pay-card-main .pay-result-banner--success .pay-result-banner-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    border-radius: 50% !important;
    background: #1f8a68 !important;
    color: #fff !important;
}

.pay-card-main .pay-result-banner--success .pay-result-banner-icon i {
    color: #fff !important;
}

.pay-card-main .pay-result-banner--error {
    border: 1px solid #f1c4c4 !important;
    background: #fff2f2 !important;
    color: #9b2c2c !important;
}

.pay-card-main .pay-result-banner--error .pay-result-banner-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    border-radius: 50% !important;
    background: #c94b4b !important;
    color: #fff !important;
}

.pay-card-main .pay-result-banner--error .pay-result-banner-icon i {
    color: #fff !important;
}

.pay-card-main .pay-result-banner div {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}

.pay-card-main .pay-result-banner strong,
.pay-card-main .pay-result-banner span {
    color: inherit !important;
}

/* Alert Messages */
.pay-card-main .alert {
    margin: 0 20px;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: paySlideDown .35s ease both;
}

.pay-card-main .alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 3px solid #10b981;
}

.pay-card-main .alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

/* --- Side Panel (Right – single unified card) --- */
.pay-card-side {
    padding: 22px;
    animation: payFadeInUp .5s ease .1s both;
    display: flex;
    flex-direction: column;
}

.pay-side-section {
    display: flex;
    flex-direction: column;
}

.pay-side-divider {
    height: 1px;
    background: var(--line);
    margin: 16px 0;
}

.pay-side-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--navy);
    font-weight: 800;
}

.pay-side-section-header i {
    font-size: 12px;
    color: var(--gold);
}

.pay-side-notice {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 7px;
    padding: 7px 8px;
    border-left: 2px solid var(--gold);
    background: #fafafa;
    font-size: 11px;
    line-height: 1.4;
    color: #475569;
    font-weight: 600;
}

.pay-side-notice i {
    flex-shrink: 0;
    color: #a68443;
    font-size: 11px;
}

.pay-side-notice--ziraat {
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b42318;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.pay-side-notice--ziraat i { color: #b42318; font-size: 10px; }

.pay-side-notice--critical {
    align-items: center;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #ead7a5;
    border-left: 3px solid #b8892f;
    border-radius: 6px;
    background: #fffaf0;
    color: #71551d;
    font-size: 11px;
    font-weight: 800;
}

.pay-side-notice--critical i { color: #b07d20; font-size: 12px; }

/* Progress Dots */
.pay-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.pay-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.pay-progress-dot.is-done {
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 163, 90, .2);
    transform: scale(1.15);
}

.pay-progress-line {
    width: 20px;
    height: 2px;
    background: var(--line);
    border-radius: 1px;
    transition: background .3s ease;
}

.pay-progress-line.is-done {
    background: var(--gold);
}

/* Agreements / Checkboxes */
.pay-agreements {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pay-agree {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--ink);
}

.pay-agree input[type="checkbox"] {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}

.pay-agree input[type="hidden"] {
    display: none;
}

.pay-agree-ui {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 5px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.pay-agree:hover .pay-agree-ui {
    border-color: #d0c5a6;
    background: #fdfcf8;
}

.pay-agree-box {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1.5px solid #a09fae;
    border-radius: 4px;
    background: #fff;
    position: relative;
    margin-top: 1px;
    transition: all .2s ease;
}

.pay-agree-box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .2s cubic-bezier(.4, 0, .2, 1);
}

/* Checked State */
.pay-agree:has(input[type="checkbox"]:checked) .pay-agree-ui,
.pay-agree .pay-checkbox:checked ~ .pay-agree-ui {
    border-color: var(--gold);
    background: linear-gradient(135deg, #fcfaf3 0%, #f7f0dc 100%);
    box-shadow: 0 2px 8px rgba(196, 163, 90, .08);
}

.pay-agree:has(input[type="checkbox"]:checked) .pay-agree-box,
.pay-agree .pay-checkbox:checked ~ .pay-agree-ui .pay-agree-box {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a52 100%);
    border-color: var(--navy);
}

.pay-agree:has(input[type="checkbox"]:checked) .pay-agree-box::after,
.pay-agree .pay-checkbox:checked ~ .pay-agree-ui .pay-agree-box::after {
    animation: payCheckPop .3s ease both;
}

.pay-agree:has(input[type="checkbox"]:focus-visible) .pay-agree-ui {
    box-shadow: 0 0 0 4px rgba(196, 163, 90, .2);
}

.pay-agree-text {
    font-size: 11.5px;
    line-height: 1.5;
    font-weight: 500;
    padding-top: 1px;
    color: #4a5568;
}

.pay-agree-text a,
.pay-agree-link {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--gold-soft);
    padding-bottom: 1px;
    transition: border-color .2s ease, color .2s ease;
}

.pay-agree-text a:hover,
.pay-agree-link:hover {
    color: var(--gold);
    border-bottom-style: solid;
    border-bottom-color: var(--gold);
}

.pay-error {
    display: block;
    color: var(--danger);
    font-size: 11px;
    margin-top: 4px;
    margin-left: 42px;
    font-weight: 600;
}

/* Submit CTA Button */
.pay-submit-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a52 50%, var(--navy) 100%);
    background-size: 200% 100%;
    color: #fff;
    box-shadow: 0 4px 16px rgba(18, 38, 58, .2);
}

.pay-submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 163, 90, .12), transparent);
    transition: left .6s ease;
}

.pay-submit-btn:not(.pay-submit-btn--disabled):hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(18, 38, 58, .28), 0 0 0 1px var(--gold-soft);
}

.pay-submit-btn:not(.pay-submit-btn--disabled):hover::before {
    left: 100%;
}

.pay-submit-btn:not(.pay-submit-btn--disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(18, 38, 58, .2);
}

.pay-submit-btn:not(.pay-submit-btn--disabled) {
    animation: payPulseGlow 3s ease infinite;
}

.pay-submit-btn--disabled {
    opacity: .35;
    cursor: not-allowed;
    background: #ddd8cc;
    color: #9e9584;
    box-shadow: none;
    animation: none;
}

.pay-submit-btn--disabled::before {
    display: none;
}

.pay-submit-text {
    position: relative;
    z-index: 1;
}

.pay-submit-btn i {
    position: relative;
    z-index: 1;
    font-size: 13px;
    opacity: .7;
}

/* --- Alternative Payment Methods --- */
.pay-alt-methods-group {
    /*display: grid;*/
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pay-alt-btn {
    border: 1.5px solid var(--line);
    background: linear-gradient(160deg, #fdfcf9 0%, #f8f5ed 100%);
    color: var(--navy);
    border-radius: 12px;
    padding: 1px 1px;
    font-size: 12px;
    font-weight: 700;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

.pay-alt-btn-logo {
    height: 42px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

.pay-alt-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(18, 38, 58, .12);
}

/* Ziraat Pay Özel Hover (Hafif Kırmızı) */
#ziraatPayBtn:not(:disabled):hover {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #b91c1c;
}

/* Vakıf Pay Özel Hover (Hafif Sarı/Altın) */
#vakifPayBtn:not(:disabled):hover {
    border-color: #fde047;
    background: #fefce8;
    color: #a16207;
}

.pay-alt-btn--disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* Info Notice (bottom) */
.pay-info-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fef9ed 0%, #fdf5e0 100%);
    border: 1px solid #f0e6c8;
    font-size: 11px;
    line-height: 1.5;
    color: #92700e;
    font-weight: 500;
}

.pay-info-notice i {
    flex-shrink: 0;
    font-size: 13px;
    margin-top: 1px;
    color: var(--gold);
}

/* --- Modal Overrides --- */
.pay-modal-dialog { max-width: 600px; }

.pay-modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 24px 64px rgba(18, 38, 58, .2);
}

.pay-modal-header {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a52 100%);
    color: #fff;
}

.pay-modal-title {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.pay-modal-title i {
    color: var(--gold);
    font-size: 16px;
}

.pay-modal-close {
    background: rgba(255, 255, 255, .1);
    border: none;
    color: rgba(255, 255, 255, .7);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 14px;
}

.pay-modal-close:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.pay-modal-footer {
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: #faf8f3;
    border-top: 1px solid var(--line);
}

.pay-modal-body {
    padding: 20px 22px;
    max-height: 50vh;
    overflow: auto;
}

.pay-modal-text {
    font-weight: 500;
    line-height: 1.7;
    color: #334155;
    font-size: 13px;
}

.pay-modal-footer .btn {
    border-radius: 10px;
    padding: 9px 18px;
    font-weight: 700;
    font-size: 13px;
    transition: all .2s ease;
}

.pay-modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a52 100%);
    border: 1px solid var(--gold-soft);
    color: #fff;
}

.pay-modal-footer .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(18, 38, 58, .2);
    transform: translateY(-1px);
}

.pay-modal-footer .btn-secondary {
    background: #f0ebe0;
    border: 1px solid var(--line);
    color: var(--ink);
}

.pay-modal-footer .btn-secondary:hover {
    background: #e5dfd2;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .pay-layout {
        grid-template-columns: 1fr;
    }

    .pay-container {
        padding: 14px 12px 24px;
    }

    .pay-side-notice--ziraat {
        white-space: normal;
    }
}

/* Keep the payment flow inside shorter desktop viewports without page scrolling. */
@media (min-width: 992px) and (max-height: 800px) {
    .app-content:has(.pay-container) {
        padding: 8px 12px;
    }

    .pay-container {
        padding: 0;
    }

    .pay-layout {
        gap: 16px;
    }

    .pay-hero-header {
        padding: 14px 20px;
    }

    .pay-amount-section {
        padding: 18px 20px 16px;
    }

    .pay-amount-title {
        margin-bottom: 8px;
    }

    .pay-amount-input {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .pay-security-notice {
        padding: 9px 12px;
        margin: 0 20px 14px;
    }

    .pay-card-side {
        padding: 16px 18px;
    }

    .pay-side-section-header {
        margin-bottom: 8px;
    }

    .pay-progress {
        margin-bottom: 10px;
    }

    .pay-agreements {
        gap: 5px;
    }

    .pay-submit-btn {
        height: 42px;
        margin-top: 9px;
    }

    .pay-side-divider {
        margin: 10px 0;
    }

    .pay-alt-btn-logo {
        height: 36px;
    }

    .pay-side-notice--critical {
        padding: 7px 9px;
    }
}

@media (max-width: 600px) {
    .pay-hero-header {
        padding: 16px 18px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .pay-customer strong {
        font-size: 14px;
    }

    .pay-secure-pill {
        font-size: 10px;
        padding: 5px 10px;
    }

    .pay-amount-section {
        padding: 20px 18px 20px;
    }

    .pay-amount-input {
        font-size: 26px;
        padding: 10px 36px 10px 12px;
    }

    .pay-amount-wrapper {
        max-width: 100%;
    }

    .pay-card-side {
        padding: 16px;
    }

    .pay-agree-ui {
        padding: 8px 10px;
    }

    .pay-agree-text {
        font-size: 11.5px;
    }

    .pay-agree-box {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }

    .pay-alt-methods-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pay-submit-btn {
        height: 50px;
        font-size: 13px;
    }

    .pay-security-notice,
    .pay-info-notice {
        margin: 0 18px 16px;
        font-size: 10.5px;
    }

    .pay-card {
        border-radius: 16px;
    }

    .pay-modal-dialog {
        margin: 12px;
    }

    .pay-modal-content {
        border-radius: 16px;
    }
}

@media (max-width: 400px) {
    .pay-hero-header {
        padding: 14px 14px;
    }

    .pay-customer strong {
        font-size: 13px;
    }

    .pay-amount-input {
        font-size: 22px;
    }

    .pay-agree-text {
        font-size: 11px;
    }

    .pay-progress-line {
        width: 14px;
    }
}

.filter-form .form-control { min-height: 42px; }

html:has(body.auth-body),
html.auth-html {
    height: 100%;
    min-height: 100%;
}

.auth-body {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
    background: #efeae1;
    overflow: hidden;
}

.auth-shell {
    height: 100%;
    min-height: 100%;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
}

.auth-aside {
    position: relative;
    background: linear-gradient(180deg, #0a1624 0%, #12263a 58%, #163044 100%);
    color: #f4efe6;
    min-width: 0;
    min-height: 100%;
    height: 100%;
    align-self: stretch;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-aside-ornament {
    position: absolute;
    left: 50%;
    bottom: -18%;
    width: min(520px, 92%);
    aspect-ratio: 2 / 1;
    transform: translateX(-50%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    border: 1px solid rgba(196, 163, 90, .22);
    box-shadow:
        0 0 0 18px rgba(196, 163, 90, .05),
        0 0 0 36px rgba(196, 163, 90, .035);
    pointer-events: none;
}

.auth-aside-ornament::before,
.auth-aside-ornament::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: inherit;
    border: 1px solid rgba(196, 163, 90, .16);
}

.auth-aside-ornament::before { inset: 14% 18% auto; height: 70%; }
.auth-aside-ornament::after { inset: 28% 30% auto; height: 55%; }

.auth-aside-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-aside-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auth-aside-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-aside-logo-plate {
    width: 256px;
    height: 256px;
    background: #f7f3ea;
    border: 1px solid rgba(196, 163, 90, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin: 0 auto 22px;
}

.auth-aside-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-aside-name {
    display: block;
    font-family: Cinzel, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 10px;
}

.auth-aside .auth-kicker {
    margin: 0;
    color: var(--gold-soft);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    min-width: 0;
    min-height: 100%;
    height: 100%;
    align-self: stretch;
    overflow: auto;
    background: #efeae1;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #ddd4c4;
    border-radius: 4px;
    padding: 28px 28px 22px;
    box-shadow: 0 18px 40px rgba(18, 38, 58, .08);
}

.auth-card.wide { max-width: 760px; }

.auth-card .row {
    margin-left: -8px;
    margin-right: -8px;
}

.auth-card-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.auth-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    padding: 6px;
    background: #fff;
}

.auth-kicker,
.auth-card-kicker {
    font-family: Cinzel, "Times New Roman", serif;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--gold-soft);
    margin: 0 0 8px;
    font-weight: 500;
}

.auth-card-kicker { color: #8a6d32; }

.auth-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 33px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--navy);
    line-height: 1.15;
}

.auth-subtitle {
    color: var(--muted);
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.auth-form .form-group { margin-bottom: 14px; }

.auth-form .form-group > label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--navy);
}

.auth-input { position: relative; }

.auth-input > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a93a3;
    font-size: 14px;
    pointer-events: none;
}

.auth-form .form-control {
    border-radius: 2px !important;
    min-height: 50px;
    background: #fbfaf7 !important;
}

.auth-input .form-control {
    padding-left: 42px !important;
    padding-right: 46px !important;
}

.auth-form .form-control:focus {
    background: #fff !important;
    border-color: var(--navy) !important;
    box-shadow: 0 0 0 3px rgba(18, 38, 58, .08) !important;
}

.auth-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-eye:hover { color: var(--navy); background: var(--paper); }

.auth-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 16px;
    flex-wrap: wrap;
}

.auth-check {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--ink) !important;
    cursor: pointer;
    user-select: none;
}

.auth-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
}

.auth-check input[type="hidden"] { display: none; }

.auth-check-box {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1.5px solid #c4bbab;
    border-radius: 4px;
    background: #fff;
    position: relative;
}

.auth-check-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
}

.auth-check:has(input[type="checkbox"]:checked) .auth-check-box,
.auth-check input[type="checkbox"]:checked ~ .auth-check-box {
    background: var(--navy);
    border-color: var(--navy);
}

.auth-check:has(input[type="checkbox"]:checked) .auth-check-box::after,
.auth-check input[type="checkbox"]:checked ~ .auth-check-box::after {
    transform: rotate(45deg) scale(1);
}

.auth-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}

.auth-btn {
    width: 100%;
    min-height: 52px;
    height: 52px;
    border: 0;
    border-radius: 2px !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 14px !important;
}

.auth-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 15px;
}

.auth-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 650;
}

.auth-trust i { color: var(--gold); margin-right: 4px; }

.auth-errors {
    color: var(--danger) !important;
    text-align: center;
    display: block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
}

.auth-otp {
    text-align: center;
    margin-bottom: 18px;
}

.auth-otp-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 38, 58, .06);
    color: var(--navy);
    font-size: 20px;
    margin-bottom: 10px;
}

.auth-otp h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
}

.auth-otp p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.auth-otp-input {
    text-align: center !important;
    letter-spacing: .42em;
    font-weight: 750 !important;
    font-size: 1.2rem !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.legal-card .app-card-body { min-height: 420px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
}

.contact-info-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    margin-bottom: 12px;
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.app-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12,18,34,.45);
    z-index: 35;
}

/* Mobile Responsive - Tablets & Small Screens */
@media (max-width: 768px) {
    :root {
        --sidebar: 240px;
        --topbar: 64px;
    }

    .app-sidebar {
        width: 240px;
    }

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

    .app-card-body {
        padding: 13px;
    }

    .page-hero {
        margin-bottom: 13px;
    }

    .page-hero h1 {
        font-size: 21px;
    }
}

/* Mobile Responsive - Phones */
@media (max-width: 576px) {
    :root {
        --sidebar: 200px;
        --topbar: 56px;
    }

    .app-shell {
        flex-direction: column;
    }

    .app-overlay {
        display: none;
    }

    body.sidebar-open .app-overlay {
        display: block;
    }

    .app-sidebar {
        position: fixed;
        width: 200px;
        height: 100vh;
        left: -200px;
        top: 0;
        z-index: 40;
        transition: left 0.3s ease;
    }

    body.sidebar-open .app-sidebar {
        left: 0;
    }

    .app-main {
        margin-left: 0;
        flex: 1;
    }

    .app-content {
        padding: 13px 10px 19px;
    }

    .app-card {
        border-radius: 10px;
    }

    .app-card-head {
        padding: 11px 13px;
    }

    .app-card-body {
        padding: 11px;
    }

    .app-topbar {
        padding: 6px 10px;
    }

    .app-topbar-left {
        gap: 6px;
    }

    .app-page-title {
        font-size: 13px;
    }

    .app-page-kicker {
        font-size: 9px;
    }

    .app-menu-btn {
        width: 36px;
        height: 36px;
    }

    .navbar-end {
        gap: 6px;
    }

    .app-user-btn {
        padding: 4px 8px 4px 6px;
        font-size: 11px;
    }

    .app-user-btn span {
        max-width: 100px;
    }

    .app-user-btn i {
        font-size: 20px;
    }

    .app-dropdown {
        min-width: 180px;
    }

    .app-nav a {
        padding: 7px 8px;
        font-size: 11px;
        gap: 6px;
    }

    .app-nav-label {
        padding: 5px 6px 6px;
        font-size: 9px;
    }

    .page-hero {
        margin-bottom: 10px;
    }

    .page-hero h1 {
        font-size: 18px;
    }

    .chip {
        padding: 3px 8px;
        font-size: 10px;
    }

    .btn, .btn-primary {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }

    .form-control, .form-control-user {
        min-height: 40px;
        font-size: 12px !important;
    }

    .table thead th {
        padding: 6px 5px;
        font-size: 9px;
    }

    .table td {
        padding: 6px 5px;
        font-size: 11px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .pay-layout {
        grid-template-columns: 1fr;
    }

    .pay-card-main {
        padding: 11px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    html.auth-html,
    html:has(body.auth-body),
    body.auth-body {
        height: auto !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    .auth-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: 0;
        overflow: visible;
    }
    .auth-aside {
        height: auto;
        min-height: 0;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
    }
    .auth-aside-ornament { display: none; }
    .auth-aside-inner {
        padding: 10px 16px;
        justify-content: flex-start;
    }
    .auth-aside-brand {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
    }
    .auth-aside-brand-text { align-items: flex-start; }
    .auth-aside-logo-plate {
        width: 48px;
        height: 48px;
        margin: 0;
        padding: 5px;
        flex: 0 0 48px;
    }
    .auth-aside-name {
        font-size: 17px;
        margin-bottom: 2px;
        letter-spacing: .12em;
    }
    .auth-panel {
        padding: 12px 16px 28px;
        overflow: visible;
        align-items: flex-start;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .auth-aside-inner { padding: 12px 14px; }
    .auth-card {
        max-width: none;
        padding: 20px 16px 16px;
        box-shadow: none;
        border: 1px solid #ddd4c4;
    }
    .auth-card.wide { max-width: none; }
    .auth-title { font-size: 26px; }
    .auth-form .form-control,
    .auth-otp-input {
        min-height: 48px;
    }
}

/* Global Helper/Content Fixes */
.log-page {
    padding: 16px;
    border-radius: 14px;
    padding: 16px;
    max-height: 70vh;
    overflow: auto;
}

.log-page .log-viewer pre { margin: 0; white-space: pre-wrap; font-size: 13px; }

/* Vanilla Bootstrap restyle — no admin template look */
.text-primary { color: var(--navy) !important; }
.text-muted { color: var(--muted) !important; }
a { color: var(--navy); }
a:hover { color: var(--gold); text-decoration: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 16px;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary,
.btn-success,
.btn-info {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.btn-primary:hover,
.btn-success:hover,
.btn-info:hover,
.btn-primary:focus,
.btn-info:focus {
    background: #0c1b2a;
    border-color: #0c1b2a;
    color: #fff;
    box-shadow: none;
}
.btn-secondary {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
}
.btn-secondary:hover { background: var(--paper); color: var(--ink); }
.btn-outline-dark {
    background: transparent;
    border: 1px solid var(--navy);
    color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-link { color: var(--navy); font-weight: 700; }

.form-control,
.form-control-user,
.form-control-alternative,
.custom-select {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    min-height: 46px;
    background: #fff;
    font-size: 15px;
    padding: 10px 14px;
    color: var(--ink);
}
.form-control:focus,
.custom-select:focus {
    border-color: var(--gold);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(196,163,90,.18);
}

.card,
.card-premium {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
}
.card-body { padding: 20px; }

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px;
}
.dropdown-toggle::after { margin-left: 8px; }

.modal-content {
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.close {
    background: none;
    border: 0;
    font-size: 28px;
    line-height: 1;
    opacity: .6;
    cursor: pointer;
}

.alert {
    border-radius: 14px;
    border: 0;
    padding: 12px 16px;
}
.alert-success { background: #e8f6ef; color: var(--success); }
.alert-danger { background: #fdecec; color: var(--danger); }
.alert-info { background: #eef4fb; color: var(--info); }

.table-bordered,
.table-bordered td,
.table-bordered th { border-color: var(--line); }

.badge { border-radius: 999px; font-weight: 700; }
.shadow, .shadow-sm, .shadow-lg { box-shadow: var(--shadow) !important; }

.container-fluid { padding-left: 0; padding-right: 0; }
.dekont-body { background: #fff; padding: 24px; }

.page-hero h1 { font-size: clamp(22px, 3vw, 28px); }

/* --- PREMIUM UI STYLES (Moved from Views) --- */

/* Premium Inputs */
.premium-input-group { margin-bottom: 16px; }
.premium-input-group label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; display: block; }
.helper-text { font-size: 11px; color: #94a3b8; font-weight: 500; margin-left: 4px; }

.premium-input {
    width: 100%; height: 42px; padding: 8px 16px; border-radius: 10px;
    border: 1.5px solid #e2e8f0; font-size: 13px; transition: all 0.25s ease;
    background: #f8fafc; color: var(--navy); box-sizing: border-box;
}
.premium-input:focus {
    background: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(196, 163, 90, 0.15); outline: none;
}
.input-with-icon { position: relative; display: flex; align-items: center; }
.input-with-icon .premium-input { padding-left: 40px !important; padding-right: 40px !important; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; transition: color 0.3s ease; z-index: 2; }
.input-with-icon:focus-within .input-icon { color: var(--gold); }

.toggle-password { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; cursor: pointer; z-index: 2; transition: color 0.2s ease; }
.toggle-password:hover { color: var(--navy); }

/* Premium Switches */
.premium-switch-group { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fcfdfd; margin-bottom: 16px; }
.disabled-switch { opacity: 0.7; background: #f8fafc; }
.switch-label { display: flex; flex-direction: column; gap: 2px; }
.switch-label strong { font-size: 14px; color: var(--navy); }
.switch-label span { font-size: 11px; color: var(--muted); }
.premium-switch { position: relative; display: inline-block; width: 52px; height: 28px; flex-shrink: 0; margin: 0; }
.premium-switch input { opacity: 0; width: 0; height: 0; }
.premium-switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .3s cubic-bezier(0.4, 0, 0.2, 1); }
.premium-switch .slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px; background-color: white; transition: .3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.premium-switch input:checked + .slider { background-color: #10b981; }
.premium-switch input:focus + .slider { box-shadow: 0 0 1px #10b981; }
.premium-switch input:checked + .slider:before { transform: translateX(24px); }
.premium-switch .slider.round { border-radius: 34px; }
.premium-switch .slider.round:before { border-radius: 50%; }

/* Buttons & Actions */
.premium-submit-btn, .premium-save-btn {
    height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--navy) 0%, #1a3a52 100%);
    border: none; color: #fff; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(18, 38, 58, 0.2); cursor: pointer;
}
.premium-submit-btn { width: 100%; height: 44px; font-weight: 700; font-size: 14px; }
.premium-submit-btn:hover, .premium-save-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18, 38, 58, 0.3); background: linear-gradient(135deg, #1a3a52 0%, var(--navy) 100%); }
.premium-back-btn { height: 42px; padding: 0 16px; border-radius: 10px; background: #f1f5f9; border: 1px solid #e2e8f0; color: var(--navy); font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; transition: all 0.2s; }
.premium-back-btn:hover { background: #e2e8f0; }

/* Validation & Info Boxes */
.validation-summary-valid { display: none; }
.validation-summary-errors { background: #fef2f2; border-radius: 8px; padding: 10px 16px; margin-bottom: 16px; border: 1px solid #fca5a5; }
.validation-summary-errors ul { margin: 0; padding-left: 16px; font-size: 13px; color: #b91c1c; }
.security-info-box { display: flex; align-items: flex-start; gap: 10px; background: #fefce8; border: 1px dashed #fde047; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; margin-top: 10px; }
.security-info-box i { color: #a16207; margin-top: 2px; font-size: 14px; }
.security-info-box span { font-size: 12px; color: #854d0e; line-height: 1.5; font-weight: 500; }

/* Premium Cards */
.security-card, .premium-user-card { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(18, 38, 58, 0.05); background: #fff; overflow: hidden; margin-bottom: 20px; }
.premium-auth-card { padding: 30px; border-radius: 16px; background: #fff; box-shadow: 0 12px 48px rgba(18, 38, 58, 0.08); border: 1px solid var(--line); width: 100%; max-width: 480px; margin: 0 auto; }
.security-card-header, .premium-card-header { padding: 20px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(to right, #fbfcfd 0%, #fff 100%); display: flex; gap: 16px; align-items: center; }
.auth-card-header { margin-bottom: 24px; text-align: left; }
.security-icon-wrapper, .premium-icon-wrapper, .auth-icon-wrapper { border-radius: 12px; background: linear-gradient(135deg, var(--navy) 0%, #1a3a52 100%); color: var(--gold); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(18, 38, 58, 0.2); flex-shrink: 0; }
.security-icon-wrapper { width: 48px; height: 48px; font-size: 20px; }
.premium-icon-wrapper { width: 52px; height: 52px; font-size: 24px; }
.auth-icon-wrapper { width: 48px; height: 48px; font-size: 22px; margin-bottom: 16px; }
.security-card-header h3, .premium-card-header h2, .auth-title { margin: 0 0 4px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.security-card-header h3 { font-size: 20px; } .premium-card-header h2, .auth-title { font-size: 22px; }
.security-card-header p, .premium-card-header p, .auth-subtitle { margin: 0; font-size: 13px; color: var(--muted); }
.security-card-body, .premium-card-body { padding: 24px; }

/* UserDetail Form Sections */
.form-section { margin-bottom: 24px; background: #fff; }
.form-section-header { font-size: 14px; font-weight: 700; color: var(--navy); padding-bottom: 8px; margin-bottom: 16px; border-bottom: 2px solid #f1f5f9; display: flex; align-items: center; gap: 8px; }
.form-section-header i { color: var(--gold); font-size: 16px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 16px; border-bottom: none; border-top: 1px solid #e2e8f0; }

/* Premium Input */
.premium-input-group { margin-bottom: 6px; }
.premium-input-group label { display: block !important; font-size: 12px !important; font-weight: 700 !important; color: var(--navy) !important; margin-bottom: 6px !important; letter-spacing: 0.3px !important; text-transform: uppercase !important; }
.premium-input-group .helper-text { font-weight: 500 !important; color: var(--muted) !important; font-size: 11px !important; text-transform: none !important; }
.premium-input { width: 100% !important; padding: 10px 14px !important; font-size: 13.5px !important; font-weight: 500 !important; color: #0e1a28 !important; background: #f8fafc !important; border: 1.5px solid #dde3ec !important; border-radius: 10px !important; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important; outline: none !important; box-shadow: none !important; -webkit-appearance: none; appearance: none; }
.premium-input:focus { border-color: var(--gold) !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(196, 167, 103, 0.15) !important; }
.premium-input:disabled, .premium-input[disabled] { background: #eef2f7 !important; color: #94a3b8 !important; cursor: not-allowed !important; border-color: #e2e8f0 !important; }
select.premium-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 12px center !important; padding-right: 36px !important; }

/* Premium Toggle Switch */
.premium-switch-group { display: flex !important; align-items: center !important; gap: 14px !important; padding: 14px 16px !important; background: #f8fafc !important; border-radius: 12px !important; border: 1.5px solid #e2e8f0 !important; transition: all 0.2s ease !important; }
.premium-switch-group:hover { border-color: #c4a767 !important; background: #fffdf7 !important; }
.premium-switch-group.disabled-switch { opacity: 0.6 !important; pointer-events: none !important; }
.switch-label strong { display: block !important; font-size: 13px !important; font-weight: 700 !important; color: var(--navy) !important; margin-bottom: 2px !important; }
.switch-label span { font-size: 11.5px !important; color: var(--muted) !important; font-weight: 500 !important; }
.premium-switch { position: relative !important; display: inline-block !important; width: 48px !important; height: 26px !important; flex-shrink: 0 !important; margin: 0 !important; }
.premium-switch input { opacity: 0 !important; width: 0 !important; height: 0 !important; position: absolute !important; }
.premium-switch .slider { position: absolute !important; cursor: pointer !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; background-color: #cbd5e1 !important; transition: 0.3s !important; }
.premium-switch .slider.round { border-radius: 26px !important; }
.premium-switch .slider:before { position: absolute !important; content: "" !important; height: 20px !important; width: 20px !important; left: 3px !important; bottom: 3px !important; background-color: #fff !important; transition: 0.3s !important; border-radius: 50% !important; box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important; }
.premium-switch input:checked + .slider { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important; }
.premium-switch input:checked + .slider:before { transform: translateX(22px) !important; }

/* Premium Buttons */
.premium-save-btn { padding: 10px 28px !important; font-size: 13.5px !important; font-weight: 700 !important; border-radius: 10px !important; background: linear-gradient(135deg, #12263a 0%, #1a3a52 100%) !important; color: #fff !important; border: none !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; transition: all 0.25s ease !important; box-shadow: 0 4px 16px rgba(18,38,58,0.25) !important; letter-spacing: 0.3px !important; text-decoration: none !important; }
.premium-save-btn:hover, .premium-save-btn:focus { transform: translateY(-2px) !important; box-shadow: 0 8px 28px rgba(18,38,58,0.35) !important; color: #fff !important; background: linear-gradient(135deg, #1a3a52 0%, #243f5a 100%) !important; }
.premium-back-btn { padding: 10px 22px !important; font-size: 13px !important; font-weight: 600 !important; border-radius: 10px !important; background: #f1f5f9 !important; color: #12263a !important; border: 1.5px solid #dde3ec !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; transition: all 0.2s ease !important; text-decoration: none !important; }
.premium-back-btn:hover { background: #e2e8f0 !important; color: #12263a !important; text-decoration: none !important; }

/* Validation */
.validation-summary { background: #fef2f2 !important; border: 1px solid #fecaca !important; border-radius: 10px !important; padding: 12px 16px !important; margin-bottom: 16px !important; font-size: 12.5px !important; color: #991b1b !important; font-weight: 600 !important; }

/* UserDetail page-hero */
.premium-user-card .premium-card-header h2 { font-size: 20px !important; font-weight: 800 !important; color: #12263a !important; }
.form-section { margin-bottom: 20px !important; padding: 0 !important; }
.form-section-header { font-size: 11px !important; font-weight: 800 !important; color: var(--muted) !important; padding: 0 0 10px 0 !important; margin-bottom: 14px !important; border-bottom: 1.5px solid #e9edf2 !important; display: flex !important; align-items: center !important; gap: 7px !important; text-transform: uppercase !important; letter-spacing: 0.8px !important; }
.form-section-header i { color: var(--gold) !important; font-size: 13px !important; }

@media (max-width: 768px) {
    .premium-card-body, .security-card-body, .premium-card-header, .security-card-header { padding: 20px; }
    .form-actions { flex-direction: column-reverse; gap: 16px; }
    .form-actions .btn { width: 100%; justify-content: center; }
    .premium-auth-card { padding: 20px; }
}

/* ═══════════════════════════════════════════════════
   USERS / ADMIN TABLE PAGE
   ═══════════════════════════════════════════════════ */

/* Premium Table Card */
.users-card {
    padding: 20px !important;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(18,38,58,0.06);
    background: #fff;
}

.users-card .app-card-head {
    margin-bottom: 14px;
    padding: 0 0 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.users-card .app-card-head h2 {
    font-size: 16px;
    font-weight: 800;
    color: #0e1a28 !important;
    margin: 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.users-card .app-card-head h2 i {
    font-size: 15px;
    color: var(--gold);
}

/* ─── DataTables Controls Row ─── */
.dataTables_wrapper {
    padding-top: 0;
}

/* Fix Bootstrap grid row in DataTables top controls */
.dataTables_wrapper > .row:first-child {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background: #f8f9fb;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    gap: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    display: flex;
    align-items: center;
}

.dataTables_wrapper .dataTables_filter {
    margin-left: auto;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* ─── CRITICAL FIX: DataTables inputs – override global form-control min-height ─── */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_filter input.form-control,
.dataTables_wrapper .dataTables_filter input.form-control-sm {
    min-height: unset !important;
    height: 32px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 4px 10px 4px 32px !important;
    font-size: 12px !important;
    color: #0e1a28 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 9px center !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 200px !important;
    margin-left: 6px !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_filter input.form-control:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(196,163,90,0.15) !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_length select.custom-select,
.dataTables_wrapper .dataTables_length select.form-control {
    min-height: unset !important;
    height: 32px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 4px 24px 4px 8px !important;
    font-size: 12px !important;
    color: #0e1a28 !important;
    background-color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    width: auto !important;
    margin: 0 4px !important;
}

/* ─── DataTables Info & Pagination ─── */
.dataTables_wrapper > .row:last-child {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.dataTables_wrapper .dataTables_info {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    padding-top: 0 !important;
}

.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    padding: 3px 10px !important;
    margin: 0 2px;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #475569 !important;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0e1a28 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #0e1a28 !important;
    color: #fff !important;
    border-color: #0e1a28 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.4;
    cursor: default;
}

/* ─── DataTable Main Table ─── */
table.dataTable {
    border-collapse: collapse !important;
    border-spacing: 0;
    width: 100% !important;
    margin-top: 0 !important;
    color: #0e1a28;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

table.dataTable thead th {
    background: linear-gradient(180deg, #f8f9fb 0%, #f1f4f8 100%) !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 12px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    border-right: 1px solid #e8edf2 !important;
    white-space: nowrap;
}

table.dataTable thead th:last-child { border-right: none !important; }

table.dataTable tbody td {
    padding: 8px 12px !important;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    border-bottom: 1px solid #f1f4f8 !important;
    border-right: none !important;
    border-left: none !important;
    border-top: none !important;
    vertical-align: middle;
}

table.dataTable tbody tr:last-child td { border-bottom: none !important; }
table.dataTable tbody tr:nth-child(even) { background-color: #fafbfd; }
table.dataTable tbody tr:hover { background-color: #f0f4ff !important; transition: background 0.15s; }
table.dataTable.no-footer { border-bottom: 1px solid #e2e8f0 !important; }

/* User cell name styling */
.user-cell {
    font-weight: 700 !important;
    color: #0e1a28 !important;
}

/* ─── Premium Status Badges ─── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.status-badge i { font-size: 10px; }

.custom-badge-aktif {
    background: #ecfdf5 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.custom-badge-bekliyor {
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.custom-badge-hata {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

/* ─── Premium Action Buttons inside Tables ─── */
.btn-manage {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    font-size: 11px;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    border: none !important;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
    transition: all 0.2s ease;
    text-decoration: none !important;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.btn-manage i {
    font-size: 11px;
    opacity: 0.9;
}

.btn-manage:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(99, 102, 241, 0.45);
    text-decoration: none !important;
}

.btn-manage:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

/* ═══════════════════════════════════════════════════
   GLOBAL DATATABLES OVERRIDES
   Tüm DataTables sayfalarında geçerli
   ═══════════════════════════════════════════════════ */

/* Tablo kapsayıcı kart */
.datatable-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(18,38,58,0.05);
    background: #fff;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.datatable-card .app-card-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.datatable-card .app-card-head h2 {
    font-size: 15px;
    font-weight: 800;
    color: #0e1a28;
    margin: 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.datatable-card .app-card-head h2 i { color: var(--gold); font-size: 14px; }

/* Üst kontrol satırı */
div.dataTables_wrapper div.row:first-child {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    background: #f8f9fb;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 13px !important;
    margin-bottom: 12px !important;
}

div.dataTables_wrapper div.row:first-child > div {
    padding: 0 !important;
    flex: unset !important;
    max-width: unset !important;
    width: auto !important;
}

div.dataTables_wrapper div.row:first-child > div:last-child { margin-left: auto; }

/* Length & filter labels */
div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    white-space: nowrap !important;
}

/* Arama kutusu */
div.dataTables_wrapper div.dataTables_filter input {
    display: inline-block !important;
    width: 200px !important;
    height: 30px !important;
    padding: 4px 10px 4px 30px !important;
    font-size: 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 9px 50% !important;
    background-size: 13px !important;
    box-shadow: none !important;
    outline: none !important;
    margin-left: 6px !important;
    color: #0e1a28 !important;
    transition: border-color .2s, box-shadow .2s !important;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
    border-color: #c4a767 !important;
    box-shadow: 0 0 0 3px rgba(196,167,103,0.15) !important;
}

/* Kayıt sayısı select */
div.dataTables_wrapper div.dataTables_length select {
    display: inline-block !important;
    width: auto !important;
    height: 30px !important;
    padding: 3px 20px 3px 8px !important;
    font-size: 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    color: #0e1a28 !important;
    margin: 0 4px !important;
    cursor: pointer;
}

/* Alt satır: info + pagination */
div.dataTables_wrapper div.row:last-child {
    display: flex !important;
    align-items: center !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid #e2e8f0 !important;
}

div.dataTables_wrapper div.dataTables_info {
    font-size: 12px !important;
    color: #64748b !important;
    padding-top: 0 !important;
}

div.dataTables_wrapper div.dataTables_paginate { margin-left: auto; }

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    margin: 0 !important;
    gap: 3px !important;
    flex-wrap: nowrap !important;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all .15s ease !important;
    line-height: 1 !important;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button .page-link:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0e1a28 !important;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button.active .page-link,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.current .page-link {
    background: #12263a !important;
    color: #fff !important;
    border-color: #12263a !important;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button.disabled .page-link {
    opacity: 0.4 !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* Tablo satırları */
table.premium-datatable { border-collapse: collapse !important; }

table.premium-datatable thead th {
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #64748b !important;
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
    border-top: none !important;
    padding: 9px 12px !important;
    white-space: nowrap !important;
}

table.premium-datatable tbody tr {
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background 0.15s ease !important;
}

table.premium-datatable tbody tr:hover { background: #f8fafc !important; }

table.premium-datatable tbody td {
    font-size: 12.5px !important;
    color: #334155 !important;
    padding: 9px 12px !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
}

table.premium-datatable.table-minimal tbody td {
    padding: 6px 10px !important;
    font-size: 12px !important;
}
table.premium-datatable.table-minimal thead th {
    padding: 7px 10px !important;
}

/* Filter form (İşlem Geçmişi vb.) */
.filter-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px !important;
}

.filter-form label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    white-space: nowrap !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.3px !important;
}

.filter-form .form-control {
    height: 28px !important;
    font-size: 11px !important;
    border: 1px solid #dde3ec !important;
    border-radius: 6px !important;
    color: #12263a !important;
    box-shadow: none !important;
    padding: 2px 8px !important;
}

.filter-form .form-control:focus {
    border-color: #c4a767 !important;
    box-shadow: 0 0 0 3px rgba(196,167,103,0.12) !important;
}

.filter-form .btn-primary {
    height: 28px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 0 14px !important;
    background: linear-gradient(135deg, #12263a 0%, #1e3f5a 100%) !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(18,38,58,0.15) !important;
}

/* ═══════════════════════════════════════════════════
   READABILITY & RESPONSIVE REFINEMENT
   A light-touch layer for the application shell and data-heavy screens.
   ═══════════════════════════════════════════════════ */

/* Keep the compact interface, but restore a comfortable reading scale. */
.app-body {
    font-size: 14px;
    line-height: 1.5;
}

.app-page-kicker { font-size: 10px; }
.app-page-title { font-size: 17px; }
.app-nav a { font-size: 13px; }
.app-sidebar-foot-note { font-size: 12px; }

.app-content {
    padding: 18px;
    background:
        radial-gradient(circle at top right, rgba(196, 163, 90, .07), transparent 28rem),
        var(--paper);
}

.datatable-card {
    padding: 20px;
}

.datatable-card .app-card-head h2 {
    font-size: 17px;
}

/* Give filters a clearly separate, usable control surface. */
.datatable-card .filter-form {
    margin: 0 0 16px !important;
    padding: 14px 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
}

.filter-form label {
    font-size: 12px !important;
}

.filter-form .form-control,
.filter-form .btn-primary {
    height: 36px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}

.filter-form .btn-primary {
    padding: 0 16px !important;
}

/* Tables remain dense, yet their labels and row targets are easy to scan. */
table.premium-datatable thead th {
    font-size: 11px !important;
    padding: 11px 12px !important;
}

table.premium-datatable tbody td,
table.premium-datatable.table-minimal tbody td {
    font-size: 13px !important;
    padding: 10px 12px !important;
}

div.dataTables_wrapper div.dataTables_filter input,
div.dataTables_wrapper .dataTables_length select {
    height: 34px !important;
    font-size: 12px !important;
}

@media (max-width: 768px) {
    .app-content { padding: 14px 12px 22px; }
    .datatable-card { padding: 14px; border-radius: 12px; }

    /* DataTables' desktop control row must be allowed to wrap on phones. */
    div.dataTables_wrapper div.row:first-child {
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 10px 12px !important;
    }

    div.dataTables_wrapper div.row:first-child > div:last-child {
        margin-left: 0;
        width: 100% !important;
    }

    div.dataTables_wrapper div.dataTables_filter,
    div.dataTables_wrapper div.dataTables_filter label,
    div.dataTables_wrapper div.dataTables_filter input {
        width: 100% !important;
    }

    .datatable-card .filter-form { padding: 12px !important; }
    .filter-form .d-flex { align-items: stretch !important; }

    div.dataTables_wrapper div.row:last-child {
        flex-wrap: wrap !important;
        gap: 10px;
    }

    div.dataTables_wrapper div.dataTables_paginate { margin-left: 0; }
}

@media (max-width: 430px) {
    .app-page-kicker { display: none; }
    .app-page-title { font-size: 14px; }
    .app-user-btn span { display: none; }
    .app-user-btn { padding: 4px 6px; }

    .filter-form .d-flex {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 5px;
    }

    .filter-form .form-control { width: 100%; }
    table.premium-datatable tbody td,
    table.premium-datatable.table-minimal tbody td { font-size: 12px !important; }
}

/* Login-side context: turns the brand panel into a useful orientation area. */
.auth-aside-brand { max-width: 430px; width: 100%; }

.auth-aside-points {
    width: 100%;
    display: grid;
    gap: 10px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.auth-aside-point {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.82);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.auth-aside-point i {
    width: 18px;
    color: var(--gold-soft);
    text-align: center;
}

@media (max-width: 991px) {
    .auth-aside-points { display: none; }
}

/* Payment flow refinements: high-confidence actions and touch-friendly mobile consent. */
.pay-amount-input {
    font-variant-numeric: tabular-nums;
}

/* Consent is a compact legal acknowledgement, not a separate card. */
.pay-agreements { gap: 8px; }
.pay-agree-ui { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.pay-agree:hover .pay-agree-ui,
.pay-agree:has(input[type="checkbox"]:checked) .pay-agree-ui,
.pay-agree .pay-checkbox:checked ~ .pay-agree-ui { border-color: transparent; background: transparent; box-shadow: none; }
.pay-agree input[type="checkbox"] { left: 0; top: 1px; width: 16px; height: 16px; }
.pay-agree-box { width: 16px; height: 16px; flex-basis: 16px; margin-top: 1px; }
.pay-agree-text { padding-top: 0; font-size: 11px; line-height: 1.4; }
.pay-agree-text a, .pay-agree-link { border-bottom: 0; text-decoration: underline; text-underline-offset: 2px; }
.pay-agree:focus-within .pay-agree-ui { box-shadow: none; }
.pay-agree:focus-within .pay-agree-box { outline: 2px solid rgba(196, 163, 90, .42); outline-offset: 2px; }

.pay-submit-btn.is-submitting {
    cursor: wait;
}

@media (min-width: 992px) and (max-height: 800px) {
    .pay-agreements { gap: 5px; }
}

@media (min-width: 992px) {
    .app-content:has(.pay-container) {
        display: flex;
        flex-direction: column;
    }

    .app-content:has(.pay-container) > form {
        width: 100%;
        margin-block: auto;
    }
}

@media (max-width: 600px) {
    .pay-container { padding: 12px 10px 24px; }
    .pay-layout { gap: 14px; }
    .pay-card { border-radius: 14px; }
    .pay-amount-wrapper { min-height: 62px; }
    .pay-agree-ui { min-height: 0; padding: 0; }
    .pay-agree input[type="checkbox"] { left: 0; top: 1px; width: 18px; height: 18px; }
    .pay-agree-box { width: 18px; height: 18px; flex-basis: 18px; }
    .pay-submit-btn { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    .pay-card,
    .pay-submit-btn,
    .pay-progress-dot,
    .pay-progress-line,
    .pay-agree-ui,
    .pay-agree-box,
    .pay-agree-box::after {
        animation: none !important;
        transition: none !important;
    }
}

.application-log-open,
.application-log-copy {
    border: 1px solid #d8c28e;
    background: #fffaf0;
    color: #75571d;
    font-weight: 700;
    white-space: nowrap;
}

/* Dense admin view: keep more log records visible without affecting other tables. */
.application-log-card {
    font-size: 9px;
}

.application-log-card .app-card-head {
    min-height: 34px;
    padding: 6px 10px;
}

.application-log-card .app-card-head h2 {
    margin: 0;
    font-size: 13px;
}

.application-log-card .app-card-head p {
    display: none;
}

.application-log-card .chip {
    padding: 2px 6px;
    font-size: 8px;
}

.application-log-card .filter-form {
    padding: 4px 7px;
    border-bottom: 1px solid #e8edf2;
    background: #fafbfd;
}

.application-log-card .filter-form > .d-flex {
    gap: 5px !important;
}

.application-log-card .filter-form label {
    margin-bottom: 1px;
    font-size: 8px;
    font-weight: 700;
}

.application-log-card .filter-form .form-control,
.application-log-card .filter-form .btn {
    min-height: 20px;
    height: 20px;
    padding: 0 5px;
    border-width: 1px;
    border-color: #dfe6ed;
    border-radius: 3px;
    box-shadow: none;
    font-size: 8px;
    line-height: 1;
}

.application-log-card .filter-form .form-control:focus {
    border-color: #b9a16b;
    box-shadow: 0 0 0 1px rgba(185, 161, 107, .12);
}

.application-log-card .filter-form .btn {
    min-width: 46px;
    border-color: #d8c28e;
    background: #f7f3e9;
    color: #75571d;
    font-weight: 700;
}

.application-log-card .filter-form .btn:hover {
    border-color: #c7ad72;
    background: #efe5cc;
    color: #5f4515;
}

.application-log-card .premium-datatable {
    font-size: 8.75px;
    line-height: 1.1;
}

.application-log-card .premium-datatable th {
    padding: 3px 5px !important;
    font-size: 8px;
    letter-spacing: .015em;
    white-space: nowrap;
    border: 0 !important;
    border-bottom: 1px solid #dfe6ed !important;
}

.application-log-card .premium-datatable td {
    height: 21px;
    padding: 2px 5px !important;
    vertical-align: middle;
    white-space: nowrap;
    border: 0 !important;
    border-bottom: 1px solid #eef2f5 !important;
}

.application-log-card td .status-badge {
    width: auto;
    min-width: 0;
    height: 14px;
    min-height: 0;
    padding: 0 4px;
    border-radius: 3px;
    font-size: 7px;
    line-height: 1;
}

.application-log-card td .application-log-open {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: auto;
    min-width: 0;
    height: 15px !important;
    min-height: 0 !important;
    padding: 0 4px !important;
    border: 0;
    border-radius: 3px;
    background: #f7f3e9;
    box-shadow: none;
    color: #75571d;
    font-size: 7px;
    line-height: 1;
}

.application-log-card td .application-log-open:hover {
    border: 0;
    background: #efe5cc;
    box-shadow: none;
}

.application-log-card td .application-log-open i {
    font-size: 6px;
}

.application-log-card .application-log-message {
    max-width: 280px;
    overflow: hidden;
    color: #526476;
    text-overflow: ellipsis;
}

.application-log-open:hover,
.application-log-copy:hover {
    border-color: #b8913f;
    background: #fff3d7;
    color: #533a0b;
}

.application-log-modal .modal-dialog {
    max-width: min(1380px, 94vw);
}

.application-log-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(15, 31, 48, .28);
}

.application-log-modal .modal-header {
    align-items: center;
    border-bottom: 1px solid #e1e7ed;
    background: #f8fafc;
}

.application-log-modal .modal-title {
    margin: 0;
    color: #12263a !important;
    font-size: 17px;
    font-weight: 800;
    opacity: 1;
}

.application-log-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d6dee7;
    border-radius: 9px;
    background: #fff;
    color: #334e68;
    font-size: 15px;
    cursor: pointer;
    opacity: 1;
}

.application-log-modal-close:hover {
    border-color: #c8a75f;
    background: #fff8e8;
    color: #75571d;
}

.application-log-modal-close:focus {
    outline: 2px solid rgba(184, 145, 63, .28);
    outline-offset: 2px;
}

.application-log-modal-kicker {
    display: block;
    margin-bottom: 2px;
    color: #9a742c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.application-log-modal .modal-body {
    padding: 16px;
    background: #eef2f6;
}

.application-log-payload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.application-log-payload {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d6dee7;
    border-radius: 10px;
    background: #fff;
}

.application-log-payload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 11px;
    border-bottom: 1px solid #d6dee7;
    color: #1e3348;
}

.application-log-payload pre {
    height: min(62vh, 680px);
    margin: 0;
    padding: 14px;
    overflow: auto;
    background: #0e1a28;
    color: #dce7f2;
    font: 11px/1.55 Consolas, "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 900px) {
    .application-log-payload-grid { grid-template-columns: 1fr; }
    .application-log-modal .modal-dialog { max-width: 96vw; margin: 12px auto; }
    .application-log-payload pre { height: 34vh; }
}

/* Authentication typography: calm corporate hierarchy across sign-in and registration. */
.auth-card,
.auth-card input,
.auth-card button {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.auth-aside-name {
    font-size: clamp(20px, 2vw, 24px);
    letter-spacing: .13em;
    font-weight: 600;
}

.auth-aside .auth-kicker {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-title {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.auth-subtitle {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}

.auth-form .form-group > label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .025em;
}

.auth-form .form-control {
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.4;
}

.auth-form .form-control::placeholder { color: #9aa2ae; font-weight: 400; }
.auth-check, .auth-link { font-size: 13px !important; }
.auth-footer { font-size: 13px; }
.auth-errors { font-size: 12px; line-height: 1.5; }

.auth-register-card { max-width: 780px; }
.auth-register-form .form-group { margin-bottom: 16px; }

@media (max-width: 575px) {
    .auth-title { font-size: 28px; }
    .auth-subtitle { font-size: 13px; }
    .auth-form .form-group > label { font-size: 11px; }
    .auth-form .form-control { font-size: 16px !important; }
    .auth-register-form .form-group { margin-bottom: 14px; }
}
