@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

* {
  box-sizing: border-box;
}

:root {
  --brand-dark: #121212;
  --brand-light: #f7f9fc;
  --brand-border: rgba(0, 0, 0, 0.08); /* #d7d2cd */
  --brand-text: #2d3748;
  --brand-muted: #718096;
  --brand-accent: #2b6cb0;
  --card-radius: 20px;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--brand-light);
  color: var(--brand-text);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.bottom-nav-label {
  display: block;
  max-width: none;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  letter-spacing: -0.01em;
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.topbar-heading {
  min-width: 0;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.topbar h1,
.topbar p {
  margin: 0;
}

.topbar p {
  color: #6b7280;
  margin-top: 4px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: #0f172a;
}

.content {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card h2,
.card h3,
.card h4 {
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid {
  display: grid;
  gap: 20px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) inset;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
  background: #fff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-dark);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}
button:active,
.button:active {
  transform: scale(0.96);
}
button:hover,
.button:hover {
  background: #000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

button:disabled,
.button.disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

button:disabled:hover,
.button.disabled:hover {
  background: var(--brand-dark);
  box-shadow: none;
  transform: none;
}

button.secondary,
.button.secondary {
  background: #64748b;
}

button.danger,
.button.danger {
  background: #b42318;
}

button.light,
.button.light {
  background: #e5eef7;
  color: #0f4c81;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: #f8fafc;
}

.muted {
  color: #6b7280;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 0;
  pointer-events: none;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  pointer-events: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
  animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-hide {
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
}

@keyframes toastSlideIn {
  0% { opacity: 0; transform: translateY(-20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.toast-msg {
  flex: 1;
  min-width: 0;
}

.toast-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: auto;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s;
  box-shadow: none;
}
.toast-close:hover {
  opacity: 1;
  background: rgba(0,0,0,0.1);
  transform: none;
  box-shadow: none;
}

.toast-success {
  background: rgba(236,253,243,0.92);
  color: #067647;
  border: 1px solid #abefc6;
}
.toast-success .toast-icon {
  background: #d1fae5;
  color: #059669;
}

.toast-error {
  background: rgba(254,243,242,0.92);
  color: #b42318;
  border: 1px solid #fecdca;
}
.toast-error .toast-icon {
  background: #fee2e2;
  color: #dc2626;
}

.toast-warning {
  background: rgba(255,247,237,0.92);
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.toast-warning .toast-icon {
  background: #ffedd5;
  color: #ea580c;
}

.toast-info {
  background: rgba(239,246,255,0.92);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.toast-info .toast-icon {
  background: #dbeafe;
  color: #2563eb;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e5eef7;
  color: #0f4c81;
}

.badge.warn {
  background: #fff7ed;
  color: #c2410c;
}

.badge.danger {
  background: #fef2f2;
  color: #b91c1c;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f4f6;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-form input,
.inline-form select {
  width: auto;
  min-width: 120px;
}

.table-note {
  font-size: 12px;
  color: var(--brand-muted);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pending {
  background: #fff7ed;
  color: #c2410c;
}

.status-completed {
  background: #ecfdf3;
  color: #15803d;
}

.status-rejected {
  background: #fef2f2;
  color: #b91c1c;
}

.status-premium {
  background: #fae8ff;
  color: #a21caf;
}

.status-normal {
  background: #e0f2fe;
  color: #0369a1;
}

body.public-app {
  background: #fff;
  color: var(--brand-text);
}
body.public-app .content {
  display: block;
  overflow: visible;
}

/* ==========================================
   BONIA HOMEPAGE STYLES
   ========================================== */
.mobile-screen.bonia-home {
  background: #fff;
  min-height: auto;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.bonia-announcement {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1.4;
  overflow: hidden;
}

.announcement-slider span {
  display: inline-block;
  animation: marquee 20s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.bonia-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0,0,0,0.25);
  padding: 20px;
}

.hero-title {
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.hero-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0;
}

.hero-btn-primary {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}
.hero-btn-primary:hover {
  background: transparent;
  color: #fff;
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.hero-btn-outline:hover {
  background: #fff;
  color: #000;
}

.bonia-section {
  padding: 50px 20px;
}

.section-heading {
  text-align: center;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin: 0 0 30px;
  color: #000;
}

.product-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-scroll::-webkit-scrollbar { display: none; }

.product-scroll-inner {
  display: flex;
  gap: 16px;
  padding: 0 4px 10px;
  min-width: min-content;
}

.product-card-item {
  flex: 0 0 220px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}
.product-card-item:hover {
  transform: translateY(-4px);
}

.product-card-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #f5f5f5;
}

.product-card-label {
  margin: 10px 0 0;
  font-size: 13px;
  text-align: center;
  color: #333;
  letter-spacing: 0.5px;
}

.bonia-lifestyle {
  padding: 0 20px 50px;
}

.lifestyle-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.lifestyle-banner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.lifestyle-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0,0,0,0.35);
  padding: 30px;
  color: #fff;
}

.lifestyle-overlay h3 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.lifestyle-overlay p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 0 20px;
  opacity: 0.9;
}

.bonia-categories {
  padding: 50px 20px;
  background: #fafafa;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.category-block {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.category-block img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-block:hover img {
  transform: scale(1.05);
}

.category-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  color: #000;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.bonia-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.service-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 16px;
  gap: 8px;
  border-right: 1px solid #e5e5e5;
}
.service-feature:last-child { border-right: none; }

.service-feature svg {
  color: #333;
}

.service-feature strong {
  font-size: 12px;
  letter-spacing: 2px;
  color: #000;
}

.service-feature span {
  font-size: 11px;
  color: #888;
}

.bonia-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 50px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 2px;
  margin: 0 0 6px;
  font-weight: 600;
}

.footer-col a {
  color: #aaa;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  font-size: 11px;
  color: #777;
  margin: 0;
  letter-spacing: 0.5px;
}

.bonia-footer {
  padding-bottom: 100px;
}

.app-shell {
  max-width: 520px;
  min-height: 100vh;
  padding: 0 0 84px;
}

.app-content {
  gap: 0;
}

.content {
  overflow: visible;
}

.mobile-screen {
  min-height: calc(100vh - 84px);
  position: relative;
  background: #fff;
  animation: fadeInDisplay 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInDisplay {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-screen {
  min-height: 100vh;
  background: var(--brand-light);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.auth-top-image {
  height: 30vh;
  min-height: 220px;
}

.auth-top-image img,
.auth-top-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-bottom-bg {
  display: none;
}

.auth-panel {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 40px 28px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  animation: slideUpFade 0.6s ease forwards;
}

@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 150px;
  position: relative;
}

.lang-switch select {
  appearance: auto;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.lang-switch select:focus {
  outline: none;
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.brand-logo {
  width: 30%;
  min-width: 110px;
  margin: 12px auto 0;
}

.screen-title {
  margin: 28px 0 10px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-dark);
}

.screen-subtitle {
  margin: 0 0 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #3f3f3f;
}

.auth-form {
  width: min(340px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none;
  border-bottom: 1px solid #d8d8d8;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  padding: 0;
  transition: border-color 0.3s ease;
}
.field-row:focus-within {
  border-color: #000;
  background: transparent;
}

.field-row span {
  min-width: fit-content;
  padding: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
}

.field-row input,
.field-row select {
  border: 0;
  border-radius: 0;
  text-align: left;
  background: transparent;
  box-shadow: none;
  padding: 8px 0 10px;
  font-size: 15px;
  color: #111;
  letter-spacing: 0.3px;
}
.field-row input::placeholder {
  color: #bbb;
  font-weight: 400;
  letter-spacing: 0;
}
.field-row input:focus,
.field-row select:focus {
  box-shadow: none;
  outline: none;
}

.primary-app-button {
  width: 100%;
  min-height: 48px;
  background: #000;
  color: #fff;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  border: 1px solid #000;
  transition: opacity 0.3s ease;
}

.primary-app-button:hover {
  opacity: 0.85;
}

.link-row {
  width: 80%;
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-dark);
}

.link-row.single-link {
  justify-content: flex-end;
}

.copyright {
  margin-top: 42px;
  margin-bottom: 24px;
  font-size: 10px;
  text-align: center;
  color: #666;
}

.register-hero {
  position: absolute;
  inset: 0 0 auto;
  height: 30vh;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.register-top {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 2;
  padding: 20px 18px 0;
  color: #fff;
}

.register-back {
  margin-top: 5vh;
  font-size: 20px;
}

.register-panel {
  position: absolute;
  inset: 30vh 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 28px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  overflow-y: auto;
  animation: slideUpFade 0.6s ease forwards;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 14px;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 3px;
  background: #333;
}

.section-divider span {
  font-size: 20px;
}

.stack-images {
  display: grid;
  gap: 16px;
  margin: 0 24px 24px;
}

.stack-images img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.stack-images img:hover {
  transform: scale(1.04);
}

.support-screen {
  background: #fff;
}

.support-hero {
  position: relative;
  width: 100%;
  height: 35vh;
  min-height: 200px;
  overflow: hidden;
}

.support-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}

.support-hero-overlay h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin: 0;
}

.support-content {
  padding: 30px 24px;
  text-align: center;
}

.support-message {
  padding: 0;
  font-size: 15px;
  text-align: center;
  color: #555;
  line-height: 1.7;
}

.hero-btn-dark {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  padding: 14px 40px !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
}
.hero-btn-dark:hover {
  background: #333 !important;
  border-color: #333 !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

.app-padded {
  padding: 24px 24px 18px;
}

.account-screen {
  display: flex;
}

.account-bg {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
}

.account-stack {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 20px;
}

.white-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease;
}
.white-panel:hover {
  transform: translateY(-2px);
}

.profile-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-head img {
  width: 64px;
  height: 64px;
}

.profile-lines {
  display: grid;
  gap: 4px;
}

.profile-lines strong {
  font-size: 16px;
}

.balance-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.balance-title {
  font-size: 15px;
  font-weight: 700;
}

.balance-value {
  font-size: 26px;
  font-weight: 800;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 10px 14px;
  border: 1px solid #111;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-weight: 600;
}

.stats-section {
  padding: 0 16px;
}

.stats-section h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.stats-list {
  display: grid;
  gap: 10px;
}

.stats-row {
  display: flex;
}

.stats-row strong,
.stats-row span {
  flex: 1;
}

.service-section {
  padding: 20px 16px 0;
}

.service-section h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.service-grid {
  display: grid;
  gap: 30px 16px;
  grid-template-columns: repeat(3, 1fr);
  font-size: 14px;
}

.service-item {
  display: grid;
  gap: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  padding: 12px 8px;
  border-radius: 16px;
}
.service-item:hover {
  transform: translateY(-4px);
  background: rgba(0,0,0,0.03);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-icon {
  margin: 0 auto;
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.warning-card {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 14px 16px;
  color: #9a3412;
}

.history-filter {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
  font-size: 15px;
}

.history-filter a {
  color: #999;
}

.history-filter a.active {
  color: #413b3b;
  font-weight: 700;
}

.history-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.history-card {
  display: grid;
  gap: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}
.history-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.history-head,
.history-row,
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.history-product {
  display: flex;
  gap: 14px;
}

.history-product img {
  width: 50px;
  height: 65px;
  object-fit: cover;
}

.history-meta {
  flex: 1;
  display: grid;
  gap: 6px;
}

.divider {
  height: 1px;
  background: #d7d7d7;
}

.price-label {
  color: #dc2626;
  font-size: 14px;
}

.price-value {
  color: #dc2626;
  font-size: 16px;
  font-weight: 800;
}

.order-page-bg {
  position: absolute;
  inset: 0;
  background-color: #f7f7f8;
  background-size: 100% 60%;
  background-position: top;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.order-stack {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 20px;
  padding: 24px;
}

.order-balance-card {
  margin-top: 10vh;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.big-money {
  font-size: 30px;
  font-weight: 800;
}

.mini-summary {
  margin-top: 18px;
  border-radius: 12px;
  background: rgba(0, 208, 234, 0.1);
  padding: 16px;
  font-size: 12px;
}

.mini-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.full-button {
  width: 80%;
  margin: 0 auto;
  min-height: 44px;
  background: var(--brand-dark);
}

.steps-title {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
}

.steps-list {
  display: grid;
  gap: 14px;
}

.steps-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.withdraw-balance {
  background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%);
  color: #fff;
  border-radius: 28px;
  padding: 36px 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}
.withdraw-balance::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.withdraw-card {
  background: #fff;
  padding: 12px;
}

.withdraw-note {
  max-width: 600px;
  margin: 12px auto 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff5f2;
  color: #b3471f;
  font-size: 14px;
  line-height: 1.5;
}

.withdraw-input {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border-bottom: 1px solid #999;
}

.withdraw-input strong {
  font-size: 30px;
  line-height: 1;
}

.withdraw-input input {
  border: 0;
  padding: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  text-align: left;
}

.simple-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.simple-table thead th {
  border-bottom: 0;
  background: transparent;
  color: var(--brand-muted);
  font-size: 13px;
}

.simple-table tbody tr {
  background: #fff;
}

.simple-table tbody td:first-child {
  border-radius: 12px 0 0 12px;
}

.simple-table tbody td:last-child {
  border-radius: 0 12px 12px 0;
}

.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: calc(520px - 32px);
  margin: 0 auto;
  z-index: 999;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  min-height: 72px;
  background: rgba(26, 26, 30, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #a0a0a0;
  border-radius: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  padding: 0 10px;
}

.nav-logo {
  display: none;
}


.bottom-nav-item {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
  place-items: center;
  padding: 12px 4px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
}
.bottom-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.bottom-nav-item.active {
  color: #ffffff;
  transform: translateY(-4px);
}
.bottom-nav-item.active .bottom-nav-icon {
  color: #ffffff;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.6));
}

.bottom-nav-icon {
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inline-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
}

.content-card-title {
  margin: 0 0 14px;
  font-size: 18px;
}

.modal-block {
  margin-top: 14px;
}

.modal-block h4 {
  margin-bottom: 8px;
}

.admin-actions {
  gap: 8px;
}

body.admin-dashboard {
  --admin-bg: #eef3f8;
  --admin-surface: rgba(255, 255, 255, 0.92);
  --admin-border: rgba(148, 163, 184, 0.22);
  --admin-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --admin-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
  --admin-text: #0f172a;
  --admin-subtle: #475569;
  --admin-primary: #1d4ed8;
  --admin-primary-dark: #1e40af;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.05), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, var(--admin-bg) 100%);
  color: var(--admin-text);
}

.admin-dashboard .shell {
  max-width: 1520px;
  padding: 26px 28px 36px;
}

.admin-dashboard .topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: block;
  align-items: start;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.admin-dashboard .topbar-heading {
  padding-right: 208px;
}

.admin-dashboard .topbar-actions {
  position: absolute;
  top: 14px;
  right: 20px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  z-index: 2;
}

.admin-dashboard .topbar h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--admin-text);
}

.admin-dashboard .topbar p {
  color: #64748b;
  font-size: 13px;
}

.admin-lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 172px;
  min-height: 36px;
  padding: 0 34px 0 10px;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.admin-lang-switch::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #94a3b8;
  border-bottom: 1.5px solid #94a3b8;
  transform: translateY(-62%) rotate(45deg);
  pointer-events: none;
}

.admin-lang-switch:hover {
  border-color: #cbd5e1;
  background: #fcfdff;
}

.admin-lang-switch:focus-within {
  border-color: #bfdbfe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-lang-switch-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex: 0 0 auto;
  pointer-events: none;
}

.admin-lang-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  outline: none;
  cursor: pointer;
}

.admin-lang-select::-ms-expand {
  display: none;
}

.admin-lang-select option {
  color: #0f172a;
  background: #fff;
}

.admin-dashboard .nav {
  gap: 10px;
  overflow-x: auto;
  flex-wrap: nowrap;
  margin-top: 14px;
  padding: 6px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  scrollbar-width: thin;
}

.admin-dashboard .nav a {
  padding: 9px 14px;
  border-radius: 12px;
  background: transparent;
  color: #334155;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-dashboard .nav a:hover {
  background: #fff;
  color: var(--admin-text);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.admin-dashboard .nav a.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.admin-dashboard .card {
  border-radius: 18px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow-soft);
  padding: 20px 22px;
}

.admin-dashboard .card:hover {
  transform: none;
  box-shadow: var(--admin-shadow);
}

.admin-dashboard .card h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.admin-dashboard .card h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.admin-dashboard .card h2,
.admin-dashboard .card h3 {
  margin-bottom: 10px;
  color: var(--admin-text);
}

.admin-dashboard .card > p.muted {
  max-width: 76ch;
  line-height: 1.6;
}

.admin-dashboard .muted {
  color: var(--admin-subtle);
  font-size: 13px;
}

.admin-dashboard label {
  gap: 8px;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-dashboard .form-grid {
  gap: 14px;
}

.admin-dashboard input,
.admin-dashboard select,
.admin-dashboard textarea {
  padding: 11px 13px;
  border-radius: 12px;
  border-color: rgba(148, 163, 184, 0.28);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.admin-dashboard input:focus,
.admin-dashboard select:focus,
.admin-dashboard textarea:focus {
  border-color: rgba(29, 78, 216, 0.42);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

.admin-dashboard textarea {
  min-height: 104px;
}

.admin-dashboard button,
.admin-dashboard .button {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, var(--admin-text) 0%, #1e293b 100%);
}

.admin-dashboard button:hover,
.admin-dashboard .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.admin-dashboard button:active,
.admin-dashboard .button:active {
  transform: translateY(0);
}

.admin-dashboard button.secondary,
.admin-dashboard .button.secondary {
  background: linear-gradient(135deg, #475569 0%, #64748b 100%);
  color: #fff;
}

.admin-dashboard button.danger,
.admin-dashboard .button.danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.admin-dashboard table {
  background: transparent;
}

.admin-dashboard th {
  background: #f8fafc;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 700;
}

.admin-dashboard th,
.admin-dashboard td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
}

.admin-dashboard tbody tr:hover {
  background: #fbfdff;
}

.admin-dashboard table a {
  color: var(--admin-primary);
  font-weight: 600;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-card-head h3 {
  margin-bottom: 6px;
}

.admin-dashboard .button.light,
.admin-dashboard button.light {
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: none;
}

.admin-dashboard .button.light:hover,
.admin-dashboard button.light:hover {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.4);
}

.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.admin-product-tile {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-product-meta {
  display: grid;
  gap: 6px;
}

.admin-media-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: #eef2f7;
}

.admin-media-thumb--sm {
  width: 60px;
  height: 60px;
  min-width: 60px;
  aspect-ratio: auto;
  border-radius: 10px;
}

.admin-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #d1d5db;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}

.admin-media-placeholder--sm {
  width: 60px;
  height: 60px;
  min-width: 60px;
  aspect-ratio: auto;
  border-radius: 10px;
}

.admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-inline-input {
  width: 108px;
}

.admin-inline-select {
  width: 108px;
}

.admin-dashboard .content {
  gap: 18px;
}

.admin-dashboard .actions {
  gap: 8px;
  align-items: center;
}

.admin-dashboard .actions form {
  margin: 0;
}

.admin-dashboard .admin-page-actions {
  gap: 10px;
  padding-bottom: 4px;
  position: relative;
  z-index: 2;
}

.admin-dashboard .admin-chip-actions {
  gap: 8px;
  position: relative;
  z-index: 2;
}

.admin-dashboard .admin-chip-actions button {
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: none;
}

.admin-dashboard .admin-chip-actions button:hover {
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow: none;
}

.admin-dashboard .admin-actions-tight {
  margin: 0;
}

.admin-dashboard .admin-actions-end {
  align-self: end;
}

.admin-dashboard .inline-form,
.admin-dashboard .admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-dashboard .inline-form {
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  background: #f8fafc;
}

.admin-dashboard .inline-form input,
.admin-dashboard .inline-form select {
  min-height: 36px;
  min-width: 140px;
  border-radius: 10px;
}

.admin-dashboard .inline-form button,
.admin-dashboard .inline-form .button {
  min-height: 36px;
}

.admin-dashboard .table-wrap {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-dashboard .admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 132px;
}

.admin-dashboard .admin-row-actions .button,
.admin-dashboard .admin-row-actions button,
.admin-dashboard .admin-inline-form .button,
.admin-dashboard .admin-inline-form button {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: none;
}

.admin-dashboard .card > .grid.three > div {
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-dashboard .card > .grid.three > div strong {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.admin-dashboard .card .grid.two > form,
.admin-dashboard .card .grid.three > form {
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.admin-dashboard .badge {
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .shell {
    padding: 16px;
  }

  .admin-dashboard .shell {
    padding: 16px;
  }

  .app-shell {
    padding: 0 0 84px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .admin-dashboard .topbar {
    padding: 16px;
    border-radius: 18px;
  }

  .admin-dashboard .topbar-heading {
    padding-right: 164px;
  }

  .admin-dashboard .topbar-actions {
    top: 12px;
    right: 16px;
    margin-top: 0;
  }

  .admin-dashboard .nav {
    margin-top: 12px;
  }

  .admin-dashboard .nav {
    padding: 4px;
  }

  .admin-dashboard .card {
    padding: 16px;
  }

  .admin-dashboard .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-lang-switch {
    min-width: 140px;
    max-width: 164px;
  }

  .admin-dashboard .inline-form input,
  .admin-dashboard .inline-form select,
  .admin-dashboard .inline-form button,
  .admin-dashboard .inline-form .button {
    width: 100%;
    min-width: 0;
  }

  .admin-dashboard .admin-page-actions,
  .admin-dashboard .admin-chip-actions,
  .admin-dashboard .admin-row-actions {
    width: 100%;
  }

  .admin-dashboard .admin-row-actions .button,
  .admin-dashboard .admin-row-actions button {
    flex: 1 1 calc(50% - 3px);
    justify-content: center;
  }

  .admin-dashboard .card .grid.two > form,
  .admin-dashboard .card .grid.three > form {
    padding: 14px;
  }

  /* Mobile BONIA Homepage */
  .bonia-hero {
    height: 55vh;
    min-height: 320px;
  }

  .hero-title {
    font-size: 26px;
    letter-spacing: 5px;
  }

  .hero-subtitle {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: 11px;
  }

  .bonia-section {
    padding: 35px 16px;
  }

  .section-heading {
    font-size: 18px;
    letter-spacing: 4px;
    margin-bottom: 20px;
  }

  .product-card-item {
    flex: 0 0 160px;
  }

  .product-card-item img {
    height: 210px;
  }

  .product-card-label {
    font-size: 11px;
  }

  .bonia-lifestyle {
    padding: 0 16px 35px;
  }

  .lifestyle-banner img {
    height: 280px;
  }

  .lifestyle-overlay h3 {
    font-size: 20px;
    letter-spacing: 4px;
  }

  .lifestyle-overlay p {
    font-size: 12px;
  }

  .bonia-categories {
    padding: 35px 16px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-block img {
    height: 200px;
  }

  .bonia-services {
    grid-template-columns: 1fr;
    border: none;
  }

  .service-feature {
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 16px;
    flex-direction: row;
    gap: 14px;
    text-align: left;
  }
  .service-feature:last-child { border-bottom: none; }

  .bonia-footer {
    padding: 35px 16px 100px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* =========================================
   DESKTOP OPTIMIZATION (Bonia Luxury Style)
   ========================================= */
@media (min-width: 768px) {
  body.public-app {
    background: #fff;
  }
  body.public-app .app-shell {
    max-width: 100%;
    padding: 80px 0 0;
  }
  body.public-app .app-shell:has(.auth-screen) {
    padding-top: 0;
  }

  .mobile-screen.bonia-home {
    width: auto;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .mobile-screen {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    padding: 0;
    min-height: calc(100vh - 80px);
  }

  /* Inner pages get centered max-width */
  .mobile-screen:not(.bonia-home) {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
  }

  /* BONIA Desktop Navigation */
  .bottom-nav {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    justify-content: center;
    align-items: center;
    gap: 0;
    height: 80px;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 30px;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    flex-shrink: 0;
    text-decoration: none;
  }
  .nav-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
  }

  .bottom-nav-item {
    font-size: 11px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex: none;
    padding: 10px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
  }

  .bottom-nav-label {
    font-size: inherit;
    letter-spacing: inherit;
    overflow: visible;
    text-overflow: clip;
  }

  .bottom-nav-item.active {
    color: #000;
    background: transparent;
    transform: none;
    font-weight: 700;
    border-bottom: 2px solid #000;
  }

  .bottom-nav-item.active .bottom-nav-icon {
    color: #000;
    filter: none;
  }

  .bottom-nav-item:hover {
    background: transparent;
    color: #666;
  }

  .bottom-nav-icon {
    display: none;
  }

  .bonia-footer {
    padding-bottom: 30px;
  }

  /* BONIA Hero Desktop */
  .bonia-hero {
    height: 85vh;
    min-height: 600px;
  }

  .hero-title {
    font-size: 56px;
    letter-spacing: 14px;
  }

  .hero-subtitle {
    font-size: 16px;
    letter-spacing: 5px;
    margin-bottom: 36px;
  }

  .hero-btn {
    padding: 14px 40px;
    font-size: 13px;
  }

  /* Desktop Product Section */
  .bonia-section {
    padding: 70px 60px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .section-heading {
    font-size: 26px;
    letter-spacing: 8px;
    margin-bottom: 40px;
  }

  .product-scroll-inner {
    justify-content: center;
    gap: 24px;
  }

  .product-card-item {
    flex: 0 0 260px;
  }

  .product-card-item img {
    height: 340px;
  }

  /* Desktop Lifestyle */
  .bonia-lifestyle {
    padding: 0 60px 70px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .lifestyle-banner img {
    height: 550px;
  }

  .lifestyle-overlay h3 {
    font-size: 38px;
    letter-spacing: 10px;
  }

  /* Desktop Categories */
  .bonia-categories {
    padding: 70px 60px;
  }

  .categories-grid {
    max-width: 1400px;
    margin: 0 auto;
    gap: 24px;
  }

  .category-block img {
    height: 450px;
  }

  /* Desktop Services */
  .bonia-services {
    max-width: 1400px;
    margin: 0 auto;
  }

  .service-feature {
    padding: 40px 20px;
  }

  /* Desktop Footer */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 40px;
  }

  /* Announcement bar desktop */
  .bonia-announcement {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .announcement-slider span {
    animation: none;
  }

  /* Login/Register Desktop - KEEP UNCHANGED */
  .auth-screen {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
    background: #fff;
  }

  .auth-bottom-bg {
    display: none;
  }

  .auth-top-image, .register-hero {
    display: block;
    width: 55%;
    height: 100vh;
    min-height: 100vh;
    position: relative;
    inset: auto;
  }

  .auth-panel, .register-panel {
    position: relative;
    inset: auto;
    width: 45%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.05);
    padding: 40px 10%;
    background: #fff;
    overflow-y: auto;
    margin: 0;
    border: none;
  }

  .register-top {
    display: block;
    position: absolute;
    top: 0;
    left: 55%;
    padding: 40px;
    color: #000;
  }

  .screen-title {
    font-size: 32px;
    text-align: left;
    color: #111;
    text-transform: none;
    letter-spacing: normal;
  }
  .screen-subtitle {
    text-align: left;
    margin-bottom: 40px;
    color: #555;
  }
  .brand-logo {
    margin: 0 0 30px 0;
    width: 160px;
    display: block;
  }

  .auth-form {
    margin: 0;
    width: 100%;
  }

  .link-row {
    width: 100%;
    margin-top: 24px;
    color: #000;
  }

  .primary-app-button, .full-button {
    background: #000;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
  }

  .primary-app-button:hover, .full-button:hover {
    background: #333;
  }

  .field-row, input, select, textarea {
    border-radius: 2px;
  }

  .lang-switch {
    display: none;
  }

  /* Desktop inner pages - modern luxury look */
  .app-padded {
    padding: 40px 60px;
    max-width: 900px;
    margin: 0 auto;
  }

  .account-screen {
    max-width: 900px;
    margin: 0 auto;
  }

  .order-balance-card {
    max-width: 600px;
    margin: 10vh auto 0;
  }

  .history-list {
    max-width: 800px;
    margin: 32px auto 0;
  }

  .withdraw-balance {
    max-width: 600px;
    margin: 0 auto;
  }

  .withdraw-card {
    max-width: 600px;
    margin: 0 auto;
  }

  .support-screen {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
  }
}

/* ==========================================
   PRO ACCOUNT PAGE
   ========================================== */
.pro-profile-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  border-radius: 24px;
  padding: 28px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.pro-profile-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.pro-profile-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.pro-profile-top {
  display: flex;
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.pro-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.pro-avatar-wrap img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  object-fit: cover;
}
.pro-vip-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #c9a84c, #f0d78c);
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(201,168,76,0.4);
}

.pro-profile-info {
  display: grid;
  gap: 4px;
}
.pro-username {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.pro-uid {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.pro-credit {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.pro-credit strong {
  color: #f0d78c;
}

/* Balance Card */
.pro-balance-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}
.pro-balance-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.pro-balance-label {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pro-balance-amount {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
}
.pro-withdraw-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #111;
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  white-space: nowrap;
}
.pro-withdraw-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Stats Card */
.pro-stats-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}
.pro-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #f0f0f0;
  border-radius: 14px;
  overflow: hidden;
}
.pro-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  background: #fff;
  text-align: center;
}
.pro-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: #111;
}
.pro-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Service Section */
.pro-service-section {
  padding: 8px 0 0;
}
.pro-section-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.3px;
}
.pro-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pro-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.pro-service-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.1);
}
.pro-service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f5f5f5;
  border-radius: 14px;
  color: #333;
  transition: all 0.3s ease;
}
.pro-service-item:hover .pro-service-icon {
  background: #111;
  color: #fff;
}
.pro-service-label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-align: center;
  line-height: 1.3;
}

/* ==========================================
   LUX ORDER PAGE
   ========================================== */
.lux-order-page {
  background: #f5f5f5 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* Hero header with image */
.lux-order-hero {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  flex-shrink: 0;
}
.lux-order-hero--short {
  height: 180px;
}
.lux-order-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lux-order-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.7) 100%);
}
.lux-order-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  z-index: 1;
}
.lux-order-hero-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.lux-order-hero-amount {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.lux-order-hero--short .lux-order-hero-amount {
  font-size: 34px;
}
.lux-order-hero-amount.is-negative {
  color: #fecaca;
}
.lux-order-hero-note {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* Body below hero */
.lux-order-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px 40px;
  margin-top: -30px;
  position: relative;
  z-index: 2;
}

.lux-order-sync-note {
  margin: 12px 20px 0;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}

/* Stats row */
.lux-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.lux-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 10px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lux-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.lux-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f0f0f0;
  color: #555;
}
.lux-stat-icon--success {
  background: #ecfdf3;
  color: #059669;
}
.lux-stat-icon--pending {
  background: #fff7ed;
  color: #ea580c;
}
.lux-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  line-height: 1;
}
.lux-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.3;
}

/* Action button */
.lux-order-action {
  display: flex;
  justify-content: center;
  padding: 0 10px;
}
.lux-order-btn {
  width: 100%;
  min-height: 56px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.lux-order-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.lux-order-btn:hover {
  background: #000;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.lux-order-btn:active {
  transform: scale(0.97);
}
.lux-order-btn-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.lux-order-funding-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.lux-order-funding-card.is-negative {
  border-color: rgba(234, 88, 12, 0.18);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.lux-order-funding-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lux-order-funding-row + .lux-order-funding-row {
  margin-top: 10px;
}

.lux-order-funding-row span {
  font-size: 13px;
  color: #64748b;
}

.lux-order-funding-row strong {
  font-size: 15px;
  color: #0f172a;
}

.lux-order-funding-amount.is-negative {
  color: #b42318;
}

.lux-order-funding-amount.is-warning {
  color: #c2410c;
}

.lux-order-funding-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #9a3412;
}

/* How it works / Steps */
.lux-how-it-works {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
}
.lux-how-title {
  font-size: 13px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.lux-how-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lux-hw-step {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lux-hw-num {
  font-size: 24px;
  font-weight: 800;
  color: #ddd;
  min-width: 36px;
  letter-spacing: -1px;
}
.lux-hw-line {
  width: 24px;
  height: 2px;
  background: #e5e5e5;
  flex-shrink: 0;
}
.lux-hw-text {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

/* ==========================================
   LUX CONFIRMATION PAGE
   ========================================== */
.lux-confirm-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lux-confirm-product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.lux-confirm-img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  background: #f5f5f5;
  flex-shrink: 0;
}
.lux-confirm-product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.lux-confirm-product-name {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}
.lux-confirm-product-price {
  font-size: 16px;
  font-weight: 800;
  color: #dc2626;
}
.lux-confirm-divider {
  height: 1px;
  background: #f0f0f0;
}
.lux-confirm-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lux-confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.lux-confirm-row-label {
  font-size: 13px;
  font-weight: 500;
  color: #888;
}
.lux-confirm-row-val {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-align: right;
}
.lux-confirm-row-val--timer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.04em;
}
.lux-confirm-row-val--timer.is-expired {
  color: #b42318;
}
.lux-confirm-row-val--highlight {
  font-size: 16px;
  font-weight: 800;
  color: #dc2626;
}

.lux-confirm-row-val--negative {
  color: #b42318;
}

.lux-confirm-row-val--warning {
  color: #c2410c;
}

.lux-confirm-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #9a3412;
}

.lux-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
}

.lux-modal-backdrop[hidden] {
  display: none;
}

.lux-modal-card {
  width: min(360px, 100%);
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  text-align: center;
}

.lux-modal-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #111827;
}

.lux-modal-card p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.5;
}

.lux-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #b42318;
  font-size: 28px;
  font-weight: 800;
}

.lux-modal-icon--success {
  background: #dcfce7;
  color: #15803d;
}

/* Desktop overrides for new components */
@media (min-width: 768px) {
  .lux-order-page {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .lux-order-hero {
    height: 340px;
  }
  .lux-order-hero--short {
    height: 220px;
  }
  .lux-order-hero-amount {
    font-size: 56px;
  }
  .lux-order-hero--short .lux-order-hero-amount {
    font-size: 44px;
  }
  .lux-order-hero-label {
    font-size: 13px;
    letter-spacing: 4px;
  }
  .lux-order-hero-note {
    font-size: 13px;
    letter-spacing: 2.2px;
  }
  .lux-order-body {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px 20px 60px;
  }
  .lux-stats-row {
    gap: 16px;
  }
  .lux-stat-box {
    padding: 24px 16px;
  }
  .lux-stat-val {
    font-size: 24px;
  }
  .lux-stat-lbl {
    font-size: 11px;
  }
  .lux-order-btn {
    max-width: 440px;
    margin: 0 auto;
    min-height: 58px;
  }
  .lux-confirm-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px;
  }
  .lux-confirm-img {
    width: 88px;
    height: 110px;
  }
  .pro-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admin-spin-grid {
  display: grid;
  gap: 18px;
}

.admin-spin-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.admin-spin-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-spin-card-media .admin-media-thumb,
.admin-spin-card-media .admin-media-placeholder {
  width: 100%;
  max-width: 220px;
  height: 220px;
  border-radius: 22px;
}

.admin-spin-card-body {
  display: grid;
  gap: 14px;
}

.admin-spin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lucky-spin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.24), transparent 32%),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.18), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 52%, #f8fafc 100%);
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.lucky-spin-hero {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.lucky-spin-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lucky-spin-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.72));
}

.lucky-spin-hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  color: #fff;
  padding: 24px;
}

.lucky-spin-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.lucky-spin-hero-content h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.lucky-spin-hero-content p {
  margin: 0;
  color: rgba(255,255,255,0.86);
}

.lucky-spin-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 18px 120px;
  margin-top: -42px;
}

.lucky-spin-summary-card,
.lucky-spin-stage-card,
.lucky-spin-prizes-card,
.lucky-spin-history-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.lucky-spin-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.lucky-spin-summary-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.lucky-spin-summary-item span {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lucky-spin-summary-item strong {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.lucky-spin-stage-card,
.lucky-spin-prizes-card,
.lucky-spin-history-card {
  padding: 22px;
}

.lucky-spin-stage-copy {
  display: grid;
  gap: 8px;
}

.lucky-spin-stage-copy h3,
.lucky-spin-section-head h3,
.lucky-spin-history-card h3 {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
}

.lucky-spin-stage-copy p,
.lucky-spin-section-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.lucky-spin-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 18px;
}

.lucky-spin-pointer {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 28px solid #0f172a;
  filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.22));
  position: relative;
  z-index: 3;
  margin-bottom: -16px;
}

.lucky-spin-wheel-shell {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
}

.lucky-spin-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 12px solid rgba(255,255,255,0.96);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18);
  transition: transform 4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lucky-spin-wheel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, rgba(255,255,255,0.14), transparent 48%);
  pointer-events: none;
}

.lucky-spin-wheel::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.45);
  pointer-events: none;
}

.lucky-spin-segment-label {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 50%;
  transform-origin: bottom center;
  transform: rotate(var(--label-rotation, 0deg));
  pointer-events: none;
  z-index: 2;
}

.lucky-spin-segment-title {
  position: absolute;
  top: calc(100% - var(--label-offset, 62%));
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  font-size: var(--label-font-size, 11px);
  font-weight: 700;
  line-height: 1.22;
  max-height: 2.3em;
  overflow: hidden;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  color: var(--label-text-color, #fff);
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.22);
  text-align: center;
  white-space: nowrap;
}

.lucky-spin-segment-label small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lucky-spin-wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #111827, #020617);
  color: #fff;
  border: 7px solid rgba(255,255,255,0.92);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1.15;
  padding: 0 10px;
}

.lucky-spin-action {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  padding: 0;
}

.lucky-spin-action .lux-order-btn {
  width: min(100%, 320px);
}

.lucky-spin-prize-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.lucky-spin-prize-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.lucky-spin-prize-card img,
.lucky-spin-prize-placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e2e8f0;
}

.lucky-spin-prize-placeholder {
  display: grid;
  place-items: center;
  color: #64748b;
  font-weight: 700;
}

.lucky-spin-prize-meta {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.lucky-spin-prize-meta strong {
  color: #0f172a;
  line-height: 1.35;
}

.lucky-spin-prize-meta span {
  color: #64748b;
  font-size: 13px;
}

.lucky-spin-history-grid {
  display: grid;
  gap: 18px;
}

.lucky-spin-history-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.lucky-spin-history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.lucky-spin-history-copy {
  min-width: 0;
}

.lucky-spin-history-item strong {
  display: block;
  color: #0f172a;
}

.lucky-spin-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.lucky-spin-history-meta span {
  color: #64748b;
  font-size: 12px;
}

.lucky-spin-history-amount {
  font-size: 14px;
  font-weight: 800;
  color: #dc2626;
  text-align: right;
}

.lucky-spin-modal-card {
  width: min(380px, 100%);
}

.lucky-spin-modal-image {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  margin: 0 auto 16px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
}

.lucky-spin-modal-prize {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.lucky-spin-modal-prize strong {
  color: #0f172a;
  font-size: 18px;
}

.lucky-spin-modal-prize span {
  color: #dc2626;
  font-size: 20px;
  font-weight: 800;
}

@media (min-width: 768px) {
  .admin-spin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lucky-spin-hero {
    height: 320px;
  }

  .lucky-spin-hero-content h2 {
    font-size: 48px;
  }

  .lucky-spin-body {
    max-width: 1100px;
    margin: -56px auto 0;
    padding: 0 24px 140px;
  }

  .lucky-spin-stage-card,
  .lucky-spin-prizes-card,
  .lucky-spin-history-card,
  .lucky-spin-summary-card {
    padding: 26px;
  }

  .lucky-spin-prize-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lucky-spin-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================
   ADMIN SIDEBAR LAYOUT
   ========================================== */

/* Outer wrapper: sidebar + main side by side */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f0f2f5;
}

/* ---------- Sidebar ---------- */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #c8d6e5;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.admin-sidebar-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.admin-sidebar-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.admin-sidebar-footer {
  flex-shrink: 0;
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.admin-sidebar-footer .admin-lang-switch {
  width: 100%;
}

.admin-sidebar-footer .admin-lang-select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #c8d6e5;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
  width: 100%;
}

.admin-sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #a4b0be;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

.admin-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  transform: translateX(4px);
}

.admin-sidebar-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 0 #4fc3f7;
}

.admin-sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.75;
}

.admin-sidebar-link.active .admin-sidebar-icon,
.admin-sidebar-link:hover .admin-sidebar-icon {
  opacity: 1;
}

.admin-sidebar-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Admin Main Area ---------- */
.admin-main {
  flex: 1;
  margin-left: 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-main > .content {
  padding: 24px 32px 48px;
  max-width: 1400px;
  width: 100%;
}

/* ---------- Admin Top Bar ---------- */
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 64px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.admin-topbar-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
}

.admin-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #f0f2f5;
  color: #1a1a2e;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: none;
  min-height: auto;
}

.admin-menu-toggle:hover {
  background: #e4e7eb;
  transform: none;
  box-shadow: none;
}

/* ---------- Sidebar Overlay (Mobile) ---------- */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-sidebar-overlay.open {
  display: block;
  opacity: 1;
}

/* ---------- Admin-specific card overrides ---------- */
.admin-layout .card {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  backdrop-filter: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.admin-layout .card:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---------- Admin row actions ---------- */
.admin-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-row-actions .button,
.admin-row-actions button {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 8px;
  min-height: auto;
}

.admin-user-action-panel-body {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1120px, calc(100vw - 72px));
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.admin-user-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  align-content: flex-start;
  min-width: 0;
  flex: 1 1 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.admin-user-action-group h4 {
  flex: 0 0 100%;
  margin: 0 0 2px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

.admin-user-action-modal-launch {
  min-width: 0;
  flex: 0 0 auto;
}

.admin-user-action-open {
  justify-content: center;
  white-space: nowrap;
  line-height: 1.2;
  padding: 10px 16px;
  font-size: 13px;
}

.admin-user-action-form,
.admin-user-action-preset-list form,
.admin-user-action-pending-list form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.admin-user-action-form button,
.admin-user-action-preset-list button,
.admin-user-action-pending-list button {
  white-space: normal;
  line-height: 1.2;
}

.admin-user-action-form-wide {
  grid-template-columns: 1fr;
}

.admin-user-action-form label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.admin-user-action-form input,
.admin-user-action-form select,
.admin-user-action-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.admin-user-action-form textarea {
  resize: vertical;
}

.admin-user-action-preset-list,
.admin-user-action-pending-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 100%;
}

.admin-user-action-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 48px));
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.admin-user-action-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.admin-user-action-dialog-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px;
}

.admin-user-action-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-user-action-dialog-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
}

.admin-user-action-dialog-close {
  width: 32px;
  flex: 0 0 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8px;
  background: #e2e8f0;
  color: #0f172a;
}

.admin-user-action-dialog-actions {
  justify-content: flex-end;
}

.admin-dashboard .admin-row-actions .admin-user-action-dialog-close {
  flex: 0 0 32px;
}

.admin-dashboard .admin-row-actions .admin-user-action-dialog-actions button {
  flex: 0 1 auto;
}

@media (max-width: 960px) {
  .admin-user-action-panel-body {
    width: min(720px, calc(100vw - 48px));
  }
}

@media (max-width: 720px) {
  .admin-user-action-panel-body {
    width: 100%;
  }

  .admin-user-action-form,
  .admin-user-action-preset-list form,
  .admin-user-action-pending-list form {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

/* ---------- Admin table cell helpers ---------- */
.admin-cell-truncate {
  display: block;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-actions-row > td {
  padding-top: 0;
  padding-bottom: 14px;
  border-bottom: 2px solid #e2e8f0;
}

.admin-user-actions-row + tr > td {
  padding-top: 14px;
}

/* ---------- Admin detail quick edits ---------- */
.admin-detail-quick-edit,
.admin-detail-money {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-detail-quick-value,
.admin-detail-money-value {
  display: block;
}

.admin-quick-edit-form,
.admin-quick-money-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-quick-edit-form input[type="text"],
.admin-quick-money-form input[type="number"] {
  width: 118px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.admin-quick-edit-form input[type="text"] {
  width: 150px;
}

.admin-quick-edit-form button,
.admin-quick-money-form button {
  min-height: auto;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
}

/* ---------- Admin filter bar ---------- */
.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-filter-bar input,
.admin-filter-bar select {
  padding: 10px 14px;
  border-radius: 10px;
  min-width: 140px;
  font-size: 13px;
}

.admin-filter-bar button,
.admin-filter-bar .button {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 10px;
}

.admin-order-filter-grid {
  margin-top: 18px;
  gap: 12px;
}

.admin-order-filter-grid label {
  min-width: 0;
}

.admin-filter-actions {
  grid-column: 1 / -1;
  align-items: center;
}

.admin-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 8px;
}

.admin-order-meta .muted {
  margin: 0;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.admin-pagination-link,
.admin-pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.admin-pagination-link {
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: #fff;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-pagination-link:hover {
  border-color: rgba(29, 78, 216, 0.34);
  color: #1d4ed8;
}

.admin-pagination-current {
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
}

.admin-pagination-gap {
  padding: 0 4px;
  color: var(--admin-subtle);
  font-weight: 700;
}

/* ---------- Admin Page Actions ---------- */
.admin-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Admin Chip Actions ---------- */
.admin-chip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-chip-actions button {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 999px;
}

/* ---------- Admin Card Head ---------- */
.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- Admin Product Grid ---------- */
.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.admin-product-tile {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fafafa;
  transition: box-shadow 0.2s;
}

.admin-product-tile:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-product-meta {
  display: grid;
  gap: 4px;
  padding: 8px;
}

/* ---------- Admin Media Thumb ---------- */
.admin-media-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #f5f5f5;
}

.admin-media-thumb--sm {
  width: 50px;
  height: 50px;
  border-radius: 6px;
}

.admin-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #f5f5f5;
  color: #aaa;
  font-size: 12px;
}

.admin-media-placeholder--sm {
  width: 50px;
  height: 50px;
  border-radius: 6px;
}

/* ---------- Admin Inline Form ---------- */
.admin-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-inline-input {
  width: 100px !important;
  padding: 8px 10px !important;
  font-size: 13px;
}

.admin-inline-select {
  width: 100px !important;
  padding: 8px 10px !important;
  font-size: 13px;
}

/* ---------- Admin Actions Tight ---------- */
.admin-actions-tight {
  display: flex;
  gap: 8px;
}

.admin-actions-end {
  display: flex;
  align-items: flex-end;
}

/* ---------- Admin Language Switcher ---------- */
.admin-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-lang-switch-icon {
  display: flex;
  align-items: center;
}

.admin-lang-select {
  appearance: auto;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 860px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-menu-toggle {
    display: flex;
  }

  .admin-topbar {
    padding: 12px 16px;
  }

  .admin-main > .content {
    padding: 16px;
  }
}

@media (min-width: 861px) {
  .admin-menu-toggle {
    display: none;
  }

  .admin-sidebar-overlay {
    display: none !important;
  }
}

/* ==========================================
   ADMIN LOGIN PAGE
   ========================================== */

body.admin-login-page {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%) !important;
  min-height: 100vh;
}

body.admin-login-page .shell {
  max-width: 100% !important;
  padding: 0 !important;
}

body.admin-login-page .content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 100vh !important;
  gap: 0 !important;
  padding: 0 !important;
}

.admin-login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 24px;
}

.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: adminCardIn 0.5s ease forwards;
  text-align: center;
}

@keyframes adminCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-login-card:hover {
  transform: none !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

.admin-login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  color: #fff;
  margin: 0 auto 22px;
  box-shadow: 0 8px 24px rgba(15, 52, 96, 0.3);
}

.admin-login-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px;
}

.admin-login-subtitle {
  font-size: 14px;
  color: #8896a6;
  margin: 0 0 32px;
  font-weight: 400;
}

.admin-login-form {
  display: grid;
  gap: 16px;
  text-align: left;
}

.admin-login-field {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-login-field-icon {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
  color: #b0bec5;
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 2;
}

.admin-login-field input {
  width: 100%;
  padding: 15px 18px 15px 48px !important;
  background: #f5f7fa !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  color: #2d3748 !important;
  font-size: 14px;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.admin-login-field input::placeholder {
  color: #a0aec0 !important;
}

.admin-login-field input:focus {
  background: #fff !important;
  border-color: #0f3460 !important;
  box-shadow: 0 0 0 4px rgba(15, 52, 96, 0.08) !important;
}

.admin-login-field:focus-within .admin-login-field-icon {
  color: #0f3460;
}

.admin-login-btn {
  width: 100%;
  padding: 15px 24px !important;
  margin-top: 8px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  box-shadow: 0 4px 16px rgba(15, 52, 96, 0.3) !important;
}

.admin-login-btn:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(15, 52, 96, 0.35) !important;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%) !important;
}

.admin-login-btn:active {
  transform: scale(0.98) !important;
  opacity: 1 !important;
}

.admin-login-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eef2f7;
  display: flex;
  justify-content: center;
}

.admin-login-footer .admin-lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-login-langs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.admin-login-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5f7fa;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.admin-login-lang-btn:hover {
  background: #edf2f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-login-lang-btn.active {
  border-color: #0f3460;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 52, 96, 0.15);
}

.admin-login-lang-flag {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 480px) {
  .admin-login-card {
    padding: 36px 28px 32px;
    border-radius: 18px;
    margin: 0 8px;
  }

  .admin-login-title {
    font-size: 21px;
  }
}

/* ==========================================
   WITHDRAWAL PAGE – REDESIGN
   ========================================== */
.wd-page {
  background: #f5f5f7;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 100px;
}

.wd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wd-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #111;
  transition: background 0.2s;
}
.wd-back:hover {
  background: rgba(0,0,0,0.05);
}

.wd-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #111;
}

.wd-history-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #666;
  transition: all 0.2s;
}
.wd-history-link:hover {
  background: rgba(0,0,0,0.05);
  color: #111;
}

/* Balance Card */
.wd-balance-card {
  margin: 20px 20px 0;
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  border-radius: 24px;
  padding: 28px 24px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.wd-balance-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.wd-balance-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.wd-balance-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  position: relative;
  z-index: 1;
}

.wd-balance-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.wd-balance-amount {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.wd-balance-credit {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}
.wd-balance-credit strong {
  color: #f0d78c;
  font-weight: 700;
}

/* Restriction Warning */
.wd-restriction {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 20px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff5f2;
  border: 1px solid #fde0d6;
  color: #b3471f;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
.wd-restriction svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Form Section Wrapper */
.wd-form-section {
  margin: 20px 20px 0;
  display: grid;
  gap: 16px;
}

/* Amount Card */
.wd-amount-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}

.wd-amount-label {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.wd-amount-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 12px;
  transition: border-color 0.3s;
}
.wd-amount-row:focus-within {
  border-color: #111;
}

.wd-currency {
  font-size: 24px;
  font-weight: 800;
  color: #111;
  line-height: 1;
}

.wd-amount-input {
  flex: 1;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #111 !important;
  box-shadow: none !important;
  outline: none !important;
  min-width: 0;
}
.wd-amount-input::placeholder {
  color: #ccc;
  font-weight: 600;
}
.wd-amount-input:focus {
  box-shadow: none !important;
}

.wd-amount-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #aaa;
  font-weight: 500;
}

/* Quick Amount Buttons */
.wd-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.wd-quick-btn {
  flex: 1;
  min-width: 60px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  text-align: center;
}
.wd-quick-btn:hover {
  border-color: #111;
  background: #fff;
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.wd-quick-btn:active {
  transform: scale(0.97);
}
.wd-quick-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.wd-quick-btn:disabled:hover {
  border-color: #e0e0e0;
  background: #fafafa;
  transform: none;
  box-shadow: none;
}

.wd-quick-active {
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wd-quick-all {
  border-color: #e8dff5;
  background: #f5f0ff;
  color: #6b21a8;
}
.wd-quick-all:hover {
  border-color: #6b21a8;
  background: #ede5ff;
  color: #6b21a8;
}

/* Password Section */
.wd-password-section {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  display: grid;
  gap: 16px;
}

.wd-password-label {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.5px;
}

.wd-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.wd-password-icon {
  position: absolute;
  left: 14px;
  color: #aaa;
  pointer-events: none;
  z-index: 1;
}

.wd-password-input {
  width: 100%;
  padding: 14px 14px 14px 42px !important;
  border: 1.5px solid #e5e5e5 !important;
  border-radius: 14px !important;
  background: #fafafa !important;
  font-size: 15px !important;
  color: #111 !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}
.wd-password-input:focus {
  border-color: #111 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.04) !important;
}
.wd-password-input::placeholder {
  color: #bbb;
  font-weight: 400;
}

/* Submit Button */
.wd-submit-btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}
.wd-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.wd-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}
.wd-submit-btn:hover:not(:disabled)::before {
  opacity: 1;
}
.wd-submit-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}
.wd-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  background: #999;
}
.wd-submit-btn:disabled:hover {
  transform: none;
  box-shadow: none;
  background: #999;
}
