﻿:root {
    --header-bg: #001e3c;
    /* Dark Blue Match */
    --input-bg: rgba(255, 255, 255, 0.05);
    --text-dark: #ffffff;
    /* Inverted for Dark Mode */
    --text-light: rgba(255, 255, 255, 0.6);
    --highlight-blue: #00adef;
    /* Cyan/Blue for Clean button */
    --border-color: rgba(255, 255, 255, 0.1);
    --keypad-bg: rgba(12, 38, 70, 0.98);
    /* Opaque Dark Blue */
    --key-border: rgba(255, 255, 255, 0.1);
    --bg-gradient: linear-gradient(135deg, #001e3c 0%, #000a1a 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --accent-glow: #00adef;
}

* {
    box-sizing: border-box;
    user-select: none;
    /* App feel */
    -webkit-tap-highlight-color: transparent;
}

/* --- GOOGLE PLAY ACCESSIBILITY OVERRIDE (48px Touch Target) --- */
button,
input,
select,
a,
.key,
.wheel-item,
.tape-item,
.carat-input-wrapper,
.custom-checkbox {
    min-height: 48px !important;
    min-width: 48px !important;
    touch-action: manipulation;
    /* Improves touch response */
    display: flex;
    /* Ensure center alignment for some elements */
    align-items: center;
    justify-content: center;
}

/* EXCEPTION: Links in text shouldn't be 48px wide unless block */
a:not(.btn):not(.nav-link) {
    min-width: auto !important;
    display: inline-flex;
    padding: 12px;
    /* Add padding to hit 48px target without breaking text flow */
    margin: -12px;
    /* Negative margin to preserve visual flow */
}

/* EXCEPTION: Checkboxes */
.custom-checkbox {
    min-width: auto !important;
    gap: 10px;
    /* Space between box and text */
}

/* EXCEPTION: Price/Result Text Selectable */
.amount,
.price-header {
    min-height: auto !important;
    min-width: auto !important;
}

body {
    font-family: 'Manrope', 'Roboto', sans-serif;
    margin: 0 auto;
    padding: 0;
    background: var(--bg-gradient);
    /* Global Gradient */
    color: white;

    /* DYNAMIC VIEWPORT & TABLET CONSTRAINT */
    height: 100vh;
    height: 100dvh;
    /* Mobile browser bar fix */
    width: 100%;
    max-width: 500px;
    /* Tablet constraint */

    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: none;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    /* Deeper Shadow */
}

/* --- LOGIN SCREEN --- */
/* --- LOGIN SCREEN --- */
/* --- LOGIN SCREEN (LUXURY FINTECH REDESIGN) --- */
:root {
    --font-primary: 'Manrope', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
    --bg-gradient: linear-gradient(135deg, #001e3c 0%, #000a1a 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-glow: #00adef;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: var(--bg-gradient);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: transform 0.6s cubic-bezier(0.83, 0, 0.17, 1);
    overflow: hidden;
    /* Prevent scrolling, force fit */
    padding: 20px;
}

.login-overlay.slide-up {
    transform: translateY(-100%);
}

/* Glass Card Container */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;

    /* ADAPTIVE PADDING: Shrinks vertically on small screens (FluidFit) */
    padding: clamp(1.5rem, 4vh, 3rem) clamp(1rem, 5vw, 2.5rem);

    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 90%;
    max-width: 400px;

    /* ADAPTIVE HEIGHT: Never exceed screen height */
    max-height: 95dvh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center content vertically */

    /* ADAPTIVE GAP: Compresses elements on small screens */
    gap: clamp(1rem, 2vh, 2rem);

    margin: auto;
}

/* Logo & Brand */
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 1.5vh, 1rem);
    position: relative;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.glow-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--accent-glow);
    filter: blur(60px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}

.brand-icon {
    height: clamp(3rem, 8vh, 4.5rem);
    /* Icon scales with height */
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 173, 239, 0.3));
}

.brand-text {
    font-size: clamp(1.2rem, 3vh, 1.8rem);
    /* Text scales with height */
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    text-align: center;
    font-family: var(--font-secondary);
}

/* Form Elements */
.auth-view {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vh, 15px);
    /* Form elements compress */
    flex-shrink: 1;
    overflow-y: auto;
    /* Internal scroll ONLY if absolutely needed */
    scrollbar-width: none;
}

.auth-view::-webkit-scrollbar {
    display: none;
}

/* Floating Labels */
.floating-label-group {
    position: relative;
    width: 100%;
}

.floating-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 16px 6px 16px;
    /* Top padding for label space */
    font-size: 1rem;
    color: white;
    font-family: var(--font-primary);
    outline: none;
    transition: all 0.3s ease;
    height: clamp(48px, 7vh, 56px);
    /* Dynamic input height */
}

.floating-input:focus {
    border-color: var(--accent-glow);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 173, 239, 0.1);
}

.floating-label {
    position: absolute;
    left: 16px;
    top: 18px;
    font-size: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Float logic: Focus or Valid (not empty) */
.floating-input:focus~.floating-label,
.floating-input:not(:placeholder-shown)~.floating-label {
    top: 8px;
    font-size: 0.75rem;
    color: var(--accent-glow);
    font-weight: 600;
}

/* Password Toggle */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.toggle-password:hover {
    color: #fff !important;

    /* ÖNEMLİ OLAN BURASI: */
    /* Hem dikey ortalamayı (translateY) koru, HEM DE büyüt (scale) */
    transform: translateY(-50%) scale(1.1) !important;
}

/* Options Row */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 15px;
    /* Added spacing */
    gap: 20px;
    /* Fallback gap */
}

/* LOGIN SAFETY: Ensure 48px separation between touch targets */
.login-options>* {
    padding: 12px 0;
    /* Increase touch area vertically */
}

/* Push them apart */
.custom-checkbox {
    margin-right: auto;
}

.link-text {
    margin-left: auto;
    padding: 12px;
    /* Ensure link has big hit area */
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox input:checked~.checkmark {
    background: var(--accent-glow);
    border-color: var(--accent-glow);
}

.custom-checkbox input:checked~.checkmark:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.link-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: none;
}

.link-text:hover {
    color: white;
    text-decoration: underline;
}

/* Buttons */
.glow-btn {
    width: 100%;
    background: linear-gradient(90deg, #00adef 0%, #007bb5 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 173, 239, 0.3);
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 173, 239, 0.5);
}

.glow-btn:active {
    transform: scale(0.98);
}

/* Social Login */
.social-login-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 10px;
    font-family: var(--font-primary);
}

.social-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin: 15px 0 5px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 10px;
}

/* Error Message */
.auth-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    text-align: center;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    display: none;
    margin-top: 10px;
}


.social-login-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.social-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.login-footer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-top: 2rem;
    text-align: center;
}

.google-btn img {
    height: 24px;
}

.terms {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 2rem;
}

/* --- APP CONTAINER --- */
.app-container {
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    width: 100%;
    /* Fix: Align with body width, not viewport */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: none;
    /* Prevent pull-to-refresh */
}

.hidden {
    display: none;
}

/* HEADER */
.app-header {
    background-color: var(--header-bg);
    color: white;
    padding: 0.8rem 1rem;
    padding-top: max(0.8rem, env(safe-area-inset-top));
    /* Safe area support */
    flex-shrink: 0;
}

/* ANIMATIONS */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* EK CSS: Aktif Parametre Vurgusu Ä°Ã§in */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header .logo {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;

    /* Yeni Eklenen Hizalama Kodları */
    display: flex;
    /* Esnek kutu yapısı */
    align-items: center;
    /* Dikeyde tam ortala */
    justify-content: center;
    /* Yatayda ortala */
    gap: 8px;
    /* Resim ve yazı arası boşluk */
}

.icon-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.spacer {
    width: 30px;
    /* Balance the icon button */
}

/* MODAL */
/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #001e3c;
    /* Fallback */
    background: linear-gradient(135deg, #001e3c 0%, #000a1a 100%);
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: white;
}

.modal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
}

.modal-body {
    padding: 1.5rem;
}

.upload-section {
    margin-bottom: 1.5rem;
}

.upload-section h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: white;
}

.upload-section input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 6px;
}

.status-text {
    display: block;
    font-size: 0.8rem;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.6);
}

.status-text.success {
    color: #10b981;
    font-weight: bold;
}

.note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
    font-style: italic;
}

.danger-btn {
    width: 100%;
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    margin-top: 1rem;
    font-weight: 500;
    cursor: pointer;
}

/* CLICKABLE CARAT INPUT (Text-Like with Blinking Cursor) */
.carat-input-wrapper {
    background: transparent;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.carat-input-wrapper:active {
    opacity: 0.7;
}

.static-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.input-display {
    display: flex;
    align-items: center;
    position: relative;
}


.carat-input-wrapper .value {
    font-size: 2rem;
    font-weight: 300;
    /* Thin modern look */
    color: #fff;
    /* White text for dark mode */
    min-width: 10px;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.carat-input-wrapper .value.empty::after {
    content: "0.00";
    color: rgba(255, 255, 255, 0.3);
}

/* BLINKING CURSOR */
.blinking-cursor {
    color: var(--accent-glow);
    /* Highlight Blue */
    font-size: 2rem;
    font-weight: 300;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    margin-top: -4px;
    /* Slight alignment fix */
    text-shadow: 0 0 10px var(--accent-glow);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Hide cursor when keypad is closed (controlled by JS toggling class if needed, or always visible to invite click) */
.carat-input-wrapper.inactive .blinking-cursor {
    display: none;
}

/* GLASS EFFECT UTILITY */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* MAIN CONTENT (Wraps Selector + Results + Keypad) */
/* REMOVED: .main-content (Handled in later block) */


/* 1. TOP LAYER: Fixed Inputs */
/* REMOVED: .horizontal-inputs-container (Handled in later block) */


/* SELECTORS */
.selectors-grid {
    display: none;
    /* Deprecated grid */
}

/* Removed keyboard-active collapsing logic based on user feedback */

/* SIDE-SQUEEZE PROTECTION */
/* REMOVED: .selector-card (Handled in later block) */

.selector-card:last-child {
    border-right: none;
}

/* REMOVED: .card-header (Handled in later block) */

/* REMOVED: .scroll-wheel (Handled in later block) */
/* REMOVED: .wheel-item (Handled in later block) */

/* ... existing code ... */

/* Action Button Active States (Rule 30) */
.clear-btn:active,
.calculate-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.1s;
}

/* REMOVED: .wheel-item.selected (Handled in later block) */

/* Specific adjustment for long lists like RAP to ensure center snap feels right */
#rap-wheel .wheel-item {
    padding: 14px 0;
}

/* RESULTS AREA */
/* 2. MIDDLE LAYER: Flexible Results */
/* NEW PRO MAX STYLES */

.results-area {
    padding: 10px 15px;
    background: #fff;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.results-status-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 5px;
    border-bottom: 1px dashed #eee;
    margin-bottom: 5px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

.status-label {
    font-size: 0.7rem;
    color: #888;
    font-weight: 600;
}

.carat-badge-display {
    font-size: 0.9rem;
    color: #0c2646;
    font-weight: bold;
}

.prices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Force equal split */
    gap: 12px;
    width: 100%;
    align-items: stretch;
}


.price-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    /* Glass Base */
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.main-card {
    background: rgba(0, 173, 239, 0.05);
    /* Gentle Blue Tint */
    border: 1px solid rgba(0, 173, 239, 0.2);
    box-shadow: 0 0 20px rgba(0, 173, 239, 0.1);
}

.list-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-content {
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
}

.price-item {
    display: flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
}

.price-divider {
    height: 1px;
    width: 60%;
    background: rgba(255, 255, 255, 0.1);
}

/* Adjust font sizes for stacked layout */
.amount {
    font-size: clamp(1.1rem, 4vw, 2.2rem);
    font-weight: 300;
    /* Luxury Thin */
    color: #fff;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -1px;
}

.highlight-price {
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 173, 239, 0.6);
    font-weight: 600;
}

.price-item.dimmed .amount {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.unit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 2px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Remove old conflicting classes */
.separator {
    display: none;
}

.price-row {
    display: none;
}

.price-values {
    display: none;
}

.list-price .amount {
    font-size: 1.6rem;
}

/* KEYPAD (Flex based & Slide-Up) */
.keypad-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transform: translateY(100%);
    /* HIDE DEFAULT */
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.keypad-container.active {
    transform: translateY(0);
    /* SHOW */
}

.keypad {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-rows: repeat(4, 1fr);

    /* OPAQUE DARK BLUE GLASS (Play Store Readability) */
    background: rgba(12, 38, 70, 0.98);
    /* Hardcoded 98% Opacity */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    /* DYNAMIC HEIGHT LOGIC (Fix for Bookmarks Bar) */
    /* Instead of fixed 40vh, use flex-basis with limits */
    height: auto;
    flex: 0 0 40%;
    /* Target 40% but respect content */
    min-height: 220px;
    /* Slightly Reduced Minimum usable height to give space to results */
    max-height: 45vh;
    /* Limit maximum */

    padding-bottom: env(safe-area-inset-bottom);
    z-index: 500;
}

/* Ensure buttons take available space but don't overflow */
.key {
    background: transparent;
    border: 1px solid var(--key-border);
    color: white;
    color: white;
    font-size: clamp(1.4rem, 4vh, 2.2rem);
    /* FluidFit Typography for Keys */
    /* Dynamic font size based on height */
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove fixed margin collapse hack if it causes issues, but keep for grid */
    margin: -1px;
}



.key:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.action-key {
    border-left: 1px solid var(--key-border);
}

.done-key {
    background-color: #10b981;
    /* Green check */
    font-size: 1.2rem;
    border: none;
}

.empty-key {
    background-color: var(--highlight-blue);
    border: none;
}

/* --- SMALL SCREEN OPTIMIZATIONS (The "Fix" for Aspect Ratios) --- */
@media (max-height: 750px) {
    .login-brand {
        gap: 10px;
    }

    .brand-icon {
        font-size: 2.5rem;
    }

    .brand-text {
        font-size: 1.5rem;
    }

    .app-header {
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .selectors-grid {
        height: 18vh;
        min-height: 100px;
    }

    .wheel-item {
        padding: 8px 0;
        font-size: 0.95rem;
    }

    .carat-display-section {
        padding: 0.5rem 1rem;
    }

    #carat-input-value {
        font-size: 1.5rem;
    }

    .results-area {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .amount {
        font-size: clamp(0.9rem, 6vw, 1.6rem);
    }

    .separator {
        font-size: 1.5rem;
    }

    .key {
        font-size: 1.3rem;
    }
}


/* --- DROPDOWN MENU --- */
/* --- style.css: Dropdown Menü Tamiri (Hizalama + Görünürlük) --- */

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--header-bg);
    /* Opaque Blue */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px 0 !important;
    margin-top: 1rem;
    min-width: 180px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 2000;

    /* BAŞLANGIÇTA GİZLİ (Animasyon Hazırlığı) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    /* JS 'hidden' classını kontrol eder */
}

/* MENÜ AÇIKKEN (hidden class'ı kalkınca) */
.dropdown-menu:not(.hidden) {
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* BOŞLUĞU ARTIRDIK: Öğelerin birbirine değmesini engeller */
    gap: 12px !important;
}

/* LİNK AYARLARI (48px Play Store Standardı) */
.dropdown-menu a {
    /* TIKLAMA ALANI: 48px Play Store kuralı için sabit kalmalı */
    height: 48px !important;

    /* GÖRSEL DARALTMA: Üstten ve alttan 4px boşluk verdik. 
       Böylece mavi kutular (highlight) küçülmüş görünecek ve birbirine değmeyecek. */
    margin: 4px 10px !important;

    padding: 0 16px !important;
    color: #fff !important;
    text-decoration: none;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: all 0.2s ease;
    border-radius: 10px;
    /* Köşeleri biraz daha yuvarladık */
    font-size: 0.95rem;
    font-weight: 500;
}

/* SEÇİLİ/HOVER DURUMU (Highlight Tamiri) */
.dropdown-menu a:hover,
.dropdown-menu a:active {
    background: rgba(255, 255, 255, 0.1);
    /* Highlight artık daha geniş ve temiz */
    color: var(--highlight-blue) !important;
}

.dropdown-menu a i {
    font-size: 1.2rem;
    color: var(--highlight-blue);
    width: 24px;
    text-align: center;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- NEW PROFILE MODAL STYLES --- */
.modal-content {
    background: #001e3c;
    /* Fallback */
    background: linear-gradient(135deg, #001e3c 0%, #000a1a 100%);
    border: 1px solid var(--glass-border);
    color: white;
}

.modal-header {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    color: white;
}

.close-btn {
    color: rgba(255, 255, 255, 0.6);
}

.profile-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    text-align: center;
}

.profile-icon-large {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

#profile-display-name {
    margin: 5px 0;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}

#profile-display-email {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.profile-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

.action-btn:active,
.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.danger-btn-outline {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 8px;
    background: rgba(255, 0, 0, 0.05);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ff6b6b;
}

/* Main Wrapper for Mobile Layout */
.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    /* Mobile viewport fix */
    background: transparent;
    /* Transparent to show body gradient */
}

/* --- NEW UI COMPONENTS (Jan 23, 2026 - Mobile Polish) --- */

/* 1. HORIZONTAL INPUTS SCROLL */
.horizontal-inputs-container {
    display: flex;
    width: 100%;
    padding: 10px 4px;
    gap: 4px;
    justify-content: space-between;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    overflow-x: hidden;
    flex-wrap: nowrap;

    /* PUSH TO BOTTOM (Thumb Zone) */
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    /* Visual separator from top void */
    box-shadow: none;
}

.horizontal-inputs-container::-webkit-scrollbar {
    display: none;
}

.selector-card {
    flex: 1 1 0px;
    width: auto;
    min-width: 0;
    height: 150px !important;
    position: relative;
    /* Safety */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-header {
    background: rgba(0, 0, 0, 0.2) !important;
    /* Semi-transparent */
    color: rgba(255, 255, 255, 0.9) !important;
    height: 30px !important;
    /* Explicit Height */
    line-height: 30px !important;
    /* Vertically Center Text */
    padding: 0 2px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    /* DO NOT SHRINK */
    z-index: 20;
    /* High Z-Index */
    display: block !important;
    /* Force Display */
}

/* CARAT BOX (Inside Card - HIDDEN to match other cards) */
.carat-box {
    display: none !important;
}

#carat-input-value {
    display: none;
}

/* 2. NESTED CARAT TAPE (Vertical Column - MATCH SCROLL WHEEL) */
.carat-tape-container {
    flex: 1;
    height: auto;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-type: y mandatory;

    background: transparent;
    padding: 55px 0;
    /* FIXED PADDING instead of % to center content safely */
}

.carat-tape-container::-webkit-scrollbar {
    display: none;
}

.tape-item {
    height: 48px;
    /* Match wheel-item */
    line-height: 48px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    /* Match wheel-item */
    color: rgba(255, 255, 255, 0.5);
    scroll-snap-align: center;
    cursor: pointer;
    flex-shrink: 0;
}

.tape-item.active {
    color: #fff;
    /* Match .wheel-item.selected */
    font-weight: bold;
    font-size: 1.2rem;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* SCROLL WHEELS (Reuse logic but fit in card) */
.scroll-wheel {
    flex: 1;
    /* Fill REMAINING space */
    height: 120px !important;
    /* Don't force 100% */
    min-height: 0;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0 !important;
}

.wheel-item {
    height: 48px !important;
    /* Forced 48px for Compliance */
    line-height: 48px !important;
    scroll-snap-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.wheel-item.selected {
    color: #fff !important;
    font-weight: bold !important;
    font-size: 1.3rem !important;
    text-shadow: 0 0 12px var(--accent-glow);
    background: transparent !important;
    /* Remove gray bg */
}

/* POSITIVE VALUE (Neon Green) */
.wheel-item.selected.pos {
    color: #2ecc71 !important;
    /* Neon Green */
    text-shadow: 0 0 15px rgba(46, 204, 113, 0.6) !important;
}

/* NEGATIVE VALUE (Neon Red) */
.wheel-item.selected.neg {
    color: #e74c3c !important;
    /* Neon Red */
    text-shadow: 0 0 15px rgba(231, 76, 60, 0.6) !important;
}

/* KESİM (SHAPE) ÖZEL AYAR: Uzun isimler (Marquise vb.) sığsın diye font küçüldü */
#shape-wheel .wheel-item.selected {
    font-size: 1.15rem !important;
}

/* 3. PRICE CARD UPDATES (Vertical Balance) */
.results-area {
    padding: 10px 15px;
    background: transparent;
    /* CLUSTER LOGIC: Push inputs down, but keep price attached to keypad */
    margin-top: 0;
    margin-bottom: 0;
    /* REMOVED auto to stick to keypad */
}

/* 4. EMBEDDED KEYPAD (Bottom Safe Area) */
/* 3. BOTTOM LAYER: Keypad (In-Flow + Safe Area) */
.embedded-keypad-section {
    padding: 5px 15px;

    /* AUTO SAFE AREA */
    padding-bottom: max(15px, env(safe-area-inset-bottom));

    background: transparent;
    flex-shrink: 0;
    /* Keep fixed height */
    z-index: 50;
    box-shadow: none;
}

.keypad-container.embedded {
    background: var(--keypad-bg);
    /* Opaque Dark Blue */
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--glass-border);
}

/* 4. EMBEDDED KEYPAD (Bottom Safe Area) */
.embedded-keypad-section {
    padding: 5px 15px;
    /* Reduced Top Padding (Closer to Price) */
    padding-bottom: 50px;
    /* Increased Bottom Padding (Lift Keys Up) */
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.keypad-container.embedded {
    background: var(--header-bg);
    border-radius: 16px;
    padding: 10px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.keypad-container.embedded .key {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    /* Slightly smaller radius */
    height: 45px;
    /* More compact */
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
}

.keypad-container.embedded .key:active {
    background: rgba(255, 255, 255, 0.3);
}

.calculate-btn {
    width: 100%;
    padding: 12px;
    background: #10b981;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    text-transform: uppercase;
    cursor: pointer;
}

/* Active Card Highlight */
/* Active Card Highlight */
.selector-card.active-card {
    border: 2px solid var(--accent-glow) !important;
    background-color: rgba(0, 173, 239, 0.1) !important;
    box-shadow: 0 0 15px rgba(0, 173, 239, 0.2);
    transform: translateY(-2px);
    transition: all 0.2s ease;
}


/* Scroll Fix */
.scroll-wheel {
    padding-top: 0 !important;
    scroll-snap-type: y mandatory;
}

.wheel-item {
    scroll-snap-align: start;
}

/* --- CARAT TAPE OPTIMIZATION (STP-005) --- */
.carat-tape-container {
    flex: 1;
    /* Grow to fill space left by input */
    width: 100%;
    overflow-y: auto;
    position: relative;
    /* Touch Support */
    touch-action: pan-y;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
    /* Visuals */
    background: linear-gradient(180deg,
            rgba(0, 30, 60, 1) 0%,
            var(--glass-bg) 20%,
            var(--glass-bg) 80%,
            rgba(0, 30, 60, 1) 100%);
    padding: 60px 0;
    /* Expanded padding for center focus */
}

/* Ensure ticks snap */
.carat-tick-item {
    scroll-snap-align: center;
}

/* Universal Touch Support for Wheels */
.scroll-wheel {
    touch-action: pan-y;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
}

/* CARAT ACTIVE STATE */
.carat-tick-item {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    padding: 2px 0;
    width: 100%;
    transition: all 0.2s;

    /* Centering Fix */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.carat-tick-item.active {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px var(--accent-glow);
    transform: scale(1.1);
    /* Ensure no layout shift affects alignment */
    transform-origin: center center;
}

/* Shake Animation (Auth Error) */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.4s ease-in-out;
}



/* ============================================================
   KAFAYI VURMA & HİZALAMA TAMİRİ (KESİN ÇÖZÜM)
   ============================================================ */

/* 1. KUTU YÜKSEKLİĞİNİ SABİTLİYORUZ */
.selector-card {
    /* Başlık (30px) + Kaydırma Alanı (120px) = 150px */
    height: 150px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    /* Taşanları gizle */
}

/* 2. BAŞLIĞI SABİTLİYORUZ */
.card-header {
    height: 30px !important;
    line-height: 30px !important;
    flex-shrink: 0 !important;
    /* Asla sıkışma */
    padding: 0 !important;
}

/* 3. KAYDIRMA ALANI (GHOST SPACE BURADA) */
.scroll-wheel {
    /* MATEMATİKSEL HESAP:
       Görünür Alan Yüksekliği: 120px
       Tek Satır Yüksekliği: 40px
       
       Formül: (Görünür Alan - Satır Boyu) / 2
       (120 - 40) / 2 = 40px
       
       Yani üstten ve alttan tam 40px boşluk verirsek,
       40px'lik satır tam 120px'lik alanın göbeğine (60. piksele) oturur.
    */
    height: 120px !important;
    /* Görünür alan */
    flex: 0 0 120px !important;
    /* Esnemeyi kapat, sabitle */

    padding-top: 40px !important;
    /* Üst Hayalet Boşluk */
    padding-bottom: 40px !important;
    /* Alt Hayalet Boşluk */

    display: block !important;
    overflow-y: auto !important;
    scroll-snap-type: y mandatory;
    /* Mıknatıs */

    /* ÖNEMLİ: Padding'in scroll içine dahil olması için */
    box-sizing: border-box !important;
}

/* 4. SATIR AYARLARI */
.wheel-item {
    height: 40px !important;
    /* Sabit satır yüksekliği */
    line-height: 40px !important;
    /* Dikey ortalama */
    font-size: 1.1rem !important;
    margin: 0 !important;
    scroll-snap-align: center;
    /* Tam merkeze yapış */

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 5. SEÇİLİ OLANIN GÖRÜNÜMÜ */
.wheel-item.selected {
    height: 40px !important;
    /* Yükseklik değişmemeli */
    font-size: 1.35rem !important;
    /* Yazı belirginleşsin */
    font-weight: 800 !important;
    color: #0c2646 !important;
    background-color: rgba(12, 38, 70, 0.05) !important;
    /* Hafif gölge */
    border-radius: 8px !important;
}

/* ŞİFRE GÖSTER/GİZLE İKONU */
.toggle-password {
    transition: color 0.3s;
    padding: 10px;
    /* Dokunma alanını genişletir */
    margin-right: -10px;
    /* Hizayı bozmaz */
}

.toggle-password:hover {
    color: #fff !important;
    /* Üzerine gelince parlasın */
}

/* ============================================================
   ACİL KURTARMA PAKETİ (SCROLL + AUTH + GÖZ İKONU)
   Mevcut yapıyı bozmadan fonksiyonları açar.
   ============================================================ */

/* 1. SCROLL (SÜRÜKLEME) KİLİDİNİ AÇMA */
.scroll-wheel {
    /* Mevcut yükseklik ve hizalamayı koru */
    height: 120px !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;

    /* Sürükleme Motorunu Zorla Aç */
    overflow-y: auto !important;
    touch-action: pan-y !important;
    /* Dokunmatik kaydırmayı aç */
    -webkit-overflow-scrolling: touch !important;
    /* iPhone için akıcılık */

    /* Etkileşim İzinleri */
    pointer-events: auto !important;
    /* Tıklamayı aç */
    cursor: grab !important;
    /* Tutma ikonu çıkar */
    z-index: 20 !important;
    /* Diğer öğelerin üstüne çıkar */
}

/* Mouse ile basılıyken imleç değişsin */
.scroll-wheel:active {
    cursor: grabbing !important;
}

/* 2. GÖZ İKONU (ŞİFRE GÖSTER/GİZLE) TAMİRİ */
.toggle-password {
    cursor: pointer !important;
    z-index: 100 !important;
    /* Input'un üzerine çıkması için çok yüksek veriyoruz */
    pointer-events: auto !important;
    padding: 10px !important;
    /* Dokunma alanını büyüt */
}

.toggle-password:hover {
    color: #fff !important;
    transform: scale(1.1);
}

/* 3. GOOGLE & APPLE BUTONLARI */
#google-btn,
#apple-btn {
    cursor: pointer !important;
    position: relative;
    z-index: 50;
    transition: transform 0.1s, background 0.2s;
}

#google-btn:active,
#apple-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* 4. ŞİFREMİ UNUTTUM & BENİ HATIRLA LİNKİ */
#forgot-password-link {
    cursor: pointer !important;
    z-index: 50;
    position: relative;
}

#forgot-password-link:hover {
    color: #fff !important;
    text-decoration: none !important;
}

#remember-me {
    cursor: pointer !important;
    z-index: 50;
}

/* --- DİSK TEKERLEĞİ YÜKLENME EFEKTİ --- */
#rap-wheel {
    opacity: 0;
    /* Başlangıçta gizli */
    transition: opacity 0.3s ease-in;
    /* Hazır olunca yumuşakça belirsin */
}

#rap-wheel.ready {
    opacity: 1;
    /* JS 'ready' sınıfını ekleyince görünür olur */
}

/* ============================================================
   SİZİN FİYATINIZ - TOTAL RENGİ (MAVİ VURGU)
   ============================================================ */

#user-price-total {
    color: #00adef !important;
    /* Parlak Mavi (Highlight) */
    font-weight: 900 !important;
    /* Ekstra Kalın */
}

/* ============================================================
   FİNAL RÖTUŞLAR: SCROLLBAR GİZLEME & ALT BOŞLUK TAMİRİ
   ============================================================ */

/* 1. ÇİRKİN BEYAZ SCROLLBAR'I YOK ET (Ama Kaydırma Çalışsın) */
/* Chrome, Safari, Opera, Edge için */
.scroll-wheel::-webkit-scrollbar,
.results-area::-webkit-scrollbar,
.tape-container::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
    /* Çubuğu fiziksel olarak yok et */
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    /* Arka planı şeffaf yap */
}

/* Firefox için */
.scroll-wheel,
.results-area,
.tape-container,
body {
    -ms-overflow-style: none !important;
    /* IE ve Edge */
    scrollbar-width: none !important;
    /* Firefox */
}

/* 2. SAYFANIN EN ALTINDAKİ BEYAZLIĞI SİL */
.embedded-keypad-section,
.results-area,
.keypad-container.embedded {
    background: transparent !important;
    /* Arka planı şeffaf yap */
    box-shadow: none !important;
    /* Varsa beyaz gölgeyi kaldır */
    border: none !important;
}

/* 3. SAYFA ZEMİNİNİ GARANTİYE AL */
html,
body {
    background: linear-gradient(135deg, #001e3c 0%, #000a1a 100%) !important;
    background-attachment: fixed !important;
    overflow-x: hidden !important;

}

/* ============================================================
   FİNAL DOKUNUŞ: PARAMETRE YAZILARI (KRİSTAL BEYAZ)
   ============================================================ */

/* 1. SEÇİLİ OLMAYANLAR (Hafif Silik Beyaz) */
.wheel-item {
    color: rgba(255, 255, 255, 0.4) !important;
    /* Okunur ama geri planda */
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

/* 2. SEÇİLİ OLAN (Round, D, IF, 0% - BEMBEYAZ PARLAYAN) */
.wheel-item.selected {
    color: #ffffff !important;
    /* TAM BEYAZ */
    font-weight: 800 !important;
    /* Kalın ve net */
    font-size: 1.4rem !important;

    /* Arkasına hafif beyaz bir ışık verelim ki patlasın */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6) !important;

    /* Koyu lacivert gölgeleri kaldır, yerine şeffaf beyaz cam koy */
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
}

/* ============================================================
   SIKIŞIKLIK GİDERME: BENİ HATIRLA & ŞİFREMİ UNUTTUM
   ============================================================ */

.login-options {
    display: flex !important;
    justify-content: space-between !important;
    /* İki öğeyi zıt kutuplara iter */
    align-items: center !important;
    width: 100% !important;

    /* Üstteki şifre kutusundan biraz daha uzaklaştır */
    margin-top: 18px !important;
    margin-bottom: 8px !important;

    /* Kenarlardan çok hafif boşluk bırak (opsiyonel) */
    padding: 0 4px !important;
}

/* Yazı Boyutları ve Okunabilirlik */
.custom-checkbox,
.link-text {
    font-size: 0.82rem !important;
    /* Mobilde taşmayı önlemek için hafif küçültme */
    letter-spacing: 0.2px !important;
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Şifremi Unuttum Linki Özel Ayar */
.link-text {
    /* Tıklama alanını (touch target) büyütüyoruz ama yazıyı kaydırmıyoruz */
    padding: 10px 0 10px 15px !important;
    margin-right: -5px !important;
    cursor: pointer !important;

    /* Asla alt satıra düşmemesi için */
    white-space: nowrap !important;
    text-align: right !important;
}

/* Beni Hatırla Seçeneği */
.custom-checkbox {
    padding: 10px 10px 10px 0 !important;
    /* Tıklama alanını büyüt */
    cursor: pointer !important;
}

/* --- SMART SCALING (Büyük Rakamlar İçin) --- */
.amount.long-number {
    font-size: clamp(0.9rem, 3.5vw, 1.4rem) !important;
    /* Normalden %35 daha küçük */
    letter-spacing: -2px !important;
    /* Rakamları daha çok yaklaştır */
    word-spacing: -2px !important;
    white-space: nowrap !important;
    /* Asla alt satıra inme */
}

/* Küçük Ekran Koruması */
@media (max-width: 380px) {
    .amount.long-number {
        font-size: 1.25rem !important;
    }
}