/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-card: #F9FAFB;
  --bg-card-hover: #F3F4F6;
  --bg-elevated: #F3F4F6;
  --primary: #16A34A;
  --primary-dark: #15803D;
  --primary-subtle: #F0FDF4;
  --text: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.08);
  --warning: #D97706;
  --warning-bg: rgba(217, 119, 6, 0.08);
  --success: #16A34A;
  --success-bg: rgba(22, 163, 74, 0.08);
  --info: #2563EB;
  --info-bg: rgba(37, 99, 235, 0.08);
  --nav-height: 56px;
  --sidebar-width: 240px;
  --mobile-nav-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}

[data-theme="dark"] {
  --bg: #1C1C1E;
  --bg-card: #2C2C2E;
  --bg-card-hover: #3A3A3C;
  --bg-elevated: #3A3A3C;
  --primary: #22C55E;
  --primary-dark: #16A34A;
  --primary-subtle: rgba(34, 197, 94, 0.1);
  --text: #F9FAFB;
  --text-secondary: #AEAEB2;
  --text-muted: #6E6E73;
  --border: #3A3A3C;
  --border-light: #2C2C2E;
  --danger: #F87171;
  --danger-bg: rgba(248, 113, 113, 0.1);
  --warning: #FBBF24;
  --warning-bg: rgba(251, 191, 36, 0.1);
  --success: #22C55E;
  --success-bg: rgba(34, 197, 94, 0.1);
  --info: #60A5FA;
  --info-bg: rgba(96, 165, 250, 0.1);
}

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

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

::selection {
  background: var(--primary-subtle);
  color: var(--text);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: inherit;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  color: var(--text);
  border-color: var(--primary);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 0.4rem 0.6rem;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--primary-subtle);
}

.btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.btn-icon {
  padding: 0.5rem;
  width: 36px;
  height: 36px;
}

/* ==================== Forms ==================== */
.input, .select {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px; /* prevents iOS zoom on focus */
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease;
  font-family: inherit;
  -webkit-appearance: none;
}

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

.input:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
}

select.input, .select {
  cursor: pointer;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394B8A3' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

select.input option, .select option {
  background: var(--bg-card);
  color: var(--text);
}

.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group {
  margin-bottom: 1rem;
}

textarea.input {
  min-height: 80px;
  resize: vertical;
}

/* ==================== Cards ==================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* ==================== Layout ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: 0;
  height: calc(100vh - var(--nav-height));
  height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  z-index: 40;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.sidebar-link:hover {
  color: var(--text);
  background: var(--primary-subtle);
  text-decoration: none;
}

.sidebar-link.active {
  color: var(--primary);
  background: var(--primary-subtle);
  border-right: 3px solid var(--primary);
}

.sidebar-link .icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.sidebar-section {
  padding: 0.5rem 1.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.main-content {
  flex: 1 1;
  margin-left: var(--sidebar-width);
  padding: 1.5rem;
  min-height: calc(100vh - var(--nav-height));
  min-width: 0; /* prevents flex child overflow */
}

/* ==================== Navigation ==================== */
.nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 0.75rem;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--primary-subtle);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-subtle);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-user {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== Status Badges ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-active {
  background: var(--success-bg);
  color: var(--success);
}

.badge-paused {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-cancelled {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-pending {
  background: var(--info-bg);
  color: var(--info);
}

.badge-paid {
  background: var(--success-bg);
  color: var(--success);
}

.badge-pro {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(76, 217, 100, 0.3);
}

/* ==================== Tables ==================== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.table tbody tr {
  transition: background 0.15s ease;
}

.table tbody tr:hover {
  background: var(--primary-subtle);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ==================== Stats Grid ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0.75rem;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
  min-width: 0;
}

.stat-card:hover {
  border-color: var(--primary);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  word-break: break-all;
}

.stat-change {
  font-size: 0.75rem;
  margin-top: 0.3rem;
  font-weight: 600;
}

.stat-change.positive { color: var(--danger); }
.stat-change.negative { color: var(--success); }

/* ==================== Modal ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.15s ease;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 1.5rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  animation: slideUp 0.2s ease;
  -webkit-overflow-scrolling: touch;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== Alerts & Banners ==================== */
.alert {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(76, 217, 100, 0.2);
}

.alert-info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.banner {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--primary-subtle);
  border: 1px solid rgba(76, 217, 100, 0.3);
  margin-bottom: 1rem;
}

/* ==================== Empty States ==================== */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-secondary);
}

.empty-state .icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto;
}

/* ==================== Chart Container ==================== */
.chart-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.chart-container h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

/* ==================== Category Pills ==================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  grid-gap: 0.6rem;
  gap: 0.6rem;
}

.category-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  transition: border-color 0.2s ease;
  min-width: 0;
}

.category-pill:hover {
  border-color: var(--primary);
}

.category-pill .cat-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.category-pill .cat-amount {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.1rem;
}

.category-pill .cat-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ==================== Notification Badge ==================== */
.notif-badge {
  background: var(--danger);
  color: white;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

/* ==================== Loading ==================== */
.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  color: var(--text-secondary);
  gap: 0.75rem;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== Provider Cards (Email) ==================== */
.provider-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.provider-card:hover {
  border-color: var(--primary);
}

.provider-card .provider-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.provider-card .provider-info {
  min-width: 0;
}

.provider-card .provider-info h3 {
  font-weight: 600;
  font-size: 0.9rem;
}

.provider-card .provider-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==================== Workspace Cards ==================== */
.ws-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ws-card:hover {
  border-color: var(--primary);
}

.ws-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.ws-card .ws-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ==================== Detected Subscription Item ==================== */
.detected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}

.detected-item:last-child {
  margin-bottom: 0;
}

.detected-item .det-info {
  flex: 1 1;
  min-width: 0;
}

.detected-item .det-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detected-item .det-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detected-item .det-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* ==================== Flex/Grid Utilities ==================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ==================== Spacing Utilities ==================== */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.25rem; }
.mb-8 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

/* ==================== Text Utilities ==================== */
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.7rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==================== Mobile Nav ==================== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 50;
  padding: 0.35rem 0.5rem;
  padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
  justify-content: space-around;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.35rem 0.6rem;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link .icon {
  font-size: 1.1rem;
}

.mobile-nav-link.active {
  color: var(--primary);
  background: var(--primary-subtle);
}

/* ==================== Responsive: Tablet ==================== */
@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }
  .main-content {
    margin-left: 200px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== Landing Page ==================== */
@media (max-width: 768px) {
  .landing-hero {
    padding: 2.5rem 1.25rem 2.5rem !important;
  }

  .landing-pricing {
    padding: 2rem 1.25rem 3rem !important;
  }
}

/* ==================== Responsive: Mobile ==================== */
@media (max-width: 768px) {
  :root {
    --nav-height: 52px;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 1rem 0.75rem;
    padding-bottom: calc(var(--mobile-nav-height) + 1rem);
  }

  .mobile-nav {
    display: flex;
  }

  /* Nav */
  .nav-content {
    padding: 0 0.75rem;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .nav-user {
    display: none;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.85rem 1rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  /* Cards */
  .card {
    padding: 1rem;
    border-radius: var(--radius-sm);
  }

  .card-header {
    margin-bottom: 0.75rem;
  }

  /* Chart */
  .chart-container {
    padding: 1rem;
    border-radius: var(--radius-sm);
  }

  /* Category */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .category-pill {
    padding: 0.6rem 0.7rem;
  }

  /* Table — card layout on mobile */
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
  }

  .table {
    font-size: 0.75rem;
    min-width: 500px;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.5rem;
  }

  .hide-mobile {
    display: none !important;
  }

  /* Modal — full bottom sheet on mobile */
  .modal-overlay {
    align-items: flex-end;
  }

  .modal {
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: 85vh;
    max-height: 85dvh;
    padding: 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  /* Detected items */
  .detected-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .detected-item .det-actions {
    width: 100%;
  }

  .detected-item .det-actions .btn {
    flex: 1 1;
  }

  /* Provider cards */
  .provider-card {
    padding: 0.85rem;
  }

  /* Workspace cards */
  .ws-card {
    padding: 0.85rem;
  }

  /* Banners */
  .banner {
    padding: 0.85rem;
  }

  /* Grid utilities */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

}

/* ==================== Responsive: Small phones ==================== */
@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 1.15rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .btn-lg {
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
  }
}

/* ==================== Notifications Panel ==================== */
.notif-backdrop {
  display: none;
}

.notif-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 1rem);
  max-height: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 200;
  animation: fadeIn 0.15s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 768px) {
  .notif-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 199;
    animation: fadeIn 0.15s ease;
  }

  .notif-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 75vh;
    max-height: 75dvh;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
    animation: slideUp 0.2s ease;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ==================== Safe Area (notch devices) ==================== */
@supports (padding: env(safe-area-inset-bottom)) {
  .mobile-nav {
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
  }

  .modal {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
}

/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"Inter","arguments":[{"subsets":["latin"],"display":"swap"}],"variableName":"inter"} ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Inter_Fallback_f367f3';src: local("Arial");ascent-override: 90.49%;descent-override: 22.56%;line-gap-override: 0.00%;size-adjust: 107.06%
}.__className_f367f3 {font-family: '__Inter_f367f3', '__Inter_Fallback_f367f3';font-style: normal
}

