/* KINGO Trading App - Ultra Premium Black Theme */
/* Mevcut yapıyı bozmadan sadece tasarım güncellemeleri */

/* ====================== */
/* Premium Font Import */
/* ====================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Lexend:wght@300;400;500;600;700&display=swap');

/* ====================== */
/* CSS Variables for Ultra Dark Theme */
/* ====================== */
:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Lexend', 'Inter', sans-serif;
  
  /* Ultra Dark Color Palette */
  --color-primary: #FFD700;
  --color-primary-dark: #FFA500;
  --color-success: #10B981;
  --color-danger: #EF4444;
  --color-info: #3B82F6;
  --color-warning: #F59E0B;
  
  /* Pure Black Theme Colors */
  --dark-bg: #000000;
  --dark-surface: #0a0a0a;
  --dark-surface-light: #141414;
  --dark-surface-hover: #1a1a1a;
  --dark-border: rgba(255, 255, 255, 0.05);
  --dark-border-light: rgba(255, 255, 255, 0.08);
  
  /* Compact Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.375rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  
  /* Refined Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Subtle Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.6);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.7);
  --shadow-xl: 0 8px 32px rgba(0,0,0,0.8);
  --shadow-glow: 0 0 15px rgba(255, 213, 46, 0.2);
}

/* ====================== */
/* Global Typography Reset */
/* ====================== */
* {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Styles - Pure Black */
html, body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: #ffffff;
    overscroll-behavior: none;
}

body {
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000000;
}

/* Compact Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
p { font-size: 0.8125rem; line-height: 1.4; }
.text-xs { font-size: 0.6875rem; }
.text-sm { font-size: 0.75rem; }

/* Mobile Typography */
@media (max-width: 640px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.125rem; }
  h3 { font-size: 1rem; }
  h4 { font-size: 0.875rem; }
  p { font-size: 0.75rem; }
  .text-xs { font-size: 0.625rem; }
}

/* ====================== */
/* Animations - Refined */
/* ====================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(255, 213, 46, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(255, 213, 46, 0.5)); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Lottie Animation Container Styles */
lottie-player {
    display: block;
    margin: 0 auto;
}

/* Header Lottie Adjustments */
header lottie-player {
    filter: drop-shadow(0 0 8px rgba(255, 213, 46, 0.4));
}

/* Login Lottie Adjustments */
#loginContainer lottie-player {
    filter: drop-shadow(0 0 15px rgba(255, 213, 46, 0.5));
}

/* Animation Classes */
.animate-spin {
    animation: spin 1s linear infinite !important;
    -webkit-animation: spin 1s linear infinite !important;
}

svg.animate-spin {
    display: inline-block !important;
    animation: spin 1s linear infinite !important;
    -webkit-animation: spin 1s linear infinite !important;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

/* ====================== */
/* Layout Components */
/* ====================== */

/* Main App Container */
#mainApp {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background: #000000;
}

main {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 60px !important;
    background: #000000;
}

/* Ultra Compact Header */
header.fixed-header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    padding-top: env(safe-area-inset-top);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
    height: 48px;
}

/* Ultra Dark Glass Effect */
.glass-premium {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Compact Premium Cards */
.card-premium {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.95));
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Internet Connection Notice */
.offline-notice {
    position: fixed;
    bottom: 65px;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: #ef4444;
    color: white;
    padding: 8px 12px;
    text-align: center;
    border-radius: 6px;
    margin: 0 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(0);
    transition: transform 0.3s ease-out;
    font-size: 0.75rem;
}

/* KINGO Text - Refined */
.kingo-text {
    font-family: var(--font-display);
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(255, 215, 0, 0.2);
}

/* Compact Premium Button */
.btn-premium {
    position: relative;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
    padding: 0.625rem 1rem;
}

.btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: -1;
}

.btn-premium:hover::before {
    opacity: 1;
}

/* Ultra Dark Form Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: white;
    transition: all 0.2s ease;
    font-size: 0.8125rem;
    padding: 0.625rem 0.875rem;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    background: rgba(20, 20, 20, 0.8);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

/* Loading States - Compact */
.skeleton {
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.5) 25%, rgba(30, 30, 30, 0.5) 50%, rgba(20, 20, 20, 0.5) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Compact Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #4B5563;
}

/* Refined Tooltip */
.tooltip .tooltip-text {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    width: max-content;
    max-width: 180px;
    font-size: 0.6875rem;
    border: 1px solid rgba(255, 213, 46, 0.15);
}

/* Compact Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a1a1a;
    transition: .3s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #FFD52E;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Compact Mobile Spacing */
@media (max-width: 640px) {
    .p-4 { padding: 0.5rem; }
    .p-5 { padding: 0.75rem; }
    .p-6 { padding: 1rem; }
    .space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
    .space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
}

/* Ultra Compact Bottom Navigation */
.kingo-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
    height: 56px;
}

.kingo-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    color: #6B7280;
    transition: all 0.2s ease;
    position: relative;
}

.kingo-nav-btn:hover {
    color: var(--color-primary);
}

.kingo-nav-btn.kingo-nav-active {
    color: var(--color-primary);
}

.kingo-nav-btn.kingo-nav-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.kingo-nav-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 0.125rem;
}

.kingo-nav-label {
    font-size: 0.625rem;
    font-weight: 600;
}

/* Compact Notification Badge */
.notification-badge {
    position: absolute;
    top: 2px;
    right: 25%;
    background: #EF4444;
    color: white;
    font-size: 0.5rem;
    font-weight: bold;
    padding: 0.125rem 0.25rem;
    border-radius: 9999px;
    min-width: 0.75rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Ultra Thin Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Compact Toast Notifications */
#toastContainer {
    position: fixed;
    right: 0.75rem;
    top: calc(48px + env(safe-area-inset-top) + 0.25rem);
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-bottom: 0.375rem;
    box-shadow: var(--shadow-lg);
    max-width: 300px;
    pointer-events: auto;
    animation: slideInRight 0.2s ease-out;
    font-size: 0.75rem;
}

/* Compact Position Cards */
.position-card {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.position-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Compact Signal Badges */
.signal-long {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.signal-short {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Compact Tab Navigation */
.tab-active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: var(--color-primary);
}

/* Compact Stats Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(20, 20, 20, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Counter Animation */
.counter-animation {
    display: inline-block;
    animation: pulse 0.8s ease-in-out;
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Compact Open Positions Tab */
.open-positions-tab {
    background: transparent;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    padding: 0.5rem;
}

.open-positions-tab.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 165, 0, 0.12));
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
}

/* Ultra Dark Gradient Borders */
.gradient-border {
    position: relative;
    background: var(--dark-surface);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark), var(--color-warning));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gradient-border:hover::before {
    opacity: 0.8;
}

/* PWA Safe Areas */
.safe-area-top {
    padding-top: env(safe-area-inset-top);
}

.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Smooth Page Transitions */
.page {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.page.hidden {
    opacity: 0;
    transform: translateY(10px);
}

.page.active {
    opacity: 1;
    transform: translateY(0);
}

/* Compact Login Form */
#loginForm input {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 0.875rem;
    padding-left: 2.25rem;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

#loginForm input:focus {
    background: rgba(20, 20, 20, 0.8);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

/* Compact Error Message */
#loginError {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    font-size: 0.75rem;
}

/* Compact Watchlist Items */
.watchlist-item {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 0.625rem;
    transition: all 0.2s ease;
}

.watchlist-item:hover {
    background: rgba(20, 20, 20, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

/* API Status Indicators */
.api-status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.375rem;
}

.api-status-active {
    background: var(--color-success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.api-status-inactive {
    background: var(--color-danger);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Compact Pagination */
.pagination-btn {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(20, 20, 20, 0.7);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--color-primary);
    color: var(--dark-bg);
    border-color: var(--color-primary);
}

/* Refined Slider for Leverage */
.slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    cursor: pointer;
}

input[type="range"].slider {
    height: 6px;
}

.slider::-webkit-slider-track {
    background: #1a1a1a !important;
    height: 6px;
    border-radius: 3px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    height: 16px;
    width: 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-top: -5px;
}

.slider::-moz-range-track {
    background: #1a1a1a !important;
    height: 6px;
    border-radius: 3px;
}

.slider::-moz-range-thumb {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Compact Select Elements */
@media (max-width: 640px) {
    #sortSelector,
    #itemsPerPageSelector {
        width: 100%;
        min-width: 0;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Compact Timeline */
.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    padding-bottom: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 0.375rem;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.15);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 0.625rem;
    top: 0.75rem;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}

/* Compact Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    gap: 0.125rem;
}

.status-pill-success {
    background: rgba(16, 185, 129, 0.08);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-pill-danger {
    background: rgba(239, 68, 68, 0.08);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.status-pill-warning {
    background: rgba(245, 158, 11, 0.08);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

/* Compact Content Areas */
.content-with-header {
    padding-top: calc(48px + env(safe-area-inset-top));
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

/* Touch Target Optimization */
@media (pointer: coarse) {
    button, a, input, select, textarea {
        min-height: 40px;
        min-width: 40px;
    }
}

/* Performance */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Hide Elements */
.hidden {
    display: none !important;
}

/* Text Balance */
.text-balance {
    text-wrap: balance;
}

/* Refined Hover Effects */
@media (hover: hover) {
    .hover-lift:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .hover-glow:hover {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    }
}

/* Ultra Dark Mode Enhancement */
.glass {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(16px) saturate(150%) !important;
}

.gradient-bg {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.95)) !important;
}

/* Compact Mobile Adjustments */
@media (max-width: 640px) {
    header.fixed-header {
        height: 44px;
    }
    
    .kingo-nav {
        height: 52px;
    }
    
    .content-with-header {
        padding-top: calc(44px + env(safe-area-inset-top));
        padding-bottom: calc(52px + env(safe-area-inset-bottom));
    }
    
    .card-premium {
        padding: 0.625rem;
    }
    
    .position-card {
        padding: 0.625rem;
    }
    
    .bg-gradient-to-br {
        padding: 0.75rem;
    }
}

/* Additional Dark Theme Overrides */
.bg-gray-800\/50 { background-color: rgba(20, 20, 20, 0.5) !important; }
.bg-gray-800 { background-color: #141414 !important; }
.bg-gray-700\/50 { background-color: rgba(30, 30, 30, 0.5) !important; }
.bg-gray-700 { background-color: #1a1a1a !important; }
.border-gray-700\/50 { border-color: rgba(255, 255, 255, 0.06) !important; }
.border-gray-700 { border-color: rgba(255, 255, 255, 0.08) !important; }
.border-gray-600 { border-color: rgba(255, 255, 255, 0.1) !important; }

/* Fix for specific backgrounds */
.bg-gradient-to-br.from-gray-900\/80.to-gray-800\/80 {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(20, 20, 20, 0.9)) !important;
}

/* Fix for skeleton loading */
.animate-pulse .bg-gray-700\/50 {
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.5) 25%, rgba(30, 30, 30, 0.5) 50%, rgba(20, 20, 20, 0.5) 75%) !important;
}

/* Override blue/navy colors to match black theme */
.bg-blue-900/30, .bg-indigo-900/30,
.bg-blue-900/20, .bg-indigo-900/20,
.bg-blue-900/10, .bg-indigo-900/10,
.bg-blue-500/20, .bg-indigo-500/20,
.bg-blue-500/10, .bg-indigo-500/10 {
    background: rgba(20, 20, 20, 0.5) !important;
}

.border-blue-600/20, .border-blue-500/20,
.border-blue-700/30, .border-blue-700/20,
.border-indigo-600/20, .border-indigo-500/20 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.text-blue-400 {
    color: #fbbf24 !important; /* Yellow instead of blue */
}

.text-blue-500, .text-indigo-500 {
    color: #f59e0b !important; /* Amber instead of blue */
}

.from-blue-900/30, .from-indigo-900/30 {
    --tw-gradient-from: rgba(20, 20, 20, 0.5) !important;
}

.to-blue-900/30, .to-indigo-900/30 {
    --tw-gradient-to: rgba(30, 30, 30, 0.5) !important;
}

/* Fix purple/indigo gradients */
.from-purple-500, .from-indigo-500 {
    --tw-gradient-from: #fbbf24 !important;
}

.to-purple-500, .to-indigo-500 {
    --tw-gradient-to: #f59e0b !important;
}

/* Fix card backgrounds */
.bg-gradient-to-br {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.95)) !important;
}

/* Force dark backgrounds for all cards */
[class*="rounded-"] {
    background-color: rgba(10, 10, 10, 0.9);
    border-color: rgba(255, 255, 255, 0.06);
}

/* Fix skeleton loading backgrounds */
.animate-pulse [class*="bg-gray"] {
    background: rgba(30, 30, 30, 0.5) !important;
}

/* Bitget Search Input Fix */
#bitgetSearch::placeholder {
    color: #9CA3AF !important;
    opacity: 1 !important;
}

#bitgetSearch::-webkit-input-placeholder {
    color: #9CA3AF !important;
    opacity: 1 !important;
}

#bitgetSearch::-moz-placeholder {
    color: #9CA3AF !important;
    opacity: 1 !important;
}

#bitgetSearch:-ms-input-placeholder {
    color: #9CA3AF !important;
    opacity: 1 !important;
}

#bitgetSearch::-ms-input-placeholder {
    color: #9CA3AF !important;
    opacity: 1 !important;
}

/* Trade Logs Error Message Fix */
#tradeLogsContainer .bg-red-500\/10 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

#tradeLogsContainer .bg-red-500\/10 p {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Mobile specific fix */
@media (max-width: 640px) {
    #tradeLogsContainer .bg-red-500\/10 {
        font-size: 0.625rem; /* Mobilde daha küçük font */
    }
}