/* ============================================
   Arveo Client Portal — styles.css
   Dark theme: #0a0a0a bg, #111 cards, #1a1a1a borders
   Primary: #5B9BD5 / gradient(135deg, #5B9BD5, #6B7FD4)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --card: #111111;
  --card-hover: #161616;
  --border: #1a1a1a;
  --border-light: #222222;
  --text: #e8e8e8;
  --text-secondary: #888888;
  --text-muted: #555555;
  --primary: #5B9BD5;
  --primary-hover: #4a8cc6;
  --gradient: linear-gradient(135deg, #5B9BD5, #6B7FD4);
  --green: #34d399;
  --green-bg: rgba(52, 211, 153, 0.1);
  --red: #f87171;
  --red-bg: rgba(248, 113, 113, 0.1);
  --yellow: #fbbf24;
  --yellow-bg: rgba(251, 191, 36, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
  --sidebar-width: 260px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

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

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(91, 155, 213, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(107, 127, 212, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-card .logo { height: 42px; margin: 0 auto 32px; }

.login-card h1 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.login-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 32px;
  line-height: 1.5;
}

.login-card .input-group { text-align: left; margin-bottom: 20px; }

.login-card label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.login-card .error-banner {
  background: var(--red-bg);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: var(--red);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  margin-bottom: 20px;
  display: none;
}

.login-card .error-banner.visible { display: block; }

.login-card .success-message {
  background: var(--green-bg);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--green);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
  display: none;
}

.login-card .success-message.visible { display: block; }

.login-card .demo-link {
  display: block;
  margin-top: 12px;
  background: rgba(91, 155, 213, 0.08);
  border: 1px solid rgba(91, 155, 213, 0.15);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--primary);
  word-break: break-all;
  text-align: left;
}

.login-card .demo-link strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* --- Forms --- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="time"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.1);
}

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

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

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--border-light);
  color: var(--text);
}
.btn-secondary:hover { background: #2a2a2a; }

.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.2);
}
.btn-danger:hover { background: rgba(248, 113, 113, 0.15); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text); }

.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ============================================
   PORTAL LAYOUT
   ============================================ */

.portal-layout {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header .logo { height: 34px; }

.sidebar-header .portal-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 8px;
}

.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 450;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 2px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.nav-item:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-item.active {
  color: var(--primary);
  background: rgba(91, 155, 213, 0.08);
}

.nav-item .nav-icon { font-size: 1.125rem; width: 22px; text-align: center; }

.sidebar-footer {
  padding: 16px 10px;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.sidebar-user .user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.sidebar-user .user-info { overflow: hidden; }
.sidebar-user .user-name { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .user-email { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Main Content --- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px 40px;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.page-header .page-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* --- Section (route page) --- */
.section { display: none; }
.section.active { display: block; animation: fadeIn 0.25s ease; }

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

/* ============================================
   CARDS & COMPONENTS
   ============================================ */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card + .card { margin-top: 16px; }

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: -12px;
  margin-bottom: 16px;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-card .stat-value .status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stat-card .stat-value .status-dot.live { background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.4); }
.stat-card .stat-value .status-dot.offline { background: var(--red); }

.stat-card .stat-phone {
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); }

/* --- Activity Feed --- */
.activity-list { list-style: none; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.activity-icon.call { background: rgba(91, 155, 213, 0.1); }
.activity-icon.booking { background: var(--green-bg); }
.activity-icon.missed { background: var(--red-bg); }

.activity-text { flex: 1; }
.activity-text .activity-title { font-weight: 500; margin-bottom: 2px; }
.activity-text .activity-meta { color: var(--text-secondary); font-size: 0.8125rem; }

/* --- Agent Info Card --- */
.agent-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.agent-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.agent-details h3 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.agent-details p { font-size: 0.8125rem; color: var(--text-secondary); }

/* ============================================
   AGENT CUSTOMIZATION FORM
   ============================================ */

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group .hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hours grid */
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
}

.hours-row .day-label {
  width: 50px;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.hours-row input[type="time"] {
  width: 120px;
  padding: 6px 10px;
  font-size: 0.8125rem;
}

.hours-row .closed-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.hours-row .closed-toggle input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
}

.hours-row span.time-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Tags input */
.tags-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  min-height: 42px;
  cursor: text;
}

.tags-input-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.1);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(91, 155, 213, 0.1);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.8125rem;
}

.tag .tag-remove {
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--transition);
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

.tag .tag-remove:hover { opacity: 1; }

.tags-input {
  border: none !important;
  background: transparent !important;
  padding: 2px 0 !important;
  flex: 1;
  min-width: 80px;
  outline: none !important;
  box-shadow: none !important;
  font-size: 0.8125rem;
}

/* Radio group */
.radio-group { display: flex; flex-direction: column; gap: 8px; }

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.875rem;
}

.radio-option:hover { border-color: #333; }
.radio-option.selected { border-color: var(--primary); background: rgba(91, 155, 213, 0.05); }

.radio-option input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
}

/* Save status */
.save-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.save-status.visible { opacity: 1; }

/* ============================================
   BILLING
   ============================================ */

.plan-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.plan-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }

.plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.plan-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
}

.payment-table th, .payment-table td {
  padding: 12px 16px;
  font-size: 0.8125rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.payment-table th {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6875rem;
}

.payment-table td { color: var(--text-secondary); }

.danger-zone {
  border-color: rgba(248, 113, 113, 0.15);
}

.danger-zone .card-title { color: var(--red); }

.danger-zone .danger-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   REPORTS
   ============================================ */

.week-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.week-selector button {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.875rem;
  transition: all var(--transition);
}

.week-selector button:hover { border-color: #333; background: var(--card-hover); }

.week-selector .week-label {
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 200px;
  text-align: center;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* CSS Bar Chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding: 0 8px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  max-width: 48px;
  background: var(--gradient);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
  position: relative;
}

.bar-count {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.bar-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Report list */
.report-list { list-style: none; }

.report-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.report-item:last-child { border-bottom: none; }

.report-item .report-date { font-weight: 500; }
.report-item .report-summary { color: var(--text-secondary); font-size: 0.8125rem; }

/* ============================================
   SUPPORT
   ============================================ */

.tickets-list { list-style: none; }

.ticket-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.ticket-item:last-child { border-bottom: none; }

.ticket-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ticket-status-dot.open { background: var(--yellow); }
.ticket-status-dot.resolved { background: var(--green); }

.ticket-content { flex: 1; }
.ticket-content .ticket-subject { font-weight: 500; font-size: 0.875rem; margin-bottom: 2px; }
.ticket-content .ticket-meta { font-size: 0.8125rem; color: var(--text-secondary); }

.new-ticket-form { margin-top: 16px; }
.new-ticket-form .form-group { margin-bottom: 16px; }

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.visible { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-overlay.visible .modal { transform: scale(1); }

.modal h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 12px; }
.modal p { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 24px; line-height: 1.6; }

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ============================================
   SKELETON LOADERS
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #222 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-xs);
}

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-stat { height: 32px; width: 80px; }
.skeleton-block { height: 60px; margin-bottom: 8px; }

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 2rem; margin-bottom: 12px; }
.empty-state .empty-title { font-size: 0.9375rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; }
.empty-state .empty-desc { font-size: 0.8125rem; }

/* ============================================
   MOBILE BOTTOM TABS
   ============================================ */

.mobile-tabs {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.mobile-tabs-inner {
  display: flex;
  justify-content: space-around;
}

.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  font-size: 0.625rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
  font-family: var(--font);
}

.mobile-tab .tab-icon { font-size: 1.25rem; }

.mobile-tab.active { color: var(--primary); }
.mobile-tab:hover { color: var(--text-secondary); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .report-stats { grid-template-columns: repeat(2, 1fr); }
  .main-content { padding: 24px 24px; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: var(--shadow-lg); }

  .mobile-tabs { display: block; }

  .main-content {
    margin-left: 0;
    padding: 52px 16px 80px;
  }

  .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .report-stats { grid-template-columns: 1fr; }

  .plan-card { flex-direction: column; }
  .danger-zone .danger-actions { flex-direction: column; }

  .hours-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hours-row input[type="time"] { width: 100px; }

  .login-card { padding: 32px 24px; }

  .page-header h1 { font-size: 1.25rem; padding-left: 36px; }

  .modal { padding: 24px; margin: 16px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }

  .week-selector { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.875rem;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ============================================
   CANCELLATION SUCCESS
   ============================================ */

.cancellation-msg {
  background: var(--yellow-bg);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--yellow);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
  display: none;
}

.cancellation-msg.visible { display: block; }

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 101;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 9px;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

.sidebar-overlay.visible { display: block; }
