/* ==========================================
   UZUM THEME — Modern Mobile-First Design
   Inspired by Luck Review Robot layout + Uzum brand
   Brand color: #7000FF
   ========================================== */

/* === GLOBAL RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    background: radial-gradient(circle at 0% 70%, rgba(112,0,255,.18) 0, rgba(112,0,255,0) 28%),
                radial-gradient(circle at 100% 20%, rgba(112,0,255,.14) 0, rgba(112,0,255,0) 24%),
                linear-gradient(180deg, #7B2FF7 0%, #6C1FD4 58%, #5A00B3 100%);
    color: #fff;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; vertical-align: middle; }

/* === TOP RIGHT BUTTONS (lang, theme) === */
.top-actions {
    position: fixed; right: 18px; top: 22px; display: flex; gap: 10px; z-index: 10;
}
.top-actions a, .top-actions button {
    width: 40px; height: 40px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; color: #fff; font-size: 18px; cursor: pointer;
}

/* === PAGE CONTAINER === */
.page { max-width: 430px; margin: 0 auto; min-height: 100vh; padding: 20px 16px 28px; }

/* === TOP BRAND === */
.top-brand { display: flex; align-items: center; gap: 10px; margin-top: 12px; margin-bottom: 20px; }
.top-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.top-brand span { font-weight: 800; font-size: 18px; color: #fff; }

/* === HERO BANNER === */
.hero { border-radius: 14px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.hero img { width: 100%; height: 185px; object-fit: cover; display: block; }

/* === HEADLINE === */
.headline { text-align: center; margin-bottom: 18px; }
.headline h1 { font-size: 28px; line-height: 1.1; letter-spacing: 1px; margin-bottom: 6px; font-weight: 800; }
.headline p { font-size: 15px; line-height: 1.35; opacity: .92; }

/* === GLASS PANEL === */
.panel {
    background: rgba(255,255,255,.92); border-radius: 16px; padding: 24px 18px 16px;
    color: #282a32; box-shadow: 0 14px 34px rgba(0,0,0,.16); backdrop-filter: blur(8px);
}
.panel h2 { text-align: center; font-size: 22px; margin-bottom: 4px; font-weight: 800; }
.panel .sub { text-align: center; color: #666b78; margin-bottom: 16px; font-size: 15px; }

/* === FORM INPUTS === */
.account-form .form-group { margin-bottom: 12px; }
.field {
    position: relative; display: flex; align-items: center;
    border: 1px solid #d8dce8; border-radius: 12px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: #7B2FF7; box-shadow: 0 0 0 3px rgba(123,47,247,.14); }
.field .icon { width: 42px; text-align: center; font-size: 16px; color: #7b8194; user-select: none; }
.field input {
    flex: 1; border: none; outline: none; background: transparent; color: #333;
    font-size: 15px; height: 46px; padding-right: 10px;
}
.field input::placeholder { color: #a2a8b8; }
.pwd-toggle { border: none; background: transparent; color: #7B2FF7; font-size: 13px; padding: 0 12px; cursor: pointer; height: 46px; }

/* === FORM ACTIONS === */
.actions { display: flex; justify-content: flex-end; margin: 8px 2px 10px; }
.actions a { color: #69708a; text-decoration: none; font-size: 13px; }

/* === BUTTONS === */
.btn-primary {
    width: 100%; height: 48px; border: none; border-radius: 12px;
    background: linear-gradient(90deg, #7B2FF7, #7000FF);
    color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 4px;
    box-shadow: 0 8px 20px rgba(112,0,255,.35);
    transition: transform .15s, box-shadow .15s;
}
.btn-primary:active { transform: scale(.97); box-shadow: 0 4px 12px rgba(112,0,255,.25); }

/* === LINK BUTTON (Register/Login switch) === */
.link-btn {
    display: flex; align-items: center; justify-content: space-between; margin-top: 12px;
    border: 1px solid #d0c5f0; color: #7B2FF7; border-radius: 12px; padding: 0 16px;
    height: 46px; text-decoration: none; font-size: 15px; font-weight: 700; background: #f5f0ff;
}

/* === NOTIFICATION === */
.notification {
    position: fixed; left: 50%; transform: translateX(-50%) translateY(-14px);
    top: 18px; background: #7B2FF7; color: #fff; padding: 10px 16px; border-radius: 10px;
    opacity: 0; transition: .25s; z-index: 2000; max-width: 90%; text-align: center; font-size: 13px;
}
.notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === LOADING === */
.loading-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: none; align-items: center; justify-content: center; z-index: 3000; }
.loading-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255,255,255,.35); border-top-color: #fff; animation: uzum-spin 1s linear infinite; }
@keyframes uzum-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ==========================================
   HOME PAGE SPECIFIC
   ========================================== */

/* Top bar */
.top-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; margin-bottom: 10px;
}
.top-bar .logo-area { display: flex; align-items: center; gap: 10px; }
.top-bar .logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.top-bar .logo-area span { font-weight: 800; font-size: 16px; }
.top-bar .top-right { display: flex; gap: 8px; }
.top-bar .top-right a, .top-bar .top-right button {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; cursor: pointer;
}

/* Brand nav — horizontal scroll */
.brand-nav {
    display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 6px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.brand-nav::-webkit-scrollbar { display: none; }
.brand-nav a {
    flex-shrink: 0; padding: 8px 18px; border-radius: 20px;
    background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 600; color: #fff;
    transition: background .2s;
}
.brand-nav a:active { background: rgba(255,255,255,.3); }

/* Quick actions grid */
.quick-actions {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.quick-actions a {
    background: rgba(255,255,255,.92); border-radius: 14px; padding: 14px 10px;
    text-align: center; color: #282a32; font-weight: 700; font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08); text-decoration: none;
}
.quick-actions a .icon { font-size: 24px; display: block; margin-bottom: 4px; }

/* Section title */
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 10px; }
.section-title h2 { font-size: 18px; font-weight: 800; }
.section-title a { font-size: 13px; opacity: .8; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.product-card {
    background: rgba(255,255,255,.92); border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.1); text-decoration: none; color: #282a32;
}
.product-card .thumb { width: 100%; height: 150px; object-fit: cover; display: block; background: #f0edf5; }
.product-card .info { padding: 10px 12px 12px; }
.product-card .info .name { font-size: 13px; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .info .price { font-size: 16px; font-weight: 800; color: #7000FF; }
.product-card .info .price span { font-size: 11px; font-weight: 400; color: #999; }

/* Support section */
.support-section {
    margin-top: 16px; background: rgba(255,255,255,.92); border-radius: 14px;
    padding: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.support-section h3 { font-size: 15px; font-weight: 700; color: #282a32; margin-bottom: 8px; }
.support-section .faq-btn {
    display: block; width: 100%; padding: 10px 14px; margin-bottom: 6px;
    border: 1px solid #e0d8f0; border-radius: 10px; background: #f8f5ff;
    color: #444; font-size: 13px; text-align: left; cursor: pointer;
    transition: background .2s;
}
.support-section .faq-btn:active { background: #ede5ff; }

/* ==========================================
   BOTTOM NAVIGATION (5 tabs)
   ========================================== */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    max-width: 430px; width: 100%;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,.06);
    display: flex; justify-content: space-around; padding: 6px 0 env(safe-area-inset-bottom, 6px);
    z-index: 100;
}
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    text-decoration: none; color: #888; font-size: 10px; padding: 4px 12px;
    transition: color .2s;
}
.bottom-nav a .nav-icon { font-size: 22px; line-height: 1; }
.bottom-nav a.active { color: #7000FF; font-weight: 700; }
.bottom-nav a.active .nav-icon { color: #7000FF; }

/* Spacer for bottom nav */
.nav-spacer { height: 70px; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 430px) {
    .page { padding: 16px 14px 24px; }
    .headline h1 { font-size: 24px; }
    .hero img { height: 160px; }
}
