/* ============================================
   RIDAM STORE - Premium Gaming UI
   Inspired by Kirat Official design language
   ============================================ */

:root {
  /* Brand palette - Crimson Black */
  --primary: #DC2626;
  --primary-dark: #991B1B;
  --primary-light: #EF4444;
  --primary-glow: rgba(220, 38, 38, 0.45);

  --bg-0: #050505;
  --bg-1: #0B0B0B;
  --bg-2: #111111;
  --bg-3: #161616;
  --bg-4: #1C1C1C;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-strong: rgba(20, 20, 20, 0.85);

  --text-1: #FFFFFF;
  --text-2: #B5B5B5;
  --text-3: #8A8A8A;
  --text-4: #5A5A5A;

  --border-1: rgba(255, 255, 255, 0.06);
  --border-2: rgba(255, 255, 255, 0.10);
  --border-3: rgba(255, 255, 255, 0.16);

  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

  --header-h: 88px;
  --nav-h: 84px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
}

/* Alternative themes */
[data-theme="black-gold"] {
  --primary: #D4AF37;
  --primary-dark: #8B6914;
  --primary-light: #FCD34D;
  --primary-glow: rgba(212, 175, 55, 0.45);
}
[data-theme="neon"] {
  --primary: #22D3EE;
  --primary-dark: #0EA5E9;
  --primary-light: #67E8F9;
  --primary-glow: rgba(34, 211, 238, 0.45);
}
[data-theme="violet"] {
  --primary: #A855F7;
  --primary-dark: #7C3AED;
  --primary-light: #C084FC;
  --primary-glow: rgba(168, 85, 247, 0.45);
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 500px at 10% -10%, rgba(220, 38, 38, 0.10), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(220, 38, 38, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   App Wrapper
   ============================================ */
.app-wrapper {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 16px) 16px calc(var(--nav-h) + var(--safe-bottom) + 16px);
  max-width: 540px;
  margin: 0 auto;
  z-index: 1;
}

/* ============================================
   Floating Header
   ============================================ */
.float-header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  height: var(--header-h);
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  gap: 8px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-2);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  z-index: 100;
  overflow: visible;
}

.header-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-glass);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  flex-shrink: 0;
}
.header-icon:active { transform: scale(0.92); }

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.header-logo img,
.logo-fallback {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}
.logo-stack {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--text-1), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-sub {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-3);
  margin-top: 2px;
}

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-full);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
  white-space: nowrap;
}
.wallet-pill:active { transform: scale(0.96); }
.wallet-pill i { font-size: 0.9rem; }

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.sidebar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.sidebar-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85%;
  height: 100%;
  background: var(--bg-2);
  border-right: 1px solid var(--border-2);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar.active { pointer-events: auto; }
.sidebar.active .sidebar-overlay { opacity: 1; }
.sidebar.active .sidebar-panel { transform: translateX(0); }

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-1);
}
.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}
.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-email {
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  margin-bottom: 2px;
}
.side-item i {
  width: 22px;
  text-align: center;
  font-size: 1rem;
  color: var(--text-3);
  transition: color 0.2s var(--ease);
}
.side-item:hover, .side-item.active {
  background: var(--bg-glass);
  color: var(--text-1);
}
.side-item.active {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.18), rgba(220, 38, 38, 0.06));
  color: var(--text-1);
}
.side-item.active i { color: var(--primary); }
.side-divider {
  height: 1px;
  background: var(--border-1);
  margin: 12px 16px;
}
.sidebar-foot {
  padding: 12px;
  border-top: 1px solid var(--border-1);
}
.side-item.logout { color: var(--error); }
.side-item.logout i { color: var(--error); }

/* ============================================
   Theme Picker
   ============================================ */
.theme-picker {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
}
.theme-picker.active { display: block; }
.theme-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s var(--ease);
}
.theme-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-2);
  border-radius: 24px 24px 0 0;
  padding: 16px 20px 32px;
  border-top: 1px solid var(--border-2);
  animation: slideUp 0.4s var(--ease);
  max-width: 540px;
  margin: 0 auto;
}
.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--text-4);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.sheet-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.theme-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-3);
  border: 2px solid var(--border-2);
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.theme-card:hover { border-color: var(--primary); }
.theme-card.active {
  border-color: var(--primary);
  background: rgba(220, 38, 38, 0.1);
}
.theme-card .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Pages
   ============================================ */
.page-content { position: relative; }
.page { display: none; }
.page.active { display: block; animation: fadeUp 0.4s var(--ease); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ============================================
   Container Head
   ============================================ */
.container-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s var(--ease);
}
.back-btn:active { transform: scale(0.92); }
.container-head h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

/* ============================================
   Banner Slider
   ============================================ */
.banner-slider {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-3);
}
.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s var(--ease);
}
.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
}
.banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
  color: white;
}
.banner-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.1;
}
.banner-sub {
  font-size: 0.85rem;
  opacity: 0.9;
}
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.banner-dot.active {
  width: 24px;
  border-radius: 3px;
  background: var(--primary);
}

/* ============================================
   Trust Bar
   ============================================ */
.trust-bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.trust-bar::-webkit-scrollbar { display: none; }
.trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.trust-item i {
  font-size: 1rem;
  color: var(--primary);
}

/* ============================================
   Section Block
   ============================================ */
.section-block { margin-bottom: 28px; }
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.block-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}
.head-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s var(--ease);
}
.head-link:hover, .head-link:active { color: var(--primary); }
.head-link i { font-size: 0.7rem; transition: transform 0.2s var(--ease); }
.head-link:hover i { transform: translateX(2px); }

/* ============================================
   Quick Actions Grid
   ============================================ */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.quick-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.04));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.quick-card:hover::before, .quick-card:active::before { opacity: 1; }
.quick-card:active { transform: scale(0.95); }
.qc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c1, var(--primary)), var(--c2, var(--primary-dark)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.quick-card span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
}

/* ============================================
   Chip Row
   ============================================ */
.chip-row {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 4px;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.chip:hover { border-color: var(--primary); color: var(--text-1); }
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 16px var(--primary-glow);
}

/* ============================================
   Product Grid
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.product-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.product-card:hover, .product-card:active {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.pc-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--bg-3);
}
.pc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px var(--primary-glow);
  z-index: 2;
}
.pc-badge.new { background: var(--success); box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4); }
.pc-badge.hot { background: linear-gradient(135deg, #F59E0B, #DC2626); }
.pc-body {
  padding: 12px;
}
.pc-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-meta {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 10px;
}
.pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pc-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--success);
}
.pc-btn {
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  transition: transform 0.2s var(--ease);
}
.pc-btn:active { transform: scale(0.94); }

/* ============================================
   Card
   ============================================ */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-1);
}
.card-head h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-head h3 i { color: var(--primary); }
.card-body { padding: 20px; }
.card-foot { padding: 16px 20px; border-top: 1px solid var(--border-1); }

/* ============================================
   Form
   ============================================ */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  margin-left: 4px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-3);
  border: 1.5px solid var(--border-2);
  border-radius: 14px;
  color: var(--text-1);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-2);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-4); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%238A8A8A' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  padding-right: 40px;
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: 0.72rem; color: var(--text-3); margin-top: 4px; margin-left: 4px; }
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-2);
  cursor: pointer;
  margin: 12px 0;
}
.form-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.form-check a { color: var(--primary); font-weight: 600; }

/* ============================================
   Buttons
   ============================================ */
.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 14px;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
  background: var(--bg-3);
  border: 1.5px solid var(--border-2);
  color: var(--text-1);
}
.btn-secondary:active { transform: scale(0.97); }
.btn-success {
  background: linear-gradient(135deg, var(--success), #15803D);
  color: white;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}
.btn-danger {
  background: linear-gradient(135deg, var(--error), #991B1B);
  color: white;
}
.btn-google {
  width: 100%;
  background: var(--bg-3);
  border: 1.5px solid var(--border-2);
  color: var(--text-1);
}
.btn-google i { color: #EA4335; }
.btn-primary.block, .btn-secondary.block, .btn-success.block, .btn-danger.block, .btn-google.block {
  width: 100%;
  margin-top: 6px;
}
.btn-primary.big {
  width: 100%;
  padding: 18px 24px;
  font-size: 1rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin: 6px 0 14px;
  display: block;
  text-align: right;
}

/* ============================================
   Search Box
   ============================================ */
.search-box {
  position: relative;
  margin-bottom: 16px;
}
.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
}
.search-box input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: var(--bg-3);
  border: 1.5px solid var(--border-2);
  border-radius: 16px;
  color: var(--text-1);
  font-size: 0.95rem;
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ============================================
   Game Detail
   ============================================ */
.game-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-3);
  min-height: 180px;
}
.gh-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.gh-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
}
.gh-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.gh-desc {
  font-size: 0.82rem;
  opacity: 0.9;
}

/* Check ID Result */
.check-result {
  margin-top: 12px;
  display: none;
}
.check-result.show {
  display: block;
  animation: fadeUp 0.3s var(--ease);
}
.check-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 14px;
  color: var(--success);
}
.check-success i { font-size: 1.25rem; }
.check-success strong { display: block; font-size: 0.95rem; }
.check-success small { font-size: 0.75rem; opacity: 0.8; }

/* ============================================
   Packages Grid
   ============================================ */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.package-card {
  position: relative;
  background: var(--bg-3);
  border: 2px solid var(--border-2);
  border-radius: 18px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  overflow: hidden;
}
.package-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  z-index: 0;
}
.package-card > * { position: relative; z-index: 1; }
.package-card:hover, .package-card:active {
  transform: translateY(-2px);
}
.package-card.selected {
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--primary-glow);
}
.package-card.selected::before { opacity: 0.15; }
.pkg-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  line-height: 1.3;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.package-card.selected .pkg-name { color: var(--text-1); }
.pkg-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-1);
}

/* ============================================
   Order Summary
   ============================================ */
.os-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.88rem;
}
.os-row span:first-child { color: var(--text-3); }
.os-row span:last-child { font-weight: 600; }
.os-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-1);
  font-size: 1.1rem;
  font-weight: 800;
}
.os-total span:last-child {
  color: var(--success);
  font-size: 1.25rem;
}

/* ============================================
   Payment Options
   ============================================ */
.payment-section h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 10px;
}
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-3);
  border: 2px solid var(--border-2);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.payment-option input { display: none; }
.payment-option i {
  font-size: 1.15rem;
  color: var(--primary);
  width: 32px;
  text-align: center;
}
.payment-option > div { flex: 1; }
.payment-option span {
  font-weight: 700;
  display: block;
  font-size: 0.9rem;
}
.payment-option small { font-size: 0.72rem; color: var(--text-3); }
.payment-option.selected {
  border-color: var(--primary);
  background: rgba(220, 38, 38, 0.08);
}

/* ============================================
   Sticky Pay Button
   ============================================ */
.sticky-pay {
  position: sticky;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
  margin-top: 16px;
  z-index: 50;
}

/* ============================================
   Orders List
   ============================================ */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  padding: 16px;
}
.oc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.oc-id {
  font-family: monospace;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}
.oc-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.oc-status.pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.oc-status.processing { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.oc-status.completed { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.oc-status.failed { background: rgba(239, 68, 68, 0.15); color: var(--error); }

.oc-body {
  display: flex;
  gap: 12px;
  align-items: center;
}
.oc-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}
.oc-info { flex: 1; min-width: 0; }
.oc-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.oc-meta {
  font-size: 0.72rem;
  color: var(--text-3);
}
.oc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-1);
}
.oc-date { font-size: 0.72rem; color: var(--text-3); }
.oc-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--success);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
}
.empty-state i {
  font-size: 3rem;
  color: var(--text-4);
  margin-bottom: 12px;
}
.empty-state h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.empty-state p {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ============================================
   Wallet Hero
   ============================================ */
.wallet-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-2xl);
  padding: 28px 24px;
  text-align: center;
  color: white;
  margin-bottom: 20px;
  overflow: hidden;
}
.wh-bg {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}
.wh-label {
  font-size: 0.82rem;
  opacity: 0.9;
  display: block;
  margin-bottom: 6px;
  position: relative;
}
.wh-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}
.wh-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  position: relative;
}
.wh-btn {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--ease);
}
.wh-btn:active { transform: scale(0.95); }

/* Transactions */
.txn-list {
  display: flex;
  flex-direction: column;
}
.txn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-1);
}
.txn-item:last-child { border-bottom: none; }
.txn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.txn-icon.credit { background: rgba(34, 197, 94, 0.12); color: var(--success); }
.txn-icon.debit { background: rgba(239, 68, 68, 0.12); color: var(--error); }
.txn-info { flex: 1; min-width: 0; }
.txn-title { font-weight: 600; font-size: 0.85rem; }
.txn-date { font-size: 0.7rem; color: var(--text-3); }
.txn-amount { font-weight: 700; font-size: 0.9rem; }
.txn-amount.credit { color: var(--success); }
.txn-amount.debit { color: var(--error); }

/* ============================================
   Notifications
   ============================================ */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notif-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  padding: 16px;
}
.notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.notif-title { font-weight: 700; font-size: 0.9rem; }
.notif-time { font-size: 0.7rem; color: var(--text-3); }
.notif-body {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ============================================
   Support
   ============================================ */
.support-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.support-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  transition: all 0.2s var(--ease);
}
.support-card:hover, .support-card:active {
  transform: translateX(4px);
  border-color: var(--primary);
}
.sc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.sc-info { flex: 1; }
.sc-info h4 { font-size: 0.9rem; font-weight: 700; }
.sc-info p { font-size: 0.78rem; color: var(--text-3); }
.support-card > i { color: var(--text-4); }

/* ============================================
   Profile Hero
   ============================================ */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-2xl);
  margin-bottom: 16px;
}
.ph-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}
.ph-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.ph-info p { font-size: 0.82rem; color: var(--text-3); }

/* ============================================
   Modals
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  padding: 0;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-sheet {
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  background: var(--bg-2);
  border-radius: 28px 28px 0 0;
  border-top: 1px solid var(--border-2);
  padding: 24px;
  overflow-y: auto;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.modal-overlay.active .modal-sheet { transform: translateY(0); }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-1);
}
.modal-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.modal-close:hover, .modal-close:active {
  background: var(--error);
  color: white;
  border-color: var(--error);
}
.modal-body { padding-top: 4px; }

/* Auth Modal */
.auth-head { text-align: center; margin-bottom: 24px; padding-top: 8px; }
.auth-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.auth-head p { color: var(--text-3); font-size: 0.88rem; }
.auth-divider {
  text-align: center;
  position: relative;
  margin: 18px 0;
  color: var(--text-3);
  font-size: 0.78rem;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-1);
}
.auth-divider span {
  background: var(--bg-2);
  padding: 0 12px;
  position: relative;
}
.auth-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-3);
}
.auth-switch a {
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

/* Success Modal */
.success-icon, .info-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
}
.success-icon {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  animation: pulse 1.5s ease-in-out infinite;
}
.info-icon {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}
#success-modal h3, #info-modal h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
#success-modal p, #info-modal p {
  text-align: center;
  color: var(--text-2);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

/* ============================================
   Quick Amounts
   ============================================ */
.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.qa-btn {
  padding: 12px;
  background: var(--bg-3);
  border: 1.5px solid var(--border-2);
  border-radius: 14px;
  color: var(--text-1);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s var(--ease);
}
.qa-btn:active { transform: scale(0.94); border-color: var(--primary); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  margin-top: 32px;
  padding: 28px 0 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-2xl);
  padding: 24px;
  margin-bottom: 16px;
}
.footer-brand { margin-bottom: 24px; }
.fb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.fb-logo img, .fb-logo .logo-fallback {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.fb-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 16px;
}
.social-row {
  display: flex;
  gap: 8px;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  font-size: 1rem;
  transition: all 0.2s var(--ease);
}
.social-btn:hover, .social-btn:active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-1);
}
.fcol h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-1);
}
.fcol a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.fcol a:hover, .fcol a:active { color: var(--primary); }
.fcol a i { font-size: 0.85rem; }

.copyright {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-4);
  padding-top: 20px;
  border-top: 1px solid var(--border-1);
}

/* ============================================
   Floating Bottom Nav
   ============================================ */
.float-nav {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 540px;
  margin: 0 auto;
  height: 68px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  padding-bottom: var(--safe-bottom);
}
.fn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-3);
  font-size: 0.65rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.fn-item i { font-size: 1.1rem; }
.fn-item:hover, .fn-item.active { color: var(--primary); }
.fn-item.center {
  flex: 0 0 70px;
}
.fn-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-size: 1.3rem;
  margin-top: -22px;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: transform 0.3s var(--ease-bounce);
}
.fn-icon:active { transform: scale(0.92); }
.fn-item.center.active .fn-icon {
  animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-3);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  z-index: 400;
  opacity: 0;
  transition: all 0.3s var(--ease);
  max-width: 90%;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-icon { color: var(--success); font-size: 1.1rem; }
.toast.error .toast-icon { color: var(--error); }
.toast-message { font-size: 0.85rem; font-weight: 600; }

/* ============================================
   Loader
   ============================================ */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.9);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   Loading Skeleton
   ============================================ */
.loading-skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 18px;
  height: 180px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   Utility
   ============================================ */
.mt-4 { margin-top: 1rem; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; }
}

@media (min-width: 541px) {
  .app-wrapper { padding-left: 20px; padding-right: 20px; }
}

@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .banner-slider { height: 280px; }
}
/* ============================================
   LOGO OVERRIDES — Natural aspect ratio, no crop
   ============================================ */
.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 4px;
  overflow: visible;
}
.header-logo-img {
  /* Source PNG has heavy transparent padding around the shield,
     so we size by HEIGHT of the actual element box and let the
     PNG render at its natural aspect ratio (no cropping). */
  height: 64px;
  width: auto;
  max-width: none;
  max-height: 64px;
  object-fit: contain;
  border-radius: 0;
  background: none !important;
  display: block;
  pointer-events: none;
}
/* Kill old logo-text just in case */
.logo-text { display: none !important; }
.logo-stack { display: none !important; }
.logo-name { display: none !important; }
.logo-sub { display: none !important; }

/* Footer logo — natural, no text */
.footer-logo-img {
  height: 72px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  border-radius: 0;
  background: none !important;
  display: block;
}
.fb-logo span { display: none !important; }

/* Bottom nav logo */
.fn-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0;
  background: none;
}

/* Auth modal logo */
.auth-logo {
  height: 96px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
  border-radius: 0;
  background: none;
}

/* Loader logo */
.loader-logo {
  height: 140px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  margin-bottom: 32px;
  animation: pulse 2s ease-in-out infinite;
}

/* Sidebar user logo removed — using initial avatar instead */
.user-logo { display: none !important; }

/* ============================================
   Quick Actions — rebuilt to use .quick-grid / .quick-card
   ============================================ */
.quick-row { display: none; } /* remove old quick-row if present */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.quick-card span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.qc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c1, var(--primary)), var(--c2, var(--primary-dark)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

/* ============================================
   Product image placeholder
   ============================================ */
.pc-image-placeholder {
  width: 100%;
  height: 140px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-4);
  font-size: 2rem;
}

/* ============================================
   Settings Page
   ============================================ */
.settings-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-1);
  cursor: pointer;
  transition: opacity 0.15s;
  gap: 12px;
}
.settings-row:last-child { border-bottom: none; }
.settings-row:active { opacity: 0.7; }
.sr-info {
  flex: 1;
  min-width: 0;
}
.sr-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-1);
  margin-bottom: 2px;
}
.sr-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
}
.sr-arrow {
  color: var(--text-4);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Toggle switch */
.sr-toggle {
  flex-shrink: 0;
}
.toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--bg-4);
  border: 1.5px solid var(--border-2);
  position: relative;
  transition: background 0.25s;
}
.sr-toggle.active .toggle-track {
  background: var(--primary);
  border-color: var(--primary);
}
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.sr-toggle.active .toggle-thumb {
  transform: translateX(20px);
  background: white;
}

/* ============================================
   Check error state
   ============================================ */
.check-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 14px;
  color: var(--error);
}
.check-error i { font-size: 1.25rem; }
.check-error strong { display: block; font-size: 0.95rem; }
.check-error small { font-size: 0.75rem; opacity: 0.8; }

/* ============================================
   Toast info type
   ============================================ */
.toast.info .toast-icon { color: var(--info); }

/* ============================================
   Loader screen
   ============================================ */
.loader-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.4s var(--ease);
}
.loader-bar {
  width: 160px;
  height: 3px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  animation: loadFill 1.2s var(--ease) forwards;
}
@keyframes loadFill {
  from { width: 0; }
  to { width: 100%; }
}

/* ============================================
   Announce bar animation (CSS-driven)
   ============================================ */
.announce-bar {
  overflow: hidden;
  background: linear-gradient(135deg, rgba(220,38,38,0.08), rgba(220,38,38,0.04));
  border: 1px solid rgba(220,38,38,0.15);
  border-radius: 14px;
  padding: 10px 0;
  margin-bottom: 16px;
}
.announce-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 0 24px;
}
.announce-track span { flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Icon btn (sidebar close)
   ============================================ */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
}
