/*
 * Root custom properties
 *
 * These variables define the palette for the site.  Feel free to adjust
 * the colors below to match your brand.  The design uses a light
 * background with dark text and subtle gray highlights.
 */
:root {
  --black: #0d0d0d;
  --white: #ffffff;
  --red: #d7263d;
  --gray: rgba(215, 38, 61, 0.15);
  --font-courgett: "Courgette", cursive;
  --font-open-sans: "Open Sans", sans-serif;
  --font-light: 300;
}

/*
 * Base element styles
 */
body {
  background: #ffffff;
  color: var(--black);
  font-family: var(--font-open-sans);
  margin: 0;
}

/*
 * Layout wrappers
 */
.o-page {
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

.o-header {
  align-items: center;
  background: radial-gradient(circle at top left, rgba(215, 38, 61, 0.45), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 60%);
  border-bottom: 1px solid rgba(247, 247, 247, 0.08);
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.o-main-section {
  margin: 0 auto;
  max-width: 600px;
  padding: 0 20px;
}

/*
 * Logo
 */
.c-logo {
  font-family: var(--font-courgett);
  font-size: 26px;
  margin: 0;
}

.c-logo__link {
  color: var(--black);
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.c-logo__tagline {
  display: block;
  font-family: var(--font-open-sans);
  font-size: 12px;
  letter-spacing: 6px;
  margin-top: 6px;
  text-transform: uppercase;
  color: var(--black);
}

/*
 * Main menu styles
 */
.c-main-menu {
  font-weight: 500;
}

.c-main-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.c-main-menu__link {
  color: var(--black);
  display: inline-block;
  font-size: 14px;
  letter-spacing: 4px;
  margin: 0 6px;
  padding: 10px;
  text-decoration: none;
  text-transform: uppercase;
}

.c-main-menu__link:hover,
.c-main-menu__link:focus {
  color: var(--red);
}

.c-main-menu__extra {
  position: relative;
}

.c-additional-links {
  position: relative;
}

.c-additional-links__summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.c-additional-links__summary::-webkit-details-marker {
  display: none;
}

.c-additional-links__chevron {
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.2s ease-in-out;
}

.c-additional-links[open] .c-additional-links__chevron {
  transform: rotate(-135deg);
}

.c-additional-links__panel {
  display: none;
  background: rgba(13, 13, 13, 0.96);
  border: 1px solid rgba(247, 247, 247, 0.08);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  padding: 16px;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 280px;
  z-index: 5;
}

.c-additional-links[open] .c-additional-links__panel {
  display: block;
}

.c-additional-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-additional-links__link {
  align-items: center;
  border-radius: 8px;
  color: var(--white);
  display: flex;
  gap: 12px;
  padding: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.c-additional-links__link:hover,
.c-additional-links__link:focus {
  background-color: rgba(215, 38, 61, 0.15);
  transform: translateY(-1px);
}

.c-additional-links__icon {
  border-radius: 8px;
  flex-shrink: 0;
  height: 36px;
  width: 36px;
}

.c-additional-links__text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
}

.c-additional-links__name {
  font-weight: 600;
  margin-bottom: 2px;
}

.c-additional-links__url {
  color: rgba(247, 247, 247, 0.65);
}

/*
 * Section heading
 */
.c-main-heading {
  font-size: 40px;
  font-weight: var(--font-light);
  letter-spacing: 3px;
  margin: 60px 0;
  text-align: center;
  text-transform: uppercase;
  color: var(--red);
}

.c-main-intro {
  margin: -30px auto 60px;
  max-width: 720px;
  text-align: center;
  line-height: 1.7;
  color: rgba(13, 13, 13, 0.8);
  font-size: 16px;
}

/*
 * Article card styles
 */
.c-article {
  margin-bottom: 40px;
}

.c-article__link {
  align-items: center;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  padding: 20px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(215, 38, 61, 0.14), rgba(13, 13, 13, 0.85));
  border: 1px solid rgba(247, 247, 247, 0.05);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.c-article__link:hover {
  box-shadow: 0 16px 36px rgba(215, 38, 61, 0.25);
  transform: translateY(-6px);
}

.c-article__heading {
  font-size: 20px;
  margin: 10px 0;
  color: var(--red);
}

.c-article__content {
  line-height: 1.5;
  margin: 10px 0;
  color: rgba(247, 247, 247, 0.85);
}

.c-chat__promo-bar {
  align-items: center;
  background: linear-gradient(120deg, rgba(215, 38, 61, 0.45), rgba(13, 13, 13, 0.85));
  border: 1px solid rgba(247, 247, 247, 0.25);
  border-radius: 999px;
  display: inline-flex;
  gap: 14px;
  padding: 8px 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.c-chat__promo-label {
  white-space: nowrap;
}

.c-chat__promo-separator {
  background: rgba(247, 247, 247, 0.35);
  border-radius: 999px;
  flex: 0 0 36px;
  height: 2px;
}

.c-article__img-wrapper {
  height: 100px;
  margin-left: 20px;
  min-width: 160px;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-article__img {
  border-radius: 2px;
  display: block;
  height: 100%;
  filter: grayscale(0.2) contrast(1.1);
  object-fit: cover;
  transition: filter 0.3s ease-in;
  width: 100%;
}

.c-article__link:hover .c-article__img {
  filter: saturate(1.2) contrast(1.2);
}

/*
 * Embed area for video players or store information
 */
.c-article__embed {
  margin-top: 10px;
}

.c-article__status {
  background-color: rgba(247, 247, 247, 0.08);
  border-left: 4px solid var(--red);
  color: var(--black);
  font-size: 14px;
  margin: 0 0 12px;
  padding: 10px 12px;
}

.c-article__note {
  font-size: 13px;
  margin: 12px 0 0;
  color: rgba(247, 247, 247, 0.7);
}

.c-article__note a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
}

.c-article__note a:hover,
.c-article__note a:focus {
  text-decoration: none;
}

.u-visually-hidden {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

.c-chat {
  background: rgba(13, 13, 13, 0.72);
  border: 1px solid rgba(247, 247, 247, 0.08);
  border-radius: 16px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
  padding: 18px;
}

.c-chat__head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.c-chat__title {
  font-size: 18px;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
  color: var(--red);
}

.c-chat__online {
  background: rgba(215, 38, 61, 0.16);
  border-radius: 999px;
  color: rgba(247, 247, 247, 0.8);
  padding: 4px 10px;
}


.c-chat__timeline {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(247, 247, 247, 0.08);
  border-radius: 12px;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.c-chat__status {
  background: rgba(247, 247, 247, 0.12);
  border-left: 4px solid rgba(215, 38, 61, 0.55);
  border-radius: 8px;
  box-sizing: border-box;
  color: rgba(247, 247, 247, 0.85);
  font-size: 13px;
  margin: 0;
  padding: 8px 12px;
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.c-chat__status.is-error {
  border-left-color: #ff7373;
  color: #ffbcbc;
}

.c-chat__status.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
}

.c-chat__log {
  box-sizing: border-box;
  height: 320px;
  overflow-y: auto;
  padding: 40px 0 8px;
}

.c-chat__status.is-hidden + .c-chat__log {
  padding-top: 8px;
}

.c-chat__item {
  font-size: 14px;
  line-height: 1.4;
  margin: 6px 0;
  word-break: break-word;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  animation: chat-message-in 220ms ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .c-chat__item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.c-chat__item--pending {
  background: linear-gradient(90deg, rgba(247, 247, 247, 0.08), rgba(247, 247, 247, 0.02));
  border-radius: 8px;
  padding: 8px 12px;
  position: relative;
}

.c-chat__item--pending::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(247, 247, 247, 0.35);
  border-top-color: rgba(247, 247, 247, 0.9);
  animation: chat-spinner 700ms linear infinite;
}

.c-chat__item--failed {
  background: rgba(215, 38, 61, 0.12);
  border-left: 3px solid rgba(215, 38, 61, 0.6);
  border-radius: 6px;
  padding: 8px 12px;
}

.c-chat__item--failed::after {
  display: none;
}

.c-chat__item-status {
  color: rgba(247, 247, 247, 0.7);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.c-chat__item--failed .c-chat__item-status {
  color: #ffbcbc;
}

.c-chat__meta {
  color: rgba(247, 247, 247, 0.6);
  font-size: 12px;
  margin-right: 8px;
}

.c-chat__user {
  color: var(--red);
  font-weight: 600;
  margin-right: 6px;
}

.c-chat__text {
  color: var(--white);
}

.c-chat__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.c-chat__name,
.c-chat__input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(247, 247, 247, 0.16);
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  min-height: 42px;
  padding: 0 12px;
  box-sizing: border-box;
}

.c-chat__name {
  width: 100%;
}

.c-chat__composer {
  align-items: stretch;
  display: flex;
  gap: 10px;
  width: 100%;
}

.c-chat__input-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.c-chat__input {
  width: 100%;
}

.c-chat__toolbar {
  align-items: center;
  display: flex;
  gap: 8px;
}

.c-chat__suggest {
  align-items: center;
  background: rgba(247, 247, 247, 0.12);
  border: none;
  border-radius: 24px;
  color: rgba(247, 247, 247, 0.95);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  position: relative;
  transition: transform 160ms ease, background 160ms ease;
}

.c-chat__suggest:hover,
.c-chat__suggest:focus {
  background: rgba(247, 247, 247, 0.24);
  outline: none;
  transform: translateY(-1px);
}

.c-chat__suggest:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.c-chat__suggest.is-loading {
  color: transparent;
}

.c-chat__suggest.is-loading::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border-radius: 999px;
  border: 2px solid rgba(247, 247, 247, 0.4);
  border-top-color: rgba(247, 247, 247, 0.9);
  animation: chat-spinner 700ms linear infinite;
}

.c-chat__attach {
  align-items: center;
  background: rgba(247, 247, 247, 0.08);
  border: 1px solid rgba(247, 247, 247, 0.16);
  border-radius: 8px;
  color: rgba(247, 247, 247, 0.85);
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.c-chat__attach.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.c-chat__attach.is-disabled:hover,
.c-chat__attach.is-disabled:focus {
  background: rgba(247, 247, 247, 0.08);
  border-color: rgba(247, 247, 247, 0.16);
  color: rgba(247, 247, 247, 0.85);
}

.c-chat__attach:hover,
.c-chat__attach:focus {
  border-color: rgba(215, 38, 61, 0.65);
  color: var(--white);
  background: rgba(215, 38, 61, 0.2);
}

.c-chat__file {
  display: none;
}

.c-chat__name:focus,
.c-chat__input:focus {
  border-color: rgba(215, 38, 61, 0.65);
  outline: none;
}

.c-chat__attachment-preview {
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(247, 247, 247, 0.12);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  padding: 10px 12px;
}

.c-chat__attachment-preview[hidden] {
  display: none !important;
}

.c-chat__attachment-thumb {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  flex: 0 0 64px;
  height: 64px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-chat__attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-chat__attachment-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.c-chat__attachment-name {
  color: rgba(247, 247, 247, 0.85);
  font-size: 13px;
  font-weight: 500;
  word-break: break-word;
}

.c-chat__attachment-remove {
  background: none;
  border: none;
  color: rgba(215, 38, 61, 0.85);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0;
  text-transform: uppercase;
}

.c-chat__attachment-remove:hover,
.c-chat__attachment-remove:focus {
  color: var(--red);
}

.c-chat__suggestions {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(247, 247, 247, 0.12);
  border-radius: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  position: relative;
}

.c-chat__suggestions[hidden] {
  display: none;
}

.c-chat__suggestions-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.c-chat__suggestions-title {
  color: rgba(247, 247, 247, 0.85);
  font-size: 14px;
  margin: 0;
}

.c-chat__suggestions-close {
  background: none;
  border: none;
  color: rgba(247, 247, 247, 0.65);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  text-transform: uppercase;
}

.c-chat__suggestions-close:hover,
.c-chat__suggestions-close:focus {
  color: rgba(247, 247, 247, 0.95);
  outline: none;
}

.c-chat__suggestions-status {
  color: rgba(247, 247, 247, 0.6);
  font-size: 12px;
  margin: 0 0 10px;
}

.c-chat__suggestions-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-chat__suggestion-option {
  background: rgba(247, 247, 247, 0.08);
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(247, 247, 247, 0.9);
  cursor: pointer;
  display: block;
  font-size: 13px;
  padding: 10px 12px;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.c-chat__suggestion-option:hover,
.c-chat__suggestion-option:focus {
  background: rgba(247, 247, 247, 0.16);
  border-color: rgba(247, 247, 247, 0.38);
  outline: none;
  transform: translateY(-1px);
}

.c-chat__suggestion-option:active {
  transform: translateY(0);
}

.c-chat__suggestion-option.is-empty {
  cursor: default;
  opacity: 0.6;
}

.c-chat__suggestion-option.is-empty:hover,
.c-chat__suggestion-option.is-empty:focus {
  transform: none;
}

.c-chat__suggestions::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 32px;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  background: inherit;
  border-left: 1px solid rgba(247, 247, 247, 0.12);
  border-top: 1px solid rgba(247, 247, 247, 0.12);
}

.c-chat__suggestions::after {
  content: "";
  position: absolute;
  top: -10px;
  right: 32px;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  background: rgba(0, 0, 0, 0.42);
  z-index: -1;
}

.c-chat__suggestions[hidden]::before,
.c-chat__suggestions[hidden]::after {
  display: none;
}

@keyframes chat-message-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.c-chat__attachment-display {
  margin-top: 6px;
}

.c-chat__attachment-display a {
  border-radius: 10px;
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(247, 247, 247, 0.08);
}

.c-chat__attachment-display img {
  display: block;
  height: auto;
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
}

.c-chat__attachment-caption {
  display: block;
  font-size: 12px;
  color: rgba(247, 247, 247, 0.7);
  margin-top: 4px;
}

.c-chat__send {
  align-items: center;
  background: linear-gradient(135deg, var(--red), #8a0f21);
  border: none;
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.c-chat__send:hover,
.c-chat__send:focus {
  transform: translateY(-1px);
}

.c-chat__send:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.c-chat__footer {
  color: rgba(247, 247, 247, 0.65);
  font-size: 12px;
  margin-top: 14px;
}

.c-chat__footer a {
  color: var(--red);
  font-weight: 600;
}

.c-chat__footer a:hover,
.c-chat__footer a:focus {
  text-decoration: none;
}

.c-chat__log a {
  color: #8cd1df;
  text-decoration: underline;
}

.c-chat__log a:hover,
.c-chat__log a:focus {
  text-decoration: none;
}

.c-article__embed iframe {
  width: 100%;
  height: 315px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.c-button {
  display: inline-block;
  background-image: linear-gradient(135deg, var(--red), #8a0f21);
  color: var(--white);
  padding: 12px 28px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 25px rgba(215, 38, 61, 0.4);
}

.c-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(215, 38, 61, 0.55);
}

/*
 * Magic area styling.  These invisible blocks track the size of the
 * currently hovered/focused element.  They get positioned via gsap
 * animations defined in script.js.
 */
.c-magic-area {
  position: absolute;
  z-index: -1;
}

.c-magic-area--menu {
  background-color: rgba(215, 38, 61, 0.2);
  border-radius: 2px;
}

.c-magic-area--content {
  background-color: rgba(215, 38, 61, 0.14);
  border-radius: 2px;
}

.c-magic-area--content::before {
  background-color: var(--red);
  content: "";
  height: 70%;
  left: -3px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
}

/*
 * Responsive tweaks
 */
@media (max-width: 600px) {
  .c-main-heading {
    font-size: 32px;
    margin: 40px 0;
  }
  .c-main-intro {
    margin: -10px auto 40px;
    font-size: 15px;
    padding: 0 10px;
  }
  .c-chat {
    padding: 16px;
  }
  .c-chat__log {
    height: 260px;
  }
  .c-chat__form {
    flex-direction: column;
  }
  .c-chat__composer {
    flex-direction: column;
  }
  .c-chat__toolbar {
    justify-content: space-between;
    width: 100%;
  }
  .c-chat__attach {
    width: 48px;
  }
  .c-chat__send {
    width: 100%;
  }
  .c-article__img-wrapper {
    min-width: 100px;
    width: 100px;
  }
  .c-article__embed iframe {
    height: 240px;
  }
  .o-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .c-main-menu__list {
    flex-direction: column;
  }
  .c-main-menu__link {
    margin: 4px 0;
    padding: 8px;
  }
  .c-main-menu__extra,
  .c-additional-links,
  .c-additional-links__summary {
    width: 100%;
  }
  .c-additional-links__summary {
    justify-content: space-between;
  }
  .c-additional-links__panel {
    box-shadow: none;
    margin-top: 8px;
    position: static;
    width: 100%;
  }
  .c-additional-links__link {
    padding: 12px 10px;
  }
}

/* Account modal styles */
.account-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 200;
}

.account-modal[data-state="visible"] {
  pointer-events: auto;
  opacity: 1;
}

.account-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.6);
}

.account-modal__panel {
  position: relative;
  background: radial-gradient(circle at top left, rgba(215, 38, 61, 0.3), transparent 60%),
    rgba(19, 35, 47, 0.96);
  border-radius: 20px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  color: var(--white);
  max-width: 620px;
  width: min(90vw, 620px);
  overflow: hidden;
}

.account-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 0;
}

.account-modal__title {
  font-family: var(--font-open-sans);
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  letter-spacing: 0.04em;
}

.account-modal__close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 4px;
  transition: color 0.3s ease;
}

.account-modal__close:hover,
.account-modal__close:focus {
  color: var(--white);
}

.account-modal .form {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  max-width: none;
  padding: 20px 32px 32px;
}

.tab-group {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.tab {
  flex: 1;
}

.tab__link {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 18px;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tab.active .tab__link,
.tab__link:focus,
.tab__link:hover {
  background: var(--red);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.tab-content__pane {
  animation: fadeIn 0.4s ease;
}

.tab-content__pane--hidden {
  display: none;
}

.tab-content__pane[hidden] {
  display: none !important;
}

.tab-content__pane h3 {
  font-size: 28px;
  font-weight: 300;
  text-align: center;
  margin: 0 0 24px;
}

.field-wrap { 
  position: relative;
  margin-bottom: 32px;
}

.field-wrap--file {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-wrap--file .field-input {
  padding: 14px 12px;
  border-style: dashed;
  cursor: pointer;
}

.field-wrap--file .field-label {
  position: static;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  transform: none;
}

.field-wrap--file .field-label.field-label--active,
.field-wrap--file .field-label.field-label--highlight {
  transform: none;
  color: rgba(255, 255, 255, 0.85);
}

.field-wrap--file .field-input::-webkit-file-upload-button {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--white);
  cursor: pointer;
  font-weight: 600;
  margin-right: 12px;
  padding: 10px 14px;
  text-transform: uppercase;
}

.field-wrap--file .field-input::file-selector-button {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--white);
  cursor: pointer;
  font-weight: 600;
  margin-right: 12px;
  padding: 10px 14px;
  text-transform: uppercase;
}

.field-label {
  position: absolute;
  left: 16px;
  top: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  pointer-events: none;
  transition: transform 0.25s ease, color 0.25s ease, font-size 0.25s ease;
}

.field-label .req {
  margin-left: 4px;
  color: var(--red);
}

.field-label.field-label--active {
  transform: translateY(-26px);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.field-label.field-label--highlight {
  color: var(--white);
}

.field-input {
  background: rgba(19, 35, 47, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: var(--white);
  font-size: 18px;
  padding: 18px 16px 12px;
  width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.3);
}

.top-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.top-row .field-wrap {
  flex: 1 1 220px;
  margin-bottom: 24px;
}

.button {
  background: var(--red);
  border: none;
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 16px 20px;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.button:hover,
.button:focus {
  background: #a91c2d;
  box-shadow: 0 18px 40px rgba(215, 38, 61, 0.4);
  transform: translateY(-2px);
}

.button-block {
  display: block;
  width: 100%;
}

.forgot {
  margin: -10px 0 24px;
  text-align: right;
}

.forgot a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.forgot a:hover,
.forgot a:focus {
  color: var(--white);
}

.account-form__feedback {
  font-size: 14px;
  min-height: 18px;
  margin: 0 0 16px;
  text-align: center;
}

.account-form__feedback--success {
  color: #8be0c2;
}

.account-form__feedback--error {
  color: #ff9aa2;
}

.account-modal[data-state="hidden"] .account-modal__panel {
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.account-modal[data-state="visible"] .account-modal__panel {
  transform: translateY(0);
  opacity: 1;
}

.c-main-menu__link--account {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.c-main-menu__link--account:hover,
.c-main-menu__link--account:focus {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

@media (max-width: 600px) {
  .account-modal {
    align-items: flex-start;
    padding: 12px;
  }

  .account-modal__panel {
    width: min(100%, 420px);
    max-width: 420px;
    border-radius: 16px;
  }

  .account-modal__header {
    padding: 20px 20px 0;
  }

  .account-modal__title {
    font-size: 18px;
  }

  .account-modal .form {
    padding: 16px 20px 24px;
  }

  .tab-group {
    flex-direction: column;
  }

  .tab__link {
    font-size: 14px;
    padding: 10px 14px;
  }

  .field-input {
    font-size: 16px;
    padding: 16px 14px 10px;
  }

  .field-label {
    font-size: 16px;
    left: 14px;
    top: 12px;
  }

  .field-label.field-label--active {
    transform: translateY(-22px);
  }

  .field-wrap--file .field-input {
    padding: 12px 10px;
  }

  .field-wrap--file .field-input::-webkit-file-upload-button,
  .field-wrap--file .field-input::file-selector-button {
    font-size: 12px;
    padding: 8px 12px;
  }
}
