/* iOS/Telegram Style CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

:root {
    /* Dark Theme - Doim qorong'i */
    --bg-primary: #1c1c1e;
    --bg-secondary: #2b2b2d;
    --bg-tertiary: #3a3a3c;
    --bg-glass: rgba(44, 44, 46, 0.8);
    --bg-glass-strong: rgba(44, 44, 46, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #8e8e93;
    --text-tertiary: #6e6e73;
    --accent: #0a84ff;
    --accent-light: rgba(10, 132, 255, 0.15);
    --success: #30d158;
    --warning: #ff9f0a;
    --danger: #ff453a;
    --separator: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    --glass-shadow-strong: 0 4px 24px rgba(0, 0, 0, 0.4);
    --glass-bg-light: rgba(58, 58, 60, 0.8);
    --glass-bg-card: rgba(44, 44, 46, 0.9);
    --blur-amount: 30px;
    --nav-height: 84px;
    --header-height: 56px;
    --border-color: #3e3e40;
}

/* Dark Theme - Liquid Glass */
[data-theme="dark"] {
    --bg-primary: #1c1c1e;
    --bg-secondary: #2b2b2d;
    --bg-tertiary: #3a3a3c;
    --bg-glass: #2b2b2d;
    --bg-glass-strong: #3a3a3c;
    --border-default: #3e3e40;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --text-tertiary: #636366;
    --accent: #0a84ff;
    --accent-light: rgba(10, 132, 255, 0.2);
    --success: #30d158;
    --warning: #ff9f0a;
    --danger: #ff453a;
    --separator: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --glass-shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glass-bg-light: rgba(50, 50, 55, 0.7);
    --glass-bg-card: rgba(40, 40, 45, 0.8);
}

/* Force text colors in dark mode */
[data-theme="dark"] .stat-value,
[data-theme="dark"] .profile-stat-value,
[data-theme="dark"] .history-amount,
[data-theme="dark"] .history-type,
[data-theme="dark"] .plan-duration,
[data-theme="dark"] .home-action-title,
[data-theme="dark"] .menu-text,
[data-theme="dark"] .amount-btn .stars-count,
[data-theme="dark"] .order-detail-value,
[data-theme="dark"] .uzcard-value span {
    color: #ffffff !important;
}

[data-theme="dark"] .price-value {
    color: var(--accent) !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0));
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    scroll-behavior: auto;
}

.hidden {
    display: none !important;
}

#app {
    min-height: 100vh;
    min-height: 100dvh;
}