/**
 * Thrust Bank System Styling
 * Based on thrust_bank_final.html design
 * Noir/FBI witness protection theme
 */

/* Modal Overlay */
.bank-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1714;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Courier New', Courier, monospace;
    padding: 20px;
    overflow-y: auto;
}

.bank-modal.active {
    opacity: 1;
}

/* Container */
.bank-container {
    max-width: 950px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Bank Panel */
.bank-panel {
    background: #c9b896;
    border: 2px solid #8a7a65;
    padding: 15px 20px 20px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.4);
    width: 100%;
    box-sizing: border-box;
}

.bank-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Header */
.bank-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #8a7a65;
    gap: 20px;
}

.bank-header .session-stats {
    justify-self: start;
    align-self: center;
}

.bank-header .bank-branding {
    justify-self: center;
}

.bank-header .header-info {
    justify-self: end;
}

.bank-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bank-icon {
    font-size: 24px;
    line-height: 1;
}

.bank-name {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 18px;
    color: #3a3025;
    letter-spacing: 3px;
}

.bank-motto {
    font-size: 9px;
    color: #6a5a4a;
    font-style: italic;
    letter-spacing: 1px;
    margin-top: 2px;
}

.header-info {
    text-align: right;
}

.location-text {
    font-size: 10px;
    color: #5a4a3a;
    letter-spacing: 1px;
}

.time-display {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 12px;
    color: #4a3a2a;
    margin-top: 3px;
}

/* Situation Box */
.situation-box {
    background: rgba(0,0,0,0.05);
    border: 1px solid #a89a80;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.7;
    color: #3a3025;
    min-height: 60px;
}

.situation-box .label {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 9px;
    color: #6a5a4a;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.situation-box .highlight {
    color: #5a3a2a;
    font-weight: bold;
}

/* Queue State */
.situation-box.queue-state {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 15px;
}

.queue-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
}

.queue-portrait .photo-box {
    width: 70px;
    height: 85px;
}

.queue-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.queue-content .banker-name {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 14px;
    color: #3a3025;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.queue-content .queue-status {
    font-size: 11px;
    color: #5a4a3a;
    margin-bottom: 6px;
}

/* Waiting Dots Animation */
.waiting-dots span {
    animation: dot-pulse 1.4s infinite;
    opacity: 0;
}

.waiting-dots span:nth-child(1) {
    animation-delay: 0s;
}

.waiting-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.waiting-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {
    0%, 60%, 100% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
}

/* Wait Progress Bar */
.wait-progress {
    margin-top: 10px;
}

.wait-progress-label {
    font-size: 9px;
    color: #6a5a4a;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.wait-progress-track {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: #c4b8a0;
    position: relative;
}

.wait-progress-fill {
    color: #4a3a2a;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    width: 0%;
    transition: width 0.3s ease;
}

.clients-bar-track {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2px;
}

.client-block {
    flex: 1;
    text-align: center;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 20px;
    color: #c4b8a0;
    transition: color 0.3s ease;
}

.client-block.filled {
    color: #4a3a2a;
}

/* Queue Panel / Popup Overlay */
.queue-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.queue-panel.active {
    opacity: 1;
    pointer-events: all;
}

.queue-box {
    background: #e8dfc5;
    border: 4px solid #8a7a65;
    padding: 25px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #3a3025;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.queue-title {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #3a3025;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
    border-bottom: 2px solid #8a7a65;
    padding-bottom: 10px;
}

/* Loan Customization Popup */
.loan-customization-form {
    margin: 20px 0;
}

.range-value {
    text-align: center;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #3a3025;
    margin-top: 8px;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.15);
    border: 1px solid #8a7a65;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #8a7a65;
    cursor: pointer;
    border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #8a7a65;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.loan-calculation-display {
    background: rgba(0,0,0,0.05);
    border: 2px solid #8a7a65;
    padding: 15px;
    margin-top: 20px;
}

.loan-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 11px;
    color: #3a3025;
    border-bottom: 1px solid rgba(138, 122, 101, 0.3);
}

.loan-calc-row:last-child {
    border-bottom: none;
}

.loan-calc-row.approval-row {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #8a7a65;
    font-weight: bold;
    font-size: 12px;
}

/* Loan Processing Screen */
.banker-dialogue-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: rgba(0,0,0,0.03);
    border: 2px solid #8a7a65;
    padding: 15px;
    margin-bottom: 20px;
}

.banker-dialogue-portrait {
    font-size: 48px;
    flex-shrink: 0;
}

.banker-dialogue-content {
    flex: 1;
}

.banker-dialogue-name {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    color: #3a3025;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.banker-dialogue-text {
    font-size: 11px;
    color: #3a3025;
    font-style: italic;
    line-height: 1.6;
}

.loan-processing-info {
    background: rgba(0,0,0,0.05);
    border: 2px solid #8a7a65;
    padding: 15px;
    margin-bottom: 20px;
}

.loan-proc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 11px;
    color: #3a3025;
    border-bottom: 1px solid rgba(138, 122, 101, 0.3);
}

.loan-proc-row:last-child {
    border-bottom: none;
}

.loan-processing-status {
    margin: 20px 0;
}

.processing-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.03);
    border: 1px solid #8a7a65;
    font-size: 11px;
    color: #3a3025;
}

.processing-step.completed {
    background: rgba(74, 124, 89, 0.1);
    border-color: #4a7c59;
}

.processing-step .step-icon {
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.processing-step.completed .step-icon {
    color: #4a7c59;
}

.loan-decision {
    background: rgba(0,0,0,0.05);
    border: 3px solid #8a7a65;
    padding: 20px;
    text-align: center;
}

.loan-decision.approved {
    border-color: #4a7c59;
    background: rgba(74, 124, 89, 0.1);
}

.loan-decision.denied {
    border-color: #8B0000;
    background: rgba(139, 0, 0, 0.05);
}

.decision-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.loan-decision.approved .decision-icon {
    color: #4a7c59;
}

.loan-decision.denied .decision-icon {
    color: #8B0000;
}

.decision-title {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.loan-decision.approved .decision-title {
    color: #4a7c59;
}

.loan-decision.denied .decision-title {
    color: #8B0000;
}

.decision-text {
    font-size: 11px;
    color: #3a3025;
    margin-bottom: 15px;
}

.loan-approved-details,
.loan-denied-reasons {
    text-align: left;
    font-size: 10px;
    color: #3a3025;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(138, 122, 101, 0.5);
}

.loan-approved-details div,
.loan-denied-reasons div {
    margin: 5px 0;
}

/* Speaking State */
.situation-box.speaking-state {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 15px;
}

.banker-dialogue {
    font-style: italic;
    color: #3a3025;
    position: relative;
    padding-left: 15px;
}

.banker-dialogue::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 24px;
    color: #a89a80;
    font-family: Georgia, serif;
}

.dialogue-name {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 10px;
    color: #6a5a4a;
    margin-top: 8px;
    text-align: right;
}

/* Queue Bar */
.queue-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 10px;
    color: #5a4a3a;
}

.total-queue {
    background: rgba(0,0,0,0.08);
    padding: 4px 10px;
    border: 1px solid #a89a80;
}

.total-queue .num {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 12px;
    color: #6a3a2a;
    margin-left: 3px;
    transition: all 0.2s ease;
}

.total-queue .num.changing {
    transform: scale(1.2);
    color: #3a6a3a;
}

.queue-hint {
    font-style: italic;
    color: #7a6a5a;
}

/* Windows Row */
.windows-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 15px 10px;
    background: rgba(0,0,0,0.05);
    border: 1px solid #a89a80;
}

.windows-row.hidden {
    display: none;
}

/* Teller Window */
.teller-window {
    width: 105px;
    background: linear-gradient(180deg, #d4cbb8 0%, #c4b9a5 100%);
    border: 3px solid #6a5a4a;
    position: relative;
    cursor: pointer;
    transition: all 0.15s ease;
}

.teller-window:hover {
    border-color: #4a3a2a;
    transform: translateY(-2px);
}

.teller-window.selected {
    border-color: #3a2a1a;
    box-shadow: 0 0 0 2px #8a7a65;
}

.teller-window.closed {
    opacity: 0.5;
    cursor: default;
}

.teller-window.closed:hover {
    transform: none;
}

.window-top {
    height: 70px;
    position: relative;
    border-bottom: 2px solid #a89a80;
}

.window-num {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a3a2a;
    color: #d4c9b8;
    font-size: 9px;
    padding: 2px 8px;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.window-bars {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    justify-content: space-evenly;
    padding: 0 10px;
}

.bar {
    width: 4px;
    height: 100%;
    background: #8a7a5a;
}

.window-figure {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.fig-head {
    width: 16px;
    height: 18px;
    background: #7a6a5a;
    border-radius: 50%;
    margin: 0 auto 2px;
}

.fig-body {
    width: 28px;
    height: 18px;
    background: #6a5a4a;
    border-radius: 4px 4px 0 0;
}

.teller-window.closed .fig-head,
.teller-window.closed .fig-body {
    opacity: 0.3;
}

.window-info {
    padding: 8px 6px;
    text-align: center;
    background: rgba(255,255,255,0.3);
}

.worker-name {
    font-size: 9px;
    font-weight: bold;
    color: #3a3025;
    margin-bottom: 4px;
}

.window-status {
    font-size: 8px;
    color: #5a4a3a;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.window-status.open {
    color: #3a5a3a;
}

.queue-info {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #5a4a3a;
    padding-top: 4px;
    border-top: 1px dashed #b8a890;
}

.queue-info .num {
    font-family: 'Special Elite', 'Courier New', monospace;
    color: #6a3a2a;
}

.wait-time .num {
    color: #3a5a6a;
}

/* Content Area (Dossier + Notes Side by Side) */
.bank-container .content-area {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    margin-bottom: 15px;
}

.bank-container .content-area.visible {
    max-height: 550px;
    opacity: 1;
}

/* Left Panel (Dossier) */
.left-panel {
    background: #c9b896;
    border: 2px solid #8a7a65;
    padding: 15px;
    position: relative;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.4);
    min-height: 280px;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.section-label {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 10px;
    color: #5a4a3a;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #8a7a65;
}

/* Dossier Content */
.dossier-content {
    position: relative;
    min-height: 240px;
}

.personnel-card {
    background: #f5f0e6;
    border: 1px solid #c4b8a0;
    padding: 12px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(-30px) rotate(-2deg);
    pointer-events: none;
}

.personnel-card.visible {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
    pointer-events: auto;
    animation: card-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes card-slide-in {
    0% {
        opacity: 0;
        transform: translateX(-50px) rotate(-5deg);
    }
    60% {
        transform: translateX(5px) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

.personnel-card.selected {
    border-color: #6a5a4a;
    box-shadow: 0 0 0 2px #6a5a4a;
}

.card-row {
    display: flex;
    gap: 12px;
}

.photo-box {
    width: 50px;
    height: 60px;
    background: #e0d8c8;
    border: 1px solid #b8a890;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #7a6a5a;
    text-align: center;
    flex-shrink: 0;
}

.card-info {
    flex: 1;
    font-size: 10px;
    line-height: 1.4;
    color: #4a4035;
}

.card-info .name {
    font-weight: bold;
    font-size: 13px;
    color: #2a2520;
    margin-bottom: 2px;
}

.card-info .position {
    color: #6a5a4a;
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* Stat Bars (ASCII Style) */
.stat-bars {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #c4b8a0;
}

.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 8px;
}

.stat-label {
    width: 90px;
    color: #5a4a3a;
    font-size: 9px;
}

.stat-track {
    flex: 1;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: #c4b8a0;
    position: relative;
}

.stat-fill {
    color: #4a3a2a;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    transition: width 0.6s ease-out;
}

.stat-value {
    width: 40px;
    text-align: right;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 9px;
    color: #4a3a2a;
}

.stat-value.low {
    color: #4a6a4a;
}

.stat-value.medium {
    color: #6a5a3a;
}

.stat-value.high {
    color: #6a3a3a;
}

/* Special Ability */
.special-ability {
    margin-top: 10px;
    padding: 8px;
    background: rgba(0,0,0,0.04);
    border: 1px dashed #b8a890;
}

.ability-label {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 8px;
    color: #6a5a4a;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ability-name {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 10px;
    color: #3a3025;
    margin-bottom: 3px;
}

.ability-desc {
    font-size: 9px;
    color: #5a4a3a;
    line-height: 1.4;
}

/* Notes Panel (Right Side) */
.notes-panel {
    background: #f5f0e6;
    border: 2px solid #8a7a65;
    padding: 12px;
    position: relative;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.4);
}

.notes-panel::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 40px;
    bottom: 10px;
    width: 1px;
    background: rgba(180, 100, 100, 0.2);
}

.notes-header {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 9px;
    color: #5a4a3a;
    letter-spacing: 2px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #c4b8a0;
}

.notes-content {
    font-size: 11px;
    line-height: 1.7;
    color: #3a352f;
    padding-left: 15px;
    min-height: 180px;
}

.notes-content .line {
    opacity: 0;
    transform: translateY(5px);
    display: block;
}

.notes-content .line.typed {
    animation: line-appear 0.15s ease-out forwards;
}

@keyframes line-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notes-content .label {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 8px;
    color: #6a5a4a;
    letter-spacing: 1px;
    margin-top: 12px;
    margin-bottom: 3px;
}

.notes-content .label:first-child {
    margin-top: 0;
}

.notes-content .highlight {
    color: #5a3a2a;
    font-weight: bold;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #4a3a2a;
    margin-left: 2px;
    animation: cursor-blink 0.8s step-end infinite;
    vertical-align: middle;
}

@keyframes cursor-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Actions Row */
.actions-row {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #c4b8a0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.action-btn {
    background: transparent;
    border: 1px solid #8a7a65;
    padding: 6px 10px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #4a4035;
    cursor: pointer;
    transition: all 0.15s;
}

.action-btn:hover {
    background: rgba(60, 50, 40, 0.1);
    border-color: #5a4a3a;
}

.action-btn:active {
    transform: scale(0.97);
}

.action-btn .num {
    font-family: 'Special Elite', 'Courier New', monospace;
    opacity: 0.6;
    margin-right: 5px;
}

.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Services Panel */
.services-panel {
    display: none;
    background: rgba(0,0,0,0.05);
    border: 1px solid #a89a80;
    padding: 15px;
}

.services-panel.visible {
    display: block;
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Service Request Panel */
.service-request-panel {
    display: none;
    background: #c9b896;
    border: 2px solid #8a7a65;
    padding: 15px 20px;
    position: relative;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.4);
    margin-bottom: 15px;
}

.service-request-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.service-request-panel.visible {
    display: block;
    animation: fade-in 0.3s ease;
}

/* Queue Popup */
.queue-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.queue-popup.active {
    opacity: 1;
}

.queue-popup-content {
    background: #c9b896;
    border: 3px solid #8a7a65;
    padding: 20px;
    min-width: 400px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    position: relative;
}

.queue-popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.queue-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #8a7a65;
}

.queue-header-left {
    flex: 1;
}

.queue-banker-name {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 16px;
    color: #3a3025;
    letter-spacing: 2px;
    font-weight: bold;
}

.queue-banker-title {
    font-size: 10px;
    color: #6a5a4a;
    letter-spacing: 1px;
    margin-top: 3px;
}

.queue-photo-box {
    width: 50px;
    height: 60px;
    background: #e0d8c8;
    border: 2px solid #8a7a65;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #7a6a5a;
    text-align: center;
}

.queue-status-section {
    background: rgba(0,0,0,0.05);
    border: 1px solid #a89a80;
    padding: 10px;
    margin-bottom: 15px;
}

.queue-status-label {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 9px;
    color: #6a5a4a;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.queue-status-text {
    font-size: 11px;
    color: #3a3025;
    line-height: 1.5;
}

.queue-counter-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.queue-counter-box,
.queue-time-box {
    background: rgba(0,0,0,0.08);
    border: 2px solid #a89a80;
    padding: 15px;
    text-align: center;
}

.queue-counter-label,
.queue-time-label {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 9px;
    color: #6a5a4a;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.queue-counter-number,
.queue-time-number {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 32px;
    color: #3a3025;
    font-weight: bold;
    transition: all 0.2s ease;
}

.queue-counter-number.changing {
    transform: scale(1.2);
    color: #8B0000;
}

.queue-time-number.time-changed {
    transform: scale(1.1);
    color: #B8860B;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

/* Services Section - Grid of service categories */
.services-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #8a7a65;
    width: 100%;
    box-sizing: border-box;
}

.services-header {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    color: #3a3025;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.services-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.service-category {
    background: rgba(0,0,0,0.05);
    border: 1px solid #8a7a65;
    padding: 10px;
    box-sizing: border-box;
}

.category-title {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    color: #3a3025;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 1px solid #8a7a65;
    padding-bottom: 5px;
}

.service-btn {
    width: 100%;
    background: #d4cbb8;
    border: 2px solid #8a7a65;
    padding: 8px 6px;
    margin-bottom: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: #3a3025;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
}

.service-btn:last-child {
    margin-bottom: 0;
}

.service-btn:hover {
    background: #e4dbc8;
    border-color: #6a5a4a;
    transform: translateX(2px);
}

.service-btn:active {
    background: #c4b8a0;
}

.service-icon {
    font-size: 12px;
    width: 16px;
    display: inline-block;
    flex-shrink: 0;
}

/* Service Content Panel - Appears below services */
.service-content-panel {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0,0,0,0.03);
    border: 2px solid #8a7a65;
    border-top: 4px solid #6a5a4a;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Service Content */
.service-content {
    font-family: 'Courier New', Courier, monospace;
    width: 100%;
    box-sizing: border-box;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #8a7a65;
}

.service-icon-large {
    font-size: 32px;
    flex-shrink: 0;
}

.service-title {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #3a3025;
    letter-spacing: 2px;
}

.service-subtitle {
    font-size: 10px;
    color: #6a5a4a;
    margin-top: 3px;
}

.service-body {
    font-size: 11px;
    color: #3a3025;
}

/* Card/Loan/SafeBox Options - Multiple specificity */
#serviceContentPanel .card-option,
#serviceContentPanel .loan-option,
#serviceContentPanel .safebox-option,
.service-content-panel .card-option,
.service-content-panel .loan-option,
.service-content-panel .safebox-option,
.service-body .card-option,
.service-body .loan-option,
.service-body .safebox-option,
.card-option,
.loan-option,
.safebox-option {
    background: rgba(0,0,0,0.05) !important;
    border: 2px solid #8a7a65 !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    display: block !important;
}

.card-option.locked,
.loan-option.locked {
    opacity: 0.6;
    background: rgba(0,0,0,0.02);
}

#serviceContentPanel .card-option-header,
#serviceContentPanel .loan-header,
#serviceContentPanel .safebox-header,
.card-option-header,
.loan-header,
.safebox-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.card-name,
.loan-name,
.safebox-name {
    font-weight: bold;
    font-size: 12px;
}

.card-limit,
.loan-amount,
.safebox-price {
    font-size: 11px;
    color: #6a5a4a;
}

#serviceContentPanel .card-details,
#serviceContentPanel .loan-terms,
#serviceContentPanel .safebox-details,
.card-details,
.loan-terms,
.safebox-details {
    font-size: 10px !important;
    color: #6a5a4a !important;
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
    display: block !important;
}

#serviceContentPanel .card-actions,
#serviceContentPanel .loan-actions,
.card-actions,
.loan-actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 10px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.status-active {
    color: #2d5016;
    font-weight: bold;
    font-size: 10px;
}

.approval-chance {
    font-size: 10px;
    color: #6a5a4a;
}

/* Requirements */
#serviceContentPanel .card-requirements,
#serviceContentPanel .loan-requirements,
.card-requirements,
.loan-requirements {
    margin: 8px 0 !important;
    padding: 8px !important;
    background: rgba(255,255,255,0.3) !important;
    border-left: 3px solid #8a7a65 !important;
    display: block !important;
}

.req {
    font-size: 9px;
    margin: 3px 0;
    line-height: 1.4;
}

.req-met {
    color: #2d5016;
}

.req-unmet {
    color: #8B0000;
}

/* Transactions & Documents */
.transaction-item,
.document-item {
    background: rgba(0,0,0,0.05);
    border: 1px solid #8a7a65;
    padding: 10px;
    margin-bottom: 8px;
    box-sizing: border-box;
    width: 100%;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 10px;
    flex-wrap: wrap;
    gap: 5px;
}

.transaction-date {
    color: #6a5a4a;
}

.transaction-amount {
    font-weight: bold;
}

.transaction-amount.negative {
    color: #8B0000;
}

.transaction-merchant {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 8px;
}

.transaction-actions {
    margin-top: 8px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.document-name {
    font-size: 11px;
    flex: 1;
}

/* Info Box */
.info-box {
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid #8a7a65;
    border-left: 4px solid #8a7a65;
    padding: 10px;
    font-size: 10px;
    color: #3a3025;
    margin-bottom: 12px;
    line-height: 1.5;
    box-sizing: border-box;
}

/* Input Sections */
.input-section {
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.input-label {
    display: block;
    font-size: 10px;
    font-weight: bold;
    color: #3a3025;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.service-input {
    width: 100%;
    padding: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    background: #e4dbc8;
    border: 2px solid #8a7a65;
    color: #3a3025;
    box-sizing: border-box;
}

.service-input:focus {
    outline: none;
    border-color: #6a5a4a;
    background: #f4ebd8;
}

/* Quick Amount Buttons */
.quick-amounts {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.quick-amount-btn {
    flex: 1;
    min-width: 60px;
    padding: 6px 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    background: #d4cbb8;
    border: 2px solid #8a7a65;
    color: #3a3025;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.quick-amount-btn:hover {
    background: #e4dbc8;
    border-color: #6a5a4a;
}

/* Action Buttons */
.service-action-btn {
    padding: 6px 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    background: #d4cbb8;
    border: 2px solid #8a7a65;
    color: #3a3025;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.service-action-btn:hover {
    background: #e4dbc8;
    border-color: #6a5a4a;
}

.service-action-btn.primary {
    background: #4a7c59;
    border-color: #2d5016;
    color: #fff;
    font-weight: bold;
}

.service-action-btn.primary:hover {
    background: #5a8c69;
}

.service-action-btn.bribe {
    background: #8B0000;
    border-color: #5a0000;
    color: #fff;
}

.service-action-btn.bribe:hover {
    background: #9B1010;
}

.service-action-btn.small {
    padding: 4px 8px;
    font-size: 9px;
}

.service-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Credit Score Display */
.credit-score-display {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.05);
    border: 3px solid #8a7a65;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.credit-score-label {
    font-size: 10px;
    color: #6a5a4a;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.credit-score-number {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 48px;
    font-weight: bold;
    color: #3a3025;
    line-height: 1;
}

.credit-score-rating {
    font-size: 14px;
    font-weight: bold;
    color: #4a7c59;
    margin-top: 5px;
    letter-spacing: 3px;
}

/* Credit Factors */
.credit-factors {
    background: rgba(0,0,0,0.05);
    border: 1px solid #8a7a65;
    padding: 12px;
    box-sizing: border-box;
}

.credit-factor {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(138, 122, 101, 0.3);
    font-size: 10px;
    gap: 10px;
}

.credit-factor:last-child {
    border-bottom: none;
}

.factor-label {
    color: #3a3025;
}

.factor-value.good {
    color: #2d5016;
    font-weight: bold;
}

.factor-value.warning {
    color: #B8860B;
    font-weight: bold;
}

.factor-value.bad {
    color: #8B0000;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 900px) {
    .services-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-categories {
        grid-template-columns: 1fr;
    }
    
    .quick-amounts {
        flex-direction: column;
    }
    
    .quick-amount-btn {
        width: 100%;
    }
}

/* Queue Progress Bars */
.queue-progress-section {
    margin-bottom: 15px;
}

.queue-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #5a4a3a;
    margin-bottom: 8px;
}

.queue-progress-bar {
    position: relative;
}

.queue-progress-bar-bg {
    height: 20px;
    background: rgba(0,0,0,0.15);
    border: 2px solid #8a7a65;
    position: relative;
    overflow: hidden;
}

.queue-progress-bar-fill {
    height: 100%;
    background: #4a7c59;
    width: 0%;
    transition: none;
}

.queue-progress-ticks {
    display: flex;
    gap: 2px;
    margin-top: 5px;
}

.queue-tick {
    flex: 1;
    height: 8px;
    background: rgba(0,0,0,0.1);
    border: 1px solid #a89a80;
    transition: background 0.3s ease;
}

.queue-tick.completed {
    background: #4a7c59;
    border-color: #3a6a49;
}

.queue-waiting-text {
    text-align: center;
    font-size: 12px;
    color: #5a4a3a;
    margin-bottom: 15px;
    font-style: italic;
}

.queue-actions {
    text-align: center;
}

.queue-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 10px;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 1;
}

/* Deposit/Withdraw UI Improvements */
.money-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.money-status-item {
    background: rgba(138, 122, 101, 0.2);
    border: 1px solid #8a7a65;
    padding: 10px;
    border-radius: 3px;
}

.money-label {
    font-size: 10px;
    color: #5a4a3a;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.money-amount {
    font-size: 18px;
    font-weight: bold;
    color: #2a1a0a;
}

.banker-info-panel {
    background: linear-gradient(135deg, #8a7a65 0%, #7a6a55 100%);
    border: 2px solid #6a5a45;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.banker-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: bold;
    color: #f5f1e8;
}

.banker-fee-badge {
    background: #ffaa00;
    color: #2a1a0a;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.banker-info-stats {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #e5d5c0;
}

.banker-info-stats span {
    display: flex;
    align-items: center;
}

.banker-info-stats strong {
    margin-left: 4px;
    color: #fff;
}

.deposit-preview {
    background: rgba(58, 106, 73, 0.15);
    border: 2px solid #3a6a49;
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
    color: #2a1a0a;
}

.preview-row.fee-row {
    border-top: 1px dashed #8a7a65;
    border-bottom: 1px dashed #8a7a65;
}

.preview-row.total-row {
    font-size: 13px;
    padding-top: 8px;
}

.preview-row.result-row {
    border-top: 2px solid #3a6a49;
    padding-top: 8px;
    margin-top: 4px;
    font-weight: bold;
    color: #3a6a49;
}

/* Risk Meter */
.banker-risk-bar {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.risk-label {
    font-size: 10px;
    color: #e5d5c0;
    margin-bottom: 5px;
}

.risk-meter {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.4);
}

.risk-fill {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
}

.risk-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
}

/* Banker Detail Stats Grid */
.bank-detail-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.bank-detail-stat-item {
    background: rgba(138, 122, 101, 0.3);
    border: 1px solid #8a7a65;
    padding: 10px;
    text-align: center;
    border-radius: 3px;
}

.bank-detail-stat-value-large {
    font-size: 20px;
    font-weight: bold;
    color: #2a1a0a;
    margin-top: 5px;
}

.bank-detail-skill {
    font-size: 11px;
    color: #5a4a3a;
    margin-top: 5px;
    font-style: italic;
}

.bank-detail-stat-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
}

.bank-detail-risk-breakdown {
    background: rgba(138, 122, 101, 0.2);
    border: 1px solid #8a7a65;
    padding: 10px;
    margin: 10px 0;
    border-radius: 3px;
}

.risk-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 12px;
    color: #2a1a0a;
}

.risk-breakdown-row:first-child {
    border-bottom: 1px dashed #8a7a65;
}

/* Banker Stats Line in Conversation */
.banker-stats-line {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(138, 122, 101, 0.3);
    font-size: 10px;
    color: #6a5a4a;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.banker-stats-line span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.banker-stats-line strong {
    color: #2a1a0a;
}

/* Banker Badges Line */
.banker-badges-line {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(138, 122, 101, 0.3);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Banker Stat Badges */
.banker-stat-badge {
    display: inline-block;
    background: #c9b896;
    border: 2px solid #8a7a65;
    padding: 5px 12px;
    border-radius: 2px;
    font-size: 11px;
    font-family: 'Courier New', Courier, monospace;
    color: #2a1a0a;
    cursor: help;
    transition: all 0.2s ease;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    position: relative;
}

.banker-stat-badge:hover {
    background: #d4c2a1;
    transform: translateY(-2px);
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    border-color: #6a5a45;
}

.banker-stat-badge.special-skill {
    background: linear-gradient(135deg, #f4e4bc, #d9c891);
    border-color: #b8985f;
    font-weight: bold;
}

.banker-stat-badge.special-skill:hover {
    background: linear-gradient(135deg, #f9eac7, #e0d09f);
}

/* Bank-styled Tooltips */
.banker-stat-badge::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #1a1714;
    color: #c9b896;
    border: 2px solid #8a7a65;
    border-radius: 2px;
    font-size: 11px;
    min-width: 180px;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.5);
    line-height: 1.5;
}

.banker-stat-badge::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    border: 7px solid transparent;
    border-top-color: #8a7a65;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.banker-stat-badge:hover::after,
.banker-stat-badge:hover::before {
    opacity: 1;
}

/* Session Stats in Header */
.session-stats {
    font-size: 10px;
    color: #6a5a4a;
    padding: 4px 0;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.session-stats .stat-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.session-stats strong {
    font-weight: bold;
}

/* Heat Indicator */
.heat-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border: 1px solid rgba(138, 122, 101, 0.4);
    border-radius: 2px;
    cursor: help;
    position: relative;
    transition: all 0.2s ease;
}

.heat-indicator:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(138, 122, 101, 0.6);
}

.heat-label {
    font-weight: bold;
    color: #5a4a3a;
    letter-spacing: 1px;
}

.heat-bar {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Bank-styled tooltip for heat indicator */
.heat-indicator::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #1a1714;
    color: #c9b896;
    border: 2px solid #8a7a65;
    border-radius: 2px;
    font-size: 11px;
    min-width: 180px;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.5);
    line-height: 1.5;
}

.heat-indicator::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    border: 7px solid transparent;
    border-top-color: #8a7a65;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.heat-indicator:hover::after,
.heat-indicator:hover::before {
    opacity: 1;
}

/* Special Skill Button */
.special-skill-btn {
    background: linear-gradient(135deg, #f4e4bc, #d9c891);
    border: 2px solid #b8985f;
    padding: 6px 16px;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'Courier New', Courier, monospace;
    color: #2a1a0a;
    cursor: help;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    position: relative;
}

.special-skill-btn:hover {
    background: linear-gradient(135deg, #f9eac7, #e0d09f);
    transform: translateY(-2px);
    box-shadow: 3px 3px 8px rgba(0,0,0,0.4);
}

/* Tooltip for special skill button */
.special-skill-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #1a1714;
    color: #c9b896;
    border: 2px solid #8a7a65;
    border-radius: 2px;
    font-size: 11px;
    min-width: 200px;
    max-width: 320px;
    white-space: normal;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.5);
    line-height: 1.5;
    font-weight: normal;
}

.special-skill-btn::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    border: 7px solid transparent;
    border-top-color: #8a7a65;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.special-skill-btn:hover::after,
.special-skill-btn:hover::before {
    opacity: 1;
}

/* ===== DISPUTES MODAL ===== */
.dispute-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dispute-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.dispute-modal-content {
    position: relative;
    z-index: 2;
    background: #c9b896;
    border: 2px solid #8a7a65;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.6);
    font-family: 'Courier New', Courier, monospace;
}

.dispute-modal-header {
    background: #8a7a65;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #6a5a45;
}

.dispute-modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #1a1714;
    letter-spacing: 1px;
}

.dispute-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #1a1714;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.dispute-modal-close:hover {
    transform: scale(1.2);
}

.dispute-modal-body {
    padding: 20px;
}

.dispute-detail-box {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(138, 122, 101, 0.4);
    padding: 15px;
    margin-bottom: 20px;
}

.dispute-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
}

.dispute-detail-label {
    color: #5a4a3a;
    font-weight: bold;
}

.dispute-detail-value {
    color: #1a1714;
    font-weight: bold;
}

.dispute-info-panel {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(138, 122, 101, 0.4);
    padding: 15px;
    margin-top: 15px;
}

.dispute-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
    color: #2a1a0a;
}

.dispute-info-row.fee-row {
    border-top: 1px dashed rgba(138, 122, 101, 0.3);
    margin-top: 8px;
    padding-top: 12px;
}

.dispute-info-row.total-row {
    border-top: 2px solid rgba(138, 122, 101, 0.5);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 13px;
}

.dispute-modal-footer {
    padding: 15px 20px;
    border-top: 2px solid #8a7a65;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.05);
}

.warning-box {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid #FFA500;
    padding: 12px;
    margin-top: 15px;
    font-size: 11px;
    color: #2a1a0a;
    line-height: 1.5;
}

/* Transaction items in disputes list */
.transaction-item {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(138, 122, 101, 0.4);
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(138, 122, 101, 0.6);
}

.transaction-item.disputed {
    background: rgba(255, 165, 0, 0.15);
    border-color: #FFA500;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.transaction-date {
    font-size: 11px;
    color: #5a4a3a;
    font-weight: bold;
}

.transaction-amount {
    font-size: 13px;
    font-weight: bold;
}

.transaction-amount.negative {
    color: #c62828;
}

.transaction-merchant {
    font-size: 12px;
    color: #2a1a0a;
    margin-bottom: 8px;
}

.transaction-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.dispute-status {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 2px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.dispute-status.pending {
    background: #FFA500;
    color: #1a1714;
}

.dispute-status.resolved {
    background: #4CAF50;
    color: white;
}

.dispute-status.denied {
    background: #c62828;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6a5a45;
    font-style: italic;
    font-size: 12px;
}

.transactions-list {
    margin: 10px 0;
}

/* Disabled button state */
.service-action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #8a7a65;
}

.service-action-btn.disabled:hover {
    transform: none;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Dispute Transactions Box - Multiple specificity levels */
#serviceContentPanel .dispute-transactions-box,
.service-content-panel .dispute-transactions-box,
.service-body .dispute-transactions-box,
.dispute-transactions-box {
    background: #e4dbc8 !important;
    border: 2px solid #8a7a65 !important;
    padding: 12px !important;
    margin: 15px 0 !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1) !important;
    display: block !important;
}

#serviceContentPanel .dispute-tx-row,
.service-content-panel .dispute-tx-row,
.service-body .dispute-tx-row,
.dispute-tx-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 10px !important;
    margin-bottom: 6px !important;
    background: #c9b896 !important;
    border: 1px solid #8a7a65 !important;
    font-size: 11px !important;
    font-family: 'Courier New', Courier, monospace !important;
    transition: all 0.2s ease !important;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2) !important;
}

.dispute-tx-row:hover {
    background: #d4c2a1;
    border-color: #6a5a45;
    transform: translateX(2px);
}

.dispute-tx-row.disputed {
    background: rgba(255, 165, 0, 0.3);
    border-color: #FFA500;
    opacity: 0.7;
}

.dispute-tx-date {
    font-weight: bold;
    color: #3a3025;
    min-width: 70px;
}

.dispute-tx-desc {
    flex: 1;
    color: #2a1a0a;
    padding: 0 10px;
}

.dispute-tx-amount {
    font-weight: bold;
    color: #8B0000;
    min-width: 80px;
    text-align: right;
}

.dispute-status-inline {
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 2px;
    font-weight: bold;
    letter-spacing: 0.5px;
    background: #FFA500;
    color: #1a1714;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Dispute Preview Info */
#serviceContentPanel .dispute-preview-info,
.service-content-panel .dispute-preview-info,
.service-body .dispute-preview-info,
.dispute-preview-info {
    background: rgba(139, 69, 19, 0.1) !important;
    border: 1px solid #8a7a65 !important;
    border-left: 4px solid #FFA500 !important;
    padding: 12px 15px !important;
    margin: 15px 0 !important;
    font-size: 11px !important;
    color: #2a1a0a !important;
    line-height: 1.6 !important;
    font-style: italic !important;
    display: block !important;
}

#serviceContentPanel .dispute-preview-row,
.service-content-panel .dispute-preview-row,
.service-body .dispute-preview-row,
.dispute-preview-row {
    font-family: 'Courier New', Courier, monospace !important;
}

/* Banker Service Info */
#serviceContentPanel .banker-service-info,
.service-content-panel .banker-service-info,
.service-body .banker-service-info,
.banker-service-info {
    background: rgba(139, 69, 19, 0.15) !important;
    border: 2px solid #8a7a65 !important;
    padding: 12px 15px !important;
    margin: 15px 0 !important;
    font-size: 11px !important;
    color: #2a1a0a !important;
    line-height: 1.7 !important;
    font-family: 'Courier New', Courier, monospace !important;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2) !important;
    display: block !important;
}

/* Ensure dispute select inputs are styled properly */
#disputeTransactionSelect,
#disputeReasonSelect {
    width: 100% !important;
    padding: 8px !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 12px !important;
    background: #e4dbc8 !important;
    border: 2px solid #8a7a65 !important;
    color: #3a3025 !important;
    box-sizing: border-box !important;
    display: block !important;
}

#disputeTransactionSelect:focus,
#disputeReasonSelect:focus {
    outline: none !important;
    border-color: #6a5a4a !important;
    background: #f4ebd8 !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   CARD SERVICES STYLING
   ═══════════════════════════════════════════════════════════════════════ */

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* Card item */
.card-item {
    background: #f5f0e6;
    border: 2px solid #c4b8a0;
    padding: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-item:hover {
    border-color: #8a7a65;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.card-item.locked {
    opacity: 0.6;
    cursor: default;
}

.card-item.locked:hover {
    transform: none;
    box-shadow: none;
}

.card-item.owned {
    border-color: #4a6a4a;
}

.card-item.owned::after {
    content: 'OWNED';
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 8px;
    color: #4a6a4a;
    border: 1px solid #4a6a4a;
    padding: 2px 6px;
    letter-spacing: 1px;
}

/* Card visual */
.card-visual {
    height: 85px;
    border-radius: 6px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.card-visual.basic {
    background: linear-gradient(135deg, #8a8a8a 0%, #6a6a6a 50%, #5a5a5a 100%);
}

.card-visual.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 50%, #909090 100%);
}

.card-visual.gold {
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 50%, #B8960F 100%);
}

.card-visual.platinum {
    background: linear-gradient(135deg, #E5E4E2 0%, #A9A9A9 30%, #E5E4E2 50%, #A9A9A9 70%, #E5E4E2 100%);
}

.card-visual.black {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border: 1px solid #3a3a3a;
}

.card-visual .bank-logo {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    position: absolute;
    top: 10px;
    left: 12px;
}

.card-visual.basic .bank-logo,
.card-visual.silver .bank-logo {
    color: #3a3a3a;
}

.card-visual.gold .bank-logo {
    color: #5a4a1a;
}

.card-visual.platinum .bank-logo {
    color: #4a4a4a;
}

.card-visual.black .bank-logo {
    color: #D4AF37;
}

.card-visual .card-chip {
    width: 28px;
    height: 22px;
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
    border-radius: 3px;
    position: absolute;
    left: 12px;
    bottom: 10px;
}

.card-visual.black .card-chip {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border: 1px solid #D4AF37;
}

.card-visual .tier-name {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 2px;
}

.card-visual.basic .tier-name {
    color: #e0e0e0;
}

.card-visual.silver .tier-name {
    color: #f5f5f5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.card-visual.gold .tier-name {
    color: #fff8dc;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.card-visual.platinum .tier-name {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.card-visual.black .tier-name {
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(212,175,55,0.5);
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 20px;
    filter: grayscale(1);
}

/* Card info */
.card-name {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 12px;
    color: #3a3025;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.card-tier {
    font-size: 9px;
    color: #7a6a5a;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Features */
.card-features {
    border-top: 1px dashed #c4b8a0;
    padding-top: 10px;
    margin-bottom: 10px;
}

.feature-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #4a4035;
    padding: 4px 0;
}

.feature-row .name {
    color: #5a4a3a;
}

.feature-row .value {
    font-family: 'Special Elite', 'Courier New', monospace;
    color: #3a3025;
}

.feature-row.special .name {
    color: #4a5a3a;
}

.feature-row.special .value {
    color: #3a5a3a;
}

/* Requirements */
.card-requirements {
    background: rgba(0,0,0,0.04);
    padding: 10px;
    margin-bottom: 12px;
}

.req-title {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 8px;
    color: #6a5a4a;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.req-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    padding: 3px 0;
}

.req-row .name {
    color: #5a4a3a;
}

.req-row .status {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 2px;
}

.req-row .status.met {
    color: #3a5a3a;
    background: rgba(60,100,60,0.1);
}

.req-row .status.unmet {
    color: #6a3a3a;
    background: rgba(100,60,60,0.1);
}

/* Price */
.card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #c4b8a0;
}

.price-label {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 8px;
    color: #6a5a4a;
    letter-spacing: 1px;
}

.price-value {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 18px;
    color: #4a6a3a;
}

.price-value.expensive {
    color: #7a4a3a;
}

.card-item.owned .card-price {
    display: none;
}

/* Badges */
.card-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 8px;
    padding: 3px 10px;
    letter-spacing: 1px;
    z-index: 1;
}

.card-badge.upgrade {
    background: #5a6a4a;
    color: #e0e8d8;
}

.card-badge.best {
    background: #D4AF37;
    color: #2a2a1a;
}
