:root {
  --bg: radial-gradient(circle at 20% 20%, #e9f1ff, #eef0ff 35%, #f8f9fb 70%);
  --bg-panel: rgba(255, 255, 255, 0.85);
  --border: rgba(255, 255, 255, 0.45);
  --primary: #6c5efb;
  --primary-dark: #4d3edb;
  --text: #101524;
  --text-light: rgba(16, 21, 36, 0.65);
  --success: #22c55e;
  --danger: #ef4444;
  --shadow-soft: 0 30px 60px rgba(60, 74, 123, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.required-asterisk {
  display: inline;
  margin-left: 0.2rem;
  color: #dc2626;
  font-weight: 700;
  white-space: nowrap;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}

html[data-theme='light'],
body[data-theme='light'] {
  color-scheme: light;
}

html[data-theme='dark'],
body[data-theme='dark'] {
  color-scheme: dark;
}

html[data-theme='dark'],
html[data-theme='dark'] body,
body[data-theme='dark'] {
  --bg: radial-gradient(circle at 20% 20%, #111827, #0f172a 40%, #020617 90%);
  --bg-panel: rgba(15, 23, 42, 0.82);
  --border: rgba(148, 163, 184, 0.24);
  --text: #e5e7eb;
  --text-light: rgba(203, 213, 225, 0.8);
  --shadow-soft: 0 30px 60px rgba(2, 6, 23, 0.55);
}

html[data-theme='dark'] .top-nav,
html[data-theme='dark'] .lang-dropdown__toggle,
html[data-theme='dark'] .lang-dropdown__menu,
html[data-theme='dark'] .profile-dropdown__toggle,
html[data-theme='dark'] .profile-dropdown__menu,
html[data-theme='dark'] .panel,
html[data-theme='dark'] .card,
html[data-theme='dark'] .modal-card,
html[data-theme='dark'] .cookie-banner {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--text);
}

html[data-theme='dark'] input,
html[data-theme='dark'] select,
html[data-theme='dark'] textarea {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.32);
  color: var(--text);
}

html[data-theme='dark'] input::placeholder,
html[data-theme='dark'] textarea::placeholder {
  color: rgba(203, 213, 225, 0.62);
}

html[data-theme='dark'] .profile-action-module {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(170deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92));
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.45);
}

html[data-theme='dark'] .profile-action-module__title {
  color: rgba(226, 232, 240, 0.95);
}

html[data-theme='dark'] .profile-action-module__desc {
  color: rgba(203, 213, 225, 0.84);
}

html[data-theme='dark'] .profile-action-link {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.78);
  color: rgba(226, 232, 240, 0.96);
}

html[data-theme='dark'] .profile-action-link:hover,
html[data-theme='dark'] .profile-action-link:focus-visible {
  border-color: rgba(129, 140, 248, 0.75);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.5);
}

html[data-theme='dark'] .profile-action-link__meta {
  color: rgba(191, 219, 254, 0.86);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 0.85rem;
  z-index: 1200;
  padding: 0.55rem 0.8rem;
  border-radius: 0.6rem;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.7rem;
}

:focus-visible {
  outline: 3px solid rgba(108, 94, 251, 0.45);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.lang-dropdown__option:focus-visible {
  box-shadow: 0 0 0 3px rgba(108, 94, 251, 0.2);
  border-color: rgba(108, 94, 251, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem clamp(1rem, 6vw, 5rem);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(48, 57, 90, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(16, 21, 36, 0.18);
}

.logo span {
  font-size: 0.9rem;
  line-height: 1.2;
  max-width: 220px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--text-light);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(108, 94, 251, 0.12);
  color: var(--text);
}

.nav-links a.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px rgba(108, 94, 251, 0.35);
}

body[data-page='home'] .nav-links a[data-nav='home'],
body[data-page='private'] .nav-links a[data-nav='private'],
body[data-page='catalog'] .nav-links a[data-nav='catalog'],
body[data-page='resources'] .nav-links a[data-nav='resources'],
body[data-page='contact'] .nav-links a[data-nav='contact'],
body[data-page='agenda'] .nav-links a[data-nav='agenda'],
body[data-page='register'] .nav-links a[data-nav='register'] {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 25px rgba(108, 94, 251, 0.35);
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 21, 36, 0.15);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.35rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 21, 36, 0.08);
  color: var(--text);
}

.lang-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(16, 21, 36, 0.08);
  box-shadow: 0 20px 40px rgba(16, 21, 36, 0.15);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.lang-dropdown.open .lang-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  background: transparent;
  padding: 0.45rem 0.6rem;
  border-radius: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.lang-dropdown__option span {
  color: var(--text);
}

.lang-dropdown__option.active,
.lang-dropdown__option:hover {
  background: rgba(108, 94, 251, 0.12);
  color: var(--text);
}

.lang-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.lang-chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

body[data-page] .lang-chevron {
  border-color: rgba(16, 21, 36, 0.8);
}

.lang-flag {
  width: 22px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(16, 21, 36, 0.15);
  display: inline-block;
  background-size: cover;
  background-position: center;
}

.lang-flag-es {
  background-image: linear-gradient(to bottom, #c60b1e 33%, #ffc400 33%, #ffc400 66%, #c60b1e 66%);
}

.lang-flag-ca {
  background-image: repeating-linear-gradient(
    to bottom,
    #f6d04d 0 18%,
    #d70c17 18% 36%
  );
}

.lang-flag-en {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCAzMCI+PHBhdGggZmlsbD0iIzAxMjE2OSIgZD0iTTAgMGg2MHYzMEgweiIvPjxwYXRoIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSI2IiBkPSJNMCAwbDYwIDMwTTYwIDBMMCAzMCIvPjxwYXRoIHN0cm9rZT0iI0M4MTAyRSIgc3Ryb2tlLXdpZHRoPSI0IiBkPSJNMCAwbDYwIDMwTTYwIDBMMCAzMCIvPjxwYXRoIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxMCIgZD0iTTMwIDB2MzBNMCAxNWg2MCIvPjxwYXRoIHN0cm9rZT0iI0M4MTAyRSIgc3Ryb2tlLXdpZHRoPSI2IiBkPSJNMzAgMHYzME0wIDE1aDYwIi8+PC9zdmc+");
  background-size: cover;
  background-position: center;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 3.5rem clamp(1rem, 6vw, 6rem) 2.5rem;
}

.hero__content ul {
  padding-left: 1.2rem;
  color: var(--text-light);
}

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

.hero__highlights article {
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.hero__summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.hero__summary-card {
  border-radius: 1.2rem;
  padding: 1.5rem;
  border: 1px solid rgba(16, 21, 36, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.hero__card {
  background: var(--bg-panel);
  border-radius: 1.35rem;
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.hero__card--inline {
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
}

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

input,
textarea,
select {
  padding: 0.8rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(16, 21, 36, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.phone-input-group {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 0.65rem;
  align-items: stretch;
}

.phone-input-group select,
.phone-input-group input {
  width: 100%;
}

.password-field {
  position: relative;
}

.password-field input[type='password'],
.password-field input[type='text'] {
  width: 100%;
  padding-right: 3rem;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border-radius: 0.6rem;
  border: 1px solid rgba(16, 21, 36, 0.14);
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.password-toggle-btn:hover {
  transform: translateY(-50%);
  box-shadow: none;
}

.password-toggle-btn.is-visible {
  border-color: rgba(16, 21, 36, 0.28);
}

textarea {
  resize: vertical;
}

button {
  border: none;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--primary), #8b78ff);
  color: white;
  font-weight: 600;
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 35px rgba(108, 94, 251, 0.38);
}

button.secondary {
  background: transparent;
  border: 1px solid rgba(16, 21, 36, 0.15);
  color: var(--text);
}

main {
  padding: 1rem clamp(1rem, 6vw, 6rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.panel {
  background: var(--bg-panel);
  border-radius: 1.6rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.panel--light {
  background: rgba(236, 238, 255, 0.8);
  box-shadow: none;
}

.panel--carousel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-top: 0;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

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

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.register-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3.75rem);
}

.register-panel::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -130px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 94, 251, 0.14), rgba(108, 94, 251, 0));
  pointer-events: none;
}

.register-hero {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.register-hero h1 {
  margin: 0.55rem 0 0.55rem;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1.2;
}

.register-hero .muted {
  max-width: 760px;
  font-size: 1rem;
}

.register-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.register-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.34rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2d3754;
}

.register-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 1.03fr) minmax(360px, 1fr);
  gap: clamp(1.2rem, 3.5vw, 2.7rem);
  align-items: start;
}

.register-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.register-info__card {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 1.35rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 255, 0.96));
  box-shadow: 0 16px 28px rgba(17, 25, 56, 0.08);
  padding: 1.15rem 1.2rem;
}

.register-info__card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
}

.register-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.register-benefits li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-light);
}

.register-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(140deg, #6c5efb, #8b78ff);
  box-shadow: 0 0 0 3px rgba(108, 94, 251, 0.16);
}

.register-info__item {
  display: flex;
  gap: 0.9rem;
  padding: 0.6rem 0;
}

.register-info__item + .register-info__item {
  border-top: 1px solid rgba(16, 21, 36, 0.08);
}

.register-info__step {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(145deg, #6c5efb, #8b78ff);
  box-shadow: 0 8px 18px rgba(108, 94, 251, 0.35);
}

.register-info__item h3 {
  margin: 0;
  font-size: 1rem;
}

.register-info__item p {
  margin: 0.35rem 0 0;
  color: var(--text-light);
  font-size: 0.93rem;
}

.register-privacy-note {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

.register-info__items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.register-info__items article {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(16, 21, 36, 0.1);
}

.register-info__items article:last-child {
  border-bottom: none;
}

.register-info__items span {
  font-size: 1.8rem;
}

.register-card {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 1.45rem;
  padding: clamp(1.15rem, 2.5vw, 1.7rem);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 36px rgba(17, 25, 56, 0.11);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.register-card__header h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.register-card__header .muted {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.register-card__social {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.register-card__social p {
  margin: 0;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(16, 21, 36, 0.18);
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(16, 21, 36, 0.08);
  font-size: 0.93rem;
}

.btn-google:hover {
  transform: none;
  box-shadow: 0 10px 24px rgba(16, 21, 36, 0.12);
}

.btn-google__icon {
  background: linear-gradient(160deg, #fff, #f5f7ff);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #ea4335;
  border: 1px solid rgba(16, 21, 36, 0.1);
}

.register-google-button {
  width: 100%;
  min-height: 44px;
}

.register-google-button > div {
  width: 100% !important;
}

.register-google-button iframe {
  margin: 0 auto;
}

.register-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.84rem;
}

.register-divider::before,
.register-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(16, 21, 36, 0.1);
}

.register-form input:not([type='checkbox']) {
  width: 100%;
}

.register-form label {
  margin-top: 0.2rem;
}

.register-form button[type='submit'] {
  margin-top: 0.35rem;
}

.password-meter {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(16, 21, 36, 0.08);
  overflow: hidden;
}

.password-meter__bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #f97316, #22c55e);
  transition: width 0.2s ease;
}

[data-password-label] {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  padding: 0.1rem 0;
}

.register-form .checkbox {
  width: 100%;
  margin: 0.25rem 0 0;
  justify-content: flex-start;
  text-align: left;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.checkbox span {
  color: var(--text);
  line-height: 1.4;
  max-width: none;
  flex: 1;
}

.checkbox input {
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.password-toggle-btn::before {
  content: '';
  display: block;
  width: 1rem;
  height: 0.62rem;
  border: 2px solid currentColor;
  border-radius: 0.8rem / 0.55rem;
  box-sizing: border-box;
}

.password-toggle-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.register-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(16, 21, 36, 0.08);
}

.register-card__footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.register-card__footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1060px) {
  .register-grid {
    grid-template-columns: 1fr;
  }
  .register-info {
    order: 2;
  }
  .register-card {
    order: 1;
  }
}

@media (max-width: 640px) {
  .register-panel {
    padding: 1.2rem;
  }
  .register-hero {
    margin-bottom: 1rem;
  }
  .register-info__card {
    padding: 1rem;
  }
  .register-card {
    padding: 1rem;
  }
}
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

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

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(108, 94, 251, 0.15);
  color: var(--primary-dark);
  font-size: 0.75rem;
  letter-spacing: 0.04rem;
  font-weight: 600;
}

.badge--secondary {
  background: rgba(16, 21, 36, 0.08);
  color: var(--text);
}

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

.list .student-card {
  border: 1px solid rgba(16, 21, 36, 0.08);
  border-radius: 1rem;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.inline-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-card {
  border: 1px solid rgba(16, 21, 36, 0.08);
  border-radius: 1rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.95);
}

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

.timeline__item {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.9rem;
  box-shadow: 0 18px 32px rgba(30, 34, 62, 0.08);
}

.timeline__item h4 {
  margin-bottom: 0.4rem;
}

.timeline__item small {
  color: var(--text-light);
}

.timeline__item button {
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid rgba(16, 21, 36, 0.15);
  color: var(--text);
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
}

.form-error {
  color: var(--danger);
  font-size: 0.9rem;
  min-height: 1.1rem;
}

.form-success {
  color: var(--success);
  font-size: 0.9rem;
  min-height: 1.1rem;
}

.contact-captcha {
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 0.85rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.85);
}

.contact-captcha p {
  margin: 0 0 0.45rem;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filters fieldset {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(108, 94, 251, 0.18);
  color: var(--primary-dark);
  font-size: 0.85rem;
}

.catalog-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 21, 36, 0.1);
  background:
    radial-gradient(circle at 10% 15%, rgba(15, 118, 110, 0.12), transparent 38%),
    radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(252, 254, 255, 0.96), rgba(246, 250, 255, 0.96));
}

.catalog-panel::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.18), rgba(15, 118, 110, 0));
  pointer-events: none;
}

.catalog-panel > * {
  position: relative;
  z-index: 1;
}

.catalog-trust-row {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.catalog-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f3f45;
  padding: 0.34rem 0.78rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.catalog-trust-row span::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e, #06b6d4);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 1.35rem;
  margin-top: 1.35rem;
  align-items: start;
}

.catalog-filter-card {
  position: sticky;
  top: 6.3rem;
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 32px rgba(16, 21, 36, 0.08);
  padding: 1rem;
}

.catalog-filter-card h2 {
  margin: 0;
  font-size: 1.08rem;
}

.catalog-filter-card .muted {
  margin-top: 0.35rem;
}

.catalog-filters {
  margin: 0.95rem 0 0;
  flex-direction: column;
  gap: 0.9rem;
}

.catalog-filters label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.catalog-filters select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.catalog-filters fieldset {
  margin: 0;
  background: rgba(249, 251, 255, 0.95);
}

.catalog-results {
  min-width: 0;
}

.catalog-results__header {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 21, 36, 0.09);
}

.catalog-results__header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.catalog-results__header .muted {
  margin-top: 0.35rem;
}

.catalog-results__summary {
  margin: 0.7rem 0 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  background: rgba(240, 253, 250, 0.88);
  color: #0f4a47;
  padding: 0.34rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.catalog-grid {
  margin-top: 0;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.catalog-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(16, 21, 36, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98));
  box-shadow: 0 14px 28px rgba(16, 21, 36, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: 0 22px 40px rgba(16, 21, 36, 0.14);
}

.catalog-card--active {
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 26px 45px rgba(15, 118, 110, 0.17);
}

.catalog-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0.85rem;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.13), rgba(14, 165, 233, 0.03)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.62) 0,
      rgba(255, 255, 255, 0.62) 12px,
      rgba(245, 248, 255, 0.62) 12px,
      rgba(245, 248, 255, 0.62) 24px
    );
  border-bottom: 1px solid rgba(16, 21, 36, 0.08);
  display: grid;
  place-items: center;
}

.catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 21, 36, 0.08);
  display: block;
}

.catalog-card-media__empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-light);
  font-size: 0.88rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(16, 21, 36, 0.2);
  background: rgba(255, 255, 255, 0.88);
}

.catalog-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: 1rem;
}

.catalog-card__body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
  color: #18324a;
}

.catalog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.catalog-product-code {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(16, 21, 36, 0.16);
  background: rgba(255, 255, 255, 0.95);
  color: #31426f;
  padding: 0.2rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.catalog-stock {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.catalog-stock--ok {
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
}

.catalog-stock--low {
  background: rgba(245, 158, 11, 0.17);
  color: #b45309;
}

.catalog-stock--out {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.catalog-stock--private {
  background: rgba(71, 85, 105, 0.14);
  color: #334155;
}

.catalog-card__description {
  margin: 0;
  color: var(--text-light);
  line-height: 1.5;
}

.catalog-ranking-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: -0.05rem;
}

.catalog-ranking-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(219, 234, 254, 0.6);
  color: #1d4ed8;
  padding: 0.14rem 0.54rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.catalog-card__discount {
  margin: -0.08rem 0 0;
  font-size: 0.82rem;
  color: #1f4c7a;
  font-weight: 600;
}

.catalog-card__discount-units {
  margin: -0.08rem 0 0;
  font-size: 0.8rem;
  color: #2f4c74;
}

.catalog-card__shipping {
  margin: -0.08rem 0 0;
  font-size: 0.82rem;
  color: var(--text-light);
}

.catalog-focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.catalog-focus-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.09);
  color: #0f4a47;
  padding: 0.18rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.catalog-card__footer {
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.62rem;
  border-top: 1px solid rgba(16, 21, 36, 0.08);
}

.catalog-card__price {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #16324a;
}

.catalog-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.catalog-price__current {
  font-weight: 800;
}

.catalog-price__original {
  font-size: 0.85em;
  color: var(--text-light);
  text-decoration: line-through;
}

.catalog-price__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.14rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.13);
  color: #b91c1c;
}

.catalog-card__cta {
  border: 1px solid rgba(15, 118, 110, 0.34);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(14, 165, 233, 0.08));
  color: #115e59;
  box-shadow: none;
  padding: 0.56rem 0.92rem;
  border-radius: 0.82rem;
  min-width: 116px;
  font-weight: 700;
}

.catalog-card__cta:hover {
  transform: none;
  box-shadow: none;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(14, 165, 233, 0.12));
}

.catalog-card__cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.catalog-card__cta--cart {
  border-color: rgba(79, 70, 229, 0.28);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.1));
  color: #4338ca;
}

.catalog-card__cta--cart:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(139, 92, 246, 0.14));
}

.catalog-detail {
  margin-top: 1.25rem;
}

.catalog-detail__card {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.98));
  box-shadow: 0 18px 36px rgba(16, 21, 36, 0.1);
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1rem;
}

.catalog-detail__media {
  border-radius: 1rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.13), rgba(14, 165, 233, 0.03)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.62) 0,
      rgba(255, 255, 255, 0.62) 12px,
      rgba(245, 248, 255, 0.62) 12px,
      rgba(245, 248, 255, 0.62) 24px
    );
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 0.95rem;
}

.catalog-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 21, 36, 0.08);
}

.catalog-detail__media-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-light);
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px dashed rgba(16, 21, 36, 0.2);
  background: rgba(255, 255, 255, 0.88);
}

.catalog-detail__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.catalog-detail__body h3 {
  margin: 0;
  font-size: 1.35rem;
}

.catalog-detail__code {
  margin: -0.25rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #31426f;
}

.catalog-detail__body .muted {
  margin: 0;
}

.catalog-detail__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem;
  align-items: stretch;
}

.catalog-detail__meta p {
  margin: 0;
  font-weight: 700;
  border: 1px solid rgba(16, 21, 36, 0.11);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.8rem;
  padding: 0.5rem 0.65rem;
}

#catalog-detail-price {
  font-size: 1.18rem;
  color: #133856;
}

#catalog-detail-discount {
  font-weight: 600;
  color: #1f4c7a;
}

#catalog-detail-discount-units {
  font-weight: 600;
  color: #2f4c74;
}

#catalog-detail-shipping,
#catalog-detail-total {
  font-weight: 600;
  color: #35506d;
}

.catalog-detail__actions {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.checkout-form {
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
}

.checkout-account-card {
  border: 1px solid rgba(16, 21, 36, 0.11);
  border-radius: 0.95rem;
  background: rgba(246, 249, 255, 0.9);
  padding: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.checkout-account-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.checkout-address-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.checkout-address-block {
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.checkout-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.checkout-account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.checkout-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.checkout-checkbox input {
  width: auto;
}

.checkout-summary {
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(246, 249, 255, 0.98));
  padding: 1rem;
  box-shadow: 0 18px 32px rgba(16, 21, 36, 0.08);
}

.checkout-summary h3 {
  margin: 0 0 0.75rem;
}

.checkout-summary__rows {
  display: grid;
  gap: 0.55rem;
}

.checkout-summary__rows p {
  margin: 0;
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 0.75rem;
  padding: 0.48rem 0.62rem;
  background: rgba(255, 255, 255, 0.92);
}

.checkout-cart-mode {
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(237, 242, 255, 0.7), rgba(245, 247, 255, 0.9));
  padding: 0.85rem;
  display: grid;
  gap: 0.6rem;
}

.checkout-cart-items {
  display: grid;
  gap: 0.5rem;
}

.checkout-cart-item {
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.5rem 0.62rem;
}

.checkout-cart-item p {
  margin: 0;
}

.checkout-cart-item p + p {
  margin-top: 0.2rem;
}

.cart-count {
  margin-left: 0.35rem;
  border-radius: 999px;
  min-width: 1.2rem;
  padding: 0.08rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: #4338ca;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-panel {
  display: grid;
  gap: 0.85rem;
}

.cart-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cart-panel__head h2 {
  margin: 0;
}

.cart-items {
  display: grid;
  gap: 0.8rem;
}

.cart-item {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 0.95rem;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.cart-item__media {
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 0.8rem;
  overflow: hidden;
  min-height: 92px;
  background: rgba(246, 248, 255, 0.9);
  display: grid;
  place-items: center;
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__empty {
  font-size: 0.76rem;
  color: var(--text-light);
}

.cart-item__body {
  display: grid;
  gap: 0.38rem;
}

.cart-item__body h3 {
  margin: 0;
  font-size: 1rem;
}

.cart-item__code {
  margin: 0;
  font-size: 0.78rem;
  color: #2b3e63;
}

.cart-item__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-light);
}

.cart-item__actions {
  display: flex;
  gap: 0.55rem;
  align-items: end;
  flex-wrap: wrap;
}

.cart-item__actions label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.cart-item__actions input {
  width: 112px;
}

.cart-item__total {
  text-align: right;
  white-space: nowrap;
}

.orders-board {
  display: grid;
  gap: 0.85rem;
}

.orders-list {
  display: grid;
  gap: 0.85rem;
}

.orders-card {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.98);
  padding: 0.85rem;
  display: grid;
  gap: 0.7rem;
}

.orders-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.orders-card__header h3 {
  margin: 0.25rem 0 0;
}

.orders-card__header p {
  margin: 0.2rem 0 0;
}

.orders-card__status {
  text-align: right;
  display: grid;
  gap: 0.25rem;
}

.order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.24rem 0.58rem;
  border: 1px solid rgba(16, 21, 36, 0.14);
  background: rgba(245, 247, 255, 0.92);
}

.order-status--received {
  color: #312e81;
  border-color: rgba(79, 70, 229, 0.35);
  background: rgba(224, 231, 255, 0.85);
}

.order-status--processing {
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(254, 243, 199, 0.9);
}

.order-status--completed {
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(209, 250, 229, 0.9);
}

.order-status--cancelled {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(254, 226, 226, 0.9);
}

.order-status--refunded {
  color: #1e3a8a;
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(219, 234, 254, 0.9);
}

.orders-card__totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.45rem;
}

.orders-card__totals p {
  margin: 0;
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 0.75rem;
  padding: 0.45rem 0.6rem;
  background: rgba(250, 252, 255, 0.9);
  font-size: 0.88rem;
}

.orders-card__notes {
  margin: 0;
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem 0.62rem;
  background: rgba(246, 248, 255, 0.9);
}

.orders-items {
  display: grid;
  gap: 0.45rem;
}

.orders-item {
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem 0.62rem;
  background: #fff;
}

.orders-item p {
  margin: 0;
}

.orders-card__quick-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.orders-card__actions {
  display: flex;
  align-items: end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.orders-card__actions label {
  margin: 0;
  font-size: 0.82rem;
}

.orders-card__actions select {
  min-width: 180px;
}

.orders-card__reject-reason {
  flex: 1 1 100%;
  display: grid;
  gap: 0.35rem;
}

.orders-card__status-help {
  margin: 0;
  flex: 1 1 100%;
}

.orders-sidebar label {
  margin-top: 0.4rem;
}

.button-link.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.chatbot-preview {
  border: 2px dashed rgba(16, 21, 36, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 320px;
  background: white;
}

.chatbot-preview iframe,
.chatbot-preview div {
  width: 100%;
  height: 100%;
}

.support-escalation {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

.link-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 0;
}

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

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--primary), #8b78ff);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.button-link:hover {
  background: var(--primary-dark);
}

.button-link--ghost {
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid rgba(108, 94, 251, 0.4);
  box-shadow: none;
}

.cta-links {
  margin-top: 1rem;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.carousel__slides {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel__slide {
  min-width: 100%;
  min-height: 320px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.carousel__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(16, 21, 36, 0.75), rgba(16, 21, 36, 0.2));
}

.carousel__content {
  position: relative;
  color: #fff;
  padding: 2rem;
  max-width: 380px;
}

.carousel__content .button-link {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
}

.carousel__nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.carousel__nav button {
  background: transparent;
  border: 1px solid rgba(16, 21, 36, 0.15);
  color: var(--text);
}

.carousel__nav button.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 0;
}

details {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  background: rgba(250, 251, 255, 0.85);
}

details + details {
  margin-top: 0.75rem;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 2rem 1rem 4rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer-links {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--primary-dark);
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  inset: 0;
  background: rgba(16, 21, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 30;
}

.cookie-banner__dialog {
  width: min(480px, 100%);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.4rem;
  padding: 1.75rem;
  border: 1px solid rgba(16, 21, 36, 0.1);
  box-shadow: 0 30px 60px rgba(16, 21, 36, 0.2);
  text-align: left;
}

.cookie-banner__dialog p {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.cookie-banner__dialog a {
  color: var(--primary-dark);
  font-weight: 600;
}

.cookie-banner__actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 21, 36, 0.6);
  padding: 1rem;
  z-index: 45;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
}

.modal__dialog {
  position: relative;
  width: min(760px, 92vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 30px 60px rgba(16, 21, 36, 0.25);
  border: 1px solid rgba(16, 21, 36, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal__close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.modal__hint {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.privacy-modal__content {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  max-height: 45vh;
  overflow-y: auto;
  background: rgba(248, 249, 252, 0.8);
}

.privacy-modal__content h1,
.privacy-modal__content h2,
.privacy-modal__content h3 {
  margin-top: 1rem;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.password-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 21, 36, 0.6);
  padding: 1rem;
  z-index: 40;
}

.password-modal__dialog {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(16, 21, 36, 0.25);
  border: 1px solid rgba(16, 21, 36, 0.08);
}

.muted {
  color: var(--text-light);
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .nav-links {
    justify-content: center;
  }

  .hero__card,
  .panel {
    padding: 1.75rem;
  }

  button {
    width: 100%;
  }

  .inline-group {
    width: 100%;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-filter-card {
    position: static;
    top: auto;
  }

  .catalog-detail__card {
    grid-template-columns: 1fr;
  }

  .catalog-detail__media {
    min-height: 230px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-inline-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-card__cta-group {
    width: 100%;
    justify-content: stretch;
  }

  .catalog-card__cta {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item__total {
    text-align: left;
  }

  .orders-card__status {
    text-align: left;
  }

  .orders-card__actions {
    align-items: stretch;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Assistant widget */
.assistant-launcher {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(16, 21, 36, 0.12);
  box-shadow: 0 20px 40px rgba(16, 21, 36, 0.25);
  cursor: pointer;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .register-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .phone-input-group {
    grid-template-columns: 1fr;
  }
}
.assistant-launcher__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.assistant-launcher__icon img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
}
.assistant-launcher__bubble {
  position: absolute;
  right: calc(100% + 0.5rem);
  white-space: nowrap;
  background: #fff;
  color: var(--text);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: 0.8rem;
}
.assistant-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: min(360px, 90vw);
  max-height: min(520px, 80vh);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(16, 21, 36, 0.08);
  box-shadow: 0 25px 60px rgba(16, 21, 36, 0.25);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
  display: flex;
  flex-direction: column;
}
.assistant-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.assistant-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.assistant-panel__close {
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.assistant-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.assistant-chat--full {
  min-height: 420px;
}
.assistant-chat--floating {
  height: 360px;
}
.assistant-chat__messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-right: 0.25rem;
}
.assistant-msg {
  max-width: 90%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(16, 21, 36, 0.12);
  font-size: 0.92rem;
  line-height: 1.4;
}
.assistant-msg--assistant {
  align-self: flex-start;
  background: rgba(108, 94, 251, 0.1);
  color: var(--text);
}
.assistant-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), #8b78ff);
  color: #fff;
}
.assistant-chat__composer {
  display: flex;
  gap: 0.5rem;
}
.assistant-chat__composer textarea {
  flex: 1;
  min-height: 48px;
  resize: none;
}
.assistant-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.assistant-chat__chips-title {
  width: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
}
.assistant-chip {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 999px;
  background: #fff;
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  box-shadow: 0 5px 18px rgba(16, 21, 36, 0.08);
}
.assistant-chip:hover {
  border-color: rgba(108, 94, 251, 0.5);
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(108, 94, 251, 0.18);
}
.assistant-page-header {
  margin-bottom: 1rem;
}
@media (max-width: 720px) {
  .assistant-launcher {
    bottom: 1rem;
    right: 1rem;
  }
  .assistant-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}
@media (max-width: 1080px) {
  .top-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
  }
  .hero,
  main {
    padding-left: clamp(0.75rem, 4vw, 4rem);
    padding-right: clamp(0.75rem, 4vw, 4rem);
  }
}
@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    gap: 0.5rem;
  }
  .nav-links a {
    flex: 0 0 auto;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__summary {
    grid-template-columns: 1fr;
  }
  .panel,
  .hero__card {
    padding: 1.5rem;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  .cta-row {
    flex-direction: column;
  }
  .lang-dropdown {
    align-self: stretch;
    width: 100%;
  }
  .assistant-launcher__bubble {
    display: none;
  }
}
@media (min-width: 1400px) {
  .hero,
  main {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-dropdown {
  position: relative;
}

.profile-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 21, 36, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 21, 36, 0.08);
  color: var(--text);
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(108, 94, 251, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.profile-label {
  font-size: 0.85rem;
}

.profile-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(16, 21, 36, 0.5);
  border-bottom: 2px solid rgba(16, 21, 36, 0.5);
  transform: rotate(45deg);
}

.profile-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: min(320px, 80vw);
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(16, 21, 36, 0.08);
  box-shadow: 0 25px 60px rgba(16, 21, 36, 0.2);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 15;
}

.profile-dropdown.open .profile-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-dropdown__header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.profile-dropdown__name {
  font-weight: 700;
  margin: 0;
}

.profile-dropdown__mail {
  font-size: 0.8rem;
  color: var(--text-light);
}

.profile-dropdown__section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.profile-dropdown__section-title {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0;
}

.profile-dropdown__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  max-height: 19rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.profile-dropdown__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.profile-dropdown__actions a {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 0.9rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-dropdown__actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(16, 21, 36, 0.12);
  border-color: rgba(79, 70, 229, 0.28);
}

.profile-dropdown__roles a {
  border: 1px solid rgba(16, 21, 36, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
}

.profile-action__label {
  line-height: 1.2;
}

.profile-action__tag {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  background: rgba(16, 21, 36, 0.08);
  color: var(--text-light);
  white-space: nowrap;
}

.profile-action--neutral {
  background: rgba(255, 255, 255, 0.96);
}

.profile-action--commerce {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(59, 130, 246, 0.06));
  border-color: rgba(79, 70, 229, 0.34);
}

.profile-action--commerce .profile-action__tag {
  background: rgba(79, 70, 229, 0.14);
  color: #4338ca;
}

.profile-action--primary {
  background: linear-gradient(135deg, #635bff, #4f46e5);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.32);
}

.profile-action--primary .profile-action__tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.profile-dropdown__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 22rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.profile-action-group {
  display: grid;
  gap: 0.45rem;
  padding: 0.58rem;
  border: 1px solid rgba(16, 21, 36, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

.profile-action-group__title {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 700;
}

.profile-action-group__list {
  display: grid;
  gap: 0.4rem;
}

.profile-dropdown__actions a {
  border-radius: 0.78rem;
  padding: 0.52rem 0.66rem;
  font-weight: 600;
}

.profile-action__label {
  font-weight: 700;
  line-height: 1.2;
}

.profile-action__arrow {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 700;
  line-height: 1;
}

.profile-action__tag {
  display: none !important;
}

.profile-action--commerce {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(59, 130, 246, 0.04));
  border-color: rgba(79, 70, 229, 0.2);
}

.profile-action--primary {
  background: linear-gradient(135deg, #635bff, #4f46e5);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.26);
}

.profile-action--primary .profile-action__arrow {
  color: rgba(255, 255, 255, 0.92);
}

.profile-action-board {
  display: grid;
  gap: 0.7rem;
}

.profile-action-module {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(16, 21, 36, 0.1);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  padding: 0.65rem;
  box-shadow: 0 12px 26px rgba(16, 21, 36, 0.08);
}

.profile-action-module::before {
  content: '';
  position: absolute;
  top: -1.6rem;
  right: -1.2rem;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2), transparent 70%);
  pointer-events: none;
}

.profile-action-module--access::before {
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.2), transparent 70%);
}

.profile-action-module--catalog::before {
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2), transparent 70%);
}

.profile-action-module--private::before {
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.18), transparent 70%);
}

.profile-action-module__title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f3d63;
  font-weight: 800;
}

.profile-action-module__desc {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  color: var(--text-light);
  line-height: 1.35;
}

.profile-action-module__grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.profile-action-link {
  border: 1px solid rgba(16, 21, 36, 0.13);
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  color: var(--text);
  padding: 0.46rem 0.58rem;
  display: grid;
  gap: 0.08rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.profile-action-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(16, 21, 36, 0.12);
  border-color: rgba(79, 70, 229, 0.35);
}

.profile-action-link.is-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #635bff, #4f46e5);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28);
}

.profile-action-link__label {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.profile-action-link__meta {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #516082;
}

.profile-action-link.is-featured .profile-action-link__meta {
  color: rgba(255, 255, 255, 0.84);
}

.profile-dropdown__actions .profile-action-link {
  display: grid;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.08rem;
}

.profile-dropdown__actions .profile-action-link__label {
  white-space: normal;
  overflow-wrap: anywhere;
}

.profile-dropdown__actions .profile-action-link__meta {
  display: none !important;
}

@media (max-width: 560px) {
  .profile-action-module__grid {
    grid-template-columns: 1fr;
  }
}

.profile-dropdown__logout {
  border: none;
  border-radius: 0.9rem;
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }
  .profile-dropdown__menu {
    right: -1rem;
  }
}

/* Acciones rápidas unificadas en todas las páginas */
.profile-dropdown__menu {
  width: min(420px, 92vw);
}

.profile-dropdown__actions {
  max-height: 24rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.profile-action-board {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.profile-action-module {
  padding: 0.72rem 0.78rem;
}

.profile-action-module__grid {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.profile-action-link,
.profile-dropdown__actions .profile-action-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.65rem;
  padding: 0.56rem 0.68rem;
  border-radius: 0.8rem;
  gap: 0.3rem;
}

.profile-action-link.is-featured {
  grid-column: auto;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.22);
}

.profile-dropdown__actions .profile-action-link__label {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .profile-dropdown__menu {
    width: min(96vw, 420px);
    right: -0.45rem;
  }
}

/* Estabilidad global de botones: evita solapes y texto cortado */
button,
.btn-primary,
.btn-secondary,
.btn-google,
.ghost,
.button-link,
.link-button,
.profile-action-link {
  max-width: 100%;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

button:hover,
button:active,
.btn-primary:hover,
.btn-primary:active,
.btn-secondary:hover,
.btn-secondary:active,
.btn-google:hover,
.btn-google:active,
.ghost:hover,
.ghost:active,
.button-link:hover,
.button-link:active,
.profile-action-link:hover,
.profile-action-link:active {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Dark mode final override block */
html[data-theme='dark'] input,
html[data-theme='dark'] select,
html[data-theme='dark'] textarea {
  background: rgba(15, 23, 42, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
  color: rgba(226, 232, 240, 0.96) !important;
}

html[data-theme='dark'] input:disabled,
html[data-theme='dark'] select:disabled,
html[data-theme='dark'] textarea:disabled,
html[data-theme='dark'] input[readonly],
html[data-theme='dark'] textarea[readonly] {
  background: rgba(15, 23, 42, 0.72) !important;
  color: rgba(203, 213, 225, 0.88) !important;
  -webkit-text-fill-color: rgba(203, 213, 225, 0.88) !important;
  opacity: 1;
}

html[data-theme='dark'] select option {
  background: #0f172a;
  color: #e2e8f0;
}

html[data-theme='dark'] .profile-dropdown__menu {
  background: rgba(8, 16, 34, 0.96);
  border-color: rgba(148, 163, 184, 0.28);
}

html[data-theme='dark'] .profile-dropdown__actions a,
html[data-theme='dark'] .profile-dropdown__roles a,
html[data-theme='dark'] .profile-action-link,
html[data-theme='dark'] .profile-dropdown__actions .profile-action-link {
  background: rgba(15, 23, 42, 0.84);
  border-color: rgba(148, 163, 184, 0.3);
  color: rgba(226, 232, 240, 0.96);
}
