@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@300;400;600;700&family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --primary: #4facfe;
    --accent: #0072ff;
    --accent-glow: rgba(0, 114, 255, 0.25);
    --bg: #f0f4ff;
    --white: #ffffff;
    --text: #1a2236;
    --text-muted: #6b7a99;
    --card-bg: #ffffff;
    --input-bg: #f5f7ff;
    --border: #e2e8f8;
    --blur-bg: rgba(255, 255, 255, 0.82);
    --shadow-sm: 0 2px 12px rgba(0, 80, 200, 0.07);
    --shadow-md: 0 8px 32px rgba(0, 80, 200, 0.10);
    --shadow-lg: 0 20px 60px rgba(0, 80, 200, 0.14);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --bg: #0d1117;
    --white: #161b27;
    --text: #e6eaf5;
    --text-muted: #8892aa;
    --card-bg: #1c2233;
    --input-bg: #232b3e;
    --border: #2a3450;
    --blur-bg: rgba(22, 27, 39, 0.88);
    /* ✅ Dark mode shadows — ლურჯი tint, არა pure black */
    --shadow-sm: 0 2px 12px rgba(0,20,80,0.28);
    --shadow-md: 0 8px 32px rgba(0,20,80,0.32);
    --shadow-lg: 0 20px 60px rgba(0,20,80,0.42);
    --accent-glow: rgba(0, 114, 255, 0.20);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

/* scrollbar gutter — layout shift-ის თავიდან ასაცილებლად */
html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Noto Sans Georgian', 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Hero area — premium gradient orbs (CSS only, no GPU animation) ── */
body::before {
    content: '';
    position: fixed;
    top: -120px;
    left: -80px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,172,254,0.13) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    top: -60px;
    right: -100px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,114,255,0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body.dark-mode::before {
    background: radial-gradient(circle, rgba(79,172,254,0.07) 0%, transparent 70%);
}
body.dark-mode::after {
    background: radial-gradient(circle, rgba(0,114,255,0.06) 0%, transparent 70%);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.93); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes planeFly {
    0%   { transform: translateX(-6px) rotate(-6deg); }
    50%  { transform: translateX(6px)  rotate(6deg);  }
    100% { transform: translateX(-6px) rotate(-6deg); }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50%       { box-shadow: 0 0 0 6px transparent; }
}

/* Language switch transition */
.lang-fade-out {
    opacity: 0 !important;
    transform: translateY(8px) !important;
    transition: opacity 0.22s ease, transform 0.22s ease !important;
}
.lang-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.28s ease 0.04s, transform 0.28s cubic-bezier(0.34,1.2,0.64,1) 0.04s;
}

/* ელემენტები რომლებსაც ენა ეცვლება — staggered delay */
[data-i18n], [data-i18n-placeholder] {
    transition: opacity 0.22s ease, transform 0.22s ease;
}
/* ============================================================
   SCROLLBAR — GLOBAL (ყველა გადახვევადი ელემენტი)
   Chrome/Safari/Edge: webkit pseudo-elements
   Firefox: scrollbar-width + scrollbar-color
   Site-themed: blue gradient thumb, transparent track
   ============================================================ */

/* Global — body + all elements */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    background-clip: padding-box;
    border: 2px solid transparent;
    box-shadow: inset 0 0 6px var(--accent-glow);
}
::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
*:hover {
    scrollbar-color: var(--primary) transparent;
}

/* Specific scrollable containers — reinforce */
.modal-content,
.legal-body,
.profile-body,
.chat-messages,
.notif-panel-body,
.options-list,
.sub-options-list,
.phone-country-dropdown,
.calendar-dropdown,
.bcp-container,
.legal-interceptor-text,
.nocash-panel,
.order-history-grid,
.admin-container {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.modal-content::-webkit-scrollbar,
.legal-body::-webkit-scrollbar,
.profile-body::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.notif-panel-body::-webkit-scrollbar,
.options-list::-webkit-scrollbar,
.sub-options-list::-webkit-scrollbar,
.phone-country-dropdown::-webkit-scrollbar,
.calendar-dropdown::-webkit-scrollbar,
.bcp-container::-webkit-scrollbar,
.legal-interceptor-text::-webkit-scrollbar,
.nocash-panel::-webkit-scrollbar,
.admin-container::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track,
.legal-body::-webkit-scrollbar-track,
.profile-body::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track,
.notif-panel-body::-webkit-scrollbar-track,
.options-list::-webkit-scrollbar-track,
.sub-options-list::-webkit-scrollbar-track,
.phone-country-dropdown::-webkit-scrollbar-track,
.calendar-dropdown::-webkit-scrollbar-track,
.bcp-container::-webkit-scrollbar-track,
.legal-interceptor-text::-webkit-scrollbar-track,
.nocash-panel::-webkit-scrollbar-track,
.admin-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb,
.legal-body::-webkit-scrollbar-thumb,
.profile-body::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.notif-panel-body::-webkit-scrollbar-thumb,
.options-list::-webkit-scrollbar-thumb,
.sub-options-list::-webkit-scrollbar-thumb,
.phone-country-dropdown::-webkit-scrollbar-thumb,
.calendar-dropdown::-webkit-scrollbar-thumb,
.bcp-container::-webkit-scrollbar-thumb,
.legal-interceptor-text::-webkit-scrollbar-thumb,
.nocash-panel::-webkit-scrollbar-thumb,
.admin-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50px;
    border: 1.5px solid transparent;
    background-clip: padding-box;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.legal-body::-webkit-scrollbar-thumb:hover,
.profile-body::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover,
.notif-panel-body::-webkit-scrollbar-thumb:hover,
.options-list::-webkit-scrollbar-thumb:hover,
.sub-options-list::-webkit-scrollbar-thumb:hover,
.phone-country-dropdown::-webkit-scrollbar-thumb:hover,
.calendar-dropdown::-webkit-scrollbar-thumb:hover,
.bcp-container::-webkit-scrollbar-thumb:hover,
.legal-interceptor-text::-webkit-scrollbar-thumb:hover,
.nocash-panel::-webkit-scrollbar-thumb:hover,
.admin-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    background-clip: padding-box;
    border: 1.5px solid transparent;
    box-shadow: inset 0 0 4px var(--accent-glow);
}


/* Dropdown-specific scrollbar override — keeps thumb inside rounded container */
.options-list::-webkit-scrollbar,
.sub-options-list::-webkit-scrollbar,
.phone-country-dropdown::-webkit-scrollbar,
.calendar-dropdown::-webkit-scrollbar {
    width: 8px;
    -webkit-appearance: none;
    appearance: none;
}
.options-list::-webkit-scrollbar-thumb,
.sub-options-list::-webkit-scrollbar-thumb,
.phone-country-dropdown::-webkit-scrollbar-thumb,
.calendar-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50px;
    border: none;
    background-clip: padding-box;
}
.options-list::-webkit-scrollbar-track,
.sub-options-list::-webkit-scrollbar-track,
.phone-country-dropdown::-webkit-scrollbar-track,
.calendar-dropdown::-webkit-scrollbar-track {
    margin: 8px 4px;
    background: transparent;
}
.options-list::-webkit-scrollbar-button,
.sub-options-list::-webkit-scrollbar-button,
.phone-country-dropdown::-webkit-scrollbar-button,
.calendar-dropdown::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}
.options-list::-webkit-scrollbar-corner,
.sub-options-list::-webkit-scrollbar-corner,
.phone-country-dropdown::-webkit-scrollbar-corner,
.calendar-dropdown::-webkit-scrollbar-corner {
    background: transparent;
}


/* Hide scrollbar arrow buttons (top/bottom) — Webkit only */
::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
.options-list::-webkit-scrollbar-button,
.sub-options-list::-webkit-scrollbar-button,
.phone-country-dropdown::-webkit-scrollbar-button,
.calendar-dropdown::-webkit-scrollbar-button,
.modal-content::-webkit-scrollbar-button,
.legal-body::-webkit-scrollbar-button,
.profile-body::-webkit-scrollbar-button,
.chat-messages::-webkit-scrollbar-button,
.notif-panel-body::-webkit-scrollbar-button,
.bcp-container::-webkit-scrollbar-button,
.legal-interceptor-text::-webkit-scrollbar-button,
.nocash-panel::-webkit-scrollbar-button,
.admin-container::-webkit-scrollbar-button {
    display: none;
}


/* Aggressive scrollbar button hide — covers all browser variants */
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:single-button:vertical:decrement,
*::-webkit-scrollbar-button:single-button:vertical:increment,
*::-webkit-scrollbar-button:double-button,
*::-webkit-scrollbar-button:start,
*::-webkit-scrollbar-button:end,
*::-webkit-scrollbar-button:vertical:start,
*::-webkit-scrollbar-button:vertical:end,
*::-webkit-scrollbar-button:horizontal:start,
*::-webkit-scrollbar-button:horizontal:end {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}


/* Final fallback — make scrollbar buttons invisible by zero size */
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:horizontal:end:increment {
    display: block;
    height: 0;
    width: 0;
    background-color: transparent;
}
::-webkit-scrollbar-button:vertical:start:increment,
::-webkit-scrollbar-button:vertical:end:decrement,
::-webkit-scrollbar-button:horizontal:start:increment,
::-webkit-scrollbar-button:horizontal:end:decrement {
    display: none;
}
/* ═══════════════════════════════════════════════════════════
   PWA INSTALL BANNER
═══════════════════════════════════════════════════════════ */
.pwa-banner {
    position: fixed;
    bottom: calc(64px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    z-index: 1500;
    animation: slideUpIn 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}
@keyframes slideUpIn {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.pwa-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}
.pwa-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.pwa-banner-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.pwa-banner-text span {
    font-size: 12px;
    color: var(--text-muted);
}
.pwa-banner-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.pwa-banner-dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}