/* GameTop v1 – dark theme, blue branding, RTL + LTR */
:root {
  --bg: #060606;
  --bg-soft: #0e0e12;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --primary: #2563eb;
  --primary-2: #3b82f6;
  --primary-soft: rgba(37, 99, 235, 0.2);
  --gold: #2563eb;
  --gold-2: #3b82f6;
  --gold-soft: rgba(37, 99, 235, 0.2);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  margin: 0;
}

body {
  font-family: "Cairo", sans-serif;
}

.yc-app {
  min-height: 100vh;
  font-family: "Cairo", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 22%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(135deg, #030303 0%, #0a0a0f 45%, #050506 100%);
  position: relative;
}

.yc-app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.18;
  mask-image: radial-gradient(circle at center, black 38%, transparent 90%);
  z-index: 0;
}

.yc-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: block;
}

.yc-main {
  padding: 24px;
  min-width: 0;
}

/* Sidebar: fixed at body level. LTR = left side, RTL = right side (start side of reading direction) */
.yc-sidebar {
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.97), rgba(18, 18, 22, 0.93));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  min-height: 100vh;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 300px;
  overflow-y: auto;
  z-index: 30;
  transition: transform 0.3s ease;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
}
html[dir="ltr"] .yc-sidebar { left: 0; right: auto; }
html[dir="rtl"] .yc-sidebar { right: 0; left: auto; }

/* Desktop: main content has 300px space on the "start" side (left in LTR, right in RTL) for the sidebar */
@media (min-width: 992px) {
  .yc-app { margin-inline-start: 300px; }
}

.yc-sidebar-close {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: none;
  place-items: center;
  font-size: 1rem;
  z-index: 3;
  cursor: pointer;
}

.yc-brand-box {
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 24px;
  padding: 18px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 18px;
}

.yc-brand-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.yc-brand-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffffff, #93c5fd, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.yc-brand-subtitle {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}

.yc-locale-switcher {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.yc-locale-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.yc-locale-link:hover { color: var(--primary); }
.yc-locale-link.active { color: var(--primary); background: var(--primary-soft); }
.yc-locale-sep { color: var(--muted); font-weight: 400; }

.yc-nav {
  margin-bottom: 18px;
}

.yc-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  padding: 13px 14px;
  transition: all 0.25s ease;
  font-weight: 700;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
  font-family: inherit;
  text-decoration: none;
  text-align: start;
}

.yc-nav-item i {
  font-size: 1.1rem;
}

.yc-nav-item:hover,
.yc-nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.04));
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.yc-vip-card {
  margin-top: auto;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(37, 99, 235, 0.25);
  overflow: hidden;
  position: relative;
}

.yc-vip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 30%);
  pointer-events: none;
}

.yc-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  margin-bottom: 10px;
}

.yc-vip-card h6 {
  font-weight: 800;
  margin: 0 0 6px;
  position: relative;
  z-index: 1;
}

.yc-vip-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.yc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 20;
  pointer-events: none;
}

.yc-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Bottom navigation (Home, Orders, My Wallet) – shown when customer is logged in, mobile/tablet only */
.yc-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 8, 12, 0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}
.yc-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  transition: color 0.2s, background 0.2s;
}
.yc-bottom-nav__item i {
  font-size: 1.35rem;
}
.yc-bottom-nav__item:hover,
.yc-bottom-nav__item:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.yc-bottom-nav__item--active {
  color: var(--primary);
}
.yc-bottom-nav__item--active i {
  color: var(--primary);
}
@media (max-width: 991px) {
  .yc-bottom-nav {
    display: flex;
  }
  .yc-has-bottom-nav .yc-main {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 992px) {
  .yc-bottom-nav { display: none !important; }
}

.yc-topbar {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.yc-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.yc-title span {
  color: #93c5fd;
  font-weight: 900;
  text-shadow: 0 0 24px rgba(147, 197, 253, 0.35);
}

.yc-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  max-width: 420px;
}

.yc-topbar-start {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.yc-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.yc-locale-topbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.yc-locale-topbar .yc-locale-link {
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.yc-locale-topbar .yc-locale-link.active {
  background: var(--primary-soft);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.yc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  font-weight: 700;
}

.yc-chip i {
  color: var(--primary);
  font-size: 0.95em;
}

.yc-topbar-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.yc-topbar-balance:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.yc-topbar-balance i {
  font-size: 1.1em;
  opacity: 0.95;
}

.yc-btn-primary,
.yc-btn-gold {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  transition: 0.25s ease;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.yc-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-weight: 800;
  transition: 0.25s ease;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.yc-btn-outline {
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 12px 22px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  transition: 0.25s ease;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.yc-btn-outline:hover { background: var(--primary-soft); color: var(--primary-2); }

.yc-mobile-menu {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: none;
  place-items: center;
  font-size: 1.35rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.yc-mobile-menu:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.yc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.yc-stat-card {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  height: 100%;
}

.yc-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, var(--primary-soft), transparent);
  pointer-events: none;
}

.yc-stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.yc-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--primary);
}

.yc-stat-label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.yc-stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
}

.yc-stat-note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.yc-hero {
  height: 430px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(8, 8, 12, 0.92), rgba(15, 25, 55, 0.75)),
    url('https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1400&q=80') center/cover;
  background-blend-mode: overlay;
  margin-bottom: 24px;
}

.yc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.11), transparent 20%),
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.2), transparent 18%);
  pointer-events: none;
}

.yc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.yc-hero h1,
.yc-hero p,
.yc-hero button {
  position: relative;
  z-index: 1;
}

.yc-hero h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.3;
  max-width: 720px;
  margin: 0 0 14px;
}

.yc-hero p {
  max-width: 620px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 22px;
}

.yc-hero .yc-btn-primary,
.yc-hero .yc-btn-gold,
.yc-hero .yc-btn-ghost,
.yc-hero-slide .yc-btn-primary,
.yc-hero-slide .yc-btn-gold,
.yc-hero-slide .yc-btn-ghost {
  align-self: flex-start;
}

/* Hero slider (CMS-driven): no default hero background; each slide uses admin image or fallback */
.yc-hero.yc-hero-slider {
  height: 430px;
  padding: 0;
  position: relative;
  background: transparent;
}
.yc-hero.yc-hero-slider::before {
  display: none;
}
.yc-hero-slider__track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: inherit;
}
.yc-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  border-radius: inherit;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(8, 8, 12, 0.92), rgba(15, 25, 55, 0.75));
}
.yc-hero-slide[style*="--yc-hero-slide-bg"] {
  background-image: linear-gradient(135deg, rgba(8, 8, 12, 0.5), rgba(15, 25, 55, 0.45)), var(--yc-hero-slide-bg);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: overlay, normal;
}
.yc-hero-slide.yc-hero-slide--active {
  position: relative;
  opacity: 1;
  visibility: visible;
  min-height: 430px;
}
.yc-hero-slider__dots {
  position: absolute;
  bottom: 24px;
  left: 54px;
  display: flex;
  gap: 10px;
  z-index: 2;
}
.yc-hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.yc-hero-slider__dot:hover { border-color: rgba(255, 255, 255, 0.8); }
.yc-hero-slider__dot--active { background: #fff; border-color: #fff; }

.yc-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 20px;
  margin-top: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.yc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.yc-section-head h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
}

.yc-section-head p {
  margin: 0;
  color: var(--muted);
}

.yc-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  border-radius: 999px;
  padding: 15px 22px;
  font-size: 1rem;
  box-shadow: none;
  outline: none;
  font-family: inherit;
}

.yc-services {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.yc-service-card {
  position: relative;
  color: #fff;
  min-height: 200px;
  border-radius: 24px;
  padding: 24px 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  text-decoration: none;
  display: block;
}

.yc-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, var(--primary-soft), transparent);
  opacity: 0;
  transition: 0.3s ease;
}

.yc-service-card:hover::before {
  opacity: 1;
}

.yc-service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.yc-service-title {
  font-size: 1.02rem;
  font-weight: 900;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.yc-service-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

.yc-service-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #93c5fd;
  background: var(--primary-soft);
  border: 1px solid rgba(37, 99, 235, 0.3);
  position: relative;
  z-index: 1;
}

/* Category cards: full-width image (cover), name under it, 6 columns */
.yc-category-card .yc-service-sub,
.yc-category-card .yc-service-tag {
  display: none;
}
.yc-category-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.yc-category-card .yc-service-icon {
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}
.yc-category-card .yc-service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  vertical-align: middle;
}
.yc-category-card .yc-service-icon i {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yc-category-card .yc-service-title {
  padding: 14px 18px 18px;
  margin: 0;
  flex: 0 0 auto;
}

/* Product grid: 6 per row desktop, 3 on mobile, 1 on small mobile */
.yc-products-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

/* Product card: full-size image, Recharge only (no name/price on card) */
.yc-product-card {
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.yc-product-card::before {
  display: none;
}
.yc-product-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.05));
}
.yc-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yc-product-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  color: var(--muted);
}
.yc-product-card__badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: #ff4a3d;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 6px;
}
.yc-product-card__recharge {
  margin: 0;
  padding: 10px 14px;
  border-radius: 0 0 20px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #93c5fd;
  background: var(--primary-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.yc-product-card__recharge:hover {
  background: var(--primary);
  color: #fff;
}
.yc-product-card__recharge--disabled {
  cursor: default;
  opacity: 0.8;
  color: var(--muted);
}
.yc-product-card--out {
  opacity: 0.85;
}

/* Category card: same look as product card (image + label) */
.yc-category-card.yc-product-card {
  text-decoration: none;
  color: inherit;
}
.yc-category-card .yc-product-card__recharge {
  cursor: inherit;
  display: block;
  text-align: center;
  pointer-events: none;
}
.yc-category-card:hover .yc-product-card__recharge {
  background: var(--primary);
  color: #fff;
}

/* Modal */
.yc-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: grid;
  place-items: center;
  padding: 16px;
}
.yc-modal[hidden] {
  display: none;
}
.yc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}
.yc-modal__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.yc-modal__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.yc-modal__close:hover {
  color: var(--text);
  background: var(--panel-2);
}
.yc-modal__body {
  padding-inline-end: 32px;
}
.yc-product-modal-content .yc-product-modal-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
}
.yc-product-modal-price-line {
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--text);
}
.yc-product-modal-per { color: var(--muted); font-size: 0.9rem; }
.yc-product-modal-balance-line {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--yc-text, #f1f5f9);
}
.yc-product-modal-total-line {
  font-size: 1rem;
  margin: 0 0 20px;
  color: var(--text);
}
.yc-product-modal-total-line span { color: var(--primary-2); font-weight: 700; }
.yc-product-modal-form .yc-form-group { margin-bottom: 16px; }
.yc-product-modal-form .yc-form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.yc-product-modal-form .yc-required { color: #ff6b6b; }
.yc-product-modal-form .yc-form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.yc-product-modal-form .yc-form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.yc-product-modal-form .yc-form-select { height: 48px; cursor: pointer; }
.yc-product-modal-form .yc-form-hint--muted { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.yc-product-modal-form .yc-product-modal-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  font-size: 1rem;
}
.yc-modal-qty-alert { margin-top: 8px; }
.yc-loading {
  color: var(--muted);
  margin: 0;
  padding: 20px;
  text-align: center;
}
.yc-modal .yc-product-modal-content .form-label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--text); }
.yc-modal .yc-product-modal-content .form-control,
.yc-modal .yc-product-modal-content .form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.yc-modal .yc-product-modal-content .form-control:focus,
.yc-modal .yc-product-modal-content .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.yc-modal .yc-product-modal-content .row { display: block; margin: 0 -12px; }
.yc-modal .yc-product-modal-content .col-12 { padding: 0 12px; margin-bottom: 16px; }
.yc-modal .yc-product-modal-content .mb-2 { margin-bottom: 8px; }
.yc-modal .yc-product-modal-content .mb-3 { margin-bottom: 16px; }
.yc-modal .yc-product-modal-content #product-add-form .cs-btn,
.yc-modal .yc-product-modal-content [id="product-submit-btn"] {
  width: 100%;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.2s;
}
.yc-modal .yc-product-modal-content .cs-btn:hover,
.yc-modal .yc-product-modal-content [id="product-submit-btn"]:hover {
  background: var(--primary-2);
}
.yc-modal .yc-product-modal-content .h4 { font-size: 1.15rem; margin: 0 0 8px; }
.yc-modal .yc-product-modal-content .text-muted { color: var(--muted); }
.yc-modal .yc-product-modal-content .alert { padding: 12px; border-radius: 12px; margin: 12px 0; }
.yc-modal .yc-product-modal-content .alert-warning { background: var(--primary-soft); border: 1px solid rgba(37, 99, 235, 0.3); color: #93c5fd; }
.yc-modal .yc-product-modal-content .d-none { display: none !important; }
.yc-modal .yc-product-modal-content .small { font-size: 0.85rem; }
.yc-modal .yc-product-modal-content .mt-1 { margin-top: 6px; }
.yc-modal .yc-product-modal-content .mt-2 { margin-top: 10px; }

/* Pagination (products, orders, etc.) */
.pg-pagination-container {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pg-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
}
.pg-pagination__summary {
  flex: 0 0 auto;
}
.pg-pagination__text {
  font-size: 0.9rem;
  color: var(--muted);
}
.pg-pagination__text strong {
  color: #fff;
  font-weight: 700;
}
.pg-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pg-pagination__item {
  display: inline-flex;
}
.pg-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pg-pagination__link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.pg-pagination__item--active .pg-pagination__link {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #fff;
  cursor: default;
}
.pg-pagination__item--active .pg-pagination__link:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}
.pg-pagination__item--disabled .pg-pagination__link {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--muted);
}
.pg-pagination__item--disabled .pg-pagination__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.pg-pagination__item--ellipsis .pg-pagination__link {
  cursor: default;
  color: var(--muted);
  min-width: 32px;
}
.pg-pagination__link--nav {
  padding: 0 14px;
}
.pg-pagination__link--nav .bi {
  font-size: 1.1em;
}

@media (max-width: 640px) {
  .pg-pagination {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
  }
  .pg-pagination__summary {
    order: 0;
  }
  .pg-pagination__list {
    order: 1;
    justify-content: center;
  }
  .pg-pagination__link {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 0.85rem;
  }
  .pg-pagination__nav-label {
    display: none;
  }
}

.yc-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 28px;
}

.yc-panel h2 {
  margin: 0 0 24px;
  font-size: 2rem;
  font-weight: 900;
}

.yc-payment-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.yc-payment-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
}

.yc-payment-card {
  background: #ff4a3d;
  border-radius: 12px;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 900;
}

.yc-wallet-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.yc-wallet-pill {
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  font-weight: 900;
  color: white;
}

.yc-wallet-pill small {
  display: block;
  font-size: 14px;
}

.yc-wallet-pill strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

.yc-wallet-pill span {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.yc-filter-grid {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: 14px;
  align-items: center;
}

.yc-round-btn {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.yc-form-group { margin-bottom: 18px; }
.yc-label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.yc-form-control { width: 100%; height: 54px; border-radius: 999px; padding: 0 20px; font-size: 16px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.08); color: #fff; outline: none; font-family: inherit; }
.yc-form-control.is-invalid { border-color: #ff4a3d; }
.yc-form-hint { font-size: 0.85rem; margin-top: 4px; color: #ff6b6b; }
.yc-nav-link { color: var(--primary); text-decoration: none; font-weight: 700; }
.yc-nav-link:hover { text-decoration: underline; color: var(--primary-2); }

/* Shared partials (product-quantity-form) compatibility */
.yc-panel .form-control,
.yc-panel .form-select { width: 100%; height: 54px; border-radius: 999px; padding: 0 20px; font-size: 16px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.08); color: #fff; outline: none; font-family: inherit; }
.yc-panel .form-label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.yc-panel .row.g-3 { display: flex; flex-wrap: wrap; gap: 1rem; }
.yc-panel .col-12 { width: 100%; }
.yc-panel table { width: 100%; border-collapse: collapse; color: #fff; }
.yc-panel table th, .yc-panel table td { padding: 14px 16px; border: 1px solid rgba(255,255,255,0.1); text-align: start; }
.yc-panel table th { background: rgba(255,255,255,0.06); font-weight: 700; }
.yc-panel .input-group { display: flex; gap: 8px; }
.yc-panel .input-group .form-control { flex: 1; border-radius: 999px; }
.yc-panel .input-group .btn { border-radius: 999px; padding: 12px 20px; font-weight: 700; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; cursor: pointer; }
.yc-panel .d-inline { display: inline; }
.yc-panel .btn { padding: 8px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-block; border: none; }
.yc-panel .btn-light { background: #fff; color: #111; }
.yc-panel .btn-outline-danger { background: transparent; color: #ff4a3d; border: 1px solid #ff4a3d; }
.yc-panel .btn-sm { font-size: 0.875rem; padding: 6px 12px; }
.yc-panel .text-success { color: #28e27c; }
.yc-panel .text-muted { color: var(--muted); }
.yc-panel .small { font-size: 0.875rem; }
.yc-panel .mb-0 { margin-bottom: 0; }
.yc-panel .mb-1 { margin-bottom: 0.25rem; }
.yc-panel .mb-2 { margin-bottom: 0.5rem; }
.yc-panel .mb-3 { margin-bottom: 1rem; }
.yc-panel .mt-1 { margin-top: 0.25rem; }
.yc-panel .mt-2 { margin-top: 0.5rem; }
.yc-panel .mt-4 { margin-top: 1.5rem; }
.yc-panel .h4 { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; }
.yc-panel .h5 { font-size: 1.125rem; font-weight: 700; margin: 0 0 12px; }
.yc-panel .cs-primary_color { color: var(--primary); }
.yc-panel .cs-btn.cs-style1 { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: none; padding: 12px 24px; border-radius: 999px; font-weight: 800; cursor: pointer; font-family: inherit; }
.yc-panel .d-none { display: none; }
.yc-panel .alert { border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.yc-panel .alert-warning { background: var(--primary-soft); border: 1px solid var(--primary); color: #93c5fd; }
.yc-panel .invalid-feedback { font-size: 0.85rem; color: #ff6b6b; margin-top: 4px; }
.yc-panel .profile-page__badge,
.yc-panel .badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.yc-panel .profile-page__badge--success,
.yc-panel .badge.bg-success { background: #28e27c; color: #111; }
.yc-panel .profile-page__badge--danger,
.yc-panel .badge.bg-danger { background: #ff4a3d; color: #fff; }
.yc-panel .profile-page__badge--warning,
.yc-panel .badge.bg-warning { background: #f7bf1f; color: #111; }
.yc-panel .profile-page__badge--secondary { background: var(--muted); color: #fff; }
.yc-panel .list-group { list-style: none; padding: 0; margin: 0; }
.yc-panel .list-group-item { padding: 14px 16px; border: 1px solid rgba(255,255,255,0.1); border-top: none; background: rgba(255,255,255,0.03); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.yc-panel .list-group-item:first-child { border-top: 1px solid rgba(255,255,255,0.1); }

/* My Payments (دفعاتي): list of deposit requests */
.yc-payments-list { display: flex; flex-direction: column; gap: 12px; }
.yc-payment-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.yc-payment-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  color: #fff;
  font-size: 0.95rem;
}
.yc-payment-card__head::-webkit-details-marker { display: none; }
.yc-payment-card__toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}
.yc-payment-card[open] .yc-payment-card__toggle { transform: rotate(180deg); color: #fff; }
.yc-payment-card__toggle .bi { font-size: 1rem; }
.yc-payment-card__status {
  flex-shrink: 0;
  font-weight: 700;
  min-width: 80px;
}
.yc-payment-card--pending .yc-payment-card__status { color: #f7bf1f; }
.yc-payment-card--approved .yc-payment-card__status { color: #28e27c; }
.yc-payment-card--rejected .yc-payment-card__status { color: #ff6b6b; }
.yc-payment-card__summary {
  flex: 1;
  text-align: end;
  color: var(--muted);
}
.yc-payment-card__body {
  padding: 0 18px 16px 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.yc-payment-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
  margin: 12px 0 0;
  font-size: 0.9rem;
}
.yc-payment-details dt { color: var(--muted); margin: 0; }
.yc-payment-details dd { margin: 0; color: #fff; }
.yc-payment-details dd code { font-size: 0.85em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,0.08); }
.yc-payment-card__info {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}
.yc-payment-card__info-label { font-weight: 700; color: var(--muted); margin-inline-end: 6px; }

@media (max-width: 768px) {
  .yc-panel--my-payments { padding: 18px; }
  .yc-panel--my-payments h2 { font-size: 1.5rem; margin-bottom: 18px; }
  .yc-payments-list { gap: 10px; }
  .yc-payment-card__head { padding: 12px 16px; font-size: 0.9rem; gap: 10px; }
  .yc-payment-card__body { padding: 0 16px 14px 16px; }
  .yc-payment-details { gap: 6px 16px; font-size: 0.875rem; }
  .yc-payment-card__info { padding: 10px 12px; font-size: 0.875rem; }
}

@media (max-width: 640px) {
  .yc-panel--my-payments { padding: 14px; }
  .yc-panel--my-payments h2 { font-size: 1.35rem; margin-bottom: 16px; }
  .yc-payments-list { gap: 10px; }
  .yc-payment-card { border-radius: 12px; }
  .yc-payment-card__head {
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 8px;
    font-size: 0.875rem;
  }
  .yc-payment-card__toggle { width: 32px; height: 32px; }
  .yc-payment-card__status { min-width: auto; font-size: 0.85rem; }
  .yc-payment-card__summary {
    flex-basis: 100%;
    text-align: start;
    order: 3;
    margin-top: 4px;
    padding-inline-start: 0;
    padding-inline-end: 0;
    font-size: 0.85rem;
    word-break: break-word;
  }
  .yc-payment-card__body { padding: 12px 14px 14px; }
  .yc-payment-details {
    grid-template-columns: 1fr;
    gap: 4px 0;
    margin-top: 10px;
    font-size: 0.85rem;
  }
  .yc-payment-details dt { margin-top: 8px; }
  .yc-payment-details dt:first-child { margin-top: 0; }
  .yc-payment-details dd { word-break: break-word; }
  .yc-payment-details dd code { font-size: 0.8em; padding: 2px 5px; }
  .yc-payment-card__info {
    margin-top: 12px;
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .yc-panel--my-payments { padding: 12px; }
  .yc-payment-card__head { padding: 10px 12px; }
  .yc-payment-card__body { padding: 10px 12px 12px; }
  .yc-payment-card__summary { font-size: 0.8rem; }
}

/* My Orders: table + responsive card layout on mobile */
.yc-orders-wrap { overflow-x: auto; }
.yc-orders-table { width: 100%; margin: 0; border-collapse: collapse; color: #fff; }
.yc-orders-table th,
.yc-orders-table td { padding: 14px 16px; border: 1px solid rgba(255,255,255,0.1); text-align: start; }
.yc-orders-table th { background: rgba(255,255,255,0.06); font-weight: 700; font-size: 0.9rem; }
.yc-orders-table td code { font-size: 0.9em; }
.yc-orders-view-btn { display: inline-block; padding: 8px 16px; font-size: 0.875rem; font-weight: 600; text-decoration: none; color: #93c5fd; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; transition: background 0.2s, color 0.2s; }
.yc-orders-view-btn:hover { background: var(--primary-soft); color: #fff; border-color: rgba(37,99,235,0.4); }

@media (max-width: 768px) {
  .yc-orders-wrap { overflow-x: visible; margin: 0 -4px; }
  .yc-orders-table { display: block; }
  .yc-orders-table thead { display: none; }
  .yc-orders-table tbody { display: block; }
  .yc-orders-table tr { display: block; margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.03); }
  .yc-orders-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: none; border-bottom: 1px solid rgba(255,255,255,0.06); min-width: 0; overflow-wrap: break-word; }
  .yc-orders-table td:last-child { border-bottom: none; }
  .yc-orders-table td::before { content: attr(data-label); font-weight: 700; font-size: 0.8rem; color: var(--muted); flex-shrink: 0; }
  .yc-orders-table td[data-label=""]::before { content: none; }
  .yc-orders-table__action { justify-content: stretch; padding-top: 14px !important; }
  .yc-orders-table__action .yc-orders-view-btn { width: 100%; text-align: center; }
}

/* Add funds: method cards */
.add-funds-methods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.add-funds-method-card { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.25rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; min-height: 160px; text-align: center; }
.add-funds-method-card:hover { border-color: rgba(37,99,235,0.4); box-shadow: 0 0 20px rgba(37,99,235,0.15); }
.add-funds-method-card--selected { border-color: var(--primary); box-shadow: 0 0 24px rgba(37,99,235,0.3); background: var(--primary-soft); }
.add-funds-method-card__logo { width: 56px; height: 56px; border-radius: 12px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.add-funds-method-card__logo i { font-size: 1.75rem; color: var(--primary); }
.add-funds-method-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.add-funds-method-card__name { font-size: 0.9375rem; font-weight: 600; color: #fff; }
.add-funds-method-card__btn { display: inline-block; padding: 0.5rem 1rem; border-radius: 10px; font-size: 0.8125rem; font-weight: 600; background: var(--primary-soft); color: var(--primary-2); border: 1px solid rgba(37,99,235,0.3); text-decoration: none; }
.add-funds-method-card__initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 1rem; font-weight: 700; color: var(--primary); background: rgba(255,255,255,0.08); border-radius: 12px; }
.add-funds-method-card--kyc-required { opacity: 0.85; }
.add-funds-method-card--kyc-required .add-funds-method-card__kyc-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--primary); margin-bottom: 0.25rem; }
.add-funds-method-card--kyc-required .add-funds-method-card__btn { cursor: pointer; }
.add-funds-submit-wrap { margin-top: 1.5rem; }
.add-funds-submit-btn { min-width: 200px; }
.add-funds-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 575px) { .add-funds-form-row { grid-template-columns: 1fr; } }
.add-funds-form-amount .yc-form-control { max-width: 200px; }
@media (max-width: 575px) { .add-funds-form-amount .yc-form-control { max-width: 100%; } }

.yc-pill-input,
.yc-field,
.yc-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: none;
  font-family: inherit;
}

.yc-pill-input,
.yc-field {
  height: 54px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 16px;
}

.yc-textarea {
  border-radius: 22px;
  padding: 16px;
  resize: vertical;
}

.yc-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  padding: 44px 0 14px;
}

.yc-empty .icon {
  font-size: 74px;
  display: block;
  margin-bottom: 6px;
}

.yc-alert {
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.yc-alert.warning {
  border: 1px solid #d8a23d;
  color: #ffc764;
  background: transparent;
}

.yc-alert.success {
  background: #28e27c;
  color: white;
}

.yc-alert.gold {
  background: #f7bf1f;
  color: white;
}

.yc-btn-wide {
  width: 100%;
  height: 56px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  font-family: inherit;
}

.yc-btn-faded {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.35);
}

.yc-btn-yellow {
  background: #f7bf1f;
  color: white;
}

.yc-api-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.yc-dark-card,
.yc-api-card {
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.yc-dark-card {
  background: #1b1b1d;
}

.yc-api-card {
  background: #30004d;
}

.yc-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #00f0ff;
  color: #00f0ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
}

.yc-save-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.yc-save {
  border: 0;
  border-radius: 999px;
  background: #21e36e;
  color: white;
  padding: 8px 18px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
}

.yc-about {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.yc-about-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #050505;
  border: 2px solid #ff25c8;
  color: #ff25c8;
  font-size: 44px;
  font-weight: 900;
  margin: 0 auto 22px;
}

.yc-about-item {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.9;
}

.yc-about-line {
  width: 100px;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  margin: 10px auto 0;
}

@media (max-width: 1200px) {
  .yc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yc-services {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .yc-products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .yc-wallet-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  /* Mobile: no margin for main content */
  .yc-app { margin-inline-start: 0 !important; margin-inline-end: 0 !important; }

  /* Mobile sidebar: LTR = slide from left */
  html[dir="ltr"] .yc-sidebar {
    left: 0;
    right: auto;
    transform: translateX(-100%);
  }
  html[dir="ltr"] .yc-sidebar.show {
    transform: translateX(0);
  }
  html[dir="ltr"] .yc-sidebar-close {
    left: 16px;
    right: auto;
  }

  /* Mobile sidebar: RTL = slide from right */
  html[dir="rtl"] .yc-sidebar {
    right: 0;
    left: auto;
    transform: translateX(100%);
  }
  html[dir="rtl"] .yc-sidebar.show {
    transform: translateX(0);
  }
  html[dir="rtl"] .yc-sidebar-close {
    right: 16px;
    left: auto;
  }

  .yc-sidebar {
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    border: none;
    z-index: 10001;
    padding-top: 70px;
    visibility: visible;
    transition: transform 0.3s ease;
  }

  .yc-sidebar-close {
    display: grid !important;
  }

  .yc-mobile-menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible;
    opacity: 1;
  }

  .yc-overlay {
    z-index: 10000;
  }

  body.yc-menu-open {
    overflow: hidden;
  }

  .yc-main {
    padding: 12px;
  }

  .yc-title {
    font-size: 1.6rem;
  }

  .yc-hero {
    height: auto;
    min-height: 340px;
    padding: 28px;
  }

  .yc-hero h1 {
    font-size: 2rem;
  }

  .yc-topbar {
    padding: 18px;
  }

  .yc-topbar > div:first-child {
    flex-shrink: 0;
    min-width: 0;
  }

  .yc-top-actions {
    width: 100%;
  }

  .yc-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .yc-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .yc-api-grid {
    grid-template-columns: 1fr;
  }

  .yc-filter-grid {
    grid-template-columns: 64px 1fr;
  }

  .yc-filter-grid .full-mobile {
    grid-column: 1 / -1;
  }
}

/* Products page: filter form (search + button) – aligned bar, responsive */
.yc-products-filter-wrap {
  position: relative;
  z-index: 10;
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}
.yc-products-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.yc-products-filter .yc-search {
  flex: 1 1 200px;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.yc-products-filter .yc-search::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.yc-products-filter .yc-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.yc-products-filter__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.yc-products-filter__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}
.yc-products-filter__btn:active {
  transform: translateY(0);
}

.yc-search-suggest-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: 0;
  overflow: visible;
}
.yc-search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 280px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}
.yc-search-suggest-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.95rem;
  color: var(--yc-text, #f1f5f9);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s;
}
.yc-search-suggest-item:last-child {
  border-bottom: none;
}
.yc-search-suggest-item:hover,
.yc-search-suggest-item:focus {
  background: rgba(37, 99, 235, 0.25);
  outline: none;
}

@media (max-width: 768px) {
  .yc-products-filter-wrap {
    padding: 16px;
  }
  .yc-products-filter {
    flex-direction: column;
    gap: 10px;
  }
  .yc-search-suggest-wrap {
    flex: 1 1 auto;
    width: 100%;
  }
  .yc-products-filter .yc-search {
    flex: 1 1 auto;
    width: 100%;
    height: 50px;
    padding: 0 18px;
  }
  .yc-products-filter__btn {
    width: 100%;
    height: 50px;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .yc-products-filter-wrap {
    padding: 14px;
    border-radius: 14px;
  }
  .yc-products-filter .yc-search,
  .yc-products-filter__btn {
    height: 48px;
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  .yc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .yc-wallet-stats {
    grid-template-columns: 1fr;
  }
  .yc-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .yc-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .yc-product-card__recharge {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
  .yc-product-card__img {
    border-radius: 14px 14px 0 0;
  }
  .yc-product-card__recharge {
    border-radius: 0 0 14px 14px;
  }
  .yc-products-nav {
    font-size: 0.85rem;
    word-break: break-word;
  }
  .yc-panel--products h2 {
    font-size: 1.35rem;
  }
  .yc-panel--products p {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .yc-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .yc-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
