/* Ayelinklux - Vendor Admin Panel Styles (mobile-first) */

.admin-body { background: var(--off-white); min-height: 100vh; padding-bottom: 76px; }

/* ---- Auth pages (login/register) ---- */
.admin-auth-body {
  background: var(--off-white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-shell {
  width: 100%;
  max-width: 440px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17,24,39,0.08);
}
/* Left brand panel: hidden on mobile, shown once there's room for a real two-panel layout */
.auth-side {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  width: 45%;
  padding: 48px 40px;
  background: linear-gradient(160deg, var(--navy), #0d302e);
  color: var(--white);
  overflow: hidden;
}
/* soft glow + dot texture so the panel reads as designed, not just a flat fill */
.auth-side::before {
  content: '';
  position: absolute;
  top: -90px; right: -90px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,168,0,0.45) 0%, rgba(255,168,0,0) 70%);
  pointer-events: none;
}
.auth-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
  pointer-events: none;
}
.auth-side > * { position: relative; z-index: 1; }

.auth-side .auth-logo { display: inline-block; margin-bottom: 34px; }
.auth-side .auth-logo img { height: 24px; filter: brightness(0) invert(1); }
.auth-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Quicksand', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--orange-light);
  margin-bottom: 12px;
}
.auth-eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--orange-light); }
.auth-side h2 { font-size: 27px; line-height: 1.28; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
.auth-side h2 em { font-style: normal; color: var(--orange-light); }
.auth-side-sub { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.72); max-width: 30ch; margin-bottom: 32px; }

.auth-perks { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.auth-perks li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.92); }
.auth-perks .perk-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.auth-perks i { color: var(--orange-light); font-size: 11px; }

.auth-card {
  background: var(--white);
  padding: 28px 22px;
  width: 100%;
  flex: 1;
}
.auth-logo { display: inline-block; }
.auth-logo img { height: 30px; margin-bottom: 18px; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-sub { color: var(--text-light); font-size: 14px; margin-bottom: 22px; }
.auth-switch { margin-top: 18px; font-size: 14px; color: var(--text-mid); text-align: center; }
.auth-switch a { color: var(--navy); font-weight: 600; text-decoration: none; }
.form-fieldset { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.form-fieldset:last-of-type { margin-bottom: 24px; padding-bottom: 0; border-bottom: none; }
.form-fieldset-title {
  font-family: 'Quicksand', sans-serif; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); margin-bottom: 14px;
}
.label-optional { font-weight: 500; color: var(--text-light); text-transform: none; }

.form-field { margin-bottom: 14px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }

/* ---- Category picker ---- */
.cat-picker { position: relative; }
.cat-picker-trigger {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--white); font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: var(--text-dark); cursor: pointer; text-align: left;
}
.cat-picker-trigger:hover { border-color: var(--navy-light); }
.cat-picker.open .cat-picker-trigger,
.cat-picker-trigger:focus-visible {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,127,124,0.12);
}
.cat-picker-trigger.cat-error { border-color: #FCA5A5; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.cat-picker-trigger[data-empty="true"] .cat-picker-label { color: #9CA3AF; }
.cat-picker-label { flex: 1; }
.cat-picker-icon {
  width: 26px; height: 26px; border-radius: 7px; background: var(--off-white);
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  font-size: 12px; flex-shrink: 0;
}
.cat-picker-chevron { color: var(--text-light); font-size: 12px; transition: transform .15s ease; }
.cat-picker.open .cat-picker-chevron { transform: rotate(180deg); }

.cat-picker-panel {
  display: none; flex-direction: column;
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 45px rgba(17,24,39,0.14); padding: 10px; max-height: 300px;
}
.cat-picker.open .cat-picker-panel { display: flex; }
.cat-picker-search {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px;
  border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; flex-shrink: 0;
}
.cat-picker-search i { color: var(--text-light); font-size: 13px; }
.cat-picker-search input { border: none; outline: none; width: 100%; font-family: 'DM Sans', sans-serif; font-size: 14px; }
.cat-picker-list { list-style: none; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.cat-picker-option {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
  border: none; border-radius: 8px; background: none; font-family: 'DM Sans', sans-serif;
  font-size: 14px; line-height: 1.3; color: var(--text-dark); text-align: left; cursor: pointer;
}
.cat-picker-option:hover { background: var(--off-white); }
.cat-picker-option.selected { background: rgba(27,127,124,0.1); color: var(--navy); font-weight: 600; }
.cat-picker-option-icon {
  width: 26px; height: 26px; border-radius: 7px; background: var(--off-white);
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  font-size: 12px; flex-shrink: 0;
}
.cat-picker-option.selected .cat-picker-option-icon { background: var(--navy); color: var(--white); }
.cat-picker-empty { display: none; padding: 14px; text-align: center; font-size: 13px; color: var(--text-light); }

.cat-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--off-white);
}
.cat-locked-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(27,127,124,0.1);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.cat-locked-label { flex: 1; font-weight: 600; font-size: 14.5px; }
.cat-locked-change { color: var(--navy); font-weight: 600; font-size: 13px; text-decoration: underline; flex-shrink: 0; }

form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 14px;
}
form label input,
form label select,
form label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
  color: var(--text-dark);
}
form label input:focus,
form label select:focus,
form label textarea:focus {
  outline: none;
  border-color: var(--navy);
}
form label.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; }
form label.checkbox input { width: auto; margin: 0; }
.checkbox-row { display: flex; gap: 20px; margin-bottom: 14px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 0 16px; }

.form-errors, .form-success {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}
.form-errors { background: #FEF2F2; color: #B91C1C; border: 1px solid #FCA5A5; }
.form-success { background: #F0FDF4; color: #15803D; border: 1px solid #86EFAC; }
.form-success i, .form-errors i { margin-right: 4px; }

/* ---- Top nav ---- */
.admin-nav { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.admin-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 16px;
  display: flex; align-items: center; gap: 14px;
}
.admin-nav-inner .logo { display: flex; }
.admin-nav-inner .logo img { height: 24px; }
.admin-nav-links { display: none; }
.admin-nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.btn-small {
  padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--border); color: var(--text-mid);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-icon-only .btn-text { display: none; }
.btn-logout { color: #B91C1C; }
.sub-badge {
  font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 20px;
  white-space: nowrap;
}
.sub-active { background: #F0FDF4; color: #15803D; }
.sub-trial { background: #EFF6FF; color: #1D4ED8; }
.sub-pending { background: #FFFBEB; color: #B45309; }
.sub-expired, .sub-none, .sub-cancelled { background: #FEF2F2; color: #B91C1C; }

.sub-warning {
  background: #FFFBEB; color: #92400E; border-bottom: 1px solid #FDE68A;
  padding: 10px 16px; font-size: 13px; text-align: center;
}
.sub-warning a { color: #92400E; font-weight: 700; margin-left: 6px; white-space: nowrap; }

/* ---- Mobile bottom tab bar ---- */
.mobile-tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: var(--white); border-top: 1px solid var(--border);
  display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}
.mobile-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: var(--text-light); font-size: 11px; font-weight: 600;
  padding: 6px 2px; border-radius: 10px;
}
.mobile-tab i { font-size: 17px; }
.mobile-tab.active { color: var(--navy); background: var(--off-white); }

/* ---- Main layout ---- */
.admin-main { max-width: 1200px; margin: 0 auto; padding: 28px 16px 40px; }
.admin-main h1 { font-size: 22px; margin-bottom: 4px; }
.admin-sub { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.admin-header-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }

/* ---- Dashboard hero card ---- */
.hero-card {
  background: linear-gradient(135deg, var(--navy) 0%, #0f766e 100%);
  border-radius: 20px; padding: 32px; color: #fff; margin-bottom: 32px;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.12);
}
.hero-card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.hero-avatar {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 22px; flex-shrink: 0;
}
.hero-greeting { font-size: 14px; opacity: 0.88; margin-bottom: 4px; }
.hero-text h1 { font-size: 28px; margin: 0; color: #fff; font-weight: 700; }
.hero-sub-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 8px; }
.hero-sub-row .sub-badge { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.hero-expiry { font-size: 13px; opacity: 0.92; }
.hero-expiry strong { font-weight: 700; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  background: #fff; color: var(--navy); text-decoration: none; font-weight: 700;
  font-size: 14px; padding: 11px 18px; border-radius: 10px; transition: all .15s ease;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* ---- Stat cards ---- */
.stat-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); transition: all .15s ease;
}
.stat-card:hover { border-color: #D1D5DB; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.stat-card-warn { border-color: #FCA5A5; background: #FEF2F2; }
.stat-card-warn:hover { border-color: #F08080; }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.stat-icon-blue { background: #EFF6FF; color: #1D4ED8; }
.stat-icon-green { background: #F0FDF4; color: #15803D; }
.stat-icon-red { background: #FEF2F2; color: #B91C1C; }
.stat-icon-gray { background: var(--off-white); color: var(--text-light); }
.stat-body { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 24px; font-weight: 700; font-family: 'Quicksand', sans-serif; color: var(--navy); line-height: 1; }
.stat-num small { font-size: 14px; font-weight: 600; color: var(--text-light); }
.stat-card-warn .stat-num { color: #B91C1C; }
.stat-label { font-size: 13px; color: var(--text-light); font-weight: 500; }
.quick-actions { display: flex; flex-direction: column; gap: 12px; }
.quick-actions .btn-primary, .quick-actions .btn-info { text-align: center; justify-content: center; }
.quick-actions .btn-primary, .quick-actions .btn-info { padding: 12px 18px; font-size: 15px; }
.quick-actions .btn-primary { gap: 8px; }
.quick-actions .btn-info { gap: 8px; }

.btn-info {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--border);
  border-radius: 10px; background: var(--white); color: var(--text-mid);
  transition: all .15s ease; cursor: pointer;
}
.btn-info:hover {
  border-color: var(--navy); background: var(--off-white);
  color: var(--navy);
}

/* ---- Settings form ---- */
.settings-form { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 4px 18px; }
.settings-section { padding: 20px 0; border-bottom: 1px solid var(--border); }
.settings-section:last-of-type { border-bottom: none; }
.settings-section h2 { font-size: 15px; margin-bottom: 14px; }
.logo-preview { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; margin-top: 10px; border: 1px solid var(--border); }

/* ---- Products table ---- */
.product-form { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 20px 18px; max-width: 560px; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.form-actions a, .form-actions button { flex: 1; text-align: center; justify-content: center; }
.product-table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow-x: auto; }
.product-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.product-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-light); padding: 14px 16px; border-bottom: 1px solid var(--border); }
.product-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.product-table tr:last-child td { border-bottom: none; }
.thumb-cell img, .thumb-placeholder { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.thumb-placeholder { display: flex; align-items: center; justify-content: center; background: var(--off-white); color: var(--text-light); }
.badge-out { color: #B91C1C; font-weight: 700; font-size: 12px; }
.status-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.status-active { background: #F0FDF4; color: #15803D; }
.status-draft { background: #F3F4F6; color: #4B5563; }
.row-actions { display: flex; gap: 12px; }
.row-actions a, .row-actions button { color: var(--text-mid); background: none; border: none; cursor: pointer; font-size: 14px; }
.row-actions button:hover { color: #B91C1C; }
.inline-form { display: inline; }
.empty-row { text-align: center; padding: 40px !important; color: var(--text-light); }

/* ---- Billing ---- */
.billing-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f766e 100%);
  border-radius: 20px; padding: 32px; color: #fff; margin-bottom: 40px;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.12);
}
.billing-hero-content { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.billing-hero-label { font-size: 13px; opacity: 0.88; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.billing-hero h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.billing-hero-price { font-size: 24px; font-weight: 700; }
.billing-hero-price span { font-size: 14px; font-weight: 500; opacity: 0.9; }
.billing-hero-badge { text-align: right; }
.billing-hero-badge .sub-badge { display: inline-block; margin-bottom: 12px; }
.billing-hero-expiry { font-size: 13px; opacity: 0.92; margin: 0; }
.billing-hero-expiry strong { font-weight: 700; }
.billing-hero-limit { display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: 0.9; margin: 0; }

.billing-header { margin-bottom: 28px; }
.billing-header h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.billing-header p { color: var(--text-light); font-size: 14px; }

.plan-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
.plan-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 22px; text-align: center; position: relative; transition: all .15s ease; }
.plan-card:hover { border-color: #D1D5DB; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.plan-card-active { border-color: var(--navy); background: linear-gradient(135deg, rgba(27, 127, 124, 0.02) 0%, rgba(15, 118, 110, 0.02) 100%); }
.plan-badge { position: absolute; top: 16px; right: 16px; background: var(--navy); color: #fff; padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.plan-card h3 { font-size: 18px; margin-bottom: 8px; margin-top: 8px; }
.plan-price { font-size: 26px; font-weight: 700; color: var(--navy); font-family: 'Quicksand', sans-serif; margin-bottom: 6px; }
.plan-price span { font-size: 13px; color: var(--text-light); font-weight: 500; }
.plan-limit { font-size: 13px; color: var(--text-light); margin-bottom: 18px; }
.plan-card button { width: 100%; }

.btn-secondary[disabled] {
  background: var(--off-white); color: var(--text-mid); border-color: var(--border);
  cursor: not-allowed; opacity: 0.6;
}

/* =========================================================
   Section Layout (shared with main site)
   ========================================================= */
.section {
  padding: 48px 16px;
  max-width: 1400px;
  margin: 0 auto;
}
.register-section {
  padding: 48px 16px;
  background: var(--off-white);
}
.register-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.login-section {
  padding: 48px 16px;
  background: var(--off-white);
}
.login-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.register-section .auth-card,
.login-section .auth-card {
  width: 100%;
  max-width: 800px;
  border-radius: 20px;
  padding: 32px 22px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* =========================================================
   Full-Width Register Layout (Brimob style)
   ========================================================= */
.register-fullwidth { background: var(--off-white); min-height: 100vh; padding: 0; }
.register-shell { display: flex; min-height: 100vh; width: 100%; align-items: center; justify-content: center; flex-direction: column; padding: 24px 16px; }

/* Mobile: Hide hero, show form centered */
.register-hero { display: none; }
.register-form-panel { width: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.register-form-panel .auth-card { width: 100%; max-width: 800px; border-radius: 20px; padding: 32px 22px; }
.register-shell .auth-card { width: 100%; max-width: 800px; border-radius: 20px; padding: 32px 22px; }

.register-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.15); z-index: 0; }
.register-hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; }
.register-hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(160deg, var(--navy), #0d302e); }
.register-hero::before {
  content: ''; position: absolute; inset: 0; 
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none; z-index: 1;
}
.register-hero .auth-logo { display: inline-block; margin-bottom: 48px; }
.register-hero .auth-logo img { height: 28px; filter: brightness(0) invert(1); }
.register-hero-text { flex: 1; }
.register-hero h2 { font-size: 32px; line-height: 1.25; margin: 0 0 14px 0; letter-spacing: -0.01em; }
.auth-side-sub { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.8); margin: 0 0 32px 0; max-width: 32ch; }

/* =========================================================
   Tablet and up
   ========================================================= */
@media (min-width: 640px) {
  .section { padding: 56px 24px; }
  .register-section { padding: 56px 24px; }
  .login-section { padding: 56px 24px; }
  .register-section .auth-card { padding: 40px; }
  .login-section .auth-card { padding: 40px; }
  
  .two-col { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
  .quick-actions { flex-direction: row; gap: 14px; }
  .quick-actions .btn-primary, .quick-actions .btn-info { flex: 1; text-align: center; justify-content: center; }
  .form-actions { justify-content: flex-start; }
  .form-actions a, .form-actions button { flex: none; padding-left: 22px; padding-right: 22px; }
  .plan-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .plan-card button { width: 100%; }
  .auth-shell { max-width: 800px; border-radius: 24px; }
  .auth-card { padding: 40px; max-width: 800px; }
  .register-form-panel .auth-card { max-width: 800px; padding: 40px; }
  .register-shell .auth-card { max-width: 800px; padding: 40px; }
  
  .billing-hero-content { flex-direction: row; gap: 40px; }
  .billing-hero-badge { text-align: left; }
}

/* =========================================================
   Desktop and up: full top nav, hide bottom tab bar
   ========================================================= */
@media (min-width: 900px) {
  .admin-body { padding-bottom: 0; }
  .mobile-tab-bar { display: none; }

  .admin-nav-inner { padding: 22px 24px; gap: 32px; }
  .admin-nav-inner .logo img { height: 28px; }
  .admin-nav-links { display: flex; gap: 22px; flex: 1; justify-content: center; }
  .admin-nav-links a { color: var(--text-mid); text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
  .admin-nav-links a.active, .admin-nav-links a:hover { color: var(--navy); border-color: var(--navy); }
  .admin-nav-actions { gap: 12px; }
  .btn-small { padding: 8px 14px; }
  .btn-icon-only .btn-text { display: inline; }
  .sub-badge { font-size: 12px; padding: 5px 10px; }
  .sub-warning { padding: 10px 24px; font-size: 14px; }

  .admin-main { padding: 40px 24px 80px; }
  .admin-main h1 { font-size: 28px; }
  .admin-header-row { flex-direction: row; justify-content: space-between; align-items: flex-start; }

  .hero-card { padding: 36px 40px; margin-bottom: 40px; }
  .hero-card-top { gap: 20px; margin-bottom: 24px; }
  .hero-avatar { width: 64px; height: 64px; font-size: 26px; }
  .hero-text h1 { font-size: 32px; }
  .hero-greeting { font-size: 15px; }
  .hero-sub-row { gap: 14px 20px; margin-bottom: 12px; }
  .hero-expiry { font-size: 14px; }
  .hero-cta { font-size: 15px; padding: 12px 20px; }

  .settings-form { padding: 8px 28px; }
  .settings-section { padding: 24px 0; }
  .settings-section h2 { font-size: 16px; }
  .logo-preview { width: 80px; height: 80px; }

  .product-form { padding: 24px 28px; }

  .billing-hero { padding: 40px 48px; margin-bottom: 48px; }
  .billing-hero h2 { font-size: 32px; }
  .billing-hero-price { font-size: 28px; }
  .billing-header { margin-bottom: 36px; }
  .billing-header h3 { font-size: 20px; }

  .auth-shell { max-width: 1200px; align-items: stretch; }
  .auth-side { display: flex; }
  .auth-card { padding: 48px 56px; }
  .auth-logo-mobile { display: none; }

  /* Full-width register at desktop */
  .register-shell { flex-direction: row; }
  .register-hero { display: flex; flex: 1; width: 50%; padding: 48px 48px; }
  .register-form-panel { flex: 1; width: 50%; padding: 40px 32px; }
  .register-form-panel .auth-card { max-width: 800px; padding: 40px; }
  .register-shell .auth-card { max-width: 800px; padding: 40px; }
  .register-hero h2 { font-size: 36px; }
  .auth-card h1 { font-size: 28px; }
}

@media (min-width: 1440px) {
  .register-hero { padding: 56px 56px; }
  .register-form-panel { padding: 48px 40px; }
  .register-form-panel .auth-card { max-width: 800px; padding: 48px; }
  .register-shell .auth-card { max-width: 800px; padding: 48px; }
}