/* ============================================================
   TiffinByBucketX - Main Stylesheet
   Premium Mobile-First Design System
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Colors - Curated Red and Gradients */
  --primary: #Fd0304;
  --primary-dark: #cc0000;
  --primary-light: #fef2f2;
  --brand-gradient: linear-gradient(to right, #ffb25f, #ed1c24, #ff0000);
  --secondary: #0f172a;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --info: #06b6d4;
  --info-light: #ecfeff;

  /* Sidebar - Dark Glassmorphism (Desktop) */
  --sidebar-bg: #0f172a;
  --sidebar-text: #94a3b8;
  --sidebar-active-bg: rgba(255, 255, 255, 0.06);
  --sidebar-active-text: #ffffff;
  --sidebar-active-border: #Fd0304;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.03);
  --sidebar-width: 260px;

  /* Mobile App Elements */
  --header-height: 56px;
  --bottom-nav-height: 60px;

  /* Layout */
  --body-bg: #f8fafc;
  --body-color: #0f172a;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.02);
  --card-hover-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  --border-color: #e2e8f0;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--body-bg);
  color: var(--body-color);
  font-size: 0.9rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

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

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

/* ---------- Layout App Shell (Mobile First) ---------- */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Mobile Top Header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  transition: var(--transition);
}

.app-header-title {
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: -0.02em;
}

.app-header-back {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.25rem;
  padding: 0.25rem 0.5rem;
  margin-left: -0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* App Main Content Area */
.app-main {
  flex: 1;
  padding-top: calc(var(--header-height) + 16px);
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
  padding-left: 1rem;
  padding-right: 1rem;
  width: auto; /* Allow layout to shrink to screen width naturally */
}

/* Mobile Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--sidebar-text);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  width: 20%;
  height: 100%;
  gap: 3px;
  transition: var(--transition);
}

.bottom-nav-item i {
  font-size: 1.3rem;
  transition: var(--transition);
}

.bottom-nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

.bottom-nav-item.active i {
  transform: translateY(-2px);
  color: var(--primary);
}

/* ---------- Responsive Desktop Sidebar layout ---------- */
@media (min-width: 992px) {
  .sidebar-present .app-header {
    left: var(--sidebar-width);
  }
  .sidebar-present .app-main {
    margin-left: var(--sidebar-width);
  }
  .app-main {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
  }
  .bottom-nav {
    display: none;
  }
  .sidebar {
    transform: translateX(0) !important;
  }
  #mobileSidebarToggle,
  #mobileProfileToggle {
    display: none !important;
  }
}

/* Sidebar Off-canvas Drawer (Default Mobile-First) */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.show {
  transform: translateX(0);
}

/* Sidebar Overlay (Mobile Backdrop) */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1035;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

.sidebar-brand {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.sidebar-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-gradient);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-brand-icon.has-logo {
  background: none;
}

.sidebar-brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.sidebar-brand-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--sidebar-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(253, 3, 4, 0.55) rgba(255, 255, 255, 0.06);
}

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

.sidebar-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  margin: 6px 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(253, 3, 4, 0.75) 0%, rgba(253, 3, 4, 0.4) 100%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(253, 3, 4, 0.9) 0%, rgba(253, 3, 4, 0.6) 100%);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  color: var(--sidebar-text);
  font-size: 0.85rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

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

.sidebar-link:hover {
  background: var(--sidebar-hover-bg);
  color: #cdd6e0;
}

.sidebar-link.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  border-left-color: var(--sidebar-active-border);
}

.sidebar-link.active i {
  color: var(--sidebar-active-border);
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

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

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

.sidebar-logout-btn {
  background: none;
  border: none;
  color: var(--sidebar-text);
  padding: 0.3rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-logout-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.sidebar-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e0e6ed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Premium UI Cards ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  margin-bottom: 1rem;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--card-hover-shadow);
}

.card-body {
  padding: 1.25rem;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Stat Card */
.stat-card {
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-info {
  display: flex;
  flex-direction: column;
}

.stat-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--sidebar-text);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.stat-card-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0;
  letter-spacing: -0.01em;
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--primary-light);
  color: var(--primary);
}

.stat-card-icon.success {
  background: var(--success-light);
  color: var(--success);
}
.stat-card-icon.warning {
  background: var(--warning-light);
  color: var(--warning);
}
.stat-card-icon.info {
  background: var(--info-light);
  color: var(--info);
}

@media (max-width: 576px) {
  .stat-card {
    padding: 0.75rem;
    gap: 0.5rem;
    border-radius: 12px;
  }
  .stat-card-value {
    font-size: 1.15rem;
  }
  .stat-card-label {
    font-size: 0.65rem;
  }
  .stat-card-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 8px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  padding: 0.55rem 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.btn-success:hover {
  background: #0ea472;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
}

.btn-warning {
  background: var(--warning);
  border-color: var(--warning);
  color: #fff;
}
.btn-warning:hover {
  background: #d97706;
}

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

.btn-outline-secondary {
  border-color: var(--border-color);
  color: var(--secondary);
  background: transparent;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background: var(--body-bg) !important;
  color: var(--secondary) !important;
  border-color: var(--border-color) !important;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

/* Floating Action Button (FAB) */
.fab {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(237, 28, 36, 0.3);
  z-index: 999;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.fab:active {
  transform: scale(0.92);
}

/* ---------- Forms & Inputs ---------- */
.form-group {
  margin-bottom: 1.15rem;
}

.form-control, .form-select {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  color: var(--body-color);
  transition: var(--transition);
  background-color: #fff;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(253, 3, 4, 0.08);
  outline: none;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.4rem;
  display: block;
}

/* ---------- Badges ---------- */
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-success {
  background: var(--success-light);
  color: #065f46;
}

.badge-danger {
  background: var(--danger-light);
  color: #991b1b;
}

.badge-warning {
  background: var(--warning-light);
  color: #92400e;
}

.badge-info {
  background: var(--info-light);
  color: #1e40af;
}

.badge-secondary {
  background: #f1f5f9;
  color: #475569;
}

/* ---------- Custom Meal Item Card ---------- */
.meal-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}
.meal-item:last-child {
  border-bottom: none;
}
.meal-image {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background-color: #f1f5f9;
}
.meal-info {
  flex: 1;
  min-width: 0;
}
.meal-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 2px 0;
}
.meal-desc {
  font-size: 0.78rem;
  color: var(--sidebar-text);
  margin: 2px 0 4px 0;
}
.meal-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

/* Delivery Dashboard Orders */
.delivery-card {
  border-left: 4px solid var(--warning);
}
.delivery-card.delivered {
  border-left-color: var(--success);
}
.delivery-card.failed {
  border-left-color: var(--danger);
}

/* General Utilities */
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--sidebar-text) !important; }
.fw-bold { font-weight: 700; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.w-100 { width: 100%; }

/* Custom Nav Pills Active Styling */
.nav-pills .nav-link {
  color: var(--secondary);
  border-radius: 8px;
  transition: var(--transition);
}
.nav-pills .nav-link.active {
  background-color: var(--primary) !important;
  color: #fff !important;
}

/* ---------- Mobile Overrides & Scrollable Tabs Navigation ---------- */
.card-header-scrollable {
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.card-header-scrollable::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.card-header-scrollable .nav-tabs {
  flex-wrap: nowrap;
  white-space: nowrap;
}
.card-header-scrollable .nav-link {
  white-space: nowrap;
}

@media (max-width: 576px) {
  /* Reduce padding and font sizes globally for tables on extra small screens */
  .table {
    font-size: 0.78rem !important;
  }
  .table th, .table td {
    padding: 0.5rem 0.25rem !important;
  }
  
  /* Stacked page headers on mobile */
  .page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  .page-header-actions {
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }
  .page-header-actions .btn, 
  .page-header-actions .form-control,
  .page-header-actions form {
    flex-grow: 1 !important;
    text-align: center !important;
    width: 100% !important;
  }
}

@media (min-width: 576px) {
  .border-sm-start {
    border-left: 1px solid var(--border-color) !important;
  }
  .border-sm-end {
    border-right: 1px solid var(--border-color) !important;
  }
}

/* ---------- Form Submit Loading Animation ---------- */
.btn-loading {
  position: relative !important;
  color: transparent !important;
  pointer-events: none !important;
}
.btn-loading::after {
  content: "" !important;
  position: absolute !important;
  width: 16px !important;
  height: 16px !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: auto !important;
  border: 2px solid transparent !important;
  border-top-color: currentColor !important;
  border-radius: 50% !important;
  animation: btn-spinner 0.6s linear infinite !important;
}
@keyframes btn-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Tactile hover & active states for premium gradient buttons */
.btn[style*="background: var(--brand-gradient)"] {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, filter 0.2s ease !important;
}
.btn[style*="background: var(--brand-gradient)"]:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(237, 28, 36, 0.25) !important;
}
.btn[style*="background: var(--brand-gradient)"]:active {
  transform: translateY(1px) scale(0.98) !important;
}/* Full Screen Glassmorphic Loader Overlay */
.full-screen-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeInLoader 0.3s forwards ease-in-out;
}
@keyframes fadeInLoader {
  to {
    opacity: 1;
  }
}
.loader-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-color);
  max-width: 90%;
  width: 320px;
}

/* ---------- Small Form Controls overrides ---------- */
.form-control-sm,
.form-select-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

/* ---------- Filter Form Sizing on non-mobile screens ---------- */
@media (min-width: 768px) {
  .filter-form .form-control,
  .filter-form .form-select,
  .filter-form .btn {
    height: 38px;
    box-sizing: border-box;
  }
  
  .filter-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .filter-form .form-control-sm,
  .filter-form .form-select-sm,
  .filter-form .btn-sm {
    height: 31px;
    box-sizing: border-box;
  }
  
  .filter-form .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Dietary (Veg / Non-Veg) Symbol style */
.dietary-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid;
  padding: 1.5px;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
  flex-shrink: 0;
  box-sizing: border-box;
}

.dietary-indicator.veg {
  border-color: #22c55e; /* green-500 */
}

.dietary-indicator.veg::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
}

.dietary-indicator.non-veg {
  border-color: #b91c1c; /* red-700 / brown */
}

.dietary-indicator.non-veg::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background-color: #b91c1c;
  border-radius: 50%;
}

/* Badge styles for dietary types */
.badge-dietary {
  padding: 0.2rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-transform: uppercase;
}

.badge-dietary.veg {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.badge-dietary.non-veg {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ── Trial upgrade banner ── */
.trial-upgrade-banner {
  margin: 0 -1rem 1rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 55%, #ffffff 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
}

.trial-upgrade-banner__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* ── Read-only subscription banner ── */
.read-only-banner {
  position: relative;
  margin: 0 -1rem 1.25rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #ffffff 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.read-only-banner__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #f59e0b 0%, #Fd0304 100%);
}

.read-only-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.95rem 1rem 0.95rem 1.15rem;
}

.read-only-banner__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(253, 3, 4, 0.12) 0%, rgba(245, 158, 11, 0.18) 100%);
  color: #c2410c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.read-only-banner__content {
  flex: 1;
  min-width: 0;
}

.read-only-banner__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.read-only-banner__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.read-only-banner__hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: #b45309;
  letter-spacing: 0.02em;
}

.read-only-banner__message {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #475569;
}

.read-only-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.55rem 0.95rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #Fd0304 0%, #dc2626 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(253, 3, 4, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.read-only-banner__cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(253, 3, 4, 0.28);
}

.read-only-banner__cta:active {
  transform: translateY(0);
}

@media (max-width: 767.98px) {
  .read-only-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .read-only-banner__cta {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .read-only-banner {
    margin-left: -2rem;
    margin-right: -2rem;
  }
}

