/* =========================================
   ResumeAI Pro — Main Stylesheet
   ========================================= */

/* --- Google Fonts already loaded via HTML --- */

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Brand Colors */
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --blue-dark: #1D4ED8;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-600: #2563EB;

  --emerald: #10B981;
  --emerald-light: #34D399;
  --emerald-dark: #059669;
  --emerald-50: #ECFDF5;
  --emerald-100: #D1FAE5;

  --violet: #7C3AED;
  --amber: #F59E0B;
  --rose: #F43F5E;
  --orange: #F97316;

  /* Neutral Palette (Light) */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-sidebar: #0F172A;
  --bg-header: rgba(255,255,255,0.85);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;

  --border: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-strong: #CBD5E1;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-glow-blue: 0 0 20px rgba(37, 99, 235, 0.15);
  --shadow-glow-emerald: 0 0 20px rgba(16, 185, 129, 0.15);

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --header-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(16px);
}

/* === DARK MODE === */
[data-theme="dark"] {
  --bg-primary: #0A0F1E;
  --bg-secondary: #0F172A;
  --bg-tertiary: #1E293B;
  --bg-card: #141929;
  --bg-sidebar: #080D1A;
  --bg-header: rgba(10, 15, 30, 0.85);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #0F172A;

  --border: #1E293B;
  --border-subtle: #152032;
  --border-strong: #334155;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.3);

  --glass-bg: rgba(14, 22, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

/* === LAYOUT === */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  transition: grid-template-columns var(--transition-slow);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: var(--sidebar-collapsed) 1fr;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

.page-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: var(--bg-secondary);
}

/* === SIDEBAR === */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: width var(--transition-slow), transform var(--transition-slow);
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.app-shell.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: white;
  opacity: 1;
  transition: opacity var(--transition-slow);
}

.logo-accent {
  color: var(--emerald);
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.app-shell.sidebar-collapsed .logo-text {
  opacity: 0;
  width: 0;
}

/* === SIDEBAR NAV === */
.sidebar-nav {
  flex: 1;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
  width: 3px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  transition: all var(--transition-base);
  overflow: hidden;
}

.nav-item i, .nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-item span {
  opacity: 1;
  transition: opacity var(--transition-slow);
}

.nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(16, 185, 129, 0.1));
  color: white;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.nav-item.active .nav-indicator {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(to bottom, var(--blue), var(--emerald));
  border-radius: 999px 0 0 999px;
}

.nav-badge {
  margin-left: auto;
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.app-shell.sidebar-collapsed .nav-item span {
  opacity: 0;
  width: 0;
}

.app-shell.sidebar-collapsed .nav-badge {
  display: none;
}

.nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 8px 4px;
}

/* === SIDEBAR FOOTER === */
.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.plan-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.plan-icon i { width: 14px; height: 14px; }

.plan-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.plan-name {
  font-size: 12px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-limit {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

.btn-upgrade {
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.btn-upgrade:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  transition: background var(--transition-base);
  cursor: pointer;
  overflow: hidden;
}

.user-profile:hover {
  background: rgba(255,255,255,0.06);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(37,99,235,0.4);
}

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

.user-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-btn {
  color: rgba(255,255,255,0.3);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.user-menu-btn:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.app-shell.sidebar-collapsed .plan-card,
.app-shell.sidebar-collapsed .user-info,
.app-shell.sidebar-collapsed .user-menu-btn,
.app-shell.sidebar-collapsed .btn-upgrade {
  display: none;
}

.app-shell.sidebar-collapsed .user-profile {
  justify-content: center;
}

/* === HEADER === */
.app-header {
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
  transition: background var(--transition-slow);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.mobile-menu-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  max-width: 360px;
  width: 100%;
  transition: all var(--transition-base);
}

.header-search:focus-within {
  border-color: var(--blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.header-search i {
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.header-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
  min-width: 0;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search kbd {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--font-sans);
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  position: relative;
}

.header-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.header-btn i {
  width: 18px;
  height: 18px;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--rose);
  border-radius: 50%;
  border: 1.5px solid var(--bg-primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.header-user:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.header-user i {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-100);
}

/* === NOTIFICATION PANEL === */
.notification-panel {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  right: 16px;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 200;
  overflow: hidden;
  animation: slideDown 200ms ease;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.notification-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.notification-header button {
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.notification-item:hover {
  background: var(--bg-secondary);
}

.notification-item.unread {
  background: rgba(37, 99, 235, 0.03);
}

.notification-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-item-icon i {
  width: 16px;
  height: 16px;
}

.notification-item-body {
  flex: 1;
  min-width: 0;
}

.notification-item-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}

.notification-item-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.notification-item-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === MOBILE BOTTOM NAV === */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
  z-index: 100;
  padding: 0 8px;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  transition: all var(--transition-base);
  cursor: pointer;
}

.mobile-nav-item i {
  width: 20px;
  height: 20px;
}

.mobile-nav-item.active {
  color: var(--blue);
}

/* === TOAST === */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  pointer-events: auto;
  max-width: 380px;
  animation: toastSlideIn 300ms var(--transition-spring) forwards;
}

.toast.toast-exit {
  animation: toastSlideOut 200ms ease forwards;
}

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

.toast-success .toast-icon { background: var(--emerald-50); color: var(--emerald); }
.toast-error .toast-icon { background: #FFF1F2; color: var(--rose); }
.toast-info .toast-icon { background: var(--blue-50); color: var(--blue); }
.toast-warning .toast-icon { background: #FFFBEB; color: var(--amber); }

[data-theme="dark"] .toast-success .toast-icon { background: rgba(16,185,129,0.1); }
[data-theme="dark"] .toast-error .toast-icon { background: rgba(244,63,94,0.1); }
[data-theme="dark"] .toast-info .toast-icon { background: rgba(37,99,235,0.1); }
[data-theme="dark"] .toast-warning .toast-icon { background: rgba(245,158,11,0.1); }

.toast-body {
  flex: 1;
}

.toast-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 13px;
  color: var(--text-secondary);
}

.toast-close {
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: all var(--transition-fast);
}

.toast-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 300;
  animation: fadeIn 200ms ease;
}

.modal-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 301;
  padding: 16px;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 300ms var(--transition-spring);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* === UPGRADE MODAL === */
.upgrade-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 16px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.upgrade-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  padding: 32px;
  width: 100%;
  max-width: 680px;
  position: relative;
  animation: modalSlideIn 300ms var(--transition-spring);
}

.upgrade-header {
  text-align: center;
  margin-bottom: 28px;
}

.upgrade-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto 16px;
}

.upgrade-icon i { width: 26px; height: 26px; }

.upgrade-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.upgrade-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

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

.plan-option {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}

.plan-option-featured {
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(37,99,235,0.03), rgba(16,185,129,0.03));
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-option-header {
  margin-bottom: 16px;
}

.plan-option h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

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

.plan-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
}

.plan-save {
  font-size: 13px;
  color: var(--emerald);
  font-weight: 600;
  margin-top: 2px;
}

.plan-option ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.plan-option li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.plan-option li i {
  width: 15px;
  height: 15px;
  color: var(--emerald);
  flex-shrink: 0;
}

/* === AUTH CONTAINER === */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #0A0F1E 0%, #0F172A 50%, #0A1628 100%);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.auth-container::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* === HELPERS === */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-bottom-nav {
    display: flex;
  }
  
  .page-content {
    padding: 20px 16px 84px;
  }
  
  .header-search {
    display: none;
  }

  .header-user span {
    display: none;
  }

  .upgrade-plans {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-content {
    padding: 16px 12px 84px;
  }

  .app-header {
    padding: 0 12px;
  }

  .notification-panel {
    right: 8px;
    left: 8px;
    width: auto;
  }
}
