/* DEOMZ Premium Design System — VITURE Ember Edition */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* VITURE-inspired color palette */
  --bg-main: #0a0a0b;
  --bg-card: rgba(18, 18, 20, 0.75);
  --bg-card-hover: rgba(26, 26, 30, 0.9);
  --bg-elevated: rgba(28, 28, 32, 0.85);
  --border-color: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(255, 95, 52, 0.3);
  --accent: #ff5f34;
  --accent-hover: #ff7a55;
  --accent-glow: rgba(255, 95, 52, 0.35);
  --accent-subtle: rgba(255, 95, 52, 0.08);
  --text-main: #f0f0f2;
  --text-secondary: #abacae;
  --text-muted: #7e7e7f;
  --text-dark: #5b5c5d;
  --warning: #ef4444;
  --warning-glow: rgba(239, 68, 68, 0.25);
  --success: #22c55e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 95, 52, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(88, 29, 255, 0.03) 0%, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

/* ==============================
   LAYOUT SYSTEM
   ============================== */
.app-container {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-container.desktop-wide {
  max-width: 1100px;
}

/* ==============================
   HEADER
   ============================== */
header, .header {
  padding: 0.8rem 1.2rem;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo span {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}

/* Guest navigation */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: calc(100vw - 130px);
}
.header-cta::-webkit-scrollbar { display: none; }

.header-cta .btn-secondary {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Member navigation */
.nav-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: calc(100vw - 160px);
  padding-bottom: 2px;
}
.nav-actions::-webkit-scrollbar { display: none; }

.btn-nav {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-nav:hover, .btn-nav.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.btn-nav.btn-logout {
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.btn-nav.btn-logout:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.btn-nav.locked {
  opacity: 0.4;
  pointer-events: none;
}

/* ==============================
   MAIN CONTENT
   ============================== */
main {
  flex: 1;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.view {
  display: none;
  animation: fadeIn 0.35s ease;
}

.view.active {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ==============================
   ANIMATIONS
   ============================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50% { box-shadow: 0 0 20px rgba(255, 95, 52, 0.5); }
}

@keyframes flame {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px #ef4444); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 8px #f59e0b); }
}

@keyframes streak-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

/* ==============================
   CARDS
   ============================== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--bg-card-hover);
}

.card-accent {
  border-color: var(--border-accent);
  box-shadow: 0 2px 20px rgba(255, 95, 52, 0.04);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dark);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-pill);
}

/* ==============================
   FORMS
   ============================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

input, textarea, select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.char-counter {
  align-self: flex-end;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.char-counter.valid { color: var(--accent); }

.char-counter .bar-container {
  width: 50px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.char-counter .bar {
  height: 100%;
  width: 0%;
  background: var(--warning);
  transition: width 0.1s ease;
}

.char-counter.valid .bar { background: var(--accent); }

/* ==============================
   LANDING PAGE
   ============================== */
.landing-hero {
  text-align: center;
  padding: 2rem 0.5rem 1rem;
}

.landing-hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
}

.landing-hero h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a65 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 440px;
  margin: 0 auto;
}

/* Not Outsource Banner */
.not-outsource-banner {
  text-align: center;
  padding: 0.6rem 0.8rem;
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-radius: var(--radius-sm);
}

.not-outsource-banner span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fca5a5;
}

.not-outsource-banner small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--text-dark);
}

/* Project List Card (Landing) */
.project-list-card {
  padding: 1rem;
  border-radius: var(--radius-md);
}

.project-list-card .card-title {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Project Cards */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent-subtle);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  width: fit-content;
}

.project-summary {
  color: var(--text-secondary);
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.project-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-stats {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.project-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  list-style: none;
  color: var(--accent);
}

.project-details summary::-webkit-details-marker { display: none; }

.project-details ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.project-details li { margin-bottom: 0.4rem; }

.project-doc { margin-top: 0.6rem; font-size: 0.82rem; }
.project-doc a { color: var(--accent); text-decoration: underline; }

/* Philosophy Pillars */
.philosophy-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  transition: var(--transition);
}

.pillar-card:hover {
  border-color: var(--border-accent);
  background: var(--accent-subtle);
}

.pillar-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 10px;
}

.pillar-content h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.1rem;
}

.pillar-content p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Philosophy Banner */
.philosophy-banner {
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 100%);
  border-left: 3px solid var(--accent);
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.philosophy-banner strong { color: var(--accent); }

/* Quick Start Card */
.top-action-card {
  padding: 1rem;
  border-radius: var(--radius-md);
}

.top-action-card .card-title { margin-bottom: 0.5rem; }

.top-action-signin {
  width: 100%;
  min-height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-dark);
}

.top-action-buttons {
  display: flex;
  gap: 0.5rem;
}

.top-action-buttons .btn {
  flex: 1;
  font-size: 0.88rem;
  padding: 0.7rem;
}

/* ==============================
   SUBPAGES
   ============================== */
.subpage-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.subpage-title {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
}

/* About Card */
.about-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
}

.about-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  padding-left: 0;
}

.about-list li {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  line-height: 1.5;
  font-size: 0.85rem;
}

.about-list strong { color: var(--accent); }

/* ==============================
   STEPPER
   ============================== */
.stepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.step-number {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.step-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 6px var(--accent-glow);
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.philosophy-guide {
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 80%);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.8rem;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.philosophy-guide .guide-icon { font-size: 1rem; margin-right: 0.2rem; }
.philosophy-guide strong { color: var(--accent); }

/* ==============================
   DASHBOARD
   ============================== */

/* Milestones Progress Bar */
.milestones-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0 1.2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.milestone-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  flex: 1;
}

.milestone-node:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.milestone-node.completed:not(:last-child)::after {
  background: var(--accent);
}

.node-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dark);
  z-index: 2;
  position: relative;
  transition: var(--transition);
}

.milestone-node.active .node-circle {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 95, 52, 0.08);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse-glow 2.5s infinite;
}

.milestone-node.completed .node-circle {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.node-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  white-space: nowrap;
}

.milestone-node.active .node-label { color: var(--accent); }
.milestone-node.completed .node-label { color: var(--text-secondary); }

.milestone-node.locked {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Streak Widget */
.streak-banner {
  background: linear-gradient(135deg, rgba(255, 95, 52, 0.1) 0%, rgba(18, 18, 20, 0.9) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.streak-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.streak-flame {
  font-size: 1.5rem;
  animation: flame 1.5s infinite ease-in-out;
}

.streak-count {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.streak-trust {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.streak-days {
  color: var(--accent);
  font-weight: 800;
}

/* Warning Banner */
.missed-log-warning {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(18, 18, 20, 0.9) 100%);
  border: 1px solid var(--warning);
  color: #fca5a5;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: 0 4px 15px var(--warning-glow);
}

.missed-log-warning h4 {
  font-weight: 700;
  color: var(--warning);
  font-size: 0.88rem;
}

/* Document Quick Link Card */
.doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.doc-card:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.doc-icon { font-size: 1.3rem; color: var(--accent); }
.doc-title { font-weight: 600; font-size: 0.85rem; }
.doc-sub { font-size: 0.72rem; color: var(--text-muted); }

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.6rem;
}

.timeline-item { position: relative; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-main);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.timeline-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

/* ==============================
   HEATMAP / SUCCESS GRAPH
   ============================== */
.success-graph-section {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.3rem;
}

.success-graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.success-graph-header h3 {
  font-size: 0.88rem;
  font-weight: 700;
}

.success-graph-header .total-logs {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-pill);
}

.streak-big-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem 0 0.4rem;
}

.streak-big-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 24px var(--accent-glow);
}

.streak-big-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: left;
}

.streak-big-label strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 0.05rem;
}

.heatmap-container {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.heatmap-day-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.heatmap-day-labels span {
  height: 12px;
  font-size: 0.55rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  line-height: 1;
}

.heatmap-grid {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  flex: 1;
}

.heatmap-week {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.heatmap-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.15s ease;
  cursor: default;
  position: relative;
}

.heatmap-cell:hover { transform: scale(1.5); z-index: 5; }

.heatmap-cell.level-0 { background: rgba(255, 255, 255, 0.04); }
.heatmap-cell.level-1 { background: rgba(255, 95, 52, 0.2); }
.heatmap-cell.level-2 { background: rgba(255, 95, 52, 0.4); }
.heatmap-cell.level-3 { background: rgba(255, 95, 52, 0.65); box-shadow: 0 0 3px rgba(255, 95, 52, 0.2); }
.heatmap-cell.level-4 { background: var(--accent); box-shadow: 0 0 5px var(--accent-glow); }
.heatmap-cell.future { background: rgba(255, 255, 255, 0.02); border: 1px dashed rgba(255, 255, 255, 0.04); }

.heatmap-cell[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 35, 0.95);
  color: var(--text-main);
  padding: 0.25rem 0.4rem;
  border-radius: 5px;
  font-size: 0.6rem;
  white-space: nowrap;
  z-index: 10;
  border: 1px solid var(--border-color);
  pointer-events: none;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  justify-content: flex-end;
}

.heatmap-legend span { font-size: 0.55rem; color: var(--text-dark); }
.heatmap-legend .legend-cell { width: 9px; height: 9px; border-radius: 2px; }

/* ==============================
   INVESTOR PORTAL
   ============================== */
.deal-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.deal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.owner-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.owner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
}

.owner-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.deal-badge {
  font-size: 0.7rem;
  background: var(--accent-subtle);
  color: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-accent);
  font-weight: 600;
}

.deal-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.deal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
}

.deal-meta-item span { color: var(--text-muted); }
.deal-meta-item strong { color: var(--text-main); }

/* ==============================
   OVERLAYS / MODALS
   ============================== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  animation: fadeIn 0.25s ease;
}

.overlay.active { display: flex; }

.overlay-content {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: var(--shadow-elevated);
}

.close-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover { background: rgba(255, 255, 255, 0.12); color: var(--text-main); }

.overlay-content p,
.overlay-content ul {
  color: var(--text-secondary);
  line-height: 1.7;
}

.overlay-content ul { list-style: disc; padding-left: 1.2rem; }

/* Tab Content */
.tab-content { display: none; }
.tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* AX Related Sites */
.ax-related-sites .site-list { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.ax-related-sites .site-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 0.4rem;
  min-width: 80px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  font-size: 0.82rem;
}
.ax-related-sites .site-item:hover { background: rgba(255, 255, 255, 0.05); }
.ax-related-sites .site-item .site-icon { font-size: 18px; }
.ax-related-sites .site-item .site-name { font-weight: 700; font-size: 0.82rem; }
.ax-related-sites .site-item .site-desc { color: var(--text-muted); font-size: 0.72rem; }

/* AX Consulting Styles */
.ax-consult-card { margin-top: 1rem; border-radius: var(--radius-md); padding: 1rem; }
.ax-consult-card .form-group { margin-bottom: 0.7rem; }
.ax-consult-card textarea,
.ax-consult-card input { min-height: 40px; }
.ax-consult-card textarea { min-height: 90px; }
.ax-benefits-list { margin: 0.6rem 0 0.8rem; padding-left: 1.2rem; color: var(--text-secondary); }
.ax-benefits-list li { margin-bottom: 0.4rem; line-height: 1.5; font-size: 0.85rem; }
.landing-ax-cta { padding: 0.8rem; }
.ax-hero-panel { display: grid; grid-template-columns: 80px 1fr; gap: 0.8rem; align-items: center; }
.ax-hero-graphic {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 95, 52, 0.3), rgba(255, 95, 52, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}
.ax-cta-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.ax-detail-card .card-title { margin-bottom: 0.4rem; }

/* ==============================
   UTILITY CLASSES
   ============================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.flex-row { display: flex; gap: 0.6rem; }
.flex-grow { flex: 1; }
.section-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
}

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

/* Tablets & small desktops (768px+) */
@media (min-width: 768px) {
  .app-container {
    max-width: 720px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
  }

  .app-container.desktop-wide {
    max-width: 1100px;
  }

  header, .header {
    padding: 0.8rem 1.5rem;
  }

  main {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .landing-hero {
    padding: 2.5rem 1rem 1.5rem;
  }

  .landing-hero h1 {
    font-size: 2.2rem;
  }

  .philosophy-pillars {
    flex-direction: row;
  }

  .pillar-card {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }

  .pillar-icon {
    margin: 0 auto;
  }

  .pillar-content h3,
  .pillar-content p {
    text-align: center;
  }

  .deal-meta {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .app-container {
    max-width: 900px;
  }

  .app-container.desktop-wide {
    max-width: 1200px;
  }

  .landing-hero h1 {
    font-size: 2.6rem;
  }

  .btn-nav {
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
  }

  .overlay-content {
    max-width: 680px;
    padding: 2rem;
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .app-container {
    max-width: 960px;
  }
}

/* Mobile-specific adjustments (below 480px) */
@media (max-width: 480px) {
  header, .header {
    padding: 0.6rem 0.8rem;
    gap: 0.4rem;
  }

  .logo {
    font-size: 1rem;
  }

  .btn-nav {
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
  }

  .header-cta .btn-secondary {
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
  }

  main {
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .card {
    padding: 0.9rem;
  }

  .landing-hero {
    padding: 1.2rem 0.2rem 0.6rem;
  }

  .landing-hero h1 {
    font-size: 1.4rem;
  }

  .milestone-node .node-label {
    font-size: 0.52rem;
  }

  .node-circle {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
}


/* ==============================
   DASHBOARD GRID & SIDEBAR SYSTEM
   ============================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.dashboard-sidebar-card {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
  }
  
  .milestones-sidebar-card .milestones-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    border-bottom: none;
    padding: 0;
    margin: 0;
  }

  .milestones-sidebar-card .milestone-node {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
  }

  .milestones-sidebar-card .milestone-node:not(:last-child)::after {
    top: 28px;
    left: 14px;
    width: 2px;
    height: calc(100% + 1.5rem - 28px);
  }

  .milestones-sidebar-card .node-label {
    font-size: 0.8rem;
    text-align: left;
  }
}

/* ==============================
   ENTERPRISE IQ SCOREBOARD
   ============================== */
.eiq-scoreboard {
  padding: 1.4rem !important;
  border: 1px solid rgba(255, 95, 52, 0.2) !important;
  background: linear-gradient(
    170deg,
    rgba(255, 95, 52, 0.06) 0%,
    rgba(10, 10, 11, 0.95) 40%,
    rgba(10, 10, 11, 0.98) 100%
  ) !important;
  position: relative;
  overflow: hidden;
}

/* Subtle scanline overlay */
.eiq-scoreboard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 95, 52, 0.012) 2px,
    rgba(255, 95, 52, 0.012) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Animated shimmer sweep */
.eiq-scoreboard::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 95, 52, 0.04) 50%,
    transparent 60%
  );
  animation: eiqShimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes eiqShimmer {
  0%, 100% { transform: translateX(-30%) translateY(-30%); }
  50% { transform: translateX(30%) translateY(30%); }
}

.eiq-scoreboard > * { position: relative; z-index: 2; }

/* Header */
.eiq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.eiq-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.eiq-bolt {
  font-size: 1rem;
  filter: drop-shadow(0 0 6px var(--accent-glow));
  animation: boltPulse 2s ease-in-out infinite;
}

@keyframes boltPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

/* Grade Badge */
.eiq-grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  border: 2px solid;
  transition: var(--transition);
}

.eiq-grade-badge[data-grade="S"] {
  color: #fbbf24; border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.08);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}
.eiq-grade-badge[data-grade="A"] {
  color: var(--accent); border-color: rgba(255, 95, 52, 0.5);
  background: rgba(255, 95, 52, 0.08);
  box-shadow: 0 0 16px var(--accent-glow);
}
.eiq-grade-badge[data-grade="B"] {
  color: #60a5fa; border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.06);
}
.eiq-grade-badge[data-grade="C"] {
  color: var(--text-muted); border-color: var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}
.eiq-grade-badge[data-grade="D"] {
  color: var(--warning); border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
}

/* Main Score Ring Display */
.eiq-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.eiq-score-ring {
  position: relative;
  width: 130px;
  height: 130px;
}

.eiq-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.eiq-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 6;
}

.eiq-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.eiq-score-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.eiq-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px var(--accent-glow);
  transition: all 0.5s ease;
}

.eiq-max {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.eiq-score-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-align: center;
}

/* Factor Breakdown */
.eiq-factors {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.eiq-factor {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.eiq-factor-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
}

.eiq-factor-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.eiq-factor-name {
  color: var(--text-secondary);
  font-weight: 500;
  flex: 1;
}

.eiq-factor-value {
  color: var(--text-main);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.eiq-factor-value small {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.7rem;
}

.eiq-factor-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
}

.eiq-factor-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  box-shadow: 0 0 6px var(--accent-glow);
}

/* Footer */
.eiq-footer {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.7rem;
  color: var(--text-dark);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ==============================
   PROJECT LIST PREMIUM CARD STYLES
   ============================== */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.8rem;
}

.project-title-area {
  flex: 1;
}

.project-title-area h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.3rem 0;
}

.project-card-eiq {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.project-eiq-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 95, 52, 0.3);
  background: rgba(255, 95, 52, 0.05);
  color: var(--accent);
}

.project-eiq-badge-pill[data-grade="S"] {
  color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.06);
}
.project-eiq-badge-pill[data-grade="A"] {
  color: var(--accent); border-color: rgba(255, 95, 52, 0.4); background: rgba(255, 95, 52, 0.06);
}
.project-eiq-badge-pill[data-grade="B"] {
  color: #60a5fa; border-color: rgba(96, 165, 250, 0.3); background: rgba(96, 165, 250, 0.05);
}
.project-eiq-badge-pill[data-grade="C"] {
  color: var(--text-muted); border-color: var(--border-color); background: rgba(255, 255, 255, 0.02);
}
.project-eiq-badge-pill[data-grade="D"] {
  color: var(--warning); border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.05);
}

.project-eiq-label-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.project-middle-visuals {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Mini Stepper Track */
.mini-stepper-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 0.4rem 0;
  padding: 0 0.4rem;
}

.mini-stepper-track::before {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.mini-step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.mini-step-dot.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.mini-step-dot.completed {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Mini Activity Grid row */
.mini-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.mini-activity-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mini-cells {
  display: flex;
  gap: 3px;
}

.mini-cell {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-cell.active {
  background: var(--accent);
  box-shadow: 0 0 3px var(--accent-glow);
}

.project-details ul {
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-details ul li {
  margin-bottom: 0.3rem;
}

/* =============================================
   TWO-TRACK APPLICATION FORM STYLES
   ============================================= */

/* Track Selector Wrapper */
.track-selector-wrapper {
  padding: 0.5rem 0 1rem;
}

.track-selector-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.track-selector-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f0f0f2, #ff9a4d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.track-selector-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Track Cards Grid */
.track-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* Base Track Card */
.track-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: opacity 0.3s;
  opacity: 0;
}

.track-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.track-card:hover::before {
  opacity: 1;
}

/* Beginner card accent */
.track-card-beginner {
  border-color: rgba(52, 211, 153, 0.25);
}

.track-card-beginner::before {
  background: linear-gradient(90deg, #34d399, #6ee7b7);
}

.track-card-beginner:hover {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.04);
  box-shadow: 0 8px 32px rgba(52, 211, 153, 0.12);
}

/* Executor card accent */
.track-card-executor {
  border-color: rgba(255, 154, 77, 0.25);
}

.track-card-executor::before {
  background: linear-gradient(90deg, #ff9a4d, #ff5f34);
}

.track-card-executor:hover {
  border-color: rgba(255, 154, 77, 0.5);
  background: rgba(255, 154, 77, 0.04);
  box-shadow: 0 8px 32px rgba(255, 95, 52, 0.15);
}

/* Track Card Internal Layout */
.track-card-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.track-card-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid;
  width: fit-content;
}

.track-card-beginner .track-card-badge {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
}

.track-card-executor .track-card-badge {
  color: #ff9a4d;
  border-color: rgba(255, 154, 77, 0.4);
  background: rgba(255, 154, 77, 0.08);
}

.track-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.track-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.track-card-list {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.track-card-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.track-card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
  transition: color 0.2s;
}

.track-card-beginner .track-card-cta {
  color: #34d399;
}

.track-card-executor .track-card-cta {
  color: #ff9a4d;
}

/* Beginner form special overrides */
#view-beginner-form .stepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

#view-beginner-form .back-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
}

#view-beginner-form .back-link:hover {
  color: var(--text-main);
}

/* Executor form stepper header override */
#view-executor-form .stepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Select dropdown dark theme */
select option {
  background: var(--bg-elevated);
  color: var(--text-main);
}

/* Step card in beginner form: emerald border accent */
#view-beginner-form .step-card,
#view-beginner-form .card {
  border-color: rgba(52, 211, 153, 0.15);
}

/* Border emerald alias for agreement cards */
:root {
  --border-emerald: rgba(52, 211, 153, 0.3);
}

/* Pitch Form Theme & Custom Styles */
/* Pitch Form & Unified Card Styling */
.pitch-form-card {
  background: var(--bg-card) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 1.6rem 1.4rem !important;
  border-radius: var(--radius-md) !important;
}

.pitch-form-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.pitch-form-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.pitch-form-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Input Fields styling overrides */
.pitch-form-card input[type="text"],
.pitch-form-card input[type="email"],
.pitch-form-card textarea,
.pitch-form-card select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.92rem;
  transition: var(--transition);
}

.pitch-form-card input[type="text"]:focus,
.pitch-form-card input[type="email"]:focus,
.pitch-form-card textarea:focus,
.pitch-form-card select:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(255, 95, 52, 0.12);
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Phone input styling */
.phone-input-wrapper {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}

.phone-code-select {
  width: 110px !important;
  cursor: pointer;
}

/* Divider block */
.pitch-form-divider {
  padding: 0.9rem 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.5;
}

/* Terms Checkbox */
.terms-agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.5rem 0 1rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.terms-agreement-row input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  cursor: pointer;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Pitch Guide Footer styling */
.pitch-guide-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.4rem !important;
}

.guide-header {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.guide-sparkle {
  font-size: 1.4rem;
  line-height: 1;
}

.guide-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}

.guide-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

@media (min-width: 480px) {
  .guide-steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.guide-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}

.step-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* OAuth Disclosure Section - Unified Card Design */
.oauth-disclosure-section {
  max-width: 560px;
  margin: 1.5rem auto 0;
  padding: 0 0rem;
}

.oauth-disclosure-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.oauth-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.oauth-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.oauth-sub span {
  color: var(--accent);
  font-weight: 700;
}

.oauth-grid {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.oauth-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}

.oauth-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.oauth-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.oauth-item a {
  color: var(--accent);
  text-decoration: underline;
}

/* Social Media Links Wrapper & Icons */
.social-links-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-icon-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.social-icon-btn.facebook:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}

.social-icon-btn.linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
}

.social-icon-btn.x-twitter:hover {
  background: #000000;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.social-icon-btn.youtube:hover {
  background: #ff0000;
  color: #ffffff;
  border-color: #ff0000;
}

/* Hackerhouse Limit Banner (High Urgency & Center Aligned) */
.hackerhouse-limit-banner {
  background: linear-gradient(135deg, rgba(255, 95, 52, 0.12) 0%, rgba(224, 64, 176, 0.08) 50%, rgba(124, 106, 252, 0.12) 100%);
  border: 1px solid rgba(255, 95, 52, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem;
  margin: 1.5rem auto;
  max-width: 680px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 8px 32px rgba(255, 95, 52, 0.15), 0 0 20px rgba(255, 95, 52, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  animation: pulse-border-glow 3s infinite ease-in-out;
}

@keyframes pulse-border-glow {
  0%, 100% {
    border-color: rgba(255, 95, 52, 0.4);
    box-shadow: 0 8px 32px rgba(255, 95, 52, 0.15);
  }
  50% {
    border-color: rgba(255, 95, 52, 0.75);
    box-shadow: 0 12px 40px rgba(255, 95, 52, 0.3), 0 0 25px rgba(255, 95, 52, 0.25);
  }
}

.hackerhouse-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hackerhouse-badge {
  display: inline-block;
  background: rgba(255, 95, 52, 0.2);
  border: 1px solid #ff5f34;
  color: #ff9a4d;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

.urgency-live-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #f87171;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  animation: live-blink 1.5s infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.96); }
}

.hackerhouse-desc {
  font-size: 1.1rem;
  color: var(--text-main);
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
}

.hackerhouse-desc strong {
  color: #ff9a4d;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Urgency Progress Bar */
.urgency-progress-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0.2rem 0;
}

.urgency-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.urgency-progress-info strong {
  color: #ff9a4d;
  font-weight: 800;
}

.urgency-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.urgency-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff5f34 0%, #ff9a4d 100%);
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(255, 95, 52, 0.8);
  transition: width 1s ease-in-out;
}

/* Counter Cards */
.hackerhouse-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 480px;
  margin-top: 0.2rem;
}

.counter-badge {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-sizing: border-box;
}

.counter-badge small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.counter-badge.current {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.counter-badge.current strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.counter-badge.remaining {
  background: linear-gradient(135deg, rgba(255, 95, 52, 0.2) 0%, rgba(239, 68, 68, 0.25) 100%);
  border: 1px solid rgba(255, 95, 52, 0.6);
  box-shadow: 0 4px 16px rgba(255, 95, 52, 0.2);
}

.counter-badge.remaining strong {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(255, 95, 52, 0.6);
}


/* Operating Service Cards Hover Glow */
.site-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 154, 77, 0.4) !important;
  box-shadow: 0 8px 24px rgba(255, 154, 77, 0.15), 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.site-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 154, 77, 0.3) !important;
  border-color: rgba(255, 154, 77, 0.5) !important;
}

/* OAuth Disclosure Accordion */
.oauth-disclosure-details[open] summary span:last-child {
  color: var(--text-muted) !important;
}
.oauth-disclosure-details summary::-webkit-details-marker {
  display: none;
}
.oauth-disclosure-details:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.035) !important;
}


