:root {
  --bg: #f4efe3;
  --paper: #fff9ec;
  --ink: #1c221f;
  --muted: #6d705f;
  --brand: #0e5f58;
  --accent: #d46b2f;
  --line: #dad2bf;
  --card: #fffdf8;
  --radius: 18px;
  --shadow: 0 14px 34px rgba(17, 23, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Avenir Next', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 80% -20%, #fff6d8 0%, transparent 30%),
    radial-gradient(circle at 10% 10%, #e8f4ee 0%, transparent 25%),
    var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 239, 227, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--ink);
}

.auth-actions {
  display: flex;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  background: #0a4d47;
}

.btn.light {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.hero {
  padding: 74px 0 50px;
}

.hero-wrap {
  background: linear-gradient(145deg, #fff3ce, #fefdf7);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 38px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.3fr 1fr;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.76rem;
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.hero p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 56ch;
}

.hero-metric {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 90px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-metric strong {
  font-size: 1.2rem;
}

.hero-slider {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: center;
}

.slide {
  opacity: 0;
  transform: translateY(6px);
  transition: 0.45s ease;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-stack {
  position: relative;
  min-height: 90px;
}

.slide h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.slide-indicator {
  display: flex;
  gap: 8px;
}

.slide-indicator span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e4e0d2;
}

.slide-indicator span.active {
  background: var(--brand);
}

.section {
  padding: 54px 0;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-subtitle {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.6;
}

.tsla-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.tsla-meta {
  background: linear-gradient(165deg, #1a1d22, #0f1116);
  color: #f5f7fb;
  border: 1px solid #2e3340;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.tsla-meta h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

.tsla-meta p {
  margin: 0;
  color: #bcc4d1;
}

.tsla-tags {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tsla-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #3a4050;
  background: #131720;
  color: #e4e9f2;
  font-size: 0.85rem;
}

.tsla-chart-card {
  border-radius: var(--radius);
  border: 1px solid #2a2f3a;
  overflow: hidden;
  background: #0f1218;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.tsla-chart-card iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 18px rgba(18, 24, 21, 0.08);
}

.tile h3 {
  margin: 0 0 8px;
}

.tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.alt-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.alt-panel:nth-child(even) .panel-copy {
  order: 1;
}

.alt-panel:nth-child(even) .panel-visual {
  order: 2;
}

.panel-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
  background: linear-gradient(135deg, #ddece3 0%, #fff5df 100%);
  box-shadow: var(--shadow);
}

.panel-copy {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.panel-copy h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.panel-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.board-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.board-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.board-copy {
  padding: 16px;
}

.board-copy h3 {
  margin: 0;
}

.board-copy p {
  margin: 6px 0 0;
  color: var(--muted);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.icon-card {
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: #e7f4ee;
  color: var(--brand);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pricing-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffef8, #fff6de);
  box-shadow: 0 8px 20px rgba(19, 24, 20, 0.07);
}

.pricing-card h3 {
  margin: 0;
}

.price-meta {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.93rem;
}

.pricing-card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--ink);
}

.pricing-card li {
  margin-bottom: 8px;
}

.alert-note {
  margin-top: 20px;
  border: 1px solid #f2b98a;
  background: #fff1e2;
  color: #6f3712;
  border-radius: 14px;
  padding: 14px;
  font-size: 0.93rem;
}

.footer {
  margin-top: 48px;
  background: #101513;
  color: #d2dfd8;
  padding: 48px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.footer h4 {
  margin: 0 0 8px;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid #314138;
  background: #16211d;
  color: #d2dfd8;
  padding: 10px 14px;
}

.badge {
  margin-top: 12px;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #1b2723;
  border: 1px solid #314138;
  font-size: 0.86rem;
}

.copyright {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid #24322b;
  font-size: 0.88rem;
  color: #93a39a;
}

.page-hero {
  padding: 56px 0 18px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.page-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.auth-page {
  min-height: calc(100vh - 230px);
  display: grid;
  place-items: center;
  padding: 50px 0;
}

.auth-card {
  width: min(480px, 92vw);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 8px;
}

.auth-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-control label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-control input,
.form-control select,
.form-control textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 11px 12px;
  font-size: 1rem;
  font-family: inherit;
}

.form-message {
  min-height: 24px;
  font-size: 0.95rem;
}

.form-message.error {
  color: #9d1f1f;
}

.form-message.success {
  color: #0d684f;
}

.dashboard {
  padding: 42px 0;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.kpi strong {
  display: block;
  font-size: 1.4rem;
  margin-top: 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  font-size: 0.93rem;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill.active {
  color: #036341;
  background: #dff6ec;
}

.pill.completed {
  color: #3f3f3f;
  background: #ececec;
}

.pill.processing {
  color: #8c3f12;
  background: #ffe9d9;
}

.pill.verification_initiated {
  color: #6d3a11;
  background: #ffe7cf;
}

.pill.locked {
  color: #8d1023;
  background: #ffdce3;
}

.pill.pending_review {
  color: #85500d;
  background: #ffe9cb;
}

.pill.approved {
  color: #036341;
  background: #dff6ec;
}

.pill.rejected {
  color: #7d1d1d;
  background: #ffe4e4;
}

.notice {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #f3cfaf;
  background: #fff6ea;
  color: #75441a;
  font-size: 0.9rem;
}

.progress-wrap {
  display: grid;
  gap: 8px;
}

.progress-track {
  height: 11px;
  border-radius: 999px;
  background: #ebe7da;
  overflow: hidden;
  border: 1px solid var(--line);
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d46b2f, #0e5f58);
  transition: width 0.25s ease;
}

.wallet-box {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.wallet-box code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  background: #f4efe3;
  border-radius: 8px;
  padding: 8px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 50;
}

.modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 16, 0.55);
}

.modal-card {
  position: relative;
  width: min(560px, 92vw);
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
  z-index: 1;
}

.modal-card h3 {
  margin: 0 0 10px;
}

.modal-highlight {
  border: 1px solid #f0bd95;
  background: #fff2e4;
  color: #7b3c0f;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
}

.modal-breakdown {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 12px 0;
}

.modal-breakdown strong {
  font-size: 1.05rem;
}

.modal-disclaimer {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.mobile-nav-btn {
  display: none;
}

@media (max-width: 980px) {
  .hero-wrap,
  .grid-4,
  .tsla-grid,
  .pricing-grid,
  .board-grid,
  .icon-grid,
  .dashboard-grid,
  .kpis,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .alt-panel {
    grid-template-columns: 1fr;
  }

  .alt-panel:nth-child(even) .panel-copy,
  .alt-panel:nth-child(even) .panel-visual {
    order: initial;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .mobile-nav-btn {
    display: inline-flex;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .nav-links {
    width: 100%;
    display: none;
    padding-top: 6px;
  }

  .nav-links.open {
    display: flex;
    flex-wrap: wrap;
  }

  .auth-actions {
    margin-left: auto;
  }

  .hero,
  .section,
  .dashboard {
    padding: 34px 0;
  }

  .hero-wrap,
  .grid-4,
  .tsla-grid,
  .pricing-grid,
  .board-grid,
  .icon-grid,
  .dashboard-grid,
  .kpis,
  .footer-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-wrap {
    padding: 24px;
  }
}

/* Tesrealm-Inspired Theme Override */
:root {
  --bg: #f4f8fd;
  --paper: #ffffff;
  --ink: #10243a;
  --muted: #5a6c82;
  --brand: #0f907e;
  --accent: #13b59d;
  --line: #d8e3ef;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 16px 36px rgba(16, 36, 58, 0.1);
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 82% -8%, #dbfff8 0%, transparent 34%),
    radial-gradient(circle at 8% 12%, #edf6ff 0%, transparent 26%), var(--bg);
  color: var(--ink);
}

h1,
h2,
h3,
h4,
.logo,
.btn,
.hero-eyebrow {
  font-family: 'Poppins', 'Source Sans 3', sans-serif;
}

.topbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
}

.logo {
  letter-spacing: 0.07em;
  font-weight: 700;
}

.nav-links a {
  color: #4c6078;
  font-weight: 600;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--brand);
}

.btn.primary {
  background: linear-gradient(180deg, #11a58f, #0c8a78);
}

.btn.primary:hover {
  background: linear-gradient(180deg, #12b79d, #0f907e);
}

.btn.light {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-wrap {
  background: linear-gradient(145deg, #ffffff, #f2f9ff);
  border-color: #d4e6f2;
}

.hero-slider,
.hero-metric,
.page-card,
.tile,
.panel-copy,
.board-card,
.icon-card,
.pricing-card,
.auth-card,
.kpi,
.faq-list details,
.wallet-box,
.modal-card {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.panel-visual {
  border-color: #cfe4f3;
}

.tsla-meta {
  background: linear-gradient(170deg, #13283f, #0d1f34);
  border-color: #294867;
}

.tsla-tags span {
  border-color: #2d4f70;
  background: #10283f;
}

.tsla-chart-card {
  border-color: #294867;
}

.icon {
  background: #e8fbf8;
  color: var(--brand);
}

.notice {
  border-color: #bde6de;
  background: #effdf9;
  color: #0f5d52;
}

.progress-track {
  background: #e6edf5;
}

.progress-fill {
  background: linear-gradient(90deg, #11b59c, #0d8f7c);
}

.footer {
  background: #0f2134;
  color: #d4e2ef;
  border-top: 1px solid #203b56;
}

.newsletter input {
  border-color: #28445f;
  background: #13283f;
  color: #d8e7f5;
}

.badge {
  border-color: #28445f;
  background: #13283f;
}

.copyright {
  border-top-color: #28445f;
  color: #8facca;
}

.form-control input,
.form-control select,
.form-control textarea {
  background: #fff;
  color: var(--ink);
  border-color: #cfdeeb;
}

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
  outline: 2px solid rgba(15, 144, 126, 0.2);
  border-color: #99d9ce;
}

.table th,
.table td {
  border-bottom-color: #dce6f2;
}

@media (max-width: 760px) {
  .container {
    width: min(1100px, 94vw);
  }

  .topbar-inner {
    gap: 10px;
    align-items: flex-start;
  }

  .mobile-nav-btn {
    margin-left: auto;
    background: #fff;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .auth-actions {
    order: 2;
    width: 100%;
    margin-left: 0;
  }

  .auth-actions .btn,
  .auth-actions button {
    flex: 1;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .hero p,
  .section-subtitle,
  .page-hero p {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .tsla-chart-card iframe {
    min-height: 300px;
  }

  .table th,
  .table td {
    font-size: 0.86rem;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .hero-wrap,
  .page-card,
  .auth-card {
    padding: 18px;
  }

  .tsla-chart-card iframe {
    min-height: 240px;
  }

  .btn {
    padding: 10px 14px;
  }
}

/* Startup Upgrade v2 */
:root {
  --bg: #070a10;
  --paper: #0f1420;
  --ink: #f2f6ff;
  --muted: #a5b3cc;
  --brand: #ff3b45;
  --accent: #2ae3c4;
  --line: #243041;
  --card: #121a29;
  --shadow: 0 22px 48px rgba(3, 9, 18, 0.55);
}

body {
  background: radial-gradient(circle at 86% -14%, rgba(255, 59, 69, 0.25) 0%, transparent 35%),
    radial-gradient(circle at 8% 12%, rgba(42, 227, 196, 0.16) 0%, transparent 30%),
    linear-gradient(180deg, #070a10 0%, #0b111b 100%);
  color: var(--ink);
}

.topbar {
  background: rgba(8, 12, 19, 0.78);
  border-bottom: 1px solid #29364b;
  backdrop-filter: blur(12px);
}

.logo {
  color: #f8fbff;
  letter-spacing: 0.12em;
}

.nav-links a {
  color: #9fb0c9;
}

.nav-links a.active,
.nav-links a:hover {
  color: #e8f1ff;
}

.hero-wrap,
.hero-slider,
.hero-metric,
.page-card,
.tile,
.panel-copy,
.board-card,
.icon-card,
.pricing-card,
.auth-card,
.kpi,
.faq-list details,
.wallet-box,
.modal-card {
  background: linear-gradient(170deg, rgba(20, 30, 46, 0.95), rgba(14, 21, 33, 0.95));
  border-color: #2b3950;
  box-shadow: var(--shadow);
}

.hero-wrap {
  background: linear-gradient(155deg, rgba(18, 27, 41, 0.96), rgba(12, 19, 30, 0.96));
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #f4f8ff;
}

.hero p,
.section-subtitle,
.page-hero p,
.tile p,
.panel-copy p,
.board-copy p,
.auth-card p,
.price-meta,
.notice,
.modal-disclaimer {
  color: #a9b8cf;
}

.section-title,
.page-hero h1,
.board-copy h3,
.pricing-card h3,
.panel-copy h3,
.tile h3,
.icon-card h3,
.auth-card h1,
.kpi strong,
.table th {
  color: #f7fbff;
}

.btn.primary {
  background: linear-gradient(180deg, #ff4b55, #da2630);
  border-color: #f65760;
}

.btn.primary:hover {
  background: linear-gradient(180deg, #ff6770, #e2333e);
}

.btn.light {
  background: #172134;
  color: #dbe6f7;
  border-color: #35445f;
}

.form-control input,
.form-control select,
.form-control textarea {
  background: #0f1726;
  color: #f0f5ff;
  border-color: #32415c;
}

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
  outline: 2px solid rgba(42, 227, 196, 0.22);
  border-color: #4e7ea0;
}

.panel-visual {
  background: linear-gradient(160deg, #162132, #0e1724);
  border-color: #2b3b54;
}

.icon {
  background: rgba(42, 227, 196, 0.14);
  color: #60f4dc;
}

.notice {
  border-color: #36506f;
  background: #162335;
  color: #b8cde7;
}

.tsla-meta {
  background: linear-gradient(160deg, #142038, #0f1b2f);
  border-color: #324d74;
}

.tsla-tags span {
  background: #11223a;
  border-color: #2f4e76;
}

.tsla-chart-card {
  border-color: #314d73;
}

.pill.completed {
  color: #d6dfeb;
  background: #2a3444;
}

.pill.processing {
  color: #ffd7bc;
  background: #4a2f1f;
}

.pill.approved {
  color: #aff6df;
  background: #113e35;
}

.pill.pending_review {
  color: #ffdca6;
  background: #4b3614;
}

.pill.locked,
.pill.rejected {
  color: #ffc2c8;
  background: #4f1f2a;
}

.table th,
.table td {
  border-bottom-color: #2b3950;
}

.footer {
  background: #090e17;
  border-top: 1px solid #25334a;
  color: #afc0d8;
}

.newsletter input {
  background: #101b2d;
  border-color: #314866;
}

.badge {
  background: #101b2d;
  border-color: #314866;
}

main > section,
main > .section {
  animation: riseIn 0.7s ease both;
}

main > section:nth-child(2),
main > .section:nth-child(2) {
  animation-delay: 0.06s;
}

main > section:nth-child(3),
main > .section:nth-child(3) {
  animation-delay: 0.12s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1100px, 95vw);
  }

  .topbar-inner {
    gap: 8px;
  }

  .logo {
    font-size: 1rem;
  }

  .mobile-nav-btn {
    background: #172133;
    color: #dbe6f7;
    border-color: #314866;
  }

  .nav-links {
    border-color: #314866;
    background: #111a2a;
  }

  .auth-actions {
    width: 100%;
    gap: 8px;
  }

  .auth-actions .btn,
  .auth-actions button {
    flex: 1;
    min-height: 42px;
  }

  .hero-wrap,
  .page-card,
  .auth-card {
    padding: 20px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .hero p,
  .section-subtitle,
  .page-hero p {
    font-size: 1rem;
  }

  .tsla-chart-card iframe {
    min-height: 260px;
  }

  .table th,
  .table td {
    font-size: 0.84rem;
  }
}

/* Media + Icons Polish */
.hero-slider {
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 390px;
  background: #0f1726;
  border: 1px solid #2e3f5a;
}

.slide-stack {
  min-height: 390px;
}

.slide.visual-slide {
  display: block;
  inset: 0;
}

.visual-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.06);
}

.visual-slide:nth-child(3) img {
  object-fit: contain;
  background: linear-gradient(160deg, #111a2a, #0b111b);
  padding: 58px 44px;
}

.slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.2), rgba(7, 10, 16, 0.84));
}

.slide-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 36px;
  z-index: 2;
}

.slide-tag {
  margin: 0 0 8px;
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f6f8fc;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slide-caption h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.2;
  max-width: 23ch;
  color: #f7fbff;
}

.slide-indicator {
  position: absolute;
  left: 22px;
  bottom: 14px;
  z-index: 4;
  margin: 0;
}

.slide-indicator span {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.45);
}

.slide-indicator span.active {
  background: #ff4c56;
}

.slide.active img {
  animation: heroDrift 6.2s ease forwards;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.video-card {
  background: linear-gradient(165deg, #131d2f, #0e1624);
  border: 1px solid #2f425d;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(2, 9, 18, 0.45);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
}

.icon,
.tile-icon {
  display: inline-grid;
  place-items: center;
}

.icon svg,
.tile-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: rgba(255, 76, 86, 0.12);
  color: #ff7f87;
  border: 1px solid rgba(255, 76, 86, 0.28);
}

.icon {
  color: #5df2d9;
}

@media (max-width: 980px) {
  .hero-slider,
  .slide-stack {
    min-height: 330px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-slider,
  .slide-stack {
    min-height: 300px;
  }

  .slide-caption {
    left: 16px;
    right: 16px;
    bottom: 30px;
  }

  .slide-indicator {
    left: 16px;
    bottom: 10px;
  }

  .visual-slide:nth-child(3) img {
    padding: 48px 26px;
  }
}

@media (max-width: 520px) {
  .hero-slider,
  .slide-stack {
    min-height: 260px;
  }

  .slide-caption h2 {
    font-size: 1.12rem;
  }

  .video-card {
    padding: 8px;
  }
}
