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

:root {
  --bg: #F8FAFC;
  --surface: #ffffff;
  --text: #334155;
  --muted: #64748b;
  --accent: #2c5282;
  --accent-hover: #2a4e7c;
  --secondary: #4a7ba7;
  --warning: #f6ad55;
  --error: #e53e3e;
  --success: #48bb78;
  --primary-green: #88B04B;
  --border-light: #cbd5e1;
  --gradient-start: #4A7C59;
  --gradient-end: #5E81AC;
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --max-width: 72ch;
}

/* Dark mode theme */
[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-hover: #3b82f6;
  --secondary: #4a7ba7;
  --warning: #fbbf24;
  --error: #f87171;
  --success: #4ade80;
  --primary-green: #88B04B;
  --border-light: #475569;
  --gradient-start: #1e3a5f;
  --gradient-end: #2d4a6f;
  --input-bg: #334155;
  --input-border: #64748b;
  --card-bg: #1e293b;
  --shadow: rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Nunito", "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--accent-hover);
  overflow-x: hidden;
}

.site-header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
  max-width: min(100% - 2rem, 90rem);
  min-width: 0;
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  justify-self: start;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  justify-self: center;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9375rem;
  white-space: nowrap;
}

.nav a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.nav a:hover {
  color: white;
}

.nav--simple {
  justify-content: flex-end;
}

.nav-back {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 0.9375rem;
}

.nav-back:hover {
  color: white;
}

#nav-auth {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-shrink: 0;
}

#nav-auth > div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-auth-logged {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-auth-guest {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.nav-auth-guest .btn,
.nav-auth-logged .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.nav-user-email {
  font-size: 0.75rem;
  color: white;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-green);
  color: white;
  box-shadow: 0 4px 12px rgba(136, 176, 75, 0.3);
  transform: translateY(0);
  border-radius: 50px;
}

.btn-primary:hover {
  background: var(--primary-green);
  color: white;
  box-shadow: 0 6px 20px rgba(136, 176, 75, 0.4);
  transform: translateY(-2px);
  opacity: 0.9;
}

[data-theme="dark"] .btn-primary {
  background: #2c5282;
  color: white;
  box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
  background: #3b82f6;
  box-shadow: 0 6px 20px rgba(44, 82, 130, 0.4);
}

.btn-ghost {
  background: transparent;
  color: #2c5282;
  border: 1px solid #2c5282;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-ghost:hover {
  color: white;
  border-color: #2c5282;
  background: #2c5282;
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
  padding-block: 0.65rem;
}

.page-auth .auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.auth-card {
  width: min(100%, 22rem);
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: 12px;
}

.auth-card--wide {
  width: min(100%, 24rem);
}

.auth-title {
  font-size: 1.375rem;
  margin: 0 0 0.35rem;
}

.auth-sub {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.auth-notice {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  color: #81c995;
  background: color-mix(in srgb, #81c995 12%, transparent);
  border-radius: 8px;
}

.auth-form .field {
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: color-mix(in srgb, var(--text) 90%, transparent);
}

.auth-form input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 8px;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}

.form-error {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #f28b82;
}

.auth-hint {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.auth-switch {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  text-align: center;
  color: var(--muted);
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
}

.auth-switch a:hover {
  color: var(--accent-hover);
}

main {
  flex: 1;
  padding-block: 3rem 3.5rem;
}

.hero {
  padding-bottom: 3rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  max-width: none;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0;
}

.hero .lead {
  max-width: 25rem;
  font-size: 1.1875rem;
  line-height: 1.65;
}

.auth-welcome {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--accent);
}

section p {
  margin: 0;
  color: var(--text);
}

.container--wide {
  --max-width: 56rem;
}

.section-sobre {
  padding-block: 3rem 3.5rem;
  border-top: 1px solid var(--border-light);
  background: transparent;
}

.section-sobre__head {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.section-sobre__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-sobre .section-sobre__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.section-sobre__intro {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--text) 82%, transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.about-card__icon {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 1rem;
  color: var(--accent);
}
.about-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.about-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

@media (max-width: 640px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.about-split__title {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.about-split__text p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
}

.about-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about-checklist li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.about-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 2rem;
  background: var(--surface);
  border: 0.8px solid var(--text);
  border-radius: 12px;
}

.about-cta__text {
  margin: 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--text) 90%, transparent);
}

.page-comece {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.comece-main {
  flex: 1;
  padding-block: 3rem 3.5rem;
}

.comece-hero {
  margin-bottom: 3rem;
  max-width: 40rem;
}

.comece-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
}

.comece-hero__lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--text) 82%, transparent);
}

.comece-steps {
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comece-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 12px;
}

.comece-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 10px;
}

.comece-step__title {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.comece-step__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--text) 88%, transparent);
}

.comece-step__action {
  margin-top: 1rem;
}

.comece-panel {
  padding: 1.5rem 1.65rem;
  margin-bottom: 2rem;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 12px;
}

.comece-panel__text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--text) 90%, transparent);
}

.comece-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.comece-back {
  margin: 0;
}

.nav a[aria-current="page"] {
  color: var(--accent-hover);
  font-weight: 600;
}

.formulario-entry {
  margin-top: 1.25rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 48rem);
  max-height: min(95vh, 800px);
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  margin-top: 0.5rem;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(74, 111, 165, 0.15);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  background: rgba(119, 119, 119, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal__close:hover {
  color: white;
  background: var(--error);
  transform: scale(1.1);
}

.modal__title {
  margin: 0 2rem 0.75rem 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.modal__hint {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
}

.modal-form__field {
  margin-bottom: 1.5rem;
}

.modal-form__field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.modal-form textarea,
.modal-form select {
  width: 100%;
  padding: 1rem 1.25rem;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 12px;
  resize: vertical;
  transition: all 0.2s ease;
}

.modal-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234a6fa5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.5rem;
  appearance: none;
}

.modal-form textarea:focus,
.modal-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.2);
  transform: translateY(-1px);
}

.modal-form__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(74, 111, 165, 0.2);
}

.modal-form__msg {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
}

.modal-form__msg--ok {
  color: var(--success);
  font-weight: 600;
  background: rgba(105, 219, 124, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--success);
}

.modal-form__msg--err {
  color: var(--error);
  font-weight: 600;
  background: rgba(234, 67, 53, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--error);
}

.modal-prompt-wrap {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(74, 111, 165, 0.2);
}

.modal-prompt-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
}

.modal-prompt-hint {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}

.modal-prompt-readonly {
  position: relative;
  border-radius: 12px;
  border: 2px solid rgba(74, 111, 165, 0.3);
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.05), rgba(61, 90, 140, 0.02));
  cursor: default;
}

.modal-prompt-readonly:focus-within {
  outline: none;
}

.modal-prompt-text {
  margin: 0;
  padding: 1rem 1.25rem;
  max-height: 16rem;
  min-height: 5rem;
  overflow: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font-family: "Nunito", "Segoe UI", Roboto, sans-serif;
  background: transparent;
  border: none;
  resize: none;
  user-select: text;
  pointer-events: auto;
}

.modal-prompt-text--placeholder {
  font-family: "Nunito", "Segoe UI", Roboto, sans-serif;
  font-style: italic;
  color: var(--muted);
  font-weight: 500;
}

.site-footer {
  margin-top: auto;
  padding-block: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

/* Profile Page Styles */
.profile-main {
  flex: 1;
  padding-block: 3rem 3.5rem;
}

.profile-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--shadow);
  overflow: hidden;
}

.avatar-section {
  text-align: center;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  position: relative;
}

.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 3px solid white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.avatar-circle i {
  font-size: 3rem;
  color: white;
}

.btn-change-avatar {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 123, 167, 0.3);
}

.btn-change-avatar:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 123, 167, 0.4);
}

.profile-form {
  padding: 2.5rem 3rem 3rem;
}

.form-section {
  margin-bottom: 2.5rem;
}

.form-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section h2 i {
  color: var(--accent);
  font-size: 1.125rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-group label i {
  color: var(--accent);
  width: 20px;
  text-align: center;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(44, 82, 130, 0.2);
  transform: translateY(-1px);
}

.form-group input[readonly] {
  background: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
  border-color: var(--border-light);
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.theme-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  z-index: 1;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border-light);
  transition: 0.4s;
  border-radius: 30px;
  border: 2px solid var(--border-light);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}

input:checked + .toggle-slider:before {
  transform: translateX(30px);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.form-actions .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dark Theme Styles */
[data-theme="dark"] {
  --bg: #1a1f2e;
  --surface: #2d3748;
  --text: #e2e8f0;
  --muted: #a0aec0;
  --border-light: #4a5568;
}

[data-theme="dark"] .rotina-header {
  background: linear-gradient(135deg, #2c5282, #1e3a5f);
  border-color: #1e3a5f;
}

[data-theme="dark"] .site-header {
  background: linear-gradient(135deg, #2c5282, #1e3a5f);
  border-bottom-color: #1e3a5f;
}

[data-theme="dark"] .profile-card {
  background: var(--surface);
  border-color: var(--border-light);
}

[data-theme="dark"] .avatar-section {
  background: linear-gradient(135deg, #2c5282, #1e3a5f);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-light);
}

[data-theme="dark"] .toggle-slider {
  background: var(--border-light);
  border-color: var(--border-light);
}

/* Minha Rotina Page Styles */
.page-rotina {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.rotina-main {
  flex: 1;
  padding-block: 2rem 4rem;
  background: var(--bg);
}

/* Header Section */
.rotina-header {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 16px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.rotina-header__content {
  flex: 1;
}

.rotina-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.rotina-title__greeting {
  display: block;
  font-weight: 400;
  opacity: 0.9;
  font-size: 0.85em;
}

.rotina-title__name {
  display: block;
}

.rotina-subtitle {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
  max-width: 400px;
  line-height: 1.6;
}

.rotina-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rotina-actions .btn {
  white-space: nowrap;
}

/* Loading State */
.rotina-loading {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.rotina-loading__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

/* Empty State */
.rotina-empty {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.rotina-empty__icon {
  width: 80px;
  height: 80px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.rotina-empty__icon i {
  font-size: 2rem;
  color: var(--accent);
}

.rotina-empty h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.rotina-empty p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Overview Card */
.rotina-overview {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rotina-overview__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f6ad55, #ed8936);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rotina-overview__icon i {
  color: white;
  font-size: 1.25rem;
}

.rotina-overview__text {
  flex: 1;
}

.rotina-overview__text p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

/* Timeline Sections */
.rotina-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.rotina-section {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rotina-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.rotina-section__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.rotina-section__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotina-section--manha .rotina-section__icon {
  background: linear-gradient(135deg, #f6ad55, #ed8936);
}

.rotina-section--tarde .rotina-section__icon {
  background: linear-gradient(135deg, #4a7ba7, #2c5282);
}

.rotina-section--noite .rotina-section__icon {
  background: linear-gradient(135deg, #805ad5, #6b46c1);
}

.rotina-section__icon i {
  color: white;
  font-size: 1.125rem;
}

.rotina-section__title {
  flex: 1;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.rotina-section__time {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

/* Activity Cards */
.rotina-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.rotina-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.rotina-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.rotina-card__icon {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rotina-card__icon i {
  color: var(--accent);
  font-size: 1rem;
}

.rotina-card__content {
  flex: 1;
}

.rotina-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.rotina-card__duration {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(44, 82, 130, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.rotina-card__description {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Tips Section */
.rotina-tips {
  background: linear-gradient(135deg, #88B04B15, #88B04B10);
  border: 1px solid var(--primary-green);
  border-radius: 12px;
  padding: 1.5rem 2rem;
}

.rotina-tips__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rotina-tips__title i {
  color: var(--primary-green);
}

.rotina-tips__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.75rem;
}

.rotina-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

.rotina-tip i {
  color: var(--primary-green);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .rotina-card__duration {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

[data-theme="dark"] .rotina-tips {
  background: linear-gradient(135deg, #88B04B20, #88B04B15);
}

/* Responsive */
@media (max-width: 768px) {
  .rotina-header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .rotina-header__content {
    text-align: center;
  }
  
  .rotina-subtitle {
    max-width: none;
  }
  
  .rotina-actions {
    width: 100%;
  }
  
  .rotina-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .rotina-section {
    padding: 1.25rem 1.5rem;
  }
  
  .rotina-cards {
    grid-template-columns: 1fr;
  }
  
  .rotina-overview {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}

.modal-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-copy--success {
  background: var(--success) !important;
  border-color: var(--success) !important;
  color: white !important;
}

[data-theme="dark"] .btn-copy {
  background: var(--surface);
  border-color: var(--border-light);
  color: var(--text);
}

[data-theme="dark"] .btn-copy:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Notification Styles */
.notification {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 0.9375rem;
  max-width: 300px;
}

.notification--success {
  background: var(--success) !important;
}

.notification--error {
  background: var(--error) !important;
}

.notification--info {
  background: var(--accent) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-card {
    margin: 0 1rem;
  }
  
  .avatar-section {
    padding: 2rem 1rem 1.5rem;
  }
  
  .profile-form {
    padding: 2rem 1.5rem 2rem;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-actions .btn {
    justify-content: center;
  }
}

/* Duolingo-style animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Form field hover effects */
.modal-form textarea:hover,
.modal-form select:hover {
  border-color: rgba(74, 111, 165, 0.3);
  transform: translateY(-1px);
}

/* Button ripple effect */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Success animation */
.modal-form__msg--ok {
  animation: bounce 0.5s ease;
}

/* Focus animations */
.modal-form textarea:focus,
.modal-form select:focus {
  animation: pulse 0.3s ease;
}

/* Modal entrance animation */
.modal__dialog {
  animation: slideUp 0.3s ease;
}

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

/* Fix mobile spacing - occupy full width on small screens */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding-inline: 1rem;
  }
  
  .site-header .container {
    width: 100%;
    padding-inline: 1rem;
    gap: 0.5rem;
  }
  
  .nav {
    gap: 0.5rem 0.75rem;
  }
  
  .nav-links {
    gap: 0.5rem 0.75rem;
  }
  
  .nav-links a {
    font-size: 0.8125rem;
  }
  
  #nav-auth {
    gap: 0.25rem;
  }
  
  .nav-auth-guest,
  .nav-auth-logged {
    gap: 0.25rem;
  }
  
  .nav-auth-guest .btn,
  .nav-auth-logged .btn {
    font-size: 0.8125rem;
    padding: 0.4rem 0.6rem;
  }
  
  .nav-user-email {
    font-size: 0.8125rem;
  }
  
  body {
    overflow-x: hidden;
  }
}

/* Small mobile (portrait) */
@media (max-width: 480px) {
  .site-header .container {
    padding-inline: 0.75rem;
    gap: 0.4rem;
  }
  
  .nav-links a {
    font-size: 0.75rem;
  }
  
  .nav-auth-guest .btn,
  .nav-auth-logged .btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
  }
  
  .logo {
    font-size: 1rem;
  }
}

/* Hamburger menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

/* Mobile menu panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  z-index: 999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .mobile-menu {
  background: var(--surface);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu.active {
  display: block;
}

/* Mobile menu header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu-header h2 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile menu content */
.mobile-menu-content {
  padding: 1rem;
}

.mobile-menu-section .btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
  border-color: #000;
  background: var(--surface);
}

.mobile-menu-section .btn-primary {
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
}

[data-theme="dark"] .mobile-menu-section .btn {
  background: var(--surface);
  border-color: var(--border-light);
  color: var(--text);
}

[data-theme="dark"] .mobile-menu-section .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.mobile-menu-section {
  margin-bottom: 1.5rem;
}

.mobile-menu-section h3 {
  font-size: 0.875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
}

.mobile-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-links li {
  margin-bottom: 0.5rem;
}

.mobile-menu-links a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease;
  font-weight: 500;
}

.mobile-menu-links a:hover {
  background: var(--bg);
}

/* Show hamburger menu on small screens */
@media (max-width: 767px) {
  .mobile-menu-btn {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 0.25rem;
  }
  
  .nav {
    display: none;
  }
  
  .site-header .container {
    grid-template-columns: auto 1fr;
    position: relative;
  }
  
  .logo {
    font-size: 1.5rem;
    justify-self: start;
    padding-left: 0.5rem;
  }
}

/* Intermediate screens (tablets, landscape mobile) - fix header layout */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-header .container {
    max-width: min(100% - 1.5rem, 80rem);
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1025px) and (max-width: 1439px) {
  .site-header .container {
    max-width: min(100% - 2rem, 85rem);
    padding-inline: 2rem;
  }
}

/* Large screens - improve layout on widescreen and 4K monitors */
@media (min-width: 1440px) {
  :root {
    --max-width: 90ch;
  }
  
  .container {
    padding-inline: 2rem;
  }
  
  .site-header .container {
    padding-inline: 2rem;
  }
}

@media (min-width: 1920px) {
  :root {
    --max-width: 100ch;
  }
  
  .container {
    padding-inline: 3rem;
  }
  
  .site-header .container {
    padding-inline: 3rem;
  }
}

/* ============================================
   TOAST NOTIFICATION SYSTEM
   ============================================ */

#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(400px, 90vw);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--accent);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  min-width: 300px;
}

.toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.toast--hiding {
  transform: translateX(120%);
  opacity: 0;
}

.toast--success {
  border-left-color: var(--success);
}

.toast--error {
  border-left-color: var(--error);
}

.toast--warning {
  border-left-color: var(--warning);
}

.toast--info {
  border-left-color: var(--accent);
}

.toast__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.toast--success .toast__icon {
  color: var(--success);
}

.toast--error .toast__icon {
  color: var(--error);
}

.toast--warning .toast__icon {
  color: var(--warning);
}

.toast--info .toast__icon {
  color: var(--accent);
}

.toast__content {
  flex: 1;
  min-width: 0;
}

.toast__message {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  word-wrap: break-word;
}

.toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast__close:hover {
  color: var(--text);
  background: var(--bg);
}

/* Dark mode toast adjustments */
[data-theme="dark"] .toast {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .toast__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  #toast-container {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
  }
}

/* ============================================
   PAGE LOADING OVERLAY
   ============================================ */

.page-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-loading__spinner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.page-loading__spinner p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spinner-rotate 1s linear infinite;
}

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

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2s;
  }
  
  .skeleton {
    animation: none;
    background: var(--skeleton-base, #e2e8f0);
  }
  
  .toast {
    transition: none;
  }
}

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

.dashboard {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px var(--shadow);
}

.dashboard-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.dashboard-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.dashboard-title i {
  color: var(--accent);
}

.dashboard-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dashboard-card--streak .dashboard-card__icon {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.dashboard-card--streak.has-streak .dashboard-card__icon {
  animation: pulse 2s infinite;
}

.dashboard-card--activities .dashboard-card__icon {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.dashboard-card--achievements .dashboard-card__icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.dashboard-card__content {
  flex: 1;
}

.dashboard-card__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.dashboard-card__label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.dashboard-card__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.dashboard-card__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border-light);
}

.dashboard-card__progress::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
  transition: width 0.5s ease;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Dashboard Sections */
.dashboard-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.dashboard-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}

.dashboard-section__title i {
  color: var(--accent);
}

/* Weekly Chart */
.weekly-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  height: 120px;
  padding: 0.5rem 0;
}

.weekly-chart__day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.weekly-chart__bar {
  width: 100%;
  max-width: 40px;
  height: var(--height, 0%);
  min-height: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height 0.5s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}

.weekly-chart__day.has-activity .weekly-chart__bar {
  background: linear-gradient(180deg, #10b981, #059669);
}

.weekly-chart__value {
  font-size: 0.625rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.weekly-chart__label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}

/* Achievements */
.achievements-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.achievement-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #92400e;
  transition: transform 0.2s ease;
}

.achievement-badge:hover {
  transform: scale(1.05);
}

.achievement-badge__icon {
  font-size: 1.25rem;
}

/* Mood Selector */
.mood-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mood-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 70px;
}

.mood-option:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.mood-option.selected {
  border-color: var(--success);
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.mood-option__icon {
  font-size: 1.5rem;
}

.mood-option__label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

.mood-option.selected .mood-option__label {
  color: var(--success);
}

/* Dashboard Link */
.dashboard-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.dashboard-link:hover {
  text-decoration: underline;
}

/* Dashboard Loading State */
.dashboard-loading {
  padding: 1rem;
}

/* Responsive Dashboard */
@media (max-width: 640px) {
  .dashboard {
    padding: 1rem;
  }

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

  .dashboard-card {
    padding: 1rem;
  }

  .dashboard-card__value {
    font-size: 1.5rem;
  }

  .weekly-chart {
    height: 100px;
  }

  .weekly-chart__bar {
    max-width: 30px;
  }

  .mood-option {
    min-width: 60px;
    padding: 0.5rem;
  }

  .mood-option__icon {
    font-size: 1.25rem;
  }

  .mood-option__label {
    font-size: 0.5rem;
  }
}

/* Activity Card Complete Button */
.rotina-card {
  position: relative;
}

.rotina-card__complete-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.rotina-card__complete-btn:hover {
  opacity: 1;
  border-color: var(--success);
  color: var(--success);
  transform: scale(1.1);
}

.rotina-card__complete-btn.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
  opacity: 1;
}

.rotina-card__complete-btn.completed:hover {
  background: var(--error);
  border-color: var(--error);
}

.rotina-card.completed {
  opacity: 0.7;
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(72, 187, 120, 0.05));
  border-color: var(--success);
}

.rotina-card.completed .rotina-card__title {
  text-decoration: line-through;
  color: var(--success);
}

/* Activity completion animation */
@keyframes complete-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.rotina-card__complete-btn.completing {
  animation: complete-pop 0.3s ease;
}

/* Dark mode adjustments */
[data-theme="dark"] .dashboard {
  background: var(--card-bg);
}

[data-theme="dark"] .dashboard-card {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .achievement-badge {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.2), rgba(253, 230, 138, 0.2));
  color: #fcd34d;
}

[data-theme="dark"] .rotina-card.completed {
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.15), rgba(72, 187, 120, 0.1));
}

/* ============================================
   ALIVIE REIMAGINED - New Styles
   ============================================ */

@import url('styles-new.css');

/* ============================================
   ALIVIE REIMAGINED - New Styles
   ============================================ */

/* ============================================
   1. LANDING PAGE
   ============================================ */

.landing-page {
  min-height: 100vh;
  background: linear-gradient(180deg, 
    rgba(74, 144, 226, 0.05) 0%, 
    rgba(255, 255, 255, 1) 50%,
    rgba(123, 104, 238, 0.05) 100%);
}

.simple-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.simple-header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent, #4A90E2);
  text-decoration: none;
}

.simple-nav {
  display: flex;
  gap: 0.5rem;
}

.simple-nav .btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.landing-main {
  padding-top: 80px;
}

/* Hero Section */
.hero-new {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #4A90E2, #7B68EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary, #666);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: 50px;
  min-width: 250px;
}

/* Garden Preview */
.garden-preview {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.garden-scene {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, #e8f4f8 0%, #f5ebe0 100%);
  border-radius: 15px;
  overflow: hidden;
}

.garden-element {
  position: absolute;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

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

.stone {
  width: 30px;
  height: 24px;
  background: linear-gradient(135deg, #8B7355, #A0826D);
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stone-1 { left: 20%; top: 60%; }
.stone-2 { left: 35%; top: 70%; width: 25px; height: 20px; }
.stone-3 { left: 70%; top: 65%; width: 35px; height: 28px; }

.flower {
  width: 30px;
  height: 30px;
}

.flower-1 { left: 50%; top: 50%; }
.flower-2 { left: 75%; top: 40%; }

.flower::before {
  content: '🌸';
  font-size: 24px;
  position: absolute;
  animation: sway 3s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.tree {
  left: 10%;
  top: 30%;
  font-size: 40px;
}

.tree::before {
  content: '🌳';
}

.lantern {
  left: 85%;
  top: 55%;
  font-size: 20px;
}

.lantern::before {
  content: '🏮';
}

.garden-caption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary, #666);
  font-style: italic;
}

/* How It Works */
.how-it-works {
  padding: 4rem 2rem;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--text-primary, #333);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(123, 104, 238, 0.05));
  border-radius: 20px;
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--accent, #4A90E2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #333);
}

.step p {
  color: var(--text-secondary, #666);
  font-size: 0.9rem;
}

/* Features Section */
.features-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.03), rgba(123, 104, 238, 0.03));
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  padding: 2rem;
}

.feature i {
  font-size: 2.5rem;
  color: var(--accent, #4A90E2);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #333);
}

.feature p {
  color: var(--text-secondary, #666);
  font-size: 0.9rem;
}

.simple-footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary, #666);
}

/* ============================================
   2. VIBE PICKER
   ============================================ */

.practice-page {
  min-height: 100vh;
  background: linear-gradient(180deg, 
    rgba(74, 144, 226, 0.05) 0%, 
    rgba(255, 255, 255, 1) 100%);
}

.vibe-picker {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.vibe-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #333);
}

.vibe-subtitle {
  color: var(--text-secondary, #666);
  margin-bottom: 2rem;
}

.vibe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 500px) {
  .vibe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vibe-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  border: 2px solid transparent;
  border-radius: 20px;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.vibe-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.vibe-calm { border-color: #4A90E2; }
.vibe-calm:hover { background: rgba(74, 144, 226, 0.1); }

.vibe-rest { border-color: #7B68EE; }
.vibe-rest:hover { background: rgba(123, 104, 238, 0.1); }

.vibe-energy { border-color: #F5A623; }
.vibe-energy:hover { background: rgba(245, 166, 35, 0.1); }

.vibe-focus { border-color: #50C878; }
.vibe-focus:hover { background: rgba(80, 200, 120, 0.1); }

.vibe-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.vibe-label {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary, #333);
  margin-bottom: 0.25rem;
}

.vibe-desc {
  font-size: 0.75rem;
  color: var(--text-secondary, #666);
}

.vibe-surprise {
  margin-top: 1rem;
}

/* ============================================
   3. PRACTICE SELECTION
   ============================================ */

.practice-selection {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  background: none;
  border: none;
  color: var(--text-secondary, #666);
  cursor: pointer;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--text-primary, #333);
}

.practice-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.practice-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.practice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.practice-card__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.practice-card__content {
  flex: 1;
  text-align: left;
}

.practice-card__title {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary, #333);
}

.practice-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary, #666);
  margin-bottom: 0.5rem;
}

.practice-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
}

.practice-card__duration {
  color: var(--accent, #4A90E2);
  font-weight: 500;
}

.practice-card__effect {
  color: var(--text-secondary, #666);
}

.practice-card__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   4. PRACTICE PLAYER
   ============================================ */

.practice-player {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.player-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

/* Timer Circle */
.timer-container {
  position: relative;
  width: 200px;
  height: 200px;
}

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

.timer-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.1);
  stroke-width: 4;
}

.timer-progress {
  fill: none;
  stroke: var(--accent, #4A90E2);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

#timer-display {
  display: block;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-primary, #333);
}

.timer-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary, #666);
  margin-top: 0.25rem;
}

/* Step Card */
.step-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-primary, #333);
}

.step-card.fade-in {
  animation: fadeIn 0.5s ease;
}

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

/* Controls */
.player-controls {
  display: flex;
  gap: 1rem;
}

.btn-control {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary, #666);
  background: white;
  color: var(--text-secondary, #666);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.btn-control:hover {
  border-color: var(--accent, #4A90E2);
  color: var(--accent, #4A90E2);
}

.btn-stop {
  border-color: #E53E3E;
  color: #E53E3E;
}

.btn-stop:hover {
  background: #E53E3E;
  color: white;
}

.btn-control.muted {
  opacity: 0.5;
}

/* Step Dots */
.step-dots {
  display: flex;
  gap: 0.5rem;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.step-dot.active {
  background: var(--accent, #4A90E2);
  transform: scale(1.3);
}

.step-dot.completed {
  background: var(--success, #48BB78);
}

/* ============================================
   5. CHECK-IN
   ============================================ */

.practice-checkin {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.practice-checkin h2 {
  margin-bottom: 2rem;
  color: var(--text-primary, #333);
}

.mood-slider {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mood-btn {
  font-size: 2.5rem;
  background: none;
  border: 3px solid transparent;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  cursor: pointer;
  transition: all 0.2s;
  filter: grayscale(0.3);
}

.mood-btn:hover {
  transform: scale(1.1);
  filter: grayscale(0);
}

.mood-btn.selected {
  border-color: var(--accent, #4A90E2);
  filter: grayscale(0);
  transform: scale(1.15);
}

.note-input {
  margin-bottom: 2rem;
}

.note-input input {
  width: 100%;
  max-width: 400px;
  padding: 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 1rem;
  text-align: center;
}

.note-input input:focus {
  outline: none;
  border-color: var(--accent, #4A90E2);
}

/* Celebration */
.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
}

.celebration-content {
  text-align: center;
  z-index: 2;
}

.celebration-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary, #333);
}

.celebration-detail {
  font-size: 1.25rem;
  margin: 0.5rem 0;
  color: var(--text-secondary, #666);
}

.celebration-hint {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary, #666);
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================
   6. GARDEN PAGE
   ============================================ */

.garden-page {
  min-height: 100vh;
  background: linear-gradient(180deg, 
    #f8f9fa 0%, 
    #e9ecef 50%,
    #dee2e6 100%);
}

.garden-main {
  padding: 2rem;
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
}

/* Streak Banner */
.streak-banner {
  background: linear-gradient(135deg, #F5A623, #E8833A);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.streak-banner.active {
  opacity: 1;
  animation: pulse-streak 2s ease-in-out infinite;
}

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

.streak-icon {
  font-size: 1.5rem;
}

.streak-text {
  font-size: 1.125rem;
}

.streak-longest {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Garden Scene */
.garden-scene-container {
  background: white;
  border-radius: 25px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.garden-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary, #333);
}

.garden-sandbox {
  position: relative;
  width: 100%;
  height: 300px;
  background: linear-gradient(180deg, #e8f4f8 0%, #f5ebe0 50%, #e8dcc8 100%);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.garden-sandbox.has-elements {
  background: linear-gradient(180deg, #87CEEB 0%, #B8E6B8 60%, #D2B48C 100%);
}

.garden-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, #D2B48C 0%, #C19A6B 100%);
  border-radius: 0 0 20px 20px;
}

.garden-rake-pattern {
  position: absolute;
  bottom: 5%;
  left: 10%;
  right: 10%;
  height: 20px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.3) 10px,
    rgba(255,255,255,0.3) 12px
  );
}

/* Garden Elements */
.garden-stone {
  position: absolute;
  border-radius: 50% 50% 45% 45%;
  box-shadow: 
    0 3px 6px rgba(0,0,0,0.2),
    inset -2px -2px 4px rgba(0,0,0,0.1),
    inset 2px 2px 4px rgba(255,255,255,0.3);
  animation: pop-in 0.5s ease;
}

@keyframes pop-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  80% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.garden-flower {
  position: absolute;
  animation: pop-in 0.5s ease;
}

.garden-tree {
  position: absolute;
  font-size: 50px;
  animation: pop-in 0.5s ease;
}

.garden-lantern {
  position: absolute;
  font-size: 25px;
  animation: pop-in 0.5s ease;
  filter: drop-shadow(0 0 10px rgba(255, 200, 100, 0.6));
}

.garden-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
}

.garden-hint {
  font-size: 0.875rem;
  margin: 0.5rem 0 1rem;
}

/* Garden Stats */
.garden-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 15px;
}

.stat-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary, #333);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary, #666);
}

/* Calendar Section */
.calendar-section {
  background: white;
  border-radius: 25px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.calendar-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary, #333);
}

.streak-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary, #666);
  transition: all 0.2s;
}

.calendar-day.has-practice {
  background: var(--day-color, var(--accent, #4A90E2));
  color: white;
}

.calendar-day.today {
  border: 2px solid var(--text-primary, #333);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  font-size: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-dot.calm { background: #4A90E2; }
.legend-dot.rest { background: #7B68EE; }
.legend-dot.energy { background: #F5A623; }
.legend-dot.focus { background: #50C878; }

/* History Section */
.history-section {
  background: white;
  border-radius: 25px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.history-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary, #333);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 15px;
}

.history-icon {
  font-size: 1.5rem;
}

.history-info {
  flex: 1;
}

.history-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary, #333);
}

.history-date {
  font-size: 0.75rem;
  color: var(--text-secondary, #666);
}

.history-note {
  font-size: 0.8rem;
  color: var(--text-secondary, #666);
  font-style: italic;
  margin-top: 0.25rem;
}

.history-mood {
  font-size: 1.25rem;
}

.history-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary, #666);
}

/* Garden CTA */
.garden-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================
   7. DARK MODE SUPPORT
   ============================================ */

[data-theme="dark"] .landing-page {
  background: linear-gradient(180deg, 
    rgba(74, 144, 226, 0.1) 0%, 
    var(--bg-primary, #1a202c) 50%,
    rgba(123, 104, 238, 0.1) 100%);
}

[data-theme="dark"] .simple-header {
  background: rgba(26, 32, 44, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .garden-preview,
[data-theme="dark"] .step-card,
[data-theme="dark"] .practice-card,
[data-theme="dark"] .garden-scene-container,
[data-theme="dark"] .calendar-section,
[data-theme="dark"] .history-section {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

[data-theme="dark"] .step,
[data-theme="dark"] .feature {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .timer-bg {
  stroke: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .step-dot {
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .note-input input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

[data-theme="dark"] .vibe-btn {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

[data-theme="dark"] .btn-control {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

[data-theme="dark"] .celebration-overlay {
  background: rgba(26, 32, 44, 0.95);
}

/* ============================================
   8. RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 500px) {
  .vibe-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .vibe-btn {
    padding: 1rem 0.5rem;
  }
  
  .vibe-icon {
    font-size: 2rem;
  }
  
  .vibe-label {
    font-size: 1rem;
  }
  
  .vibe-desc {
    font-size: 0.7rem;
  }
  
  .garden-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-cta {
    width: 100%;
  }
  
  .btn-large {
    width: 100%;
    min-width: auto;
  }
  
  .practice-card {
    flex-direction: column;
    text-align: center;
  }
  
  .practice-card__content {
    text-align: center;
  }
  
  .mood-btn {
    width: 50px;
    height: 50px;
    font-size: 1.75rem;
  }
  
  .timer-container {
    width: 150px;
    height: 150px;
  }
  
  #timer-display {
    font-size: 2rem;
  }
}

/* ============================================
   REDIRECT PAGE STYLES
   ============================================ */

.redirect-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(123, 104, 238, 0.1));
}

.redirect-container {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  margin: 1rem;
}

.redirect-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.redirect-container h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-primary, #333);
}

.redirect-container p {
  color: var(--text-secondary, #666);
  margin-bottom: 1.5rem;
}

.redirect-loader {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(74, 144, 226, 0.2);
  border-top-color: #4A90E2;
  border-radius: 50%;
  margin: 1.5rem auto;
  animation: spin 1s linear infinite;
}

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

/* Simple Profile Card */
.simple-profile-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4A90E2, #7B68EE);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.5rem;
}

.simple-profile-card h1 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary, #333);
}

.simple-form .form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.simple-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary, #333);
}

.simple-form input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 1rem;
}

.simple-form input:focus {
  outline: none;
  border-color: var(--accent, #4A90E2);
}

/* Mobile Menu Updates */
.mobile-menu-links a[href="./jardim.html"]::before {
  content: "?? ";
}

.mobile-menu-links a[href="./pratica.html"]::before {
  content: "?? ";
}

.mobile-menu-links a[href="./perfil.html"]::before {
  content: "?? ";
}
