/* ===== ULTRA PREMIUM BANKA PORTALI - CSS ===== */
/* iPhone, iPad, Android ve tüm modern cihazlar için optimize edilmiş */

/* ===== CSS VARIABLES ===== */
:root {
    /* Safe Areas for Mobile */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);

    /* Background Colors */
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --bg-tertiary: #111118;
    --bg-card: rgba(255, 255, 255, 0.03);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;

    /* Bank Colors - Garanti */
    --garanti-primary: #00A650;
    --garanti-secondary: #00E676;
    --garanti-gradient: linear-gradient(135deg, #00E676 0%, #00A650 100%);
    --garanti-glow: 0 0 40px rgba(0, 230, 118, 0.4);

    /* Bank Colors - Akbank */
    --akbank-primary: #E53935;
    --akbank-secondary: #FF6B6B;
    --akbank-gradient: linear-gradient(135deg, #FF6B6B 0%, #E53935 100%);
    --akbank-glow: 0 0 40px rgba(255, 107, 107, 0.4);

    /* Bank Colors - VakıfBank */
    --vakifbank-primary: #F9A825;
    --vakifbank-secondary: #FFD93D;
    --vakifbank-gradient: linear-gradient(135deg, #FFD93D 0%, #F9A825 100%);
    --vakifbank-glow: 0 0 40px rgba(255, 217, 61, 0.4);

    /* Bank Colors - Yapı Kredi */
    --yapikredi-primary: #536DFE;
    --yapikredi-secondary: #7C4DFF;
    --yapikredi-gradient: linear-gradient(135deg, #7C4DFF 0%, #536DFE 100%);
    --yapikredi-glow: 0 0 40px rgba(124, 77, 255, 0.4);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Poppins', var(--font-primary);

    /* Sizing */
    --header-height: 64px;
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-lg: 24px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.loading-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--garanti-primary);
    border-radius: 50%;
    animation: loadingSpin 1s linear infinite;
}

.loading-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 0;
    background: var(--garanti-gradient);
    animation: loadingBar 1.5s ease-in-out forwards;
}

@keyframes loadingPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes loadingSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingBar {
    to {
        width: 100%;
    }
}

/* ===== BACKGROUND ANIMATION ===== */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 166, 80, 0.3) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.25) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

.bg-mesh {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

/* ===== PAGE STRUCTURE ===== */
.page {
    display: none;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 1;
    padding-top: max(var(--safe-area-top), 0px);
    padding-bottom: max(var(--safe-area-bottom), 20px);
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--garanti-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--garanti-glow);
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: var(--garanti-secondary);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--garanti-secondary);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    text-align: center;
    padding: 40px 0 32px;
}

.hero-title {
    font-family: var(--font-display);
    margin-bottom: 12px;
}

.hero-greeting {
    display: block;
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.hero-highlight {
    display: block;
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #00E676 50%, #7C4DFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.feature-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 13px;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 16px;
}

/* ===== BANKS GRID ===== */
.banks-section {
    padding: 20px 0;
}

.banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ===== BANK CARD ===== */
.bank-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-normal);
    backdrop-filter: blur(var(--glass-blur));
}

.bank-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.bank-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.card-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bank-card:hover .card-glow {
    opacity: 0.15;
}

/* Bank-specific glows */
.bank-card.garanti .card-glow {
    background: radial-gradient(circle at 50% 50%, var(--garanti-primary) 0%, transparent 70%);
}

.bank-card.akbank .card-glow {
    background: radial-gradient(circle at 50% 50%, var(--akbank-primary) 0%, transparent 70%);
}

.bank-card.vakifbank .card-glow {
    background: radial-gradient(circle at 50% 50%, var(--vakifbank-primary) 0%, transparent 70%);
}

.bank-card.yapikredi .card-glow {
    background: radial-gradient(circle at 50% 50%, var(--yapikredi-primary) 0%, transparent 70%);
}

/* Bank-specific hover shadows */
.bank-card.garanti:hover {
    box-shadow: var(--garanti-glow);
}

.bank-card.akbank:hover {
    box-shadow: var(--akbank-glow);
}

.bank-card.vakifbank:hover {
    box-shadow: var(--vakifbank-glow);
}

.bank-card.yapikredi:hover {
    box-shadow: var(--yapikredi-glow);
}

.card-content {
    position: relative;
    z-index: 1;
}

.bank-logo {
    height: 40px;
    margin-bottom: 16px;
}

.bank-svg {
    height: 100%;
    width: auto;
    color: var(--text-primary);
}

.bank-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.bank-features {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bank-features span {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

.enter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Bank-specific button colors */
.bank-card.garanti .enter-btn {
    background: var(--garanti-gradient);
}

.bank-card.akbank .enter-btn {
    background: var(--akbank-gradient);
}

.bank-card.vakifbank .enter-btn {
    background: var(--vakifbank-gradient);
    color: #000;
}

.bank-card.yapikredi .enter-btn {
    background: var(--yapikredi-gradient);
}

.enter-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.enter-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.enter-btn:hover svg {
    transform: translateX(4px);
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 32px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(28px, 6vw, 36px);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #00E676 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 24px 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-logo {
    font-size: 20px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-divider {
    opacity: 0.3;
}

/* ===== PORTAL PAGE ===== */
.portal-page {
    background: var(--bg-primary);
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.back-btn svg {
    width: 18px;
    height: 18px;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-logo svg {
    width: 20px;
    height: 20px;
}

/* Portal theme backgrounds */
.garanti-bg {
    background: var(--garanti-gradient);
}

.akbank-bg {
    background: var(--akbank-gradient);
}

.vakifbank-bg {
    background: var(--vakifbank-gradient);
}

.yapikredi-bg {
    background: var(--yapikredi-gradient);
}

.portal-title h1 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.portal-title span {
    font-size: 12px;
    color: var(--text-muted);
}

.portal-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
    position: relative;
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
}

.garanti-gradient {
    background: var(--garanti-gradient);
}

.akbank-gradient {
    background: var(--akbank-gradient);
}

.vakifbank-gradient {
    background: var(--vakifbank-gradient);
}

.yapikredi-gradient {
    background: var(--yapikredi-gradient);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.welcome-banner h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.vakifbank-theme .welcome-banner h2,
.vakifbank-theme .welcome-banner p {
    color: #000;
}

.welcome-banner p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.banner-decoration {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* ===== MODULES GRID ===== */
.modules-grid {
    display: grid;
    gap: 16px;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-normal);
}

.module-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
}

.module-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.module-info {
    flex: 1;
}

.module-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.module-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.module-arrow {
    font-size: 20px;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.module-card:hover .module-arrow {
    transform: translateX(4px);
    color: var(--text-primary);
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: max(20px, var(--safe-area-top));
    padding-bottom: max(20px, var(--safe-area-bottom));
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 40px - var(--safe-area-top) - var(--safe-area-bottom));
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.modal-lg {
    max-width: 600px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon {
    font-size: 28px;
}

.modal-title h2 {
    font-size: 18px;
    font-weight: 700;
}

.modal-title p {
    font-size: 12px;
    color: var(--text-muted);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* ===== CHAT STYLES ===== */
.chat-container {
    display: flex;
    flex-direction: column;
    min-height: 350px;
    max-height: 400px;
}

.chat-welcome {
    text-align: center;
    padding: 32px 16px;
}

.chat-welcome-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(0, 166, 80, 0.2), rgba(124, 77, 255, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.chat-welcome h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.chat-welcome p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.chat-suggestions button {
    padding: 8px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-suggestions button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    align-self: flex-end;
    background: var(--garanti-gradient);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant {
    align-self: flex-start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
}

.chat-message.loading {
    display: flex;
    gap: 4px;
    padding: 16px 20px;
}

.chat-message.loading .dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.chat-message.loading .dot:nth-child(1) {
    animation-delay: 0s;
}

.chat-message.loading .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-message.loading .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }
}

.chat-input-container {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.chat-input {
    flex: 1;
    padding: 14px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.chat-input:focus {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--garanti-gradient);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.chat-send-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--garanti-glow);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== CALCULATOR STYLES ===== */
.calc-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--glass-bg);
    padding: 6px;
    border-radius: var(--border-radius);
}

.calc-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.calc-tab.active {
    background: var(--garanti-gradient);
    color: white;
}

.calc-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

.calc-panel {
    display: none;
}

.calc-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.calc-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.calc-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--garanti-primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.credit-type-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.credit-type-btn {
    padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.credit-type-btn.active {
    background: var(--garanti-gradient);
    border-color: transparent;
    color: white;
}

.calc-btn {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    background: var(--garanti-gradient);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
}

.calc-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--garanti-glow);
}

.calc-result {
    margin-top: 24px;
    padding: 24px;
    background: rgba(0, 166, 80, 0.1);
    border: 1px solid rgba(0, 166, 80, 0.2);
    border-radius: var(--border-radius);
    animation: slideUp 0.3s ease;
}

.result-main {
    text-align: center;
    margin-bottom: 16px;
}

.result-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.result-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    background: var(--garanti-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.result-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
}

.result-detail span:first-child {
    color: var(--text-muted);
}

.result-detail span:last-child {
    font-weight: 600;
}

.calc-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 16px;
    background: rgba(249, 168, 37, 0.1);
    border: 1px solid rgba(249, 168, 37, 0.2);
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    color: #FFD93D;
}

/* ===== NOTES STYLES ===== */
.notes-header {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.notes-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

.notes-search svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.notes-search input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    outline: none;
}

.notes-search input::placeholder {
    color: var(--text-muted);
}

.add-note-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--garanti-gradient);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.add-note-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--garanti-glow);
}

.add-note-btn svg {
    width: 18px;
    height: 18px;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
}

.notes-empty {
    text-align: center;
    padding: 48px 20px;
}

.notes-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.notes-empty h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.notes-empty p {
    font-size: 14px;
    color: var(--text-muted);
}

.note-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.note-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.note-item.urgent {
    border-left: 3px solid #E53935;
}

.note-item.pinned {
    border-left: 3px solid var(--garanti-primary);
}

.note-content-wrapper {
    flex: 1;
    min-width: 0;
}

.note-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-item-title .pin-icon {
    color: var(--garanti-primary);
    font-size: 12px;
}

.note-item-content {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-item-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.note-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.note-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.note-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.note-action-btn.delete:hover {
    background: rgba(229, 57, 53, 0.2);
    color: #FF6B6B;
}

/* Note Editor */
.note-editor {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.note-editor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.note-title-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.note-title-input::placeholder {
    color: var(--text-muted);
}

.note-editor-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.note-editor-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.note-content-input {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
}

.note-content-input::placeholder {
    color: var(--text-muted);
}

.note-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--glass-border);
}

.note-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.note-checkbox-label input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.note-save-btn {
    padding: 10px 24px;
    background: var(--garanti-gradient);
    border: none;
    border-radius: var(--border-radius-sm);
    color: white;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.note-save-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--garanti-glow);
}

/* ===== SHIFT TIMER STYLES ===== */
.shift-display {
    text-align: center;
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    margin-bottom: 24px;
}

.shift-time {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    background: var(--garanti-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.shift-status {
    font-size: 14px;
    color: var(--text-muted);
}

.shift-status.active {
    color: var(--garanti-secondary);
}

.shift-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.shift-info-item {
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    text-align: center;
}

.shift-info-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.shift-info-value {
    font-size: 18px;
    font-weight: 700;
}

.shift-controls {
    margin-bottom: 20px;
}

.shift-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
}

.shift-btn.start {
    background: var(--garanti-gradient);
    color: white;
}

.shift-btn.start:hover {
    box-shadow: var(--garanti-glow);
    transform: scale(1.02);
}

.shift-btn.stop {
    background: var(--akbank-gradient);
    color: white;
}

.shift-btn.stop:hover {
    box-shadow: var(--akbank-glow);
    transform: scale(1.02);
}

.shift-btn svg {
    width: 20px;
    height: 20px;
}

.shift-settings {
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

.shift-settings label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: max(20px, var(--safe-area-top));
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: toastIn 0.3s ease;
    min-width: 280px;
}

.toast.success {
    border-left: 3px solid var(--garanti-primary);
}

.toast.error {
    border-left: 3px solid var(--akbank-primary);
}

.toast.info {
    border-left: 3px solid var(--yapikredi-primary);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-icon {
    font-size: 20px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 12px;
    color: var(--text-muted);
}

.toast-close {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .banks-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 16px 8px;
    }

    .modal-container {
        max-width: none;
        margin: 10px;
        max-height: calc(100vh - 20px - var(--safe-area-top) - var(--safe-area-bottom));
    }

    .chat-send-btn span {
        display: none;
    }

    .chat-send-btn {
        padding: 14px 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .result-row {
        grid-template-columns: 1fr;
    }

    .notes-header {
        flex-direction: column;
    }

    .add-note-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 8px;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .hero-section {
        padding: 24px 0;
    }

    .feature-badges {
        flex-direction: column;
        align-items: center;
    }

    .bank-card {
        padding: 20px;
    }

    .calc-tabs {
        flex-direction: column;
    }

    .credit-type-btns {
        grid-template-columns: 1fr;
    }

    .shift-info {
        grid-template-columns: 1fr;
    }
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .bank-card:hover {
        transform: none;
    }

    .module-card:hover {
        transform: none;
    }

    .enter-btn:hover,
    .calc-btn:hover,
    .add-note-btn:hover,
    .chat-send-btn:hover,
    .shift-btn:hover {
        transform: none;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== DARK MODE OPTIMIZATION ===== */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #f0f0f5;
        --bg-secondary: #ffffff;
        --text-primary: #1a1a2e;
        --text-secondary: #4a4a6a;
        --glass-bg: rgba(0, 0, 0, 0.03);
        --glass-border: rgba(0, 0, 0, 0.08);
    }
}