:root {
  /* Backgrounds */
  --bg-body: #F7FAFC;         /* light blue-white (uplifting) */
  --bg-card: #FFFFFF;
  --bg-card-soft: #F1F5F9;

  /* Borders & Shadows */
  --border-subtle: #E2E8F0;   /* light slate */
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.06);

  /* Text */
  --text-primary: #1E293B;    /* slate 800 */
  --text-muted: #64748B;      /* slate 500 */

  /* Accents – teal as primary brand color */
  --accent: #0EA5E9;             /* primary teal/blue */
  --accent-secondary: #38BDF8;   /* lighter teal */
  --accent-soft: rgba(14, 165, 233, 0.12);

  /* Radii */
  --radius-card: 20px;
  --radius-pill: 999px;

  /* Layout */
  --max-width: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 70%),
    #F7FAFC;
  color: var(--text-primary);
  min-height: 100vh;
}

/* Layout shell */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */

.app-header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, #38BDF8, #0EA5E9);
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.35);
  position: relative;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

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

.brand-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0f172a;
}

.brand-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-soft {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  font-size: 11px;
  color: var(--text-muted);
}

.badge-soft strong {
  color: #0f172a;
}

/* Main content */

.app-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
}

.app-main-inner {
  width: 100%;
  max-width: var(--max-width);
}

/* Cards & sections */

.card {
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.9);
  padding: 22px 20px;
}

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

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.card-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

/* Hero stack */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: #0f172a;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background:
    radial-gradient(circle at left, rgba(14, 165, 233, 0.16), transparent 60%),
    #EFF6FF;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-highlight-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.hero-copy {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.14s ease,
    transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent));
  color: #F9FAFB;
  border-color: rgba(14, 165, 233, 0.95);
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.18);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.06)
  );
  opacity: 0.7;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 0.24);
}

.btn-ghost {
  background: #FFFFFF;
  color: #1D4ED8;
  border-color: rgba(191, 219, 254, 1);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.btn-ghost:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1E40AF;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09);
}

/* Status pills */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: linear-gradient(135deg, #f9fafb, #ecfeff);
  color: var(--text-muted);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.status-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

.status-pill-dot.expired {
  background: #f97373;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.7);
}

/* Sessions list */

.session-list {
  margin-top: 8px;
}

.session-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

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

.session-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #0f172a;
}

.session-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* Forms */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 12px;
  color: var(--text-muted);
}

.textarea,
.input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 13px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 120px;
}

.textarea:focus,
.input:focus {
  outline: none;
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
}

.helper-text {
  font-size: 11px;
  color: var(--text-muted);
}

/* Session result */

.result-block {
  margin-top: 16px;
  padding: 14px 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 70%),
    #f8fafc;
  border: 1px solid rgba(203, 213, 225, 0.9);
  max-height: 360px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.result-block h3 {
  margin-top: 0;
  font-size: 13px;
}

.result-block strong {
  color: #0f172a;
}

/* Utility */

.text-right {
  text-align: right;
}

.muted {
  color: var(--text-muted);
  font-size: 11px;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.5);
  border-top-color: #22c55e;
  animation: spin 0.7s linear infinite;
}

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