/* ============================================================
   Market Yatra — Components
   Navbar · Cards · Buttons · Toast · Skeleton · Forms · Tables
   ============================================================ */

/* ═══════════════════════════════════════════════
   NAVBAR — Glassmorphism Sticky
   ═══════════════════════════════════════════════ */
.myt-navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--clr-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  transition: all var(--duration-std) var(--ease-out-expo);
}
.myt-navbar.scrolled {
  box-shadow: var(--shadow-md);
  height: calc(var(--navbar-height) - 8px);
}
.myt-navbar .nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* Logo */
.myt-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--clr-text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.myt-logo:hover { color: var(--clr-text-primary); }

.myt-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.myt-logo-text { display: none; } /* Hide text since logo has it */


/* Nav links */
.myt-nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.myt-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-secondary);
  text-decoration: none;
  position: relative;
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}
.myt-nav-link:hover {
  color: var(--clr-text-primary);
  background: var(--clr-surface-2);
}
.myt-nav-link.active {
  color: var(--clr-accent);
  background: rgba(var(--clr-accent-rgb), 0.08);
}
.myt-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--clr-accent);
  border-radius: var(--radius-pill);
}
.myt-nav-link i { font-size: 1.1em; }
.myt-nav-link .badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--clr-accent);
  color: #fff;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  line-height: 1.3;
}

/* Nav actions (right side) */
.myt-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Dark mode toggle */
.myt-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all var(--duration-fast) ease;
  flex-shrink: 0;
}
.myt-theme-toggle:hover {
  background: var(--clr-surface-2);
  color: var(--clr-accent);
  transform: rotate(15deg);
}

/* Mobile hamburger */
.myt-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--clr-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) ease;
}
.myt-hamburger:hover { background: var(--clr-surface-2); }

/* Mobile drawer + overlay */
.myt-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-std) ease;
}
.myt-drawer-overlay.open { opacity: 1; visibility: visible; }

.myt-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--clr-surface);
  z-index: calc(var(--z-overlay) + 1);
  transform: translateX(-100%);
  transition: transform var(--duration-std) var(--ease-out-expo);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--sp-4);
}
.myt-drawer.open { transform: translateX(0); }
.myt-drawer .myt-logo { margin-bottom: var(--sp-6); }
.myt-drawer .myt-nav-links {
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-1);
}
.myt-drawer .myt-nav-link {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
}
.myt-drawer .drawer-footer {
  margin-top: auto;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--clr-border);
}

@media (max-width: 768px) {
  .myt-hamburger { display: flex; }
  .myt-nav-links-desktop { display: none !important; }
}

/* ═══════════════════════════════════════════════
   BOTTOM NAV — Mobile
   ═══════════════════════════════════════════════ */
.myt-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  z-index: var(--z-sticky);
  padding: 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.myt-bottom-nav nav {
  display: flex;
  height: 100%;
}
.myt-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
  position: relative;
}
.myt-bottom-nav a i { font-size: 1.3rem; }
.myt-bottom-nav a.active {
  color: var(--clr-accent);
}
.myt-bottom-nav a.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  background: var(--clr-accent);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

@media (max-width: 768px) {
  .myt-bottom-nav { display: block; }
  body.has-bottom-nav { padding-bottom: var(--bottom-nav-height); }
}

/* ═══════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════ */
.myt-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform var(--duration-std) var(--ease-out-expo),
    box-shadow var(--duration-std) var(--ease-out-expo),
    border-color var(--duration-std) ease;
  will-change: transform;
}
.myt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--clr-accent-rgb), 0.2);
}
.myt-card--flat:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}
.myt-card--glass {
  background: var(--clr-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.myt-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--clr-surface-2);
}
.myt-card-body {
  padding: var(--sp-4);
}
.myt-card-footer {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Stat card */
.myt-stat-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-std) var(--ease-out-expo);
  box-shadow: var(--shadow-card);
}
.myt-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.myt-stat-card:hover .stat-icon {
  transform: rotate(8deg);
  transition: transform 0.3s var(--ease-spring);
}
.myt-stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--sp-3);
}
.myt-stat-card .stat-icon.accent  { background: rgba(var(--clr-accent-rgb), 0.1); color: var(--clr-accent); }
.myt-stat-card .stat-icon.purple  { background: rgba(83,52,131,0.1); color: var(--clr-purple); }
.myt-stat-card .stat-icon.success { background: var(--clr-success-bg); color: var(--clr-success); }
.myt-stat-card .stat-icon.info    { background: var(--clr-info-bg); color: var(--clr-info); }
.myt-stat-card .stat-icon.warning { background: var(--clr-warning-bg); color: var(--clr-warning); }
.myt-stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--clr-text-primary);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.myt-stat-card .stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.myt-stat-card .stat-trend {
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--sp-2);
}
.myt-stat-card .stat-trend.up   { color: var(--clr-success); }
.myt-stat-card .stat-trend.down { color: var(--clr-error); }

/* Points hero card */
.myt-points-card {
  background-color: var(--clr-primary);
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px), var(--grad-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-size: 24px 24px, 100% 100%;
}
.myt-points-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -25%;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.myt-points-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}
.myt-points-card .points-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.myt-points-card .points-label {
  font-size: var(--text-sm);
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.myt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-height: 40px;
}
.myt-btn:active { transform: scale(0.97); }

.myt-btn-primary {
  background-color: var(--clr-primary);
  background-image: var(--grad-primary);
  color: #fff;
}
.myt-btn-primary:hover {
  box-shadow: var(--shadow-glow);
  filter: brightness(1.12);
  transform: translateY(-1px) scale(1.02);
  color: #fff;
}

.myt-btn-secondary {
  background: var(--clr-surface-2);
  color: var(--clr-text-primary);
  border: 1px solid var(--clr-border);
}
.myt-btn-secondary:hover {
  background: var(--clr-surface-3);
  border-color: var(--clr-border-strong);
  color: var(--clr-text-primary);
}

.myt-btn-ghost {
  background: transparent;
  color: var(--clr-text-secondary);
}
.myt-btn-ghost:hover {
  background: var(--clr-surface-2);
  color: var(--clr-text-primary);
}

.myt-btn-outline {
  background: transparent;
  color: var(--clr-accent);
  border: 1.5px solid var(--clr-accent);
}
.myt-btn-outline:hover {
  background: rgba(var(--clr-accent-rgb), 0.08);
  color: var(--clr-accent);
}

.myt-btn-lg {
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--text-base);
  min-height: 48px;
  border-radius: var(--radius-lg);
}

.myt-btn-sm {
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  min-height: 32px;
  border-radius: var(--radius-sm);
}

.myt-btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}
.myt-btn-icon.sm { width: 32px; height: 32px; }

/* Ripple effect */
.myt-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: myt-ripple var(--duration-emphasis) ease-out;
  pointer-events: none;
}
@keyframes myt-ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATION SYSTEM
   ═══════════════════════════════════════════════ */
.myt-toast-container {
  position: fixed;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
  max-width: 400px;
}
.myt-toast {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-4);
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  transform: translateX(120%);
  animation: myt-toast-in var(--duration-std) var(--ease-out-expo) forwards;
  position: relative;
  overflow: hidden;
}
.myt-toast.removing {
  animation: myt-toast-out var(--duration-std) ease forwards;
}
.myt-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.myt-toast.success .myt-toast-icon { background: var(--clr-success-bg); color: var(--clr-success); }
.myt-toast.error   .myt-toast-icon { background: var(--clr-error-bg);   color: var(--clr-error); }
.myt-toast.warning .myt-toast-icon { background: var(--clr-warning-bg); color: var(--clr-warning); }
.myt-toast.info    .myt-toast-icon { background: var(--clr-info-bg);    color: var(--clr-info); }
.myt-toast-body { flex: 1; }
.myt-toast-title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--clr-text-primary);
}
.myt-toast-message {
  font-size: var(--text-xs);
  color: var(--clr-text-secondary);
  margin-top: 2px;
}
.myt-toast-close {
  background: none;
  border: none;
  color: var(--clr-text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
}
.myt-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  animation: myt-toast-progress 3s linear forwards;
}
.myt-toast.success .myt-toast-progress { background: var(--clr-success); }
.myt-toast.error   .myt-toast-progress { background: var(--clr-error); }
.myt-toast.warning .myt-toast-progress { background: var(--clr-warning); }
.myt-toast.info    .myt-toast-progress { background: var(--clr-info); }

@keyframes myt-toast-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes myt-toast-out {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}
@keyframes myt-toast-progress {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ═══════════════════════════════════════════════
   LOADING SKELETON
   ═══════════════════════════════════════════════ */
.myt-skeleton {
  background: linear-gradient(
    90deg,
    var(--clr-surface-2) 25%,
    var(--clr-surface-3) 50%,
    var(--clr-surface-2) 75%
  );
  background-size: 200% 100%;
  animation: myt-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.myt-skeleton-line {
  height: 14px;
  margin-bottom: var(--sp-2);
  border-radius: var(--radius-sm);
}
.myt-skeleton-line.w-75 { width: 75%; }
.myt-skeleton-line.w-50 { width: 50%; }
.myt-skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.myt-skeleton-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════
   FORM INPUTS
   ═══════════════════════════════════════════════ */
.myt-input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--clr-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--clr-text-primary);
  background: var(--clr-surface);
  transition: all var(--duration-fast) ease;
  outline: none;
}
.myt-input:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(var(--clr-accent-rgb), 0.12);
}
.myt-input::placeholder {
  color: var(--clr-text-muted);
}
.myt-input.error {
  border-color: var(--clr-error);
  box-shadow: 0 0 0 3px rgba(163, 45, 45, 0.1);
}
.myt-input.success {
  border-color: var(--clr-success);
}

.myt-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-primary);
  margin-bottom: var(--sp-1);
}

.myt-input-helper {
  font-size: var(--text-xs);
  margin-top: var(--sp-1);
  color: var(--clr-text-muted);
}
.myt-input-helper.error { color: var(--clr-error); }

/* ═══════════════════════════════════════════════
   BADGES & PILLS
   ═══════════════════════════════════════════════ */
.myt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
}
.myt-badge-accent  { background: rgba(var(--clr-accent-rgb), 0.1); color: var(--clr-accent); }
.myt-badge-success { background: var(--clr-success-bg); color: var(--clr-success); }
.myt-badge-warning { background: var(--clr-warning-bg); color: var(--clr-warning); }
.myt-badge-error   { background: var(--clr-error-bg); color: var(--clr-error); }
.myt-badge-info    { background: var(--clr-info-bg); color: var(--clr-info); }
.myt-badge-neutral { background: var(--clr-surface-2); color: var(--clr-text-secondary); }

.myt-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.myt-badge-dot.pulse {
  animation: myt-badge-pulse 2s infinite;
}

/* ═══════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════ */
.myt-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
}
.myt-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--clr-surface);
}
.myt-table thead th {
  background: var(--clr-surface-2);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-text-muted);
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
  white-space: nowrap;
}
.myt-table tbody td {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-primary);
  vertical-align: middle;
}
.myt-table tbody tr:last-child td { border-bottom: none; }
.myt-table tbody tr {
  transition: background var(--duration-fast) ease;
}
.myt-table tbody tr:hover {
  background: var(--clr-surface-2);
}

/* ═══════════════════════════════════════════════
   SECTION TITLE
   ═══════════════════════════════════════════════ */
.myt-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-text-primary);
  margin-bottom: var(--sp-6);
  position: relative;
  padding-bottom: var(--sp-3);
}
.myt-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-purple));
  border-radius: var(--radius-pill);
}

/* ═══════════════════════════════════════════════
   ADMIN SIDEBAR
   ═══════════════════════════════════════════════ */
.myt-admin-sidebar {
  width: var(--sidebar-width);
  background: var(--clr-primary);
  background-image: var(--grad-mesh);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: var(--z-sticky);
  transition: width var(--duration-std) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) 0 var(--sp-4);
}
.myt-admin-sidebar .sidebar-brand {
  padding: 0 var(--sp-4) var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.myt-admin-sidebar .sidebar-brand-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.myt-admin-sidebar .sidebar-brand-text {
  font-family: var(--font-brand);
  font-size: 19px;
  font-weight: 800;
}
.myt-admin-sidebar .sidebar-section-label {
  padding: var(--sp-4) var(--sp-4) var(--sp-1);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
}
.myt-admin-sidebar .sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--duration-fast) ease;
  position: relative;
}
.myt-admin-sidebar .sidebar-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-left-color: rgba(255,255,255,0.3);
}
.myt-admin-sidebar .sidebar-link.active {
  color: #fff;
  background: rgba(31,122,99,0.25);
  border-left-color: var(--clr-gold);
  box-shadow: inset 3px 0 0 var(--clr-gold);
}
.myt-admin-sidebar .sidebar-link .badge {
  margin-left: auto;
  font-size: 0.6rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--clr-gold);
  color: #fff;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}
.myt-admin-sidebar .sidebar-link .badge.pulse {
  animation: myt-badge-pulse 2s infinite;
}
.myt-admin-sidebar .sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: var(--sp-2) var(--sp-4);
}

.myt-admin-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--duration-std) var(--ease-out-expo);
}

.myt-admin-topbar {
  height: var(--topbar-height);
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-6);
  position: sticky;
  top: 0;
  z-index: calc(var(--z-sticky) - 1);
}
.myt-admin-topbar h1 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
}

.myt-admin-main {
  padding: var(--sp-6);
}

@media (max-width: 1024px) {
  .myt-admin-sidebar {
    width: 0;
    overflow: hidden;
    padding: 0;
  }
  .myt-admin-sidebar.show {
    width: var(--sidebar-width);
    padding: var(--sp-6) 0 var(--sp-4);
  }
  .myt-admin-content { margin-left: 0; }
}

/* ═══════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════ */
.myt-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-purple));
  z-index: calc(var(--z-sticky) + 1);
  width: 0%;
  transition: width 100ms linear;
}

/* ═══════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════ */
.myt-back-to-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-std) var(--ease-out-expo);
  z-index: var(--z-dropdown);
}
.myt-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.myt-back-to-top:hover {
  background: var(--clr-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
@media (max-width: 768px) {
  .myt-back-to-top { bottom: calc(var(--bottom-nav-height) + var(--sp-4)); }
}

/* ═══════════════════════════════════════════════
   COUPON CODE
   ═══════════════════════════════════════════════ */
.myt-coupon-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--sp-1) var(--sp-3);
  background: var(--clr-surface-2);
  border: 1.5px dashed var(--clr-border-strong);
  border-radius: var(--radius-sm);
  letter-spacing: 0.15em;
  color: var(--clr-text-primary);
  user-select: all;
}

/* ═══════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════ */
.myt-empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
}
.myt-empty-state i {
  font-size: 3rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-4);
  display: block;
}
.myt-empty-state h5 {
  color: var(--clr-text-secondary);
  margin-bottom: var(--sp-2);
}
.myt-empty-state p {
  color: var(--clr-text-muted);
  font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════
   TAB NAV
   ═══════════════════════════════════════════════ */
.myt-tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 2px solid var(--clr-border);
  margin-bottom: var(--sp-6);
  overflow-x: auto;
}
.myt-tab {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--duration-fast) ease;
}
.myt-tab:hover { color: var(--clr-text-primary); }
.myt-tab.active {
  color: var(--clr-accent);
  border-bottom-color: var(--clr-accent);
}

/* ═══════════════════════════════════════════════
   FLASH MESSAGE OVERRIDE
   ═══════════════════════════════════════════════ */
.myt-flash {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  border: 1px solid;
  animation: myt-fade-up var(--duration-std) var(--ease-out-expo);
}
.myt-flash.success { background: var(--clr-success-bg); border-color: var(--clr-success); color: var(--clr-success); }
.myt-flash.error,
.myt-flash.danger  { background: var(--clr-error-bg); border-color: var(--clr-error); color: var(--clr-error); }
.myt-flash.warning { background: var(--clr-warning-bg); border-color: var(--clr-warning); color: var(--clr-warning); }
.myt-flash.info    { background: var(--clr-info-bg); border-color: var(--clr-info); color: var(--clr-info); }
.myt-flash .close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.7;
}
.myt-flash .close-btn:hover { opacity: 1; }

/* ═══════════════════════════════════════════════
   BETA BANNER
   ═══════════════════════════════════════════════ */
.myt-beta-banner {
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-gold), var(--clr-info));
  background-size: 200% auto;
  animation: myt-gradient-shift 6s ease infinite;
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  position: relative;
  z-index: calc(var(--z-sticky) + 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.myt-beta-banner .beta-tag {
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
}
.myt-beta-banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}
.myt-beta-banner .beta-close {
  position: absolute;
  right: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1rem;
}
.myt-beta-banner .beta-close:hover { color: #fff; }

/* ═══════════════════════════════════════════════
   FLOATING COUPON ANIMATION
   ═══════════════════════════════════════════════ */
.floating-coupons-wrap {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: var(--sp-8) 0;
}
.floating-coupon {
  animation: myt-coupon-float 6s ease-in-out infinite;
  transform-origin: center center;
}
.floating-coupon:nth-child(2) { animation-delay: 0.8s; animation-duration: 7s; }
.floating-coupon:nth-child(3) { animation-delay: 1.6s; animation-duration: 5.5s; }
.floating-coupon:nth-child(4) { animation-delay: 2.4s; animation-duration: 6.5s; }
.floating-coupon:nth-child(5) { animation-delay: 0.4s; animation-duration: 8s; }
.floating-coupon:nth-child(6) { animation-delay: 1.2s; animation-duration: 7.5s; }

@keyframes myt-coupon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-14px) rotate(1deg); }
  50%      { transform: translateY(-6px) rotate(-1deg); }
  75%      { transform: translateY(-18px) rotate(0.5deg); }
}

/* ═══════════════════════════════════════════════
   AD CAROUSEL — FULL SIZE
   ═══════════════════════════════════════════════ */
.myt-ad-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--clr-surface-2);
}
.myt-ad-carousel .ad-slide {
  display: none;
  width: 100%;
  animation: myt-fade-in 0.6s ease;
}
.myt-ad-carousel .ad-slide.active { display: block; }
.myt-ad-carousel .ad-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 420px;
}
.myt-ad-carousel .ad-dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.4));
}
.myt-ad-carousel .ad-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  border: none;
}
.myt-ad-carousel .ad-dot.active {
  background: #fff;
  transform: scale(1.3);
}
.myt-ad-carousel .ad-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--duration-fast) ease;
  z-index: 2;
}
.myt-ad-carousel .ad-nav:hover { background: rgba(0,0,0,0.5); }
.myt-ad-carousel .ad-nav.prev { left: var(--sp-3); }
.myt-ad-carousel .ad-nav.next { right: var(--sp-3); }

@keyframes myt-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════
   CARD GRID (responsive)
   ═══════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}

/* ═══════════════════════════════════════════════
   PHOTO GRID (masonry-like)
   ═══════════════════════════════════════════════ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-3);
}
.photo-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-std) ease;
}
.photo-item:hover img { transform: scale(1.05); }
.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  font-size: var(--text-xs);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}
.photo-item:hover .photo-overlay { opacity: 1; }

/* ═══════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════ */
.myt-empty-state {
  text-align: center;
  padding: var(--sp-12) var(--sp-4);
  color: var(--clr-text-muted);
}
.myt-empty-state i {
  font-size: 3rem;
  margin-bottom: var(--sp-4);
  opacity: 0.4;
  display: block;
}
.myt-empty-state h5 { color: var(--clr-text-secondary); margin-bottom: var(--sp-2); }
.myt-empty-state a { color: var(--clr-accent); }

/* ═══════════════════════════════════════════════
   COUPON CODE BOX
   ═══════════════════════════════════════════════ */
.myt-coupon-code {
  display: inline-block;
  background: var(--clr-surface-2);
  border: 2px dashed var(--clr-border-strong);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  font-family: var(--font-mono, monospace);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--clr-text-primary);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}
.myt-coupon-code:hover {
  border-color: var(--clr-accent);
  background: rgba(var(--clr-accent-rgb), 0.05);
}

/* ═══════════════════════════════════════════════
   DASHBOARD STAT GRID
   ═══════════════════════════════════════════════ */
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-4);
}

/* ═══════════════════════════════════════════════
   DENSE MOBILE OVERRIDES
   ═══════════════════════════════════════════════ */
@media(max-width: 480px) {
  /* Cards */
  .myt-card-body { padding: var(--sp-2); }
  .myt-stat-card { padding: var(--sp-3); }
  .myt-points-card { padding: var(--sp-4); }
  
  /* Inputs / Buttons */
  .myt-input { padding: var(--sp-1) var(--sp-2); font-size: 12px; }
  .myt-btn { min-height: 32px; padding: var(--sp-1) var(--sp-2); font-size: 12px; }
  .myt-btn-lg { min-height: 38px; padding: var(--sp-2) var(--sp-3); font-size: 13px; }
  
  /* Layout tweaks */
  .myt-section-title { margin-bottom: var(--sp-4); font-size: clamp(20px, 6vw, 24px); }
  
  /* Stat Cards */
  .myt-stat-card .stat-icon { width: 28px; height: 28px; font-size: 0.9rem; margin-bottom: var(--sp-1); border-radius: 6px; }
  .myt-stat-card .stat-value { font-size: clamp(16px, 5vw, 22px); margin-bottom: 2px; }
  .myt-stat-card .stat-label { font-size: 10px; }
  
  .dash-stat-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  
  /* Tables */
  .myt-table thead th { padding: var(--sp-2); font-size: 10px; }
  .myt-table tbody td { padding: var(--sp-2); font-size: 12px; }
}

