/* ==========================================================================
   SUB FOR UNLOCK - Premium Dark Gaming Style
   Color Palette:
   - Canvas/Dark: #0a0d14, #121824, #1a2235
   - Primary Accent (Red/Coral): #ff2a5f (Locks, Main Alerts)
   - Success Accent (Neon Green): #00ff87 (Completed, Unlocked)
   - Warning Accent (Gold/Yellow): #ffcc00 (Active/Processing Highlights)
   - Text: #f8fafc (Primary), #94a3b8 (Secondary), #64748b (Muted)
   ========================================================================== */

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

:root {
  --bg-dark: #0A0A0B;
  --bg-card: rgba(17, 17, 20, 0.85);
  --bg-card-hover: rgba(25, 25, 30, 0.95);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(255, 62, 62, 0.3);

  --accent-red: #FF3E3E;
  --accent-red-glow: rgba(255, 62, 62, 0.35);
  --accent-green: #39FF14;
  --accent-green-glow: rgba(57, 255, 20, 0.35);
  --accent-yellow: #FFD300;
  --accent-yellow-glow: rgba(255, 211, 0, 0.35);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --font-heading: 'Orbitron', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 42, 95, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(0, 255, 135, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 204, 0, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #0a0d14 0%, #06080d 100%);
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* Layout Elements */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  min-width: 0;
}

.brand-text-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-yellow));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 15px var(--accent-red-glow);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.brand-badge {
  font-size: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 62, 62, 0.15);
  color: var(--accent-red);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 62, 62, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

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

.db-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #39FF14;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #39FF14;
  border-radius: 50%;
  box-shadow: 0 0 8px #39FF14;
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent-yellow);
  border-bottom: 2px solid var(--accent-yellow);
}

/* Hamburger Menu Button */
.hamburger-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.hamburger-btn:hover {
  border-color: var(--accent-red);
  background: rgba(255, 42, 95, 0.1);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Drawer / Mobile Navigation */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #0d121d;
  border-right: 1px solid var(--border-color);
  z-index: 201;
  padding: 2rem 1.5rem;
  transform: translateX(-100%);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.drawer-overlay.active .drawer-menu {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-item a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.drawer-item a:hover, .drawer-item a.active {
  color: #fff;
  background: rgba(255, 42, 95, 0.15);
  border-left: 3px solid var(--accent-red);
}

/* Main Container */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.glass-card.accent-border-red {
  border-top: 3px solid var(--accent-red);
}

.glass-card.accent-border-green {
  border-top: 3px solid var(--accent-green);
}

.glass-card.accent-border-yellow {
  border-top: 3px solid var(--accent-yellow);
}

/* Headings */
.page-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Typography Helpers */
.text-red { color: var(--accent-red) !important; }
.text-green { color: var(--accent-green) !important; }
.text-yellow { color: var(--accent-yellow) !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), #e11d48);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-red-glow);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 42, 95, 0.6);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #052e16;
  font-weight: 800;
  box-shadow: 0 4px 15px var(--accent-green-glow);
}
.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 135, 0.6);
}

.btn-warning {
  background: linear-gradient(135deg, var(--accent-yellow), #d97706);
  color: #1e1b4b;
  font-weight: 800;
  box-shadow: 0 4px 15px var(--accent-yellow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn:disabled, .btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

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

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.25);
}

.form-control::placeholder {
  color: var(--text-dim);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* Social Task Box in Form */
.task-config-card {
  background: rgba(10, 13, 20, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

.task-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.task-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.task-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.task-icon.youtube { background: rgba(255, 0, 0, 0.2); color: #ff0000; }
.task-icon.telegram { background: rgba(0, 136, 204, 0.2); color: #0088cc; }
.task-icon.instagram { background: rgba(225, 48, 108, 0.2); color: #e1306c; }
.task-icon.facebook { background: rgba(24, 119, 242, 0.2); color: #1877f2; }
.task-icon.whatsapp { background: rgba(37, 211, 102, 0.2); color: #25d366; }

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-green);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Stats Overview Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.stat-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Ad Placeholders */
.ad-banner {
  background: rgba(15, 23, 42, 0.7);
  border: 2px dashed rgba(255, 204, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.ad-banner span {
  display: inline-block;
  background: rgba(255, 204, 0, 0.2);
  color: var(--accent-yellow);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
}

.ad-banner p {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Unlock Experience Cards */
.unlock-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.unlock-thumbnail-box {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
}

.timer-ring-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.timer-box {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(255,42,95,0.15) 0%, transparent 70%);
  border: 3px solid var(--accent-red);
  box-shadow: 0 0 25px var(--accent-red-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.timer-value {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.timer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.2rem;
}

/* Social Task Item Button List */
.social-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.task-button-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(18, 24, 36, 0.8);
  transition: var(--transition-fast);
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
}

/* Task States */
/* 1. LOCKED */
.task-button-card.state-locked {
  opacity: 0.5;
  background: rgba(10, 13, 20, 0.5);
  border-color: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

/* 2. ACTIVE */
.task-button-card.state-active {
  opacity: 1;
  background: rgba(255, 42, 95, 0.12);
  border-color: var(--accent-red);
  box-shadow: 0 0 15px var(--accent-red-glow);
  cursor: pointer;
  animation: pulse-border 2s infinite;
}

/* 3. PROCESSING */
.task-button-card.state-processing {
  opacity: 0.9;
  background: rgba(255, 204, 0, 0.12);
  border-color: var(--accent-yellow);
  box-shadow: 0 0 15px var(--accent-yellow-glow);
  cursor: wait;
}

/* 4. COMPLETED */
.task-button-card.state-completed {
  opacity: 1;
  background: rgba(0, 255, 135, 0.1);
  border-color: var(--accent-green);
  cursor: default;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(255, 42, 95, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255, 42, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 42, 95, 0); }
}

.task-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.task-status-badge {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
}

.badge-locked {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.badge-active {
  background: var(--accent-red);
  color: #fff;
}

.badge-processing {
  background: var(--accent-yellow);
  color: #111;
}

.badge-completed {
  background: var(--accent-green);
  color: #052e16;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.toast {
  background: rgba(18, 24, 36, 0.95);
  border: 1px solid var(--accent-green);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  background: rgba(10, 13, 20, 0.9);
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text-main);
}

/* Responsive Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.custom-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Form inputs font-size protection for mobile iOS */
.form-control, input[type="text"], input[type="url"], textarea, select {
  font-size: 16px; /* Prevents auto-zoom on iOS mobile browsers */
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .navbar {
    padding: 0.75rem 1rem;
  }

  .nav-content {
    gap: 0.5rem;
  }

  .page-title {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    flex-wrap: wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .page-subtitle {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }

  .main-content {
    padding: 1.25rem 0.85rem;
  }

  .glass-card {
    padding: 1.25rem 1rem;
  }

  .db-status-pill {
    padding: 0.25rem 0.55rem;
    font-size: 0.65rem;
    letter-spacing: 0;
  }

  .brand-text {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }

  .brand-badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.35rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }
}

@media (max-width: 640px) {
  .task-config-card div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .unlock-wrapper {
    width: 100%;
  }

  .unlock-thumbnail-box {
    height: 160px;
  }

  .timer-box {
    width: 100px;
    height: 100px;
  }

  .timer-value {
    font-size: 2.2rem;
  }
}

@media (max-width: 520px) {
  .task-button-card {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .task-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .task-right {
    flex: 0 0 auto;
  }

  .task-status-badge {
    font-size: 0.75rem;
    padding: 0.45rem 0.75rem;
  }

  .toast-container {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 1rem;
    width: auto;
  }

  .toast {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
  }
}

@media (max-width: 420px) {
  .brand-badge {
    display: none;
  }

  .db-status-text {
    display: none;
  }

  .db-status-pill {
    padding: 0.35rem;
    border-radius: 50%;
  }

  .task-button-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .task-right {
    width: 100%;
  }

  .task-status-badge {
    width: 100%;
    display: block;
    text-align: center;
  }
}

