﻿/* Genel Stil */
body {
    background: linear-gradient(to bottom, #0e0c10, #0e0f11, #1b1c1d, #1b1c1d, #1b1c1d, #1b1c1d);
    background-color: #000000;
    color: #cccccc;
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 8px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding: 2px 10px;
    z-index: 1200;
    border-bottom: 1px solid #2a2a2a;
    background-color: #0e0c10;
    box-sizing: border-box;
}

.header-left,
.header-center,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
    gap: 8px;
}

.header-center {
    justify-content: center;
}

.header-right {
    justify-content: flex-end;
}

#back-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px 8px;
    margin-left: -5px;
    border-radius: 5px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-btn:hover {
    background-color: #2a2a2a;
}

#back-btn svg {
    display: block;
}

#page-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.site-title {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: #ffffff;
    margin: 0;
}

.info-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.info-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Ana içerik */
.main-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-area {
    margin-top: 50px;
    padding: 12px 10px;
    padding-top: 100px;
    padding-bottom: 60px;
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 1000;
}

/* Input Panel (Sabit) */
.input-panel {
    background-color: #1b1c1d;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #636468;
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 580px;
    width: calc(100% - 20px);
    z-index: 1200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.input-group {
    display: flex;
    gap: 6px;
    align-items: stretch;
    justify-content: flex-end;
}

.input-group input[type="number"],
.input-group select,
.input-group input[type="text"] {
    flex: 1;
    padding: 8px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    box-sizing: border-box;
    min-width: 0;
    height: 38px;
}

#vade-select {
    flex: 0.8;
}

#vade-custom {
    flex: 1;
}

.input-group input[type="number"]:focus,
.input-group select:focus {
    outline: none;
    border-color: #493afc;
}

#calculate-btn {
    background-color: #007bff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#calculate-btn:hover {
    background-color: #3a2ecc;
    transform: scale(1.05);
}

#calculate-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Tutar Wrapper with TL Symbol */
.tutar-wrapper {
    flex: 2;
    display: flex;
    position: relative;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    height: 38px;
    align-items: center;
}

.tutar-wrapper input[type="text"] {
    flex: 1;
    padding: 8px;
    padding-right: 30px;
    background-color: transparent;
    border: none;
    color: #e0e0e0;
    font-size: 14px;
    box-sizing: border-box;
    min-width: 0;
    height: 100%;
}

.tutar-wrapper input[type="text"]:focus {
    outline: none;
}

.tutar-wrapper:focus-within {
    border-color: #493afc;
}

.tl-symbol {
    position: absolute;
    right: 10px;
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

/* Custom Dropdown Styles */
.custom-select {
    position: relative;
    flex: 0 0 140px;
    height: 36px;
}

.custom-select.vade-select {
    flex: 0 0 100px;
}

/* Kredi Türü Dropdown - Animated Gradient Border */
#kredi-turu-dropdown {
    position: relative;
    background: linear-gradient(#1a1a1a, #1a1a1a) padding-box,
                linear-gradient(90deg, #4eaaff, #ffffff, #493afc, #ffffff) border-box;
    border: 1px solid transparent;
    border-radius: 8px;
    animation: rotateBorder 3s linear infinite;
    background-size: 400% 100%;
}

@keyframes rotateBorder {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

#kredi-turu-dropdown .select-selected {
    background: transparent;
    border: none;
}

.select-selected {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    padding: 8px;
    padding-left: 12px;
    cursor: pointer;
    height: 38px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 14px;
    transition: border-color 0.2s;
}

.select-selected:hover {
    border-color: #493afc;
}

.select-selected:after {
    position: absolute;
    content: "";
    top: 16px;
    right: 10px;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-color: #e0e0e0 transparent transparent transparent;
}

.select-selected.select-arrow-active:after {
    border-color: transparent transparent #e0e0e0 transparent;
    top: 10px;
}

/* İlk yüklemede dikkat çekici glow efekti */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(78, 170, 255, 0.3), 0 0 10px rgba(78, 170, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 10px rgba(78, 170, 255, 0.6), 0 0 20px rgba(78, 170, 255, 0.4);
    }
}

.select-items.auto-open-highlight {
    animation: pulseGlow 1s ease-in-out 2;
}

.select-items {
    position: absolute;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    top: 42px;
    left: 0;
    min-width: 180px;
    z-index: 1100;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    /* Smooth açılma/kapanma animasyonu */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

.select-hide {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

.select-option {
    color: #e0e0e0;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.select-option:hover {
    background-color: #2a2a2a;
}

.select-option .credit-icon {
    flex-shrink: 0;
}

.tl-icon {
    color: #4eaaff;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #4eaaff;
    border-radius: 50%;
    text-align: center;
}

/* Bilgilendirme */
.info-section {
    background-color: #1a1a1a;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #493afc;
    position: relative;
    z-index: 0;
    margin-top: 55px;
}

.info-section h3 {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #ffffff;
}

.info-section p {
    margin: 0;
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.4;
}

/* Banka Kartları Container */
#bank-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
    position: relative;
    z-index: 0;
}

/* Banka Kartı */
.bank-card {
    background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 260px;
    perspective: 1000px;
    z-index: 0;
}

.bank-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 58, 252, 0.2);
}

.bank-card.best-offer {
    border: 2px solid #493afc;
    box-shadow: 0 0 16px rgba(73, 58, 252, 0.3);
}

.best-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #493afc, #5d4dff);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(73, 58, 252, 0.4);
    z-index: 1;
}

/* Kart Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #211f1f;
    position: relative;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 3px;
}

.bank-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.rate-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.rate-value {
    font-size: 18px;
    font-weight: bold;
    color: #4eaaff;
    line-height: 1.2;
}

.product-type {
    font-size: 12px;
    color: #b0b0b0;
    line-height: 1.2;
}

.campaign-bonus {
    color: #4eaaff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Kart Body */
.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.earnings-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.earning-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.earning-item-right {
    align-items: flex-end;
}

.earning-item-right .earning-label {
    text-align: right;
}

.earning-item-right .earning-value {
    text-align: right;
}

.earning-label {
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

.earning-value {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.3;
    word-break: break-word;
}

/* Ek Bilgiler */
.additional-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-top: 0px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    gap: 8px;
}

.info-label {
    color: #b0b0b0;
    font-size: 12px;
    white-space: nowrap;
}

.info-value {
    font-weight: 600;
    font-size: 13px;
    text-align: right;
    }

.info-value.positive {
    color: #58c773;
    font-weight: 700;
}

.info-value.positive-white {
    color: #ffffff;
    font-weight: 700;
}

.info-value.negative {
    color: #f87171;
}

/* Kart Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 7px;
    margin-top: 2px;
    border-top: 1px solid #211f1f;
    gap: 8px;
    flex-wrap: wrap;
}

.info-icon-btn {
    background: none;
    border: none;
    color: #4eaaff;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon-btn:hover {
    background-color: rgba(78, 170, 255, 0.1);
    color: #66c2ff;
}

.info-icon-btn svg {
    display: block;
}

.apply-btn {
    background-color: #007bff;
    color: #ffffff;
    padding: 6.5px 19.5px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
    margin-left: 4px;
    display: inline-block;
    min-width: 85px;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(93, 77, 255, 0.3);
}

.apply-btn:hover {
    background-color: #5d4dff;
}

/* Yükleniyor / Hata / Sonuç Yok */
#loading,
.no-results,
.error {
    text-align: center;
    padding: 40px 20px;
    color: #b0b0b0;
    font-size: 16px;
}

.error {
    color: #f87171;
}

/* Footer */
.footer-info-section {
    margin-top: 40px;
    padding: 18px;
    background-color: #111214;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info-header h3 {
    margin: 0;
    font-size: 16px;
    color: #f5f5f7;
    font-weight: 600;
}

.footer-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #4e5dff;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.footer-info-text {
    margin: 0;
    font-size: 14px;
    color: #b0b0b5;
    line-height: 1.5;
}

.footer-info-email {
    font-size: 14px;
    color: #7ca8ff;
    text-decoration: none;
    width: fit-content;
}

.footer-info-email:hover {
    text-decoration: underline;
}

.footer-info-social {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.footer-info-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-info-social img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background-color: #1b1c1d;
    padding: 3px;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .content-area {
        padding: 10px;
    }

    .input-panel {
        padding: 8px;
    }

    .input-group {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .input-group input[type="number"],
    .input-group select {
        min-width: 60px;
        max-width: 80px;
        padding: 9px 7px;
        font-size: 14px;
    }

    .tutar-wrapper {
        flex: 2;
        min-width: 100px;
    }

    .tutar-wrapper input[type="text"] {
        padding: 9px 7px;
        padding-right: 25px;
        font-size: 15px;
    }

    .tl-symbol {
        right: 8px;
        font-size: 13px;
    }

    .custom-select {
        flex: 0 0 55px !important;
        min-width: 55px;
    }

    .custom-select.vade-select {
        flex: 0 0 60px !important;
    }

    .select-selected {
        padding: 6px 4px;
        font-size: 15px;
    }

    .select-items {
        min-width: 150px;
        font-size: 13px;
    }

    .select-option {
        padding: 8px;
        font-size: 13px;
    }

    #calculate-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    
    .card-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .bank-info {
        gap: 8px;
    }

    .earnings-row {
        flex-wrap: nowrap;
    }

    .earning-item {
        min-width: 0;
    }

    .earning-label {
        font-size: 11px;
    }

    .earning-value {
        font-size: 14px;
    }

    .additional-info {
        margin-left: -3.5%;
        margin-right: -3.5%;
        width: calc(100% + 1%);
    }

    .card-footer {
        flex-wrap: wrap;
        gap: 6px;
    }

    .apply-btn {
        flex: 1 1 auto;
        min-width: 90px;
        text-align: center;
        font-size: 14px;
        padding: 6px 12px;
    }

    .vade-info,
    .kosullar-link {
        flex-shrink: 0;
        font-size: 12px;
    }
}

/* Scrollbar Stilleri */
.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.content-area::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* Koşullar Text Button */
.kosullar-text-btn {
    background: none;
    border: none;
    color: #4eaaff;
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.kosullar-text-btn:hover {
    background-color: rgba(78, 170, 255, 0.1);
    color: #66c2ff;
}

/* Koşullar Modal */
.kosullar-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.kosullar-modal-content {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9),
                0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 2px 20px rgba(73, 58, 252, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kosullar-modal-header {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    color: #ffffff;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.kosullar-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #493afc, transparent);
    opacity: 0.6;
}

.kosullar-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.kosullar-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.kosullar-modal-close:hover {
    background-color: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.4);
    transform: scale(1.05);
}

.kosullar-modal-body {
    padding: 24px;
    overflow-y: auto;
    color: #ffffff;
    line-height: 1.7;
    background: linear-gradient(to bottom, #1e1e1e, #252525);
}

.kosullar-modal-body div#kosullar-content {
    margin: 0;
    font-size: 14px;
    color: #e5e5e5;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
}

/* Modal Scrollbar */
.kosullar-modal-body::-webkit-scrollbar {
    width: 8px;
}

.kosullar-modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.kosullar-modal-body::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

.kosullar-modal-body::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* Mobil için modal ayarları */
@media (max-width: 768px) {
    .kosullar-modal {
        padding: 14px 16px;
        align-items: center;
        justify-content: center;
    }

    .kosullar-modal-content {
        max-height: 85vh;
        width: calc(100% - 32px);
        margin: auto;
    }

    .kosullar-modal-header {
        padding: 10px 16px;
    }

    .kosullar-modal-header h3 {
        font-size: 15px;
    }

    .kosullar-modal-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .kosullar-modal-body {
        padding: 20px;
    }

    .kosullar-modal-body div#kosullar-content {
        font-size: 14px;
        line-height: 1.7;
    }
}

/* Flip Card Styles */
.card-inner {
    position: relative;
    width: 100%;
    min-height: 248px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    z-index: 0;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    min-height: 248px;
    box-sizing: border-box;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    top: 0;
    left: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    will-change: transform;
    z-index: 0;
}

.card-front {
    background: transparent;
    padding: 14px;
}

.card-back {
    transform: rotateY(180deg) translateZ(1px);
    background: #000000;
    border-radius: 10px;
    padding: 14px;
    overflow-y: auto;
    max-height: 264px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    image-rendering: -webkit-optimize-contrast;
}

.back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #3a3a3a;
}

.back-title {
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
}

.close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #3a3a3a;
    color: #ffffff;
    font-size: 20px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4eaaff;
    transform: rotate(90deg);
}

.back-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item.highlight {
    background: rgba(78, 170, 255, 0.08);
    padding: 8px 10px;
    border-radius: 4px;
    border-bottom: none;
    margin: 2px 0;
}

.detail-label {
    font-size: 12px;
    color: #999999;
    flex: 1;
}

.detail-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    text-align: right;
}

.detail-item.highlight .detail-label,
.detail-item.highlight .detail-value {
    color: #4eaaff;
    font-size: 14px;
}

.detail-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    margin: 4px 0;
}

.details-btn {
    background: none;
    border: none;
    color: #4eaaff;
    cursor: pointer;
    padding: 5.2px 15.6px 5.2px 7.8px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.details-btn:hover {
    background-color: rgba(78, 170, 255, 0.1);
    color: #66c2ff;
}

.details-btn svg {
    flex-shrink: 0;
}

/* Mobile adjustments for flip card */
@media (max-width: 768px) {
    .bank-card {
        min-height: 248px;
    }

    .card-inner {
        min-height: 248px;
    }

    .card-front,
    .card-back {
        min-height: 248px;
        padding: 14px;
    }

    .card-back {
        
        max-height: 244px;
    }

    .back-header {
        margin-bottom: 6px;
        padding-bottom: 4px;
    }

    .detail-item {
        padding: 0px 4px;
    }

    .detail-item.highlight {
        padding: 8px 10px;
        margin: 2px 0;
    }

    .detail-label {
        font-size: 12px;
    }

    .detail-value {
        font-size: 12px;
    }

    .detail-item.highlight .detail-label,
    .detail-item.highlight .detail-value {
        font-size: 14px;
    }

    .close-btn {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }
}

/* Header Left - Sidebar + Page Selector */
.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sidebar Toggle Button */
#sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background-color 0.2s;
}

#sidebar-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-menu {
    position: absolute;
    top: 45px;
    left: 8px;
    background-color: #1b1c1d;
    border: 1px solid #444;
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 1002;
    overflow: hidden;
}

.sidebar-option {
    padding: 10px 16px;
    color: #cccccc;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.sidebar-option:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Page Selector Styles */
.page-selector {
    position: relative;
}

#page-selector-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    color: #296bff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.2s;
}

#page-selector-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

#page-selector-btn svg {
    transition: transform 0.2s;
}

.page-icon {
    width: 26px;
    height: 26px;
    filter: invert(1);
}

.page-dropdown {
    position: absolute;
    top: 40px;
    left: 0;
    background-color: #1b1c1d;
    border: 1px solid #444;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 1002;
    overflow: hidden;
}

.page-option {
    padding: 10px 16px;
    color: #cccccc;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-option:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.dropdown-icon {
    width: 26px;
    height: 26px;
    filter: invert(1);
}

/* Header Right - Site Title + Logo */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.site-title {
    font-size: 16px !important;
    margin: 0 !important;
    font-weight: 500 !important;
    color: #cccccc;
}

.header-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.hidden {
    display: none !important;
}

