:root {
  --purple-950: #170a24;
  --purple-900: #281039;
  --purple-800: #3a1851;
  --purple-700: #582171;
  --gold-500: #d9ad4f;
  --gold-400: #f0cf74;
  --ink: #241f2b;
  --muted: #706879;
  --paper: #fbf8f1;
  --line: #e7dcc7;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 10, 36, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 56px;
  color: var(--white);
  background: rgba(23, 10, 36, 0.76);
  border-bottom: 1px solid rgba(240, 207, 116, 0.22);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.hero-stats,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: auto;
  height: 68px;
  max-width: 290px;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

.site-header .brand {
  align-self: stretch;
  transition: transform 180ms ease;
}

.site-header .brand:hover {
  transform: translateY(-1px);
}

.sidebar .brand-logo {
  width: 210px;
  height: 72px;
}

.footer-logo {
  width: 190px;
  height: 60px;
}

.nav-links {
  gap: 34px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.78);
}

.nav-links a:hover {
  color: var(--gold-400);
}

.header-action {
  padding: 10px 16px;
  color: var(--purple-950);
  font-weight: 800;
  background: var(--gold-400);
  border-radius: 8px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 10, 36, 0.98) 0%, rgba(40, 16, 57, 0.86) 42%, rgba(40, 16, 57, 0.18) 74%),
    linear-gradient(0deg, rgba(23, 10, 36, 0.55), rgba(23, 10, 36, 0.04));
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 86px);
  padding-top: 90px;
}

.eyebrow,
.package-kicker,
.summary-label {
  margin: 0 0 14px;
  color: var(--gold-400);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 22px;
  font-size: clamp(3.6rem, 6.2vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  color: var(--gold-400);
  font-size: 0.78em;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero-copy {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem;
  line-height: 1.7;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin: 34px 0 44px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.button-primary {
  color: var(--purple-950);
  background: var(--gold-400);
  box-shadow: 0 16px 34px rgba(217, 173, 79, 0.26);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-stats {
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 185px;
  flex: 1 1 185px;
  padding: 15px 17px;
  margin: 0;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(240, 207, 116, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.hero-stats dt {
  color: var(--gold-400);
  font-size: 1.05rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  line-height: 1.35;
}

.section {
  padding: 96px 64px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  color: var(--purple-950);
  font-size: 3.35rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.packages-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.packages-header .section-heading {
  margin-bottom: 0;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--purple-950);
  background: var(--gold-400);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.carousel-button:hover {
  background: var(--gold-500);
}

.package-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding: 4px 2px 18px;
}

.package-carousel::-webkit-scrollbar {
  display: none;
}

.package-carousel.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.package-card,
.booking-form,
.booking-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(36, 31, 43, 0.07);
}

.package-card {
  flex: 0 0 min(380px, calc(100vw - 72px));
  min-height: 328px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  scroll-snap-align: start;
}

.package-featured {
  color: var(--white);
  background: var(--purple-900);
  border-color: rgba(240, 207, 116, 0.42);
  box-shadow: var(--shadow);
}

.package-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.package-price {
  margin-bottom: 18px;
  color: var(--purple-700);
  font-size: 2.5rem;
  font-weight: 800;
}

.package-featured .package-price {
  color: var(--gold-400);
}

.package-description {
  color: var(--muted);
  line-height: 1.7;
}

.package-featured .package-description {
  color: rgba(255, 255, 255, 0.74);
}

.select-package {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: auto;
  color: var(--purple-950);
  background: var(--gold-400);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.package-card.is-selected {
  outline: 3px solid var(--gold-500);
  outline-offset: 4px;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr) minmax(260px, 0.7fr);
  gap: 22px;
  align-items: start;
  background: #f4efe4;
}

.booking-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.method-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.method-list div {
  padding-left: 16px;
  border-left: 3px solid var(--gold-500);
}

.method-list strong,
.method-list span {
  display: block;
}

.method-list span {
  margin-top: 4px;
  color: var(--muted);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.booking-form label {
  display: grid;
  gap: 8px;
  color: var(--purple-950);
  font-size: 0.92rem;
  font-weight: 800;
}

.booking-form label:nth-last-of-type(1),
.form-submit,
.form-note {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid #d9cfbd;
  border-radius: 8px;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(217, 173, 79, 0.16);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--purple-700);
  font-weight: 700;
}

.booking-summary {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.booking-summary h3 {
  margin-bottom: 8px;
  color: var(--purple-950);
  font-size: 1.5rem;
}

.summary-price {
  margin-bottom: 22px;
  color: var(--purple-700);
  font-size: 2.4rem;
  font-weight: 800;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

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

.whatsapp-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  color: var(--white);
  background: var(--purple-800);
  border-radius: 8px;
  font-weight: 800;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px 64px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--purple-950);
}

.auth-page,
.app-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(23, 10, 36, 0.96), rgba(58, 24, 81, 0.92)),
    url("assets/hero-vocal-studio.png") center / cover fixed;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 520px);
  gap: 28px;
  align-items: stretch;
  padding: 32px;
}

.auth-visual,
.auth-card {
  border: 1px solid rgba(240, 207, 116, 0.22);
  border-radius: 8px;
}

.auth-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 64px);
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(23, 10, 36, 0.9) 0%, rgba(23, 10, 36, 0.66) 44%, rgba(23, 10, 36, 0.2) 100%),
    linear-gradient(0deg, rgba(23, 10, 36, 0.68), rgba(23, 10, 36, 0.08)),
    url("assets/lois.png") 58% center / cover;
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.auth-visual h1 {
  max-width: 610px;
  margin-bottom: 0;
  font-size: clamp(1.9rem, 2.55vw, 2.75rem);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(23, 10, 36, 0.48);
}

.auth-visual p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.8;
}

.auth-card {
  align-self: center;
  padding: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin-bottom: 22px;
  background: #f1eadc;
  border-radius: 8px;
}

.auth-tab {
  min-height: 44px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.auth-tab.is-active {
  color: var(--purple-950);
  background: var(--gold-400);
}

.auth-form {
  display: none;
}

.auth-form.is-active {
  display: grid;
  gap: 14px;
}

.auth-form h2 {
  margin-bottom: 2px;
  font-size: 2rem;
}

.auth-form label,
.compact-form label {
  display: grid;
  gap: 8px;
  color: var(--purple-950);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-hint,
.muted-text {
  color: var(--muted);
  line-height: 1.7;
}

.alert {
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 8px;
  font-weight: 700;
}

.alert p {
  margin: 0;
}

.alert p + p {
  margin-top: 6px;
}

.alert-error {
  color: #7a1d2c;
  background: #ffe8ed;
  border: 1px solid #efb8c1;
}

.danger-panel {
  border-color: #efc8d0;
  background: #fff8f9;
}

.danger-button {
  color: var(--white);
  background: #9b2743;
  box-shadow: none;
}

.app-page table .danger-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--white);
  background: #9b2743;
  border: 1px solid #7a1d2c;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.alert-success {
  color: #23452b;
  background: #e9f8ed;
  border: 1px solid #b9dfc2;
}

.app-page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  color: var(--ink);
  background: #f4efe4;
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 26px;
  color: var(--white);
  background: var(--purple-950);
  border-right: 1px solid rgba(240, 207, 116, 0.24);
}

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

.sidebar-nav a,
.sidebar .logout-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  font-weight: 800;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active,
.sidebar .logout-link:hover {
  color: var(--purple-950);
  background: var(--gold-400);
}

.sidebar .logout-link {
  margin-top: auto;
}

.dashboard-main {
  width: min(1280px, 100%);
  padding: 34px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.dashboard-header h1 {
  margin: 0;
  color: var(--purple-950);
  font-size: 2.8rem;
}

.user-pill {
  max-width: 100%;
  padding: 10px 14px;
  color: var(--purple-950);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.metric-card,
.panel,
.access-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(36, 31, 43, 0.07);
}

.metric-card {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  color: var(--purple-800);
  font-size: 2.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel,
.access-panel {
  padding: 24px;
}

.access-panel {
  align-self: start;
  max-width: 520px;
}

.access-panel h3 {
  color: var(--purple-950);
  font-size: 1.7rem;
}

.access-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--purple-950);
  font-size: 0.92rem;
  font-weight: 800;
}

.access-login-link {
  width: 100%;
  margin-top: 12px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading h2,
.panel h2 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

.compact-form {
  display: grid;
  gap: 14px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

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

th {
  color: var(--purple-950);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    padding: 16px 28px;
  }

  h1 {
    font-size: 4.1rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .section {
    padding: 78px 28px;
  }

  .site-footer {
    padding: 28px;
  }

  .nav-links {
    display: none;
  }

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

  .packages-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .package-card {
    flex-basis: min(320px, calc(100vw - 58px));
  }

  .auth-shell,
  .app-page,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    padding: 18px;
  }

  .auth-visual {
    min-height: auto;
    gap: 80px;
  }

  .auth-visual h1 {
    max-width: 560px;
    font-size: 2.25rem;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .header-action {
    padding: 9px 12px;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(23, 10, 36, 0.96), rgba(40, 16, 57, 0.7));
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-stats div {
    min-width: 128px;
  }

  .booking-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .dashboard-main {
    padding: 22px 14px;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-header h1 {
    font-size: 2.1rem;
  }

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

  .auth-card,
  .auth-visual,
  .panel,
  .access-panel {
    padding: 18px;
  }

  .auth-visual h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Dashboard redesign */
.app-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(217, 173, 79, 0.16), transparent 34%),
    linear-gradient(135deg, #fbf8f1 0%, #f3ecdf 52%, #eee5d6 100%);
}

.app-page .sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 28px 18px;
  background:
    linear-gradient(180deg, rgba(45, 16, 65, 0.98), rgba(23, 10, 36, 1)),
    var(--purple-950);
  box-shadow: 18px 0 60px rgba(23, 10, 36, 0.16);
}

.app-page .sidebar .brand {
  min-height: 58px;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  padding: 8px 10px;
  color: var(--white);
  border-bottom: 1px solid rgba(240, 207, 116, 0.18);
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.app-page .sidebar .brand-logo {
  margin: 0 auto;
}

.app-page .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.app-page .sidebar-group {
  display: block;
  margin: 0;
  padding: 0;
}

.app-page .sidebar-nav a,
.app-page .sidebar-nav summary,
.app-page .logout-link {
  position: relative;
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 18px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.app-page .sidebar-nav summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  appearance: none;
  list-style: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.app-page .sidebar-nav summary::-webkit-details-marker {
  display: none;
}

.app-page .sidebar-group.is-active summary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.08);
}

.app-page .sidebar-submenu {
  display: grid;
  gap: 4px;
  padding: 6px 0 4px;
}

.app-page .sidebar-nav a.sidebar-sub {
  min-height: 38px;
  margin-left: 14px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.app-page .sidebar-nav a span {
  display: none;
}

.app-page .sidebar-nav a::before,
.app-page .sidebar-nav summary::before,
.app-page .logout-link::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 18px;
  background: transparent;
  border-radius: 8px;
}

.app-page .sidebar-nav a:hover,
.app-page .sidebar-nav summary:hover,
.app-page .sidebar-nav a.is-active,
.app-page .logout-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.08);
}

.app-page .sidebar-nav a.is-active::before,
.app-page .sidebar-group.is-active summary::before,
.app-page .logout-link:hover::before {
  background: var(--gold-400);
}

.app-page .sidebar-nav a.plan-attention {
  color: var(--white);
  border-color: rgba(240, 207, 116, 0.55);
  background: rgba(240, 207, 116, 0.12);
  box-shadow: 0 0 0 rgba(240, 207, 116, 0);
  animation: planGlow 1.25s ease-in-out infinite;
}

.app-page .sidebar-nav a.plan-attention::after {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(240, 207, 116, 0.5), rgba(240, 207, 116, 0) 68%);
  animation: planLamp 1.25s ease-in-out infinite;
  pointer-events: none;
}

@keyframes planGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(240, 207, 116, 0);
  }

  50% {
    box-shadow: 0 0 26px rgba(240, 207, 116, 0.46);
  }
}

@keyframes planLamp {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.app-page .dashboard-main {
  width: min(1380px, 100%);
  padding: 28px 36px 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 28px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-dot,
.notification-button,
.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(36, 31, 43, 0.06);
}

.topbar-logout {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--purple-950);
  background: var(--gold-400);
  border: 1px solid rgba(217, 173, 79, 0.65);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(36, 31, 43, 0.06);
  font-weight: 800;
}

.topbar-logout:hover {
  background: var(--gold-500);
}

.notification-menu {
  position: relative;
}

.notification-button {
  position: relative;
  list-style: none;
  cursor: pointer;
}

.notification-button::-webkit-details-marker {
  display: none;
}

.notification-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gold-500);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(217, 173, 79, 0.18);
}

.notification-bell {
  width: 23px;
  height: 23px;
  color: var(--gold-500);
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  color: var(--white);
  background: #a52845;
  border: 2px solid var(--white);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.notification-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 28px));
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 10, 36, 0.2);
}

.notification-panel strong {
  color: var(--purple-900);
  font-size: 0.92rem;
}

.notification-panel a {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f1;
}

.notification-panel a.has-news {
  border-color: rgba(217, 173, 79, 0.55);
  background: rgba(240, 207, 116, 0.2);
}

.notification-panel span {
  color: var(--ink);
  font-weight: 800;
}

.notification-panel small {
  color: var(--muted);
}

.avatar {
  color: var(--white);
  background: var(--purple-800);
  border-color: rgba(58, 24, 81, 0.2);
  font-weight: 900;
}

.app-page .dashboard-header {
  min-height: 190px;
  align-items: flex-start;
  padding: 30px;
  margin-bottom: 20px;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(23, 10, 36, 0.96) 0%, rgba(58, 24, 81, 0.92) 56%, rgba(217, 173, 79, 0.72) 100%),
    url("assets/hero-vocal-studio.png") center right / cover;
  border: 1px solid rgba(240, 207, 116, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-page .dashboard-header h1 {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 3.2rem;
  line-height: 1.02;
}

.app-page .dashboard-header p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.app-page .user-pill {
  color: var(--purple-950);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.36);
}

.app-page .metric-grid {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.app-page .metric-card,
.app-page .panel {
  border: 1px solid rgba(231, 220, 199, 0.92);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 55px rgba(36, 31, 43, 0.08);
  backdrop-filter: blur(18px);
}

.app-page .metric-card {
  min-height: 176px;
  padding: 20px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.app-page .metric-card::after {
  content: "";
  position: absolute;
  inset: auto -26px -42px auto;
  width: 96px;
  height: 96px;
  background: rgba(217, 173, 79, 0.14);
  border-radius: 50%;
}

.app-page .metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--purple-800);
}

.metric-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.metric-change {
  padding: 6px 9px;
  color: var(--muted);
  background: rgba(246, 239, 226, 0.86);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.app-page .metric-card strong {
  display: block;
  margin: 30px 0 16px;
  color: var(--purple-950);
  font-size: 2.35rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.app-page .metric-card span:not(.metric-change) {
  display: block;
  color: var(--ink);
  text-align: center;
}

.app-page .metric-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.metric-gold::before,
.metric-green::before {
  background: var(--gold-400);
}

.metric-violet::before {
  background: #7b3ea4;
}

.metric-rose::before {
  background: #9b2743;
}

.metric-blue::before {
  background: #315d8f;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 18px;
  margin-bottom: 18px;
}

.revenue-panel {
  min-height: 330px;
}

.revenue-panel .panel-heading strong {
  color: var(--purple-800);
  font-size: 1.8rem;
}

.chart-bars {
  height: 190px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 12px;
  padding: 22px 4px 0;
  border-bottom: 1px solid var(--line);
}

.chart-bars span {
  display: block;
  min-height: 18px;
  background: linear-gradient(180deg, var(--gold-400), var(--purple-700));
  border-radius: 8px 8px 0 0;
  box-shadow: 0 14px 28px rgba(58, 24, 81, 0.16);
}

.chart-footer {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.lesson-list {
  display: grid;
  gap: 12px;
}

.lesson-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #fbf8f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lesson-item > strong {
  display: grid;
  place-items: center;
  min-height: 48px;
  color: var(--purple-950);
  background: var(--gold-400);
  border-radius: 8px;
}

.lesson-item span,
.lesson-item small {
  display: block;
}

.lesson-item span {
  color: var(--purple-950);
  font-weight: 900;
}

.lesson-item small {
  margin-top: 4px;
  color: var(--muted);
}

.app-page .dashboard-grid {
  grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.28fr);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--purple-950);
  background: #f6efe2;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.app-page table {
  min-width: 620px;
}

.app-page th {
  color: var(--purple-800);
  background: #fbf8f1;
}

.app-page td {
  color: #51485b;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-actions a,
.table-actions button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--purple-950);
  background: #f6efe2;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.table-actions form {
  margin: 0;
}

.table-actions button {
  color: #8f233a;
  background: #fff0f3;
  border-color: #efc8d0;
}

.page-title {
  margin-bottom: 22px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(36, 31, 43, 0.08);
}

.page-title h1 {
  margin-bottom: 10px;
  color: var(--purple-950);
  font-size: 3rem;
  line-height: 1.05;
}

.page-title p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.reports-section {
  margin-top: 24px;
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-heading h2 {
  font-size: 2.15rem;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.report-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(36, 31, 43, 0.08);
  position: relative;
  overflow: hidden;
}

.report-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-800), var(--gold-400));
}

.report-card h3 {
  margin: 14px 0 10px;
  color: var(--purple-950);
  font-size: 1.35rem;
}

.report-card p {
  color: var(--muted);
  line-height: 1.65;
}

.report-card .button {
  margin-top: auto;
}

.report-secondary {
  color: var(--purple-950);
  background: #f6efe2;
  border-color: var(--line);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 14px;
}

.plan-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #fbf8f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan-card span {
  width: fit-content;
  padding: 7px 10px;
  color: var(--purple-950);
  background: rgba(240, 207, 116, 0.54);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
}

.plan-card h3 {
  margin: 18px 0 10px;
  color: var(--purple-950);
  font-size: 1.18rem;
}

.plan-card strong {
  margin-bottom: 18px;
  color: var(--purple-800);
  font-size: 1.55rem;
}

.plan-card form {
  margin-top: auto;
}

.availability-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  color: var(--purple-950);
  background: rgba(240, 207, 116, 0.58);
  border: 1px solid rgba(217, 173, 79, 0.42);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 900;
}

.waitlist-callout {
  margin-bottom: 18px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(155, 39, 67, 0.1), rgba(240, 207, 116, 0.18));
  border: 1px solid rgba(155, 39, 67, 0.22);
  border-radius: 8px;
}

.waitlist-callout h3 {
  margin-bottom: 8px;
  color: var(--purple-950);
}

.waitlist-callout p {
  color: var(--muted);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.teacher-workspace {
  align-items: stretch;
}

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

.availability-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 8px 14px;
  align-items: center;
  padding: 14px;
  background: #fbf8f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.availability-item strong {
  grid-row: span 2;
  display: grid;
  place-items: center;
  min-height: 54px;
  color: var(--purple-950);
  background: var(--gold-400);
  border-radius: 8px;
}

.availability-item span {
  color: var(--purple-950);
  font-size: 1.1rem;
  font-weight: 900;
}

.availability-item small {
  color: var(--muted);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.slot-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #fbf8f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.slot-card strong {
  color: var(--purple-950);
  font-size: 1.25rem;
}

.slot-card span,
.slot-card small {
  color: var(--muted);
}

.slot-card label {
  display: grid;
  gap: 7px;
  color: var(--purple-950);
  font-size: 0.86rem;
  font-weight: 900;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.mini-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-list span {
  color: var(--purple-950);
  font-weight: 900;
}

.chat-box {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.chat-message {
  max-width: 760px;
  padding: 14px;
  background: #fbf8f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-message.is-mine {
  margin-left: auto;
  background: #f6efe2;
  border-color: rgba(217, 173, 79, 0.46);
}

.chat-message strong,
.chat-message small {
  display: block;
}

.chat-message p {
  margin: 8px 0;
  line-height: 1.6;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.material-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #fbf8f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.material-card img,
.material-card video {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.abnt-preview {
  max-width: 820px;
  margin: 18px 0;
  padding: 40px;
  color: #111;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: "Times New Roman", Times, serif;
  font-size: 12pt;
  line-height: 1.5;
  text-align: justify;
}

.abnt-preview h2 {
  color: #111;
  font-family: "Times New Roman", Times, serif;
  font-size: 14pt;
  text-align: center;
  text-transform: uppercase;
}

.payment-form {
  display: grid;
  grid-template-columns: 140px 96px 128px auto;
  gap: 8px;
  align-items: center;
}

.payment-form input,
.payment-form select {
  min-height: 36px;
  padding: 8px;
}

.payment-form button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--purple-950);
  background: var(--gold-400);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.whatsapp-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--white);
  background: #1f8f4d;
  border: 0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.whatsapp-button-large {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.student-contact-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  margin-bottom: 16px;
  background: #eef9f2;
  border: 1px solid #b9dfc2;
  border-radius: 8px;
}

.student-contact-callout strong,
.student-contact-callout span {
  display: block;
}

.student-contact-callout strong {
  color: var(--purple-950);
}

.student-contact-callout span {
  margin-top: 4px;
  color: var(--muted);
}

.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.teacher-metric-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  max-width: 760px;
}

.teacher-select-form {
  margin: 18px 0;
}

@media (max-width: 1180px) {
  .app-page .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .slot-grid,
  .payment-summary-grid,
  .material-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .app-page {
    grid-template-columns: 1fr;
  }

  .app-page .sidebar {
    position: static;
    min-height: auto;
  }

  .app-page .dashboard-main {
    padding: 20px 14px 32px;
  }

  .topbar,
  .app-page .dashboard-header,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .app-page .metric-grid,
  .app-page .dashboard-grid,
  .plan-grid,
  .inline-form,
  .payment-form {
    grid-template-columns: 1fr;
  }

  .app-page .dashboard-header h1 {
    font-size: 2.35rem;
  }

  .page-title h1 {
    font-size: 2.15rem;
  }
}

/* Linguagem visual compacta inspirada no projeto COIIT */
.app-page {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  background:
    radial-gradient(circle at 78% 12%, rgba(217, 173, 79, 0.1), transparent 28rem),
    linear-gradient(180deg, #fcfaf7 0%, #f2ece4 100%);
}

.app-page .dashboard-main {
  max-width: 1440px;
  padding-top: 22px;
}

.page-title {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 26px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(23, 10, 36, 0.98), rgba(58, 24, 81, 0.94) 68%, rgba(217, 173, 79, 0.78));
  box-shadow: 0 12px 30px rgba(23, 10, 36, 0.14);
}

.page-title::after {
  display: none;
}

.page-title .eyebrow {
  margin-bottom: 7px;
  color: var(--gold-400);
  font-size: 0.68rem;
}

.page-title h1 {
  margin-bottom: 6px;
  color: #fff;
  font-size: clamp(1.75rem, 2.4vw, 2.3rem);
  line-height: 1.1;
}

.page-title p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.5;
}

.app-page .panel,
.report-card,
.app-page .metric-card {
  border: 1px solid #ded4e3;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(36, 18, 47, 0.06);
}

.app-page .panel {
  margin-bottom: 18px;
  padding: 22px;
}

.app-page .panel:hover,
.report-card:hover {
  border-color: #d4c5db;
  box-shadow: 0 8px 22px rgba(36, 18, 47, 0.08);
}

.panel-heading {
  min-height: 42px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4dce8;
}

.panel-heading h2,
.app-page .panel h2 {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.panel-heading p,
.muted-text {
  font-size: 0.85rem;
}

.app-page .dashboard-grid {
  gap: 18px;
}

.compact-form {
  gap: 14px 16px;
}

.app-page label {
  margin-bottom: 5px;
  color: #382b41;
  font-size: 0.8rem;
  font-weight: 650;
}

.app-page input,
.app-page select,
.app-page textarea {
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #d8ccde;
  border-radius: 8px;
  font-size: 0.88rem;
}

.app-page textarea {
  min-height: 110px;
}

.app-page input:focus,
.app-page select:focus,
.app-page textarea:focus {
  border-color: var(--purple-700);
  box-shadow: 0 0 0 3px rgba(88, 33, 113, 0.11);
}

.app-page .button {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.table-wrap {
  border-color: #ded4e3;
  border-radius: 8px;
}

.app-page table {
  font-size: 0.82rem;
}

.app-page th {
  padding: 10px 12px;
  color: #fff;
  background: var(--purple-900);
  border-bottom: 2px solid var(--gold-500);
  font-size: 0.68rem;
  letter-spacing: 0.055em;
}

.app-page td {
  padding: 10px 12px;
  color: #4e4554;
  border-bottom: 1px solid #e6dfe9;
}

.app-page tbody tr:nth-child(even) td {
  background: #faf7fb;
}

.app-page tbody tr:hover td {
  background: #f5edf7;
}

.app-page .metric-grid {
  gap: 12px;
}

.app-page .metric-card {
  min-height: 118px;
  padding: 16px;
}

.app-page .metric-card strong {
  margin: 18px 0 9px;
  font-size: 1.8rem;
}

.app-page .metric-card small {
  font-size: 0.76rem;
}

.report-card,
.plan-card,
.slot-card,
.availability-item,
.lesson-item,
.material-card,
.payment-summary-card {
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(36, 18, 47, 0.05);
}

.plan-card,
.slot-card {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.plan-card:hover,
.slot-card:hover {
  border-color: rgba(88, 33, 113, 0.34);
  box-shadow: 0 10px 24px rgba(36, 18, 47, 0.09);
  transform: translateY(-2px);
}

.availability-pill,
.summary-label,
.package-kicker {
  font-size: 0.68rem;
}

@media (max-width: 860px) {
  .page-title {
    min-height: auto;
    padding: 20px;
  }

  .app-page .panel {
    padding: 17px;
  }
}

/* Refinamento visual da área interna */
@media (min-width: 861px) {
  .app-page {
    grid-template-columns: 238px minmax(0, 1fr);
  }

  .app-page .sidebar {
    padding: 20px 12px;
  }

  .app-page .sidebar .brand {
    min-height: 52px;
    margin: 0 4px 8px;
    padding: 5px 8px 12px;
  }

  .app-page .sidebar .brand-logo {
    max-width: 190px;
    height: 58px;
  }

  .app-page .sidebar-nav a,
  .app-page .sidebar-nav summary,
  .app-page .logout-link {
    min-height: 42px;
    padding-right: 10px;
    padding-left: 15px;
    font-size: 0.9rem;
  }

  .app-page .sidebar-nav a.sidebar-sub {
    min-height: 35px;
    margin-left: 10px;
    font-size: 0.82rem;
  }
}

.app-page .dashboard-main {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 24px clamp(22px, 3vw, 48px) 56px;
}

.topbar {
  min-height: 48px;
  margin-bottom: 20px;
}

.page-title {
  position: relative;
  margin-bottom: 20px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(88, 33, 113, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 10%, rgba(240, 207, 116, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 244, 235, 0.9));
  box-shadow: 0 16px 44px rgba(39, 20, 50, 0.07);
}

.page-title::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(var(--gold-400), var(--purple-700));
}

.page-title h1 {
  max-width: 920px;
  margin-bottom: 8px;
  font-size: clamp(2rem, 3vw, 2.75rem);
  letter-spacing: -0.035em;
}

.page-title p:not(.eyebrow) {
  max-width: 850px;
  line-height: 1.6;
}

.app-page .panel,
.report-card,
.app-page .metric-card {
  border-color: rgba(88, 33, 113, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(39, 20, 50, 0.07);
}

.app-page .panel {
  padding: clamp(20px, 2.5vw, 30px);
}

.app-page .panel:hover,
.report-card:hover {
  border-color: rgba(217, 173, 79, 0.34);
  box-shadow: 0 18px 46px rgba(39, 20, 50, 0.1);
}

.panel-heading {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(88, 33, 113, 0.09);
}

.panel-heading h2,
.app-page .panel h2 {
  color: var(--purple-950);
  letter-spacing: -0.025em;
}

.app-page .dashboard-grid {
  gap: 20px;
  align-items: start;
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.compact-form > .button,
.compact-form > .report-secondary,
.compact-form > p,
.compact-form > .muted-text {
  width: fit-content;
}

.app-page label {
  color: #44384d;
  font-size: 0.86rem;
  font-weight: 750;
}

.app-page input,
.app-page select,
.app-page textarea {
  min-height: 44px;
  border-color: rgba(88, 33, 113, 0.16);
  border-radius: 10px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.app-page input:focus,
.app-page select:focus,
.app-page textarea:focus {
  border-color: var(--purple-700);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(88, 33, 113, 0.09);
  outline: none;
}

.table-wrap {
  border: 1px solid rgba(88, 33, 113, 0.1);
  border-radius: 12px;
  background: #fff;
}

.app-page table {
  border-collapse: separate;
  border-spacing: 0;
}

.app-page th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 13px 14px;
  color: #4b315b;
  background: #f7f2f8;
  font-size: 0.75rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.app-page td {
  padding: 14px;
  border-color: rgba(88, 33, 113, 0.08);
  line-height: 1.45;
}

.app-page tbody tr:nth-child(even) td {
  background: rgba(249, 246, 250, 0.7);
}

.app-page tbody tr:hover td {
  background: rgba(240, 207, 116, 0.12);
}

.availability-item,
.lesson-item,
.plan-card,
.slot-card,
.material-card,
.payment-summary-card {
  border-radius: 12px;
  border-color: rgba(88, 33, 113, 0.12);
  background: linear-gradient(145deg, #fff, #fcfaf6);
  box-shadow: 0 8px 24px rgba(39, 20, 50, 0.05);
}

.plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.button,
.table-actions a,
.table-actions button {
  border-radius: 10px;
}

@media (max-width: 1100px) and (min-width: 861px) {
  .app-page {
    grid-template-columns: 218px minmax(0, 1fr);
  }

  .compact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .compact-form {
    grid-template-columns: 1fr;
  }

  .page-title {
    padding: 22px 20px;
    border-radius: 14px;
  }

  .app-page .panel {
    padding: 18px;
  }
}

/* Prioridade final do padrão compacto COIIT */
.page-title {
  min-height: 118px;
  padding: 22px 26px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(23, 10, 36, 0.98), rgba(58, 24, 81, 0.94) 68%, rgba(217, 173, 79, 0.78));
  box-shadow: 0 12px 30px rgba(23, 10, 36, 0.14);
}

.page-title h1 {
  color: #fff;
  font-size: clamp(1.75rem, 2.4vw, 2.3rem);
}

.page-title p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.app-page .panel,
.report-card,
.app-page .metric-card {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(36, 18, 47, 0.06);
}

.app-page .panel {
  padding: 22px;
}

.app-page input,
.app-page select,
.app-page textarea {
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 8px;
}

.app-page .button {
  min-height: 40px;
  border-radius: 8px;
}

.app-page th {
  padding: 10px 12px;
  color: #fff;
  background: var(--purple-900);
  border-bottom: 2px solid var(--gold-500);
}

.app-page td {
  padding: 10px 12px;
}
