/* ==========================================================================
   SARKAR ID — Ultra-Luxury Modern Admin Dashboard
   Design: Obsidian Glassmorphism & Royal Gold Accent
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --admin-bg: #07090e;
  --admin-surface: rgba(15, 19, 29, 0.75);
  --admin-card: rgba(18, 23, 35, 0.82);
  --admin-card-solid: #121723;
  --admin-card-hover: rgba(24, 30, 45, 0.9);
  --admin-border: rgba(212, 175, 55, 0.22);
  --admin-border-subtle: rgba(255, 255, 255, 0.08);
  --admin-border-focus: #d4af37;
  --admin-gold: #d4af37;
  --admin-gold-light: #fbe69b;
  --admin-gold-muted: #bfa36c;
  --admin-gold-glow: rgba(212, 175, 55, 0.35);
  --admin-text: #f8fafc;
  --admin-text-secondary: #94a3b8;
  --admin-text-muted: #64748b;
  --admin-success: #10b981;
  --admin-success-glow: rgba(16, 185, 129, 0.25);
  --admin-danger: #ef4444;
  --admin-danger-glow: rgba(239, 68, 68, 0.25);
  --admin-warning: #f59e0b;
  --admin-info: #0ea5e9;
  --admin-radius: 18px;
  --admin-radius-sm: 10px;
  --admin-radius-pill: 9999px;
  --admin-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body.admin-body {
  min-height: 100vh;
  background-color: var(--admin-bg);
  background-image: 
    radial-gradient(1200px 700px at 10% -5%, rgba(212, 175, 55, 0.09) 0%, transparent 60%),
    radial-gradient(900px 600px at 90% 15%, rgba(99, 102, 241, 0.06) 0%, transparent 55%),
    radial-gradient(1000px 700px at 50% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #07090e 0%, #0b0f16 100%);
  background-attachment: fixed;
  color: var(--admin-text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.admin-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 70px;
}

/* ==========================================================================
   Admin Login Screen
   ========================================================================== */
.admin-login {
  width: min(100%, 450px);
  margin: 12vh auto 0;
}

.admin-login-inner {
  padding: 44px 38px;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(24, 30, 46, 0.95) 0%, rgba(13, 16, 25, 0.98) 100%);
  border: 1px solid var(--admin-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(25px);
  text-align: center;
}

.brand-mark.large {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  border-radius: 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 38px;
  font-weight: 800;
  color: #07090e;
  background: linear-gradient(135deg, #fff2be 0%, var(--admin-gold) 60%, var(--admin-gold-muted) 100%);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--admin-gold);
  margin-bottom: 8px;
}

.admin-login h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.admin-login p {
  margin: 0 0 28px;
  font-size: 13.5px;
  color: var(--admin-text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Top Header Bar
   ========================================================================== */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 18px 24px;
  margin-bottom: 22px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow);
  backdrop-filter: blur(20px);
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #07090e;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff2be, var(--admin-gold) 65%, var(--admin-gold-muted));
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.admin-topbar h1 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.admin-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--admin-radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.admin-header-badge.test-mode {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.admin-header-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Stat Overview Cards
   ========================================================================== */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.admin-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--admin-card);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--admin-radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.admin-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.admin-stat-card:hover {
  border-color: var(--admin-border);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.12);
}

.admin-stat-card:hover::before {
  opacity: 1;
}

.admin-stat-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--admin-gold);
  border: 1px solid rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
  box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.1);
}

.admin-stat-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.admin-stat-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.admin-stat-icon.info {
  background: rgba(14, 165, 233, 0.1);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.25);
}

.admin-stat-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.admin-stat-content {
  flex: 1;
  min-width: 0;
}

.admin-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--admin-text-secondary);
  margin-bottom: 2px;
}

.admin-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Navigation Tabs (Segmented Control)
   ========================================================================== */
.admin-tab-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  margin-bottom: 22px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  overflow-x: auto;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--admin-text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-tab-btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.admin-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
  color: #07090e;
  background: linear-gradient(135deg, #fff0b3 0%, var(--admin-gold) 65%, #c49929 100%);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.admin-tab-btn.active svg {
  stroke: #07090e;
}

.admin-tab-pill {
  padding: 2px 8px;
  border-radius: var(--admin-radius-pill);
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-tab-btn.active .admin-tab-pill {
  background: rgba(0, 0, 0, 0.25);
  color: #07090e;
}

/* Tab panes */
.admin-tab-pane {
  display: none;
  animation: fadeInPane 0.25s ease-out;
}

.admin-tab-pane.active {
  display: block;
}

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

/* ==========================================================================
   Dashboard Cards
   ========================================================================== */
.admin-card {
  padding: 30px 32px;
  margin-bottom: 24px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-card);
  box-shadow: var(--admin-shadow);
  backdrop-filter: blur(20px);
}

.card-heading.compact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--admin-border-subtle);
}

.card-heading.compact .heading-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--admin-gold);
  border: 1px solid rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.card-heading.compact .heading-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.card-heading.compact h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.card-heading.compact p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--admin-text-secondary);
}

/* Inner Sections */
.admin-section-box {
  background: rgba(10, 13, 20, 0.65);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.admin-section-box:hover {
  border-color: rgba(212, 175, 55, 0.2);
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--admin-gold);
}

.admin-section-title svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* ==========================================================================
   Modern Sliding Toggle Switches (iOS/Stripe Style)
   ========================================================================== */
.toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--admin-border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-wrapper:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(212, 175, 55, 0.25);
}

.toggle-text {
  flex: 1;
}

.toggle-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.toggle-text small {
  display: block;
  font-size: 12px;
  color: var(--admin-text-secondary);
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #1e2433;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #cbd5e1;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-toggle input:checked + .switch-slider {
  background: linear-gradient(135deg, #fff2be, var(--admin-gold) 75%);
  border-color: var(--admin-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.switch-toggle input:checked + .switch-slider::before {
  transform: translateX(22px);
  background-color: #07090e;
}

/* ==========================================================================
   Form Fields, Inputs & Grid Layouts
   ========================================================================== */
.gateway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.field-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #090c13;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-input.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
}

.field-input:focus {
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 0 20px rgba(212, 175, 55, 0.1);
  background: #0d111b;
}

.field-input::placeholder {
  color: #475569;
}

.field-help {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--admin-text-secondary);
  line-height: 1.4;
}

.field-help code {
  color: var(--admin-gold-light);
  background: rgba(212, 175, 55, 0.12);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #fff0b3 0%, var(--admin-gold) 65%, #c49929 100%);
  color: #07090e;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
  filter: brightness(1.05);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button.full-button {
  width: 100%;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.06);
  color: var(--admin-gold-light);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ghost-button svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.ghost-button:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--admin-gold);
  color: #fff;
  transform: translateY(-1px);
}

.ghost-button.danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
}

.ghost-button.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}

/* Save Bar */
.save-bar {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--admin-border-subtle);
  display: flex;
  justify-content: flex-end;
}

.save-bar.sticky-save-bar {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(11, 15, 23, 0.4);
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid var(--admin-border-subtle);
}

.save-bar-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--admin-text-secondary);
}

/* ==========================================================================
   Pricing & Packages Redesign Components
   ========================================================================== */
.pricing-summary-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-chip {
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(9, 12, 18, 0.7);
  border: 1px solid var(--admin-border-subtle);
  min-width: 100px;
}

.summary-chip .chip-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--admin-text-muted);
}

.summary-chip .chip-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--admin-gold);
  font-family: "JetBrains Mono", monospace;
  margin-top: 2px;
}

/* Affixed Inputs */
.input-with-affix {
  display: flex;
  align-items: center;
  background: #080a10;
  border: 1px solid var(--admin-border-subtle);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.input-with-affix:focus-within {
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.input-with-affix.mini {
  border-radius: 8px;
}

.input-affix {
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--admin-text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid var(--admin-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  white-space: nowrap;
}

.input-affix.suffix {
  border-right: none;
  border-left: 1px solid var(--admin-border-subtle);
}

.input-affix.gold {
  color: var(--admin-gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.input-affix.text-muted {
  color: var(--admin-text-muted);
  font-size: 11.5px;
}

.input-with-affix-field {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100%;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
}

/* Guarantee Live Preview */
.guarantee-live-preview {
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.09) 0%, rgba(212, 175, 55, 0.03) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--admin-gold);
  box-shadow: 0 0 8px var(--admin-gold);
}

.preview-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--admin-gold);
  text-transform: uppercase;
}

.preview-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
}

/* Section Box Header */
.section-box-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 12.5px;
  color: var(--admin-text-secondary);
  margin-top: 4px;
}

.section-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Table Column Headers */
.table-columns-header {
  display: grid;
  gap: 14px;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--admin-border-subtle);
  margin-bottom: 10px;
}

.package-cols-header {
  grid-template-columns: 140px 1.4fr 190px 130px 44px;
}

.tier-cols-header {
  grid-template-columns: 180px 180px 1fr 44px;
}

/* Package List & Rows */
.package-admin-list,
.tier-admin-list {
  display: grid;
  gap: 10px;
}

.package-admin-row {
  display: grid;
  grid-template-columns: 140px 1.4fr 190px 130px 44px;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(10, 13, 20, 0.7);
  border: 1px solid var(--admin-border-subtle);
  transition: all 0.2s ease;
}

.package-admin-row:hover,
.tier-admin-row:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(15, 20, 31, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pkg-col-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: #080a10;
  border: 1px solid var(--admin-border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #fff;
}

.pkg-qty-input {
  width: 44px;
  text-align: center;
  padding: 4px 2px !important;
  border: none !important;
  background: transparent !important;
  font-size: 14px !important;
  color: #fff;
}

.unit-tag {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--admin-text-secondary);
}

.pkg-label-input {
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
}

.price-input-group {
  display: flex;
  align-items: center;
  background: #080a10;
  border: 1px solid var(--admin-border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.price-input-group:focus-within {
  border-color: var(--admin-gold);
}

.currency-tag {
  padding: 0 8px 0 10px;
  color: var(--admin-gold);
  font-weight: 800;
  font-size: 13.5px;
  font-family: "JetBrains Mono", monospace;
}

.pkg-price-input {
  width: 72px;
  padding: 6px 4px !important;
  border: none !important;
  background: transparent !important;
  font-size: 13.5px !important;
  color: #fff;
}

.quick-adjust-group {
  display: flex;
  margin-left: auto;
  border-left: 1px solid var(--admin-border-subtle);
}

.mini-adjust-btn {
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-right: 1px solid var(--admin-border-subtle);
  color: var(--admin-text-secondary);
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mini-adjust-btn:last-child {
  border-right: none;
}

.mini-adjust-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #fff;
}

.effective-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Tier Rows */
.tier-admin-row {
  display: grid;
  grid-template-columns: 180px 180px 1fr 44px;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(10, 13, 20, 0.7);
  border: 1px solid var(--admin-border-subtle);
  transition: all 0.2s ease;
}

.tier-min-input,
.tier-percent-input {
  padding: 8px 10px !important;
  border: none !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 13.5px !important;
  width: 100%;
}

.savings-calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--admin-gold-light);
  font-size: 12px;
  font-weight: 600;
}

/* Delete Icon Button */
.delete-icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #f87171;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}

.delete-icon-button:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
  transform: scale(1.05);
}

/* Gold Action Buttons */
.gold-action-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--admin-gold);
  color: var(--admin-gold-light);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gold-action-button:hover {
  background: var(--admin-gold);
  color: #000;
  box-shadow: 0 0 14px var(--admin-gold-glow);
  transform: translateY(-1px);
}

.ghost-button.mini {
  padding: 6px 12px;
  font-size: 12px;
}

.empty-tier-notice {
  padding: 24px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed var(--admin-border-subtle);
  background: rgba(255, 255, 255, 0.02);
  color: var(--admin-text-muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .package-cols-header, .tier-cols-header {
    display: none;
  }
  .package-admin-row, .tier-admin-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .delete-icon-button {
    margin-left: 0;
    width: 100%;
  }
  .save-bar.sticky-save-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .save-bar.sticky-save-bar button {
    width: 100%;
  }
}

/* ==========================================================================
   Inventory Tab Grid
   ========================================================================== */
.inventory-grid-wrap {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
}

.inventory-textarea {
  min-height: 220px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

.inventory-summary {
  display: flex;
  gap: 14px;
  margin: 20px 0;
}

.inventory-summary > div {
  flex: 1;
  padding: 16px;
  border-radius: 14px;
  background: rgba(9, 12, 18, 0.7);
  border: 1px solid var(--admin-border-subtle);
  text-align: center;
}

.inventory-summary strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.inventory-summary small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--admin-text-secondary);
}

/* ==========================================================================
   Data Tables
   ========================================================================== */
.inventory-table-wrap {
  border: 1px solid var(--admin-border-subtle);
  border-radius: 14px;
  overflow: auto;
  max-height: 520px;
  background: #080a10;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #cbd5e1;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 18px;
  background: #111520;
  border-bottom: 1px solid var(--admin-border-subtle);
  color: var(--admin-gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
}

.admin-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table .table-action {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.09);
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-table .table-action:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
}

.gw-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 6px;
}

.gw-pill.auto {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.gw-pill.manual {
  background: rgba(212, 175, 55, 0.15);
  color: var(--admin-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   Toolbar
   ========================================================================== */
.log-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.log-toolbar .field-input {
  flex: 1;
}

/* ==========================================================================
   Toasts & Alerts
   ========================================================================== */
.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;
  max-width: 420px;
  padding: 16px 22px;
  border-radius: 14px;
  border: 1px solid var(--admin-gold);
  background: #141a28;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.2);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.form-error {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--admin-danger);
}

.back-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--admin-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--admin-gold-light);
  text-decoration: underline;
}

/* ==========================================================================
   Admin Modal (Change Password)
   ========================================================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(12px);
  animation: modalFadeIn 0.2s ease-out;
}

.admin-modal-overlay[hidden] {
  display: none !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.admin-modal-box {
  width: min(100%, 480px);
  padding: 28px 30px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(24, 30, 45, 0.98) 0%, rgba(13, 16, 26, 0.99) 100%);
  border: 1px solid var(--admin-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-border-subtle);
}

.admin-modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.admin-modal-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--admin-border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--admin-text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .admin-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .inventory-grid-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-shell {
    width: calc(100% - 24px);
    padding: 20px 0 40px;
  }
  .admin-stats-row {
    grid-template-columns: 1fr;
  }
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .gateway-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .package-admin-row, .tier-admin-row {
    grid-template-columns: 1fr;
  }
  .admin-card {
    padding: 20px 18px;
  }
}
