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

:root {
  --bg-app: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-input: #f1f5f9;
  --bg-input-hover: #e2e8f0;
  
  --border-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: #ecfdf5;
  --primary-border: #a7f3d0;
  
  --accent: #6366f1;
  --accent-light: #eef2ff;
  
  --green-badge-bg: #ecfdf5;
  --green-badge-text: #059669;
  --green-badge-border: #a7f3d0;
  
  --amber-badge-bg: #fffbeb;
  --amber-badge-text: #d97706;
  --amber-badge-border: #fde68a;
  
  --red-btn-bg: #fff1f2;
  --red-btn-text: #e11d48;
  --red-btn-border: #fecdd3;
  --red-btn-hover: #ffe4e6;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  --shadow-window: 0 20px 40px -15px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.04);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-surface);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Main Container Frame */
.app-window {
  width: 100vw;
  height: 100vh;
  background: var(--bg-surface);
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

/* ── Dashboard Metrics Grid ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.stat-metric-card {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.stat-metric-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-window);
}

.stat-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-icon-pill {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.stat-icon-pill svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2px;
}

.stat-metric-card:hover .stat-icon-pill {
  transform: scale(1.05);
}

.stat-icon-pill.emerald { 
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); 
  color: #059669; 
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 4px 10px -2px rgba(16, 185, 129, 0.2);
}

.stat-icon-pill.green { 
  background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%); 
  color: #15803d; 
  border: 1px solid rgba(34, 197, 94, 0.25);
  box-shadow: 0 4px 10px -2px rgba(34, 197, 94, 0.2);
}

.stat-icon-pill.amber { 
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); 
  color: #d97706; 
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 4px 10px -2px rgba(245, 158, 11, 0.2);
}

.stat-icon-pill.indigo { 
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); 
  color: #4f46e5; 
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 10px -2px rgba(99, 102, 241, 0.2);
}

.stat-icon-pill.rose { 
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); 
  color: #e11d48; 
  border: 1px solid rgba(244, 63, 94, 0.25);
  box-shadow: 0 4px 10px -2px rgba(244, 63, 94, 0.2);
}

.stat-icon-pill.cyan { 
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%); 
  color: #0891b2; 
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 4px 10px -2px rgba(6, 182, 212, 0.2);
}

.stat-metric-val {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0.45rem 0 0.15rem;
  line-height: 1;
}

.stat-metric-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Progress bars for plan tier distribution */
.progress-bar-bg {
  background: var(--bg-input);
  height: 7px;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-fill.emerald { background: var(--primary); }
.progress-bar-fill.indigo { background: #6366f1; }
.progress-bar-fill.amber { background: #f59e0b; }

/* ── Sidebar ── */
.sidebar {
  width: 250px;
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 1.5rem 1.1rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem 1.4rem;
  text-decoration: none;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #064e3b;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.nav-section-block {
  display: flex;
  flex-direction: column;
}

.nav-section-block + .nav-section-block {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0 0.75rem 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.58rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-item:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.nav-item.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-item-logout:hover {
  background: #fff1f2 !important;
}

.nav-item-logout:hover span {
  color: #be123c !important;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.nav-badge-count {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-input);
  color: var(--text-muted);
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
}

.nav-item.active .nav-badge-count {
  background: var(--primary);
  color: white;
}

/* Sidebar User Footer */
.sidebar-user {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.5rem 0;
  cursor: pointer;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

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

.user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.user-email {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ── Main Area ── */
.main-area {
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-surface);
  overflow: hidden;
}

/* Top Navbar */
.top-nav {
  height: 64px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 1.5rem;
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  height: 32px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

.search-box-wrapper {
  flex: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  transition: all 0.2s ease;
}

.search-box-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.search-box-wrapper input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-main);
}

.kbd-badge {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  letter-spacing: 0.05em;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.server-status-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.server-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(5, 150, 105, 0.9);
  padding: 0.58rem 1.15rem;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 3px 12px rgba(16, 185, 129, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.btn-primary-action:hover {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  border-color: #047857;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08), 0 6px 18px rgba(16, 185, 129, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary-action:active {
  transform: translateY(0.5px) scale(0.985);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary-action svg {
  stroke-width: 2.2;
}

/* ── Content Body ── */
.content-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

/* Page Header */
.page-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.key-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.key-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.key-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Badges */
.pill-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pill-active {
  background: var(--green-badge-bg);
  color: var(--green-badge-text);
  border: 1px solid var(--green-badge-border);
}

.pill-trial {
  background: var(--amber-badge-bg);
  color: var(--amber-badge-text);
  border: 1px solid var(--amber-badge-border);
}

.pill-revoked {
  background: var(--red-btn-bg);
  color: var(--red-btn-text);
  border: 1px solid var(--red-btn-border);
}

/* Header Buttons */
.header-actions-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #cbd5e1;
  color: var(--text-main);
  padding: 0.52rem 0.95rem;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.81rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary-action:hover {
  background: #ffffff;
  border-color: #10b981;
  color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-secondary-action:active {
  transform: translateY(0.5px);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Active / Selected State for Toggle & Filter Buttons */
.btn-secondary-action.active {
  background: #ecfdf5 !important;
  border: 1.5px solid #10b981 !important;
  color: #047857 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15), 0 2px 8px rgba(16, 185, 129, 0.12) !important;
}

.btn-secondary-action.active svg {
  color: #059669 !important;
  stroke-width: 2.3 !important;
}

/* Modal Validity Type Segmented Toggle */
.validity-segmented-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
  border: 1px solid var(--border-color);
  margin-bottom: 0.65rem;
}

.validity-segment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.62rem 0.85rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.18s ease;
  user-select: none;
}

.validity-segment-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-main);
}

.validity-segment-btn svg,
.validity-segment-btn i {
  width: 15px;
  height: 15px;
  color: var(--text-dim);
  transition: color 0.18s ease;
}

.validity-segment-btn.active {
  background: #ffffff !important;
  color: var(--primary-hover) !important;
  font-weight: 700 !important;
  border: 1px solid #10b981 !important;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.16), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.validity-segment-btn.active svg,
.validity-segment-btn.active i {
  color: var(--primary) !important;
}

/* ── Modern Table Action Buttons ── */
.btn-action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 0.35rem 0.75rem;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.16s ease;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.06);
}

.btn-action-primary:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.btn-action-primary svg,
.btn-action-primary i {
  width: 13px;
  height: 13px;
  color: inherit;
}

.btn-action-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  padding: 0.35rem 0.55rem;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.16s ease;
  box-shadow: 0 1px 2px rgba(225, 29, 72, 0.06);
}

.btn-action-danger:hover {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

.btn-action-danger svg,
.btn-action-danger i {
  width: 13px;
  height: 13px;
  color: inherit;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.16s ease;
}

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  color: var(--red-btn-text);
  border: 1px solid var(--red-btn-border);
  padding: 0.52rem 0.95rem;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 0.81rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(225, 29, 72, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-danger-outline:hover {
  background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%);
  border-color: #fda4af;
  color: #be123c;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-danger-outline:active {
  transform: translateY(0.5px);
}

/* ── Two Column Card Grid ── */
.detail-grid {
  display: grid;
  grid-template-columns: 1.55fr 1.15fr;
  gap: 1.5rem;
  align-items: start;
}

.grid-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Quantro-Inspired Card */
.q-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.q-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.q-card-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.q-card-title svg {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
}

/* Key Action Row */
.key-action-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.key-input-display {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  letter-spacing: 0.02em;
}

.btn-icon-square {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cbd5e1;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-icon-square:hover {
  color: var(--primary);
  background: #ffffff;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
}

.btn-icon-square:active {
  transform: translateY(0.5px);
}

/* Detail Table */
.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.detail-table tr {
  border-top: 1px solid var(--border-subtle);
}

.detail-table tr:first-child {
  border-top: none;
}

.detail-table td {
  padding: 0.75rem 0;
  vertical-align: middle;
}

.detail-table td.label-col {
  color: var(--text-muted);
  width: 36%;
}

.detail-table td.val-col {
  color: var(--text-main);
  font-weight: 600;
}

.edit-pencil-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  margin-left: 0.45rem;
  display: inline-flex;
  align-items: center;
}

.edit-pencil-btn:hover {
  color: var(--primary);
}

/* Hardware Devices List */
.device-item-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

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

.device-machine-id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.device-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.btn-unbind {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 7px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(225, 29, 72, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-unbind:hover {
  background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%);
  border-color: #fda4af;
  color: #be123c;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(225, 29, 72, 0.15);
}

.btn-unbind:active {
  transform: translateY(0.5px);
}

/* Customer Card */
.customer-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed var(--border-color);
  margin-bottom: 1.1rem;
}

.customer-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.customer-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.customer-orders-count {
  font-size: 0.73rem;
  color: var(--text-dim);
}

.customer-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.field-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.field-icon-wrap.emerald {
  background: #ecfdf5;
  color: #059669;
}

.field-icon-wrap.purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.field-icon-wrap.indigo {
  background: #eef2ff;
  color: #4f46e5;
}

.field-label {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.field-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Notes Box */
.notes-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.notes-box {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  resize: vertical;
  outline: none;
  min-height: 85px;
  transition: border-color 0.2s;
}

.notes-box:focus {
  border-color: var(--primary);
}

/* Tags / Labels */
.tags-input-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.75rem;
}

.tags-input-box input {
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  width: 100%;
  color: var(--text-main);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tag-pill .remove-tag {
  cursor: pointer;
  color: var(--text-dim);
}

.tag-pill .remove-tag:hover {
  color: #ef4444;
}

/* Orders Table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.orders-table th {
  background: var(--bg-subtle);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.6rem 0.85rem;
}

.orders-table td {
  padding: 0.85rem 0.85rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
}

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

/* Views */
.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

/* ── In-App Modal Popups ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.show {
  display: flex;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalPopup 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.modal-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.modal-close-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group-modal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label-modal {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input-modal, .form-select-modal, .form-textarea-modal {
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.15s ease;
}

.form-input-modal:focus, .form-select-modal:focus, .form-textarea-modal:focus {
  background: var(--bg-surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem 1.5rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
}

/* Confirmation Modal Icon Badge */
.confirm-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.confirm-icon-wrap.danger {
  background: var(--red-btn-bg);
  color: var(--red-btn-text);
}

.confirm-icon-wrap.warning {
  background: var(--amber-badge-bg);
  color: var(--amber-badge-text);
}

.confirm-icon-wrap.primary {
  background: var(--primary-light);
  color: var(--primary);
}

/* ── Activity Logs Styling ── */
.log-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.log-badge.activation { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.log-badge.heartbeat { background: #e0e7ff; color: #4338ca; border: 1px solid #c7d2fe; }
.log-badge.generation { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); }
.log-badge.revocation { background: #ffe4e6; color: #e11d48; border: 1px solid #fecdd3; }

/* ── Software Download Page Styling ── */
.download-hero-banner {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(6, 78, 59, 0.2);
  position: relative;
  overflow: hidden;
}

.download-hero-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.download-os-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
}

.download-os-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.download-os-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.checksum-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 1.25rem;
}

/* ── Support Page Styling ── */
.support-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.support-channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.support-channel-card.whatsapp {
  border-top: 4px solid #25D366;
}

.support-channel-card.whatsapp:hover {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.15);
  border-color: #25D366;
}

.support-channel-card.email {
  border-top: 4px solid #3b82f6;
}

.support-channel-card.email:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
}

.support-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.support-icon-wrap.whatsapp {
  background: #dcfce7;
  color: #16a34a;
}

.support-icon-wrap.email {
  background: #dbeafe;
  color: #2563eb;
}

.support-contact-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0.5rem 0 1rem;
}

/* Setup Steps */
.setup-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.setup-step-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.setup-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

/* ── Mobile Navigation Drawer & Responsive Layouts ── */
.mobile-nav-left {
  display: none;
}

.mobile-menu-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  background: var(--bg-surface);
}

.mobile-close-sidebar-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

/* Tablet & Mobile Breakpoints (<= 992px) */
@media (max-width: 992px) {
  .mobile-nav-left {
    display: flex;
    align-items: center;
  }

  .mobile-close-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    bottom: 0;
    width: 280px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .sidebar.mobile-open {
    left: 0;
  }

  .top-nav {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .content-body {
    padding: 1.25rem 1rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .support-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

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

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  div[style*="grid-template-columns: 1.7fr 1fr"],
  div[style*="grid-template-columns: 1.2fr 1fr"],
  div[style*="grid-template-columns: 1.1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .download-hero-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
  }

  .download-hero-banner > div:last-child {
    width: 100%;
    text-align: left !important;
  }

  .download-hero-banner button {
    width: 100%;
    justify-content: center;
  }

  .page-action-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .orders-table th, .orders-table td {
    padding: 0.75rem 0.65rem;
  }
}

/* Small Smartphone Screen (<= 600px) */
@media (max-width: 600px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .search-box-wrapper .kbd-badge {
    display: none;
  }

  .btn-text-desktop {
    display: none;
  }

  .page-action-header h2 {
    font-size: 1.1rem !important;
  }

  .q-card {
    padding: 1.15rem;
  }

  .modal-dialog {
    width: 95vw;
    max-height: 92vh;
    border-radius: var(--radius-md);
  }

  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── High-End SaaS Admin Login Screen (Light Mode) ── */
.login-screen-wrapper {
  position: fixed;
  inset: 0;
  background: #f8fafc;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 65%),
    radial-gradient(circle at 85% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 15% 85%, rgba(99, 102, 241, 0.04) 0%, transparent 55%);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow: hidden;
}

.login-screen-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}

.login-bg-glow.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.login-bg-glow.glow-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  bottom: -100px;
  right: 10%;
}

.login-card-container {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 
    0 20px 45px -10px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.03),
    0 0 0 1px rgba(226, 232, 240, 0.8);
  width: 100%;
  max-width: 460px;
  padding: 2.75rem 2.5rem 2.25rem;
  animation: modalScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 10;
}

.login-brand-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.login-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.login-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}

.login-subtitle {
  font-size: 0.83rem;
  color: #64748b;
  line-height: 1.45;
  max-width: 360px;
  margin: 0 auto;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.login-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.01em;
}

.login-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-forgot-link {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.login-forgot-link:hover {
  color: #047857;
  text-decoration: underline;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.login-input-icon {
  position: absolute;
  left: 1rem;
  width: 17px;
  height: 17px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.15s ease;
}

.login-toggle-icon {
  position: absolute;
  right: 1rem;
  width: 17px;
  height: 17px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s ease;
}

.login-toggle-icon:hover {
  color: #334155;
}

.login-input-field {
  width: 100%;
  height: 46px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 1rem 0 2.85rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-input-field.has-toggle {
  padding-right: 2.85rem;
}

.login-input-field:focus {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.login-input-field:focus + .login-input-icon,
.login-input-wrap:focus-within .login-input-icon {
  color: #10b981;
}

.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -0.25rem;
}

.login-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.login-checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #10b981;
  cursor: pointer;
}

.login-submit-btn {
  width: 100%;
  height: 46px;
  font-size: 0.92rem;
  font-weight: 700;
  justify-content: center;
  margin-top: 0.4rem;
  border-radius: 12px;
  letter-spacing: -0.01em;
}

.login-demo-banner {
  margin-top: 1.35rem;
  padding: 0.65rem 0.95rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.login-demo-banner:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-1px);
}

.login-demo-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #166534;
}

.login-demo-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #15803d;
  background: #ffffff;
  border: 1px solid #86efac;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.login-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
}

/* ── Duration Preset Pill Buttons ── */
.duration-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.duration-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.duration-pill-btn:hover {
  border-color: #10b981;
  color: #047857;
  background: #f0fdf4;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

.duration-pill-btn.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28);
}

