/* ==========================================================================
   SmartBank Premium Design System - styles.css
   Vanilla CSS with CSS Variables, HSL Color Model, and Glassmorphism
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-primary: hsl(222, 47%, 7%);
    --bg-card: hsla(223, 47%, 13%, 0.65);
    --bg-card-hover: hsla(223, 47%, 18%, 0.8);
    --border-color: hsla(223, 47%, 30%, 0.25);
    --border-hover: hsla(210, 100%, 56%, 0.4);
    
    --text-main: hsl(210, 40%, 98%);
    --text-muted: hsl(215, 20%, 65%);
    
    --accent-blue: hsl(210, 100%, 56%);
    --accent-blue-rgb: 0, 122, 255;
    --accent-purple: hsl(270, 89%, 65%);
    --accent-green: hsl(145, 80%, 45%);
    --accent-red: hsl(355, 80%, 50%);
    
    --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    --gradient-glow: radial-gradient(circle, rgba(0, 122, 255, 0.15) 0%, rgba(138, 43, 226, 0.05) 50%, transparent 100%);
    
    /* Effects & Shadows */
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px 0 rgba(0, 122, 255, 0.2);
    --blur-strength: blur(16px);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* Background Glowing Elements */
.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.circle-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, hsla(210, 100%, 56%, 0.15) 0%, transparent 70%);
}

.circle-2 {
    bottom: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, hsla(270, 89%, 65%, 0.12) 0%, transparent 70%);
}

/* Layout Elements */
.main-header {
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(22, 28, 45, 0.4);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
    -webkit-text-fill-color: initial;
    color: var(--accent-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    background-color: var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-role {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Card & Glassmorphism Design */
.glassmorphism {
    background: var(--bg-card);
    backdrop-filter: var(--blur-strength);
    -webkit-backdrop-filter: var(--blur-strength);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.card {
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-medium);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow), var(--shadow-soft);
}

/* Buttons */
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background-color: hsla(355, 80%, 50%, 0.2);
    color: var(--accent-red);
    border: 1px solid hsla(355, 80%, 50%, 0.4);
}

.btn-danger:hover {
    background-color: var(--accent-red);
    color: white;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Input Fields */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.3);
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.alert-danger {
    background-color: hsla(355, 80%, 50%, 0.15);
    border: 1px solid var(--accent-red);
    color: hsl(355, 100%, 80%);
}

.alert-success {
    background-color: hsla(145, 80%, 45%, 0.15);
    border: 1px solid var(--accent-green);
    color: hsl(145, 100%, 80%);
}

/* Auth Pages Style */
.auth-page {
    display: flex;
    flex-direction: column;
}

.auth-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.5s ease-out;
}

.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-card p {
    margin-bottom: 2rem;
}

.card-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.link-highlight {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.link-highlight:hover {
    text-decoration: underline;
    color: var(--accent-purple);
}

/* Customer Dashboard Grid */
.dashboard-container {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-section {
    margin-bottom: 2.5rem;
}

.dashboard-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Account Cards */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.account-card {
    background: linear-gradient(135deg, rgba(22, 28, 45, 0.9) 0%, rgba(138, 43, 226, 0.07) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-medium);
    z-index: 0;
}

.account-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.account-card.active {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, rgba(22, 28, 45, 0.9) 0%, rgba(0, 122, 255, 0.08) 100%);
}

.account-card.active::before {
    opacity: 0.03;
}

.account-card > * {
    position: relative;
    z-index: 1;
}

.account-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.account-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.account-balance {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.account-currency {
    font-size: 1rem;
    color: var(--accent-blue);
    font-weight: 600;
}

/* Workspace Layout */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

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

.workspace-item {
    height: 100%;
}

.workspace-item h3 {
    margin-bottom: 0.25rem;
}

.workspace-item p {
    margin-bottom: 1.5rem;
}

/* Table Style */
.table-container {
    display: flex;
    flex-direction: column;
}

.table-scroll {
    overflow-x: auto;
    flex: 1;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table th, .table td {
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table th {
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.table tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.text-right {
    text-align: right !important;
}

.tx-amount-negative {
    color: var(--accent-red);
    font-weight: 600;
}

.tx-amount-positive {
    color: var(--accent-green);
    font-weight: 600;
}

/* Floating Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.chat-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.chat-toggle-icon {
    font-size: 1.2rem;
}

.chat-box {
    position: absolute;
    bottom: 4rem;
    right: 0;
    width: 380px;
    height: 520px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 480px) {
    .chat-box {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.chat-header {
    background-color: rgba(22, 28, 45, 0.9);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.chat-close-btn:hover {
    color: var(--text-main);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.25);
}

.chat-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
}

.chat-placeholder p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Message Bubbles */
.message-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    position: relative;
    animation: bubbleIn 0.3s ease-out;
    word-break: break-word;
}

.message-bubble.user {
    align-self: flex-end;
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 2px;
}

.message-bubble.ai {
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message-bubble.agent {
    align-self: flex-start;
    background-color: hsla(210, 100%, 56%, 0.15);
    color: var(--text-main);
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.message-timestamp {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.25rem;
    text-align: right;
}

.chat-input-area {
    padding: 1rem 1.25rem;
    background-color: rgba(22, 28, 45, 0.9);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--text-main);
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Agent Workspace Layout */
.agent-page {
    display: flex;
    flex-direction: column;
}

.agent-container {
    flex: 1;
    padding: 2rem 5%;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .agent-container {
        grid-template-columns: 1fr;
    }
}

.agent-sidebar {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sessions-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.session-item {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
    background-color: rgba(0, 0, 0, 0.15);
}

.session-item:hover {
    border-color: var(--accent-blue);
    background-color: rgba(0, 0, 0, 0.25);
}

.session-item.active {
    border-color: var(--accent-blue);
    background-color: hsla(210, 100%, 56%, 0.08);
}

.session-item h5 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.session-item p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.agent-chat-area {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.agent-chat-header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(22, 28, 45, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-xs {
    font-size: 0.75rem;
}

.agent-messages-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background-color: rgba(0, 0, 0, 0.15);
}

.agent-chat-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.chat-placeholder-icon {
    font-size: 3rem;
}

.agent-chat-input-area {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-color);
    background-color: rgba(22, 28, 45, 0.5);
    display: flex;
    gap: 1rem;
}

.agent-chat-input-area input {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
}

.agent-chat-input-area input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center !important;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bubbleIn {
    from { opacity: 0; transform: scale(0.9) translateY(5px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================================
   Agentic AI Transfer Confirmation Widgets & System Message Cards
   ========================================================================== */
.transfer-confirm-card {
    background: linear-gradient(135deg, rgba(22, 28, 45, 0.955) 0%, rgba(138, 43, 226, 0.15) 100%);
    border: 1px solid var(--accent-purple);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 0.5rem 0;
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2);
    align-self: flex-start;
    width: 90%;
    max-width: 320px;
    animation: fadeIn 0.4s ease-out;
}

.transfer-confirm-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.transfer-confirm-title i {
    color: var(--accent-purple);
}

.transfer-confirm-item {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.transfer-confirm-item strong {
    color: var(--text-main);
    display: block;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.85rem;
}

.transfer-confirm-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-align: center;
    margin: 0.75rem 0;
}

.transfer-confirm-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-confirm {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-confirm-yes {
    background-color: var(--accent-green);
    color: white;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.btn-confirm-yes:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.5);
}

.btn-confirm-no {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-confirm-no:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Success & Failure System Cards */
.system-status-card {
    border-radius: 12px;
    padding: 1rem;
    margin: 0.5rem 0;
    width: 90%;
    max-width: 320px;
    align-self: flex-start;
    animation: fadeIn 0.4s ease-out;
    font-size: 0.85rem;
}

.system-status-card.success {
    background-color: hsla(145, 80%, 45%, 0.15);
    border: 1px solid var(--accent-green);
    color: hsl(145, 100%, 85%);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.15);
}

.system-status-card.failed {
    background-color: hsla(355, 80%, 50%, 0.15);
    border: 1px solid var(--accent-red);
    color: hsl(355, 100%, 85%);
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.15);
}

.system-status-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Phase 2 Premium Visual Enhancements (Charts, 3D Customizer, typing indicator)
   ========================================================================== */

/* Analytics Grid Layout */
.analytics-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

.analytics-item {
    display: flex;
    flex-direction: column;
}

.charts-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    margin-top: 0.5rem;
}

.chart-wrapper {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-wrapper h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.chart-canvas-holder {
    width: 100%;
    position: relative;
    height: 220px;
}

/* 3D Debit Card Customizer styles */
.customizer-workspace {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}

.debit-card-wrapper {
    perspective: 1000px;
    width: 320px;
    height: 190px;
    margin: 0.5rem 0;
}

.debit-card {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.debit-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 122, 255, 0.1);
}

.card-chip {
    width: 42px;
    height: 32px;
    background: linear-gradient(135deg, #f0c27b 0%, #a87932 100%);
    border-radius: 6px;
    position: absolute;
    top: 3.25rem;
    left: 1.25rem;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4);
}

.card-logo {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.card-number {
    font-family: 'Outfit', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-top: 5.5rem;
    padding-left: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.card-holder {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.card-expiry {
    position: absolute;
    bottom: 1.25rem;
    right: 7.25rem;
    font-family: 'Outfit', monospace;
    font-size: 0.75rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    z-index: 3;
}

.card-type {
    position: absolute;
    bottom: 1.05rem;
    right: 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    z-index: 3;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.25) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
    transition: background 0.05s ease-out;
}

/* Themes classes */
.debit-card.theme-neon-blue {
    background: linear-gradient(135deg, #0575e6 0%, #00f260 100%);
    box-shadow: 0 15px 35px rgba(5, 117, 230, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.debit-card.theme-sunset {
    background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
    box-shadow: 0 15px 35px rgba(241, 39, 17, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.debit-card.theme-metallic-dark {
    background: linear-gradient(135deg, #1f1c2c 0%, #928dab 100%);
    box-shadow: 0 15px 35px rgba(31, 28, 44, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.debit-card.theme-glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.customizer-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme-options {
    display: flex;
    gap: 0.75rem;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.theme-btn:hover {
    transform: scale(1.15);
}

.theme-btn.active {
    border-color: var(--text-main);
    box-shadow: 0 0 12px var(--accent-blue);
    transform: scale(1.1);
}

/* Typing Indicator Animation */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 14px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    animation: fadeIn 0.3s ease-out;
    margin-bottom: 0.5rem;
}

.typing-indicator .dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.4;
    } 
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   Phase 3 Premium Security & 2FA Styles (Switch, SMS Toast, OTP Modal)
   ========================================================================== */

/* 2FA Switch styling */
.security-settings {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.security-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.security-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

/* Premium Switch Button */
.switch-container {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
    border-radius: 34px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.switch-container input:checked + .slider-round {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.4);
}

.switch-container input:checked + .slider-round:before {
    transform: translateX(22px);
}

/* Mock SMS Toast Notification (iOS Style Glassmorphic) */
.mock-sms-toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    background: rgba(22, 28, 45, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.2) inset;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
}

.mock-sms-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.sms-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 114, 255, 0.3);
    flex-shrink: 0;
}

.sms-content {
    flex: 1;
}

.sms-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.sms-app-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--accent-blue);
    letter-spacing: 1px;
}

.sms-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.sms-text {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
}

/* Premium OTP Verification Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 9, 21, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 440px;
    border-radius: 24px;
    padding: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-soft), 0 0 30px rgba(138, 43, 226, 0.1);
    transform: translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-btn:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

.modal-body {
    text-align: center;
    margin-bottom: 2rem;
}

.warning-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 75, 92, 0.15);
    border: 1px solid rgba(255, 75, 92, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 20px rgba(255, 75, 92, 0.1);
}

.warning-icon {
    font-size: 2rem;
}

.otp-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.otp-input-field {
    width: 100%;
    max-width: 220px;
    letter-spacing: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    font-family: 'Outfit', monospace;
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.04);
}

.otp-input-field:focus {
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.3);
}

.modal-footer {
    width: 100%;
}

.animate-pulse-slow {
    animation: pulseSlow 3s infinite ease-in-out;
}

@keyframes pulseSlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

/* ==========================================================================
   Phase 4 Agent Cockpit & AI Co-Pilot Styles
   ========================================================================== */

.agent-container-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.agent-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: var(--transition-medium);
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.metric-icon {
    font-size: 1.8rem;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.metric-icon.resolved {
    background: linear-gradient(135deg, #00f260 0%, #0575e6 100%);
}

.metric-icon.time {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
}

.metric-icon.csat {
    background: linear-gradient(135deg, #8a2be2 0%, #4a00e0 100%);
}

.metric-details {
    flex: 1;
}

.metric-details h5 {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

/* Status selection */
.status-card {
    position: relative;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    flex-shrink: 0;
}

.status-dot.online {
    color: var(--accent-green);
    background-color: var(--accent-green);
}

.status-dot.busy {
    color: var(--accent-purple);
    background-color: var(--accent-purple);
}

.status-dot.break {
    color: var(--accent-red);
    background-color: var(--accent-red);
}

.metric-status-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
}

.metric-status-select:focus {
    border-color: var(--accent-blue);
    background: rgba(22, 28, 45, 0.8);
}

/* AI Co-Pilot Recommendation box */
.ai-copilot-container {
    background: rgba(138, 43, 226, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin: 0.5rem 1.25rem;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.05), inset 0 0 1px rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.35s ease-out;
}

.copilot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.copilot-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--accent-purple);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ai-suggestion-text {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 0.6rem;
    font-style: italic;
}

.copilot-actions {
    display: flex;
    justify-content: flex-end;
}

/* Transfer Selector */
.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.transfer-control {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

.transfer-dept-select {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    max-width: 140px;
}

.transfer-dept-select option {
    background-color: var(--bg-primary);
    color: var(--text-main);
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 6px;
    font-weight: 600;
}

/* ==========================================================================
   Split Login Layout & Canlı Piyasalar (index.html)
   ========================================================================== */
.auth-wrapper-split {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    justify-content: center;
    max-width: 950px;
    width: 100%;
    margin: 0 auto;
}

.auth-forms-column {
    flex: 1;
    max-width: 420px;
}

.market-rates-column {
    flex: 1;
    max-width: 480px;
    background: rgba(22, 28, 45, 0.45);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glow);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.market-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(76, 175, 80, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

.market-rates-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    transition: var(--transition-fast);
}

.rate-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.rate-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.rate-symbol-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rate-symbol-badge.usd { color: #f5af19; background: rgba(245, 175, 25, 0.1); border-color: rgba(245, 175, 25, 0.2); }
.rate-symbol-badge.eur { color: #0575e6; background: rgba(5, 117, 230, 0.1); border-color: rgba(5, 117, 230, 0.2); }
.rate-symbol-badge.altin { color: #e5c158; background: rgba(229, 193, 88, 0.1); border-color: rgba(229, 193, 88, 0.2); }
.rate-symbol-badge.gumus { color: #cfd9df; background: rgba(207, 217, 223, 0.1); border-color: rgba(207, 217, 223, 0.2); }

.rate-name-wrapper {
    display: flex;
    flex-direction: column;
}

.rate-code {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.rate-name {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.rate-prices {
    display: flex;
    gap: 1.5rem;
    text-align: right;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-val {
    font-family: monospace;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
    padding: 0.1rem 0.25rem;
    border-radius: 4px;
    transition: background-color 0.4s ease;
}

.rate-trend {
    width: 65px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.trend-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.trend-badge.up {
    color: var(--accent-green);
    background: rgba(76, 175, 80, 0.1);
}

.trend-badge.down {
    color: var(--accent-red);
    background: rgba(244, 67, 54, 0.1);
}

.market-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fluctuation Flash Animations */
@keyframes flashGreen {
    0% { background-color: rgba(76, 175, 80, 0.4); }
    100% { background-color: transparent; }
}

@keyframes flashRed {
    0% { background-color: rgba(244, 67, 54, 0.4); }
    100% { background-color: transparent; }
}

.flash-green {
    animation: flashGreen 0.8s ease-out;
}

.flash-red {
    animation: flashRed 0.8s ease-out;
}

@media (max-width: 820px) {
    .auth-wrapper-split {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .market-rates-column {
        width: 100%;
        max-width: 420px;
    }
}

/* ==========================================================================
   Accounts Flex Header & Kredi Kartı UI (dashboard.html)
   ========================================================================== */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-header-flex h3 {
    margin: 0;
}

/* Credit Card Card styling */
.account-card.credit {
    background: linear-gradient(135deg, #181d28 0%, #0d1117 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.account-card.credit::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.credit-limit-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.5rem;
}

/* ==========================================================================
   Credit Card Statement (Ekstre) Modal Styles
   ========================================================================== */
.statement-modal-content {
    max-width: 650px;
    width: 90%;
}

.statement-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.summary-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.summary-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
}

#val-stmt-debt {
    color: var(--accent-red);
}

.statement-payment-status {
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.statement-payment-status.unpaid {
    background-color: rgba(244, 67, 54, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.statement-payment-status.paid {
    background-color: rgba(76, 175, 80, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Simulation Area styling */
.simulation-zone {
    background: rgba(245, 175, 25, 0.04);
    border: 1px solid rgba(245, 175, 25, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.simulation-zone h4 {
    margin: 0 0 0.5rem;
    color: #f5af19;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.simulation-zone p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 1rem;
}

.statement-section-title {
    border-left: 3px solid var(--accent-blue);
    padding-left: 0.5rem;
    margin: 1.5rem 0 0.75rem;
}

.statement-section-title h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-row-flex {
    display: flex;
    gap: 1rem;
}

.flex-1 {
    flex: 1;
}

.pay-preset-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pay-preset-buttons button {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pay-preset-buttons button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 580px) {
    .statement-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row-flex {
        flex-direction: column;
        gap: 0;
    }
}

/* Card type badge and CVV styles for 3D card preview */
.card-type-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fff;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.card-cvv {
    position: absolute;
    bottom: 1.25rem;
    right: 4.25rem;
    font-family: 'Outfit', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
}

/* Account type selector cards inside modal */
.account-type-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.acc-type-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.acc-type-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.acc-type-card.active {
    background: rgba(138, 43, 226, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.25);
}

.acc-type-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.acc-type-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.acc-type-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Specific styling for the card container lists */
.account-card.credit {
    border-left: 4px solid #8a2be2;
}

/* Explicit View Statement button on credit cards */
.btn-stmt-view {
    margin-top: 0.75rem !important;
    background: rgba(138, 43, 226, 0.15) !important;
    border: 1px solid rgba(138, 43, 226, 0.3) !important;
    color: #fff !important;
    transition: all 0.2s ease !important;
}

.btn-stmt-view:hover {
    background: rgba(138, 43, 226, 0.35) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.4) !important;
}

/* Tabs & QR Simulators */
.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
}
.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}
.tab-btn.active {
    background: rgba(138, 43, 226, 0.15) !important;
    border: 1px solid rgba(138, 43, 226, 0.3) !important;
    color: var(--accent-color) !important;
}
.tab-content.hidden {
    display: none !important;
}
@keyframes qrScan {
    0% { top: 15%; }
    50% { top: 80%; }
    100% { top: 15%; }
}

/* 3D Double Sided Flip Card Mockup */
.debit-card-wrapper {
    perspective: 1000px;
    width: 320px;
    height: 190px;
    margin: 0.5rem 0;
}

.debit-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Hover or clicked (.flipped) triggers flip */
.debit-card-wrapper:hover .debit-card-inner,
.debit-card-wrapper.flipped .debit-card-inner {
    transform: rotateY(180deg);
}

.debit-card.card-front,
.debit-card.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.debit-card.card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.debit-card.card-back {
    transform: rotateY(180deg);
    z-index: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #111 0%, #333 100%);
}

/* Specific elements on card back */
.card-back-stripe {
    background: #111;
    height: 38px;
    width: 100%;
    margin-top: 1.25rem;
}

.card-back-signature-container {
    padding: 0 1.25rem;
    margin-top: 0.75rem;
}

.card-back-signature-title {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.card-back-signature-panel {
    background: rgba(255, 255, 255, 0.85);
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
}

.card-back-cvv {
    color: #111;
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: bold;
    font-style: italic;
    letter-spacing: 1px;
}

.card-back-info {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.35);
    padding: 0 1.25rem;
    line-height: 1.3;
}

.card-back-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 1.25rem 1rem 1.25rem;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: hsla(223, 47%, 13%, 0.95);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
}

.sidebar:not(.hidden) {
    transform: translateX(0);
}

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

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.sidebar-content {
    padding: 1.5rem;
}

.sidebar-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.sidebar-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-green);
    margin: 0 0 0.5rem 0;
}

/* Custom Operations Tabs & Modal Animations */
.operations-tabs button {
    border: none !important;
    outline: none !important;
}

.operations-tabs button.active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.op-tab-content {
    animation: fadeIn 0.4s ease;
}

.op-tab-content.hidden {
    display: none !important;
}

.op-tab-btn {
    border: none !important;
    outline: none !important;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   MOBILE RESPONSIVE — Kapsamlı Mobil Uyumluluk
   ========================================================================== */

/* --- Tablet (max 768px) --- */
@media (max-width: 768px) {

    /* Header */
    .main-header {
        padding: 0.9rem 4%;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.15rem;
    }

    .logo-icon {
        font-size: 1.4rem;
    }

    .header-actions {
        gap: 0.4rem;
    }

    .user-badge {
        display: none; /* Mobilde kullanıcı adını gizle, boşluk kazan */
    }

    .btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }

    /* Dashboard ana container */
    .dashboard-container {
        padding: 1rem 4%;
    }

    /* Tab Navigasyon Barı */
    .tabs-nav-bar {
        gap: 0.3rem !important;
        padding-bottom: 0.5rem !important;
    }

    .tab-btn {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.72rem !important;
        border-radius: 6px;
        white-space: nowrap;
    }

    /* Hesap Kartları Grid */
    .accounts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .account-balance {
        font-size: 1.6rem;
    }

    /* Workspace Grid (Transfer + Form yan yana) */
    .workspace-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Dashboard Section başlıkları */
    .dashboard-section h3 {
        font-size: 1.15rem;
    }

    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Modal */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 1.5rem 1.25rem !important;
        border-radius: 12px;
        margin: 0 auto;
    }

    .statement-modal-content {
        width: 95%;
        max-width: 95%;
    }

    /* Statement summary grid: 2 kolon */
    .statement-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Kredi Kartı Önizleme - taşmaması için ölçekle */
    .debit-card-wrapper {
        width: 100%;
        max-width: 300px;
        height: 175px;
    }

    /* Forex / Alım Satım Workspace */
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    /* Auth Sayfası */
    .auth-card h2 {
        font-size: 1.6rem;
    }

    /* Chat widget */
    .chat-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .chat-toggle {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .chat-box {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 92dvh;
        border-radius: 16px 16px 0 0;
    }

    /* Tablo: yatay kaydırma */
    .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        font-size: 0.8rem;
        min-width: 480px;
    }

    .table th, .table td {
        padding: 0.5rem 0.6rem;
    }

    /* Form row yan yana → alt alta */
    .form-row-flex {
        flex-direction: column;
        gap: 0;
    }

    /* Agent Container */
    .agent-container {
        grid-template-columns: 1fr;
    }

    .agent-sidebar {
        height: auto;
        max-height: 35vh;
    }

    .agent-chat-area {
        height: calc(100vh - 300px);
    }

    /* Genel card padding küçült */
    .card {
        padding: 1.25rem;
    }

    /* Mock SMS Toast */
    .mock-sms-toast {
        left: 1rem;
        right: 1rem;
        top: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* --- Küçük Telefon (max 480px) --- */
@media (max-width: 480px) {

    body {
        font-size: 0.9rem;
    }

    .main-header {
        padding: 0.75rem 3.5%;
    }

    .logo {
        font-size: 1rem;
    }

    .btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.75rem;
    }

    /* Tab butonlarını daha da küçült */
    .tab-btn {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.65rem !important;
    }

    .dashboard-container {
        padding: 0.75rem 3.5%;
    }

    .account-balance {
        font-size: 1.35rem;
    }

    .account-card {
        padding: 1.1rem;
    }

    .dashboard-section h3 {
        font-size: 1rem;
    }

    /* Auth card */
    .auth-card {
        padding: 1.5rem 1rem;
    }

    .auth-card h2 {
        font-size: 1.4rem;
    }

    /* Kredi kartı önizleme: küçük telefonda tam genişlik */
    .debit-card-wrapper {
        width: 100%;
        max-width: 270px;
        height: 160px;
    }

    .card-number {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    /* Tablo daha kompakt */
    .table {
        font-size: 0.72rem;
        min-width: 400px;
    }

    /* Statement grid: tek kolon */
    .statement-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .summary-value {
        font-size: 0.9rem;
    }

    /* Modal daha kompakt */
    .modal-content {
        padding: 1.1rem 1rem !important;
    }

    /* Workspace bölümü margin'lerini küçült */
    .workspace-item p {
        margin-bottom: 1rem;
    }

    /* Charts container */
    .charts-container {
        flex-direction: column;
        align-items: stretch;
    }

    .chart-wrapper {
        min-width: unset;
        width: 100%;
    }
}

