* {
  box-sizing: border-box;
}

:root {
  --bg: #f7fbfc;
  --paper: #ffffff;
  --ink: #0b1b36;
  --muted: #65748b;
  --teal: #00979c;
  --teal-2: #16c9c5;
  --teal-dark: #006f73;
  --green: #16a34a;
  --line: #e4edf2;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  color: var(--ink);
}

/* LOGIN */
.landing {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 10%, rgba(0, 151, 156, 0.12), transparent 28%),
    radial-gradient(circle at 105% 84%, rgba(22, 201, 197, 0.14), transparent 30%),
    #fbfdfe;
  overflow-x: hidden;
}

.landing-main {
  width: min(1500px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 138px);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(40px, 6vw, 95px);
  align-items: center;
  padding: 34px 58px 24px;
}

.logo-card {
  width: min(470px, 100%);
  background: white;
  padding: 18px 32px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.logo-card img {
  width: 100%;
  display: block;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(0, 151, 156, 0.10);
  border: 1px solid rgba(0, 151, 156, 0.15);
  font-weight: 800;
}

.accent-line {
  width: 74px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  margin: 16px 0 20px;
}

.landing h1 {
  margin: 24px 0 0;
  font-size: clamp(54px, 5.5vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.landing h1 span {
  display: block;
  color: var(--teal);
}

.landing-text {
  max-width: 690px;
  font-size: 20px;
  line-height: 1.48;
  color: #31405a;
  margin: 0;
}

.feature-line {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
  color: #1c3150;
  font-weight: 800;
}

.feature-line div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
}

.feature-line div + div {
  border-left: 1px solid #d7e4ea;
  padding-left: 28px;
}

.feature-line div:first-child {
  font-size: 15px;
}

.feature-line div {
  font-size: 28px;
}

.feature-line span {
  font-size: 16px;
  line-height: 1.2;
}

.login-panel {
  border-radius: 32px;
  padding: 42px 46px;
  color: white;
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,0.15), transparent 22%),
    linear-gradient(135deg, #00989c, #006b71);
  box-shadow: 0 28px 65px rgba(0, 111, 115, 0.28);
}

.login-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.lock-circle {
  min-width: 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  font-size: 28px;
}

.login-head h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.login-head p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  line-height: 1.42;
}

.login-panel label {
  display: block;
  font-weight: 850;
  margin: 16px 0 8px;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: 14px;
  padding: 0 18px;
  height: 60px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 19px;
  color: var(--ink);
  background: transparent;
}

.login-btn {
  width: 100%;
  border: none;
  margin-top: 25px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3d0, #13bdb8);
  color: white;
  font-weight: 950;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(0, 70, 73, 0.20);
}

.login-btn span {
  margin-left: 12px;
}

.divider {
  display: flex;
  align-items: center;
  margin: 28px 0 20px;
  gap: 12px;
  opacity: 0.72;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.55);
}

.privacy-note {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 15px;
  line-height: 1.42;
}

.privacy-note p {
  margin: 0;
}

.shield {
  min-width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(34, 211, 208, 0.36);
  display: grid;
  place-items: center;
}

.login-status {
  margin-top: 14px;
  font-weight: 850;
}

.login-status.error {
  color: #fecaca;
}

.login-status.success {
  color: #dcfce7;
}

.landing-footer {
  width: min(1500px, calc(100% - 80px));
  margin: 0 auto 22px;
  min-height: 116px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
  border-radius: 26px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.055);
  display: grid;
  grid-template-columns: 1.55fr 1.1fr 0.8fr 1fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 30px;
}

.footer-brand,
.footer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-icon,
.footer-item > div:first-child {
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e6f7f7;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 20px;
}

.footer-brand strong,
.footer-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.footer-brand span,
.footer-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* DASHBOARD */
.dashboard-body {
  background: #f6fafb;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 16px auto 16px 16px;
  width: 275px;
  background: rgba(255,255,255,0.88);
  border: 1px solid #e3edf2;
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.side-logo {
  background: white;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.06);
}

.side-logo img {
  width: 100%;
  display: block;
}

.side-brand {
  margin: 28px 0;
  text-align: center;
  font-size: 34px;
  font-weight: 950;
  color: var(--teal);
}

.side-brand span {
  color: var(--ink);
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #14284b;
  text-decoration: none;
  border: none;
  background: transparent;
  padding: 15px 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.side-nav .nav-item.active,
.side-nav .nav-item:hover {
  background: #eaf5f7;
  color: var(--teal-dark);
}

.support-card {
  margin-top: auto;
  border: 1px solid #d9eaef;
  border-radius: 20px;
  padding: 17px;
  background: #ffffff;
  position: relative;
  box-shadow: 0 8px 24px rgba(15,23,42,0.04);
}

.support-card > div {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f8f8;
  font-size: 24px;
  margin-bottom: 12px;
}

.support-card strong {
  color: var(--ink);
}

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

.support-card span {
  position: absolute;
  right: 18px;
  top: 50%;
  color: var(--teal);
  font-size: 28px;
}

.dashboard {
  margin-left: 315px;
  padding: 24px 32px 46px;
}

.topbar {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crumb {
  font-weight: 900;
  color: var(--teal-dark);
  background: #e8f7f7;
  border: 1px solid #cbe9ea;
  padding: 10px 16px;
  border-radius: 999px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bell {
  position: relative;
  width: 46px;
  height: 46px;
  border: none;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.bell span {
  position: absolute;
  top: -7px;
  right: -4px;
  background: var(--teal);
  color: white;
  font-size: 12px;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.profile-wrap {
  position: relative;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 9px 14px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.05);
  cursor: pointer;
  min-width: 165px;
}

.avatar {
  width: 42px;
  height: 42px;
  background: #f0f7fb;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.user-chip span {
  display: block;
  color: var(--green);
  font-size: 13px;
}

.user-chip .chevron {
  margin-left: auto;
  color: var(--teal-dark);
}

.profile-menu {
  position: absolute;
  top: 58px;
  right: 0;
  width: 205px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.14);
  padding: 10px;
  display: none;
  z-index: 20;
}

.profile-menu.open {
  display: block;
}

.profile-menu button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 12px 13px;
  border-radius: 12px;
  font-weight: 800;
  color: #21344f;
  cursor: pointer;
}

.profile-menu button:hover {
  background: #f2f8fa;
}

.profile-menu .danger {
  color: #ef4444;
}

.profile-menu hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 8px 0;
}

.welcome h1 {
  font-size: 31px;
  margin: 14px 0 4px;
}

.welcome p {
  margin: 0 0 22px;
  color: var(--muted);
}

.page {
  display: none;
  animation: fadeInPage .22s ease;
}

.page.active {
  display: block;
}

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

.page-title {
  margin: 16px 0 24px;
}

.page-title h1 {
  margin: 0 0 6px;
  font-size: 36px;
  letter-spacing: -0.03em;
}

.page-title p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}

.home-top-grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

.balance-card {
  min-height: 230px;
  border-radius: 24px;
  padding: 30px;
  color: white;
  background:
    radial-gradient(circle at 80% 35%, rgba(255,255,255,0.14), transparent 24%),
    linear-gradient(135deg, #0ba6a8, #007177);
  box-shadow: 0 22px 48px rgba(0, 111, 115, 0.23);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-card p,
.balance-card h2 {
  margin: 0;
}

.balance-card p {
  font-weight: 850;
  font-size: 20px;
}

.balance-card h2 {
  font-size: 56px;
  line-height: 1;
  margin: 10px 0;
}

.balance-card span {
  opacity: 0.93;
}

.balance-card button {
  display: block;
  margin-top: 28px;
  border: none;
  background: white;
  color: #173154;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.mountain {
  font-size: 74px;
  opacity: 0.55;
}

.action-card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.055);
}

.action-card {
  min-height: 230px;
  padding: 28px;
  display: grid;
  align-content: center;
  text-align: left;
}

.action-icon {
  width: 66px;
  height: 66px;
  background: #eaf7f8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 22px;
}

.action-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.action-card p {
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.45;
}

.action-card button {
  justify-self: start;
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  background: white;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.home-bottom-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
}

.panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.panel h2 {
  margin: 0;
  font-size: 20px;
}

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

.panel a {
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  min-height: 180px;
  align-items: center;
}

.summary-cards > div {
  padding: 14px 24px;
  border-right: 1px solid var(--line);
}

.summary-cards > div:last-child {
  border-right: none;
}

.summary-icon,
.msg-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf7f8;
  margin-bottom: 14px;
  font-size: 24px;
}

.summary-icon.blue,
.msg-icon.blue {
  background: #e9f2ff;
}

.summary-icon.yellow {
  background: #fff3d8;
}

.summary-icon.purple,
.msg-icon.purple {
  background: #f0eaff;
}

.summary-cards span,
.summary-cards small {
  display: block;
  color: var(--muted);
}

.summary-cards strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 24px;
}

.summary-cards > div:first-child strong {
  color: var(--teal-dark);
}

.message-list {
  display: grid;
}

.message-list > div {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.message-list > div:last-child {
  border-bottom: none;
}

.message-list strong {
  color: var(--ink);
}

.message-list p {
  margin: 5px 0 0;
  color: var(--muted);
}

.message-list > div > span {
  color: var(--muted);
  font-size: 13px;
}

.saldo-grid,
.tickets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

.single-center {
  max-width: 780px;
}

.recarga-panel {
  padding: 30px;
}

.plans-page {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  color: var(--ink);
  font-size: 20px;
}

.tabs {
  display: inline-flex;
  background: #edf7f8;
  border: 1px solid #d4e9ec;
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 22px;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 900;
  color: #486176;
  cursor: pointer;
}

.tab-btn.active {
  background: white;
  color: var(--teal-dark);
  box-shadow: 0 10px 26px rgba(15,23,42,0.08);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.amount-grid button {
  height: 48px;
  border: 1px solid #d9e6ee;
  background: white;
  border-radius: 9px;
  font-weight: 900;
  cursor: pointer;
}

.amount-grid button.active {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: #eaf8f8;
}

.primary-action {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: white;
  font-weight: 950;
  cursor: pointer;
}

.payment-strip {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
}

.payment-strip strong {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  color: #143158;
  font-size: 13px;
}

.mini-status {
  margin-top: 14px;
  font-weight: 850;
  color: var(--teal-dark);
}

.plan {
  background: #eaf7f7;
  border: 1px solid #c9e9ea;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15,23,42,0.055);
}

.plan.blue {
  background: #eef7fd;
  border-color: #cde8f8;
}

.plan.green {
  background: #eef9ed;
  border-color: #ccebcf;
}

.plan div {
  font-size: 32px;
}

.plan h3 {
  color: var(--teal-dark);
  font-size: 24px;
  margin: 12px 0 4px;
}

.plan strong {
  display: block;
  font-size: 22px;
  margin-bottom: 12px;
}

.plan p {
  min-height: 44px;
}

.plan button,
.ticket-card button {
  width: 100%;
  height: 42px;
  border: 1px solid var(--teal);
  background: white;
  color: var(--teal-dark);
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.history-table th,
.history-table td {
  text-align: left;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
}

.history-table th {
  color: var(--muted);
}

.status-dot {
  color: var(--teal);
}

.badge-ok {
  margin-left: 8px;
  background: #dcfce7;
  color: #166534;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 12px;
}

.badge-warn,
.badge-muted {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 12px;
}

.badge-warn {
  background: #fef3c7;
  color: #92400e;
}

.badge-muted {
  background: #e5e7eb;
  color: #374151;
}

.donut-layout {
  display: flex;
  gap: 28px;
  align-items: center;
}

.donut {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0 75%, #dbeef0 75% 100%);
  display: grid;
  place-items: center;
}

.donut > div {
  width: 110px;
  height: 110px;
  background: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
}

.donut strong {
  font-size: 24px;
}

.donut span {
  color: var(--muted);
  font-size: 12px;
}

.legend {
  flex: 1;
}

.legend p {
  display: flex;
  justify-content: space-between;
}

.legend span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 50%;
  margin-right: 6px;
}

.ticket-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: white;
}

.ticket-card.large {
  min-height: 260px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.055);
}

.qr {
  width: 110px;
  height: 110px;
  background: white;
  border: 8px solid #111827;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
}

.qr div:nth-child(odd) {
  background: #111827;
}

@media (max-width: 1450px) {
  .home-top-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-bottom-grid,
  .saldo-grid,
  .tickets-grid,
  .plans-page {
    grid-template-columns: 1fr;
  }

  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-cards > div:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 1180px) {
  .sidebar {
    position: static;
    width: auto;
    margin: 14px;
  }

  .dashboard {
    margin-left: 0;
  }

  .landing-main,
  .landing-footer {
    grid-template-columns: 1fr;
  }

  .landing-footer {
    width: calc(100% - 40px);
  }
}

@media (max-width: 760px) {
  .landing-main {
    padding: 24px 20px;
    gap: 24px;
  }

  .login-panel {
    padding: 28px;
  }

  .feature-line,
  .payment-strip {
    flex-wrap: wrap;
  }

  .home-top-grid,
  .summary-cards,
  .amount-grid,
  .ticket-card {
    grid-template-columns: 1fr;
  }

  .message-list > div {
    grid-template-columns: 54px 1fr;
  }

  .message-list > div > span {
    grid-column: 2;
  }
}
