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

:root {
  --primary: #5046E5;
  --primary-hover: #4038B8;
  --primary-soft: #F1F0FF;
  --primary-soft-2: #E8E5FF;
  --primary-glow: rgba(80, 70, 229, 0.16);
  --ink: #111111;
  --ink-secondary: #19191B;
  --muted: #64748B;
  --muted-light: #94A3B8;
  --line: #E5E7EB;
  --line-light: #F3F4F6;
  --card: #FFFFFF;
  --surface: #F8F8FA;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;
  --success: #059669;
  --success-soft: #ECFDF5;
  --warning: #D97706;
  --warning-soft: #FFFBEB;
  --shadow-sm: 0 2px 8px rgba(25, 25, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(80, 70, 229, 0.08);
  --shadow-lg: 0 16px 40px rgba(80, 70, 229, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

html {
  min-height: 100%;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: transparent; }

/* ===================================================
   APP SHELL & LAYOUT CONTAINERS
   =================================================== */
.app-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--card);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(80, 70, 229, 0.05);
}

.desktop-feed-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--card);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(80, 70, 229, 0.05);
}

@media (min-width: 768px) {
  .desktop-feed-container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  body.has-desktop-feed {
    background: #F1F0FF;
  }
  .desktop-feed-container {
    max-width: 1024px;
  }
  .app-container {
    max-width: 640px;
  }
  .discover-feed {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    padding: 20px 24px 80px !important;
  }
  .discover-feed .match-card {
    margin: 0;
  }
}

@media (min-width: 1280px) {
  .desktop-feed-container {
    max-width: 1100px;
  }
  .discover-feed {
    gap: 24px !important;
    padding: 24px 32px 80px !important;
  }
}

/* ===================================================
   WELCOME / LANDING SCREEN (Reference Style)
   =================================================== */
.welcome-page {
  background: var(--card);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(32px, 6vh, 64px) 24px 32px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.welcome-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.welcome-brand-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.welcome-illustration {
  width: min(320px, 80vw);
  margin: 0 auto 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.welcome-illustration svg,
.welcome-illustration img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.welcome-content h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.welcome-content p {
  font-size: clamp(15px, 3.5vw, 17px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 360px;
  margin: 0 auto;
}

.welcome-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.btn-primary {
  width: 100%;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(80, 70, 229, 0.25);
}

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

.btn-secondary-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  padding: 10px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.btn-secondary-link:hover {
  background: var(--primary-soft);
}

/* ===================================================
   AUTHENTICATION SCREENS (LOGIN, REGISTER, OTP)
   =================================================== */
.auth-header {
  padding: 24px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.auth-back:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.step-indicator {
  display: flex;
  gap: 6px;
  align-items: center;
}

.step-dot {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  transition: all 0.25s ease;
}

.step-dot.active {
  background: var(--primary);
  width: 32px;
}

.step-dot.done {
  background: var(--primary-hover);
}

.auth-body {
  padding: 12px 24px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Form controls */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-input::placeholder {
  color: var(--muted-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-helper {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.form-helper.error {
  color: var(--danger);
  font-weight: 600;
}

.form-helper.success {
  color: var(--success);
  font-weight: 600;
}

.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.alert-success {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.alert-warning {
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.alert-info {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-soft-2);
}

/* ===================================================
   APP TOPBAR & BOTTOM NAVIGATION
   =================================================== */
.app-topbar {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.topbar-title-wrap h1 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.topbar-title-wrap p {
  font-size: 12px;
  color: var(--muted);
}

.topbar-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.topbar-action-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

/* Bottom Navigation */
.app-bottom-nav {
  position: sticky;
  bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.03);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  position: relative;
}

.nav-tab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-tab.active {
  color: var(--primary);
}

.nav-tab.active svg {
  stroke: var(--primary);
}

.nav-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-icon-wrap .badge-count,
.nav-tab .badge-count,
.nav-tab .nav-badge-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
  border: 1.5px solid var(--card);
  line-height: 1;
  box-sizing: border-box;
  pointer-events: none;
}

.nav-tab > .badge-count,
.nav-tab > .nav-badge-count {
  top: 2px;
  right: calc(50% - 18px);
}

/* ===================================================
   MATCH CARDS & DISCOVER SCREEN
   =================================================== */
.discover-feed {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.match-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.match-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft-2);
}

.card-photo-wrapper {
  width: 100%;
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  background: #EAE5FF;
}

.card-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-photo-wrapper.blurred img {
  filter: blur(16px);
  transform: scale(1.08);
}

.privacy-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(17, 17, 27, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.match-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #FFFFFF;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

.shortlist-floating-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--muted);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.shortlist-floating-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  transition: all 0.2s ease;
}

.shortlist-floating-btn.active {
  color: #E11D48;
}

.shortlist-floating-btn.active svg {
  fill: #E11D48;
  stroke: #E11D48;
}

.shortlist-floating-btn:hover {
  transform: scale(1.08);
}

.card-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.candidate-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-icon {
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.candidate-location {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.candidate-meta-line {
  font-size: 14px;
  color: var(--ink-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink-secondary);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tag-pill.highlight {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-soft-2);
}

.card-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}

.btn-interest {
  flex: 1;
  min-height: 46px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-interest:hover {
  background: var(--primary-hover);
}

.btn-interest.sent {
  background: var(--success);
}

.btn-outline {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

/* ===================================================
   INTERESTS & MATCHES MANAGEMENT TABS
   =================================================== */
.tab-pills {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tab-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-pill.active {
  background: var(--primary);
  color: #FFFFFF;
}

.interest-item-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.interest-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #EAE5FF;
  flex-shrink: 0;
}

.interest-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.interest-content {
  flex: 1;
}

.interest-content h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.interest-content p {
  font-size: 13px;
  color: var(--muted);
}

.interest-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-sm-primary {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.btn-sm-danger {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* ===================================================
   CHAT & MESSAGING
   =================================================== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 65px - 60px);
  background: var(--surface);
}

.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
}

.chat-bubble.mine {
  align-self: flex-end;
  background: var(--primary);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
  align-self: flex-start;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.chat-bubble-time {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

.chat-input-bar {
  padding: 12px 16px;
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  outline: none;
  font-size: 14px;
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===================================================
   MEMBERSHIP CARDS
   =================================================== */
.membership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
}

.plan-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: all 0.25s ease;
}

.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.plan-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.plan-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
}

.plan-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features-list li {
  font-size: 14px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
}

/* ===================================================
   MODAL DIALOGS
   =================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 27, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: var(--card);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.modal-close-btn {
  font-size: 20px;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

/* ===================================================
   PROFESSIONAL ADMIN PANEL STYLING (#5046E5 THEME)
   =================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #F8F9FA;
  width: 100%;
}

.admin-sidebar {
  width: 260px;
  background: #111118;
  color: #F3F4F6;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #1F2430;
}

.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid #1F2430;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
}

.admin-brand-info h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.admin-brand-info p {
  font-size: 11px;
  color: #94A3B8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: #94A3B8;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin-nav-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.admin-nav-item:hover {
  background: #1E2333;
  color: #FFFFFF;
}

.admin-nav-item.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(80, 70, 229, 0.3);
}

.admin-nav-item .admin-badge {
  margin-left: auto;
  background: #E11D48;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

.admin-topbar {
  padding: 16px 28px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-page-title h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.admin-content-area {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Admin Dashboard KPI Stat Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon.purple { background: var(--primary-soft); color: var(--primary); }
.stat-icon.green  { background: var(--success-soft); color: var(--success); }
.stat-icon.amber  { background: var(--warning-soft); color: var(--warning); }
.stat-icon.red    { background: var(--danger-soft); color: var(--danger); }

.stat-info h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-info .stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

/* Admin Data Tables */
.admin-table-container {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-header-bar {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.table-header-title h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.table-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px 14px;
}

.table-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--ink);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.admin-data-table th {
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.admin-data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink-secondary);
}

.admin-data-table tr:hover td {
  background: #FAFAFD;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.pending   { background: var(--warning-soft); color: var(--warning); }
.status-pill.approved  { background: var(--success-soft); color: var(--success); }
.status-pill.rejected  { background: var(--danger-soft); color: var(--danger); }
.status-pill.suspended { background: #F3F4F6; color: #4B5563; }
.status-pill.active    { background: var(--primary-soft); color: var(--primary); }

/* Table Action Buttons */
.action-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-table-action {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-table-action.approve { background: var(--success-soft); color: var(--success); }
.btn-table-action.approve:hover { background: var(--success); color: #fff; }

.btn-table-action.reject { background: var(--danger-soft); color: var(--danger); }
.btn-table-action.reject:hover { background: var(--danger); color: #fff; }

.btn-table-action.view { background: var(--primary-soft); color: var(--primary); }
.btn-table-action.view:hover { background: var(--primary); color: #fff; }

/* ===================================================
   RESPONSIVENESS (320px to 1440px+)
   =================================================== */
@media (max-width: 860px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #1F2430;
  }
  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
  }
  .admin-content-area {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .welcome-page {
    padding: 24px 16px;
  }
  .auth-body {
    padding: 12px 16px 28px;
  }
  .card-photo-wrapper {
    aspect-ratio: 1/1;
  }
}
