@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Georgian:wght@700&display=swap");

:root {
  --violet: #6c5cff;
  --violet-2: #8b7bff;
  --soft-violet: #f4f1ff;
  --lagoon: #12152f;
  --gold: #ffb547;
  --alabaster: #ffffff;
  --moss: #68708c;
  --ink: #111426;
  --line: #e9eaf5;
  --shadow: 0 18px 46px rgba(64, 63, 120, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 8%, rgba(108, 92, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfbff 0%, #ffffff 46%, #fbfbff 100%);
}

.videos-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 18px 26px;
}

.videos-hero {
  position: relative;
  min-height: 202px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(232, 232, 248, 0.9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 20%, rgba(108, 92, 255, 0.15), transparent 24%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 52%, #f7f5ff 100%);
  box-shadow: var(--shadow);
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.videos-hero-icon,
.stat-icon,
.subject-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
}

.videos-hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  color: #fff;
  font-size: 2rem;
  background: linear-gradient(145deg, var(--violet), var(--violet-2));
  box-shadow: 0 18px 30px rgba(108, 92, 255, 0.28);
}

.videos-hero-copy h1 {
  margin: 0;
  color: var(--lagoon);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.2rem, 2vw + 1.5rem, 3.2rem);
  font-weight: 800;
  line-height: 1.04;
}

.videos-hero-copy p {
  margin: 12px 0 0;
  max-width: 470px;
  color: #606781;
  font-size: 1rem;
  line-height: 1.65;
}

.videos-hero-art {
  position: relative;
  min-height: 178px;
}

.hero-video-card {
  position: absolute;
  right: 58px;
  top: 16px;
  width: min(300px, 78%);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: linear-gradient(145deg, #6a5df2, #826ff7);
  box-shadow: 0 24px 48px rgba(88, 72, 214, 0.28);
  transform: rotate(6deg);
}

.hero-video-card span {
  position: absolute;
  top: 39%;
  left: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  transform: translate(-50%, -50%);
}

.hero-video-line {
  position: absolute;
  left: 34px;
  right: 44px;
  bottom: 30px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.hero-video-line::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

.hero-chart,
.hero-cap,
.hero-clap {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(77, 71, 134, 0.14);
}

.hero-chart {
  left: 6%;
  top: 56px;
  width: 62px;
  height: 66px;
  color: #8b7bff;
  background: #fff;
  font-size: 1.6rem;
}

.hero-cap {
  right: 6px;
  top: -6px;
  color: #5b4af2;
  font-size: 4.8rem;
  filter: drop-shadow(0 16px 18px rgba(86, 75, 214, 0.2));
}

.hero-clap {
  right: 8px;
  bottom: 16px;
  width: 76px;
  height: 66px;
  color: #fff;
  background: linear-gradient(145deg, #ffbf47, #ff8a2a);
  font-size: 2rem;
  transform: rotate(-8deg);
}

.search-container {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(67, 67, 100, 0.06);
}

.search-field > i {
  color: #8c91a9;
}

#searchInput {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
}

#searchInput::placeholder {
  color: #9ba0b5;
}

#searchInput:focus {
  outline: none;
}

#searchButton,
.filter-actions button,
.section-heading button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#searchButton {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--violet), var(--violet-2));
  box-shadow: 0 10px 20px rgba(108, 92, 255, 0.22);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-actions button,
.section-heading button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 14px;
  color: #252a44;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(67, 67, 100, 0.05);
}

#searchButton:hover,
.filter-actions button:hover,
.section-heading button:hover {
  transform: translateY(-1px);
}

.suggestions {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  max-width: 760px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 20;
  display: none;
}

.suggestions button {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: transparent;
  color: var(--lagoon);
  font-weight: 700;
  border-radius: 0;
}

.suggestions button:last-child {
  border-bottom: none;
}

.suggestions button:hover {
  background: var(--soft-violet);
}

.stats-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(65, 65, 100, 0.06);
}

.stat-icon {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  color: #fff;
  font-size: 1.1rem;
}

.stat-icon.purple { background: linear-gradient(145deg, #725cff, #8c7aff); }
.stat-icon.green { background: linear-gradient(145deg, #43c486, #5dd09a); }
.stat-icon.amber { background: linear-gradient(145deg, #ffa931, #ffc65c); }
.stat-icon.blue { background: linear-gradient(145deg, #4a86ff, #6ca2ff); }

.stat-card strong {
  display: block;
  color: var(--lagoon);
  font-size: 1.25rem;
  line-height: 1;
}

.stat-card p {
  margin: 7px 0 2px;
  color: #22263e;
  font-weight: 700;
  font-size: 0.92rem;
}

.stat-card small,
.subject-grid small {
  display: block;
  color: #747b93;
  font-size: 0.78rem;
}

.continue-section,
.subjects-section,
.videos-section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #fbfaff);
  box-shadow: 0 12px 30px rgba(65, 65, 100, 0.06);
}

.continue-section {
  background: linear-gradient(135deg, #fff, #f7f3ff);
}

.section-heading.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  color: var(--lagoon);
  font-family: "Manrope", sans-serif;
  font-size: 1.04rem;
  font-weight: 800;
}

.section-heading h2 i {
  color: var(--violet);
  margin-right: 8px;
}

.section-heading button {
  min-height: 32px;
  padding: 7px 12px;
  color: var(--violet);
  background: #f6f3ff;
  border-color: transparent;
  font-size: 0.82rem;
}

.continue-card {
  margin-top: 16px;
  max-width: 405px;
}

.continue-video {
  display: grid;
  grid-template-columns: minmax(128px, 178px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 26px rgba(75, 74, 118, 0.08);
}

.continue-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #10162b;
}

.continue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.continue-thumb button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  cursor: pointer;
}

.continue-thumb button span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(108, 92, 255, 0.92);
  box-shadow: 0 8px 18px rgba(52, 45, 145, 0.28);
}

.continue-info h3 {
  margin: 0;
  color: var(--lagoon);
  font-size: 0.94rem;
}

.continue-info p {
  margin: 7px 0 10px;
  color: #606781;
  font-size: 0.8rem;
  line-height: 1.45;
}

.progress-label {
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 800;
}

.progress-track {
  margin-top: 6px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe8ff;
}

.progress-track span {
  display: block;
  width: 66%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--violet-2));
}

.subject-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.subject-grid article {
  min-height: 84px;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 20px rgba(65, 65, 100, 0.04);
}

.subject-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  border-radius: 12px;
  font-size: 1.15rem;
}

.subject-icon.physics { color: #815cff; background: #f0ebff; }
.subject-icon.chemistry { color: #42bd80; background: #eaf9f1; }
.subject-icon.maths { color: #4a86ff; background: #edf3ff; }
.subject-icon.biology { color: #ef4b8f; background: #fff0f6; }
.subject-icon.history { color: #f28b22; background: #fff3e6; }
.subject-icon.polity { color: #8e62df; background: #f1ebff; }

.subject-grid strong {
  display: block;
  color: #1f233a;
  font-size: 0.86rem;
}

.cards-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  place-items: center;
  text-align: center;
  min-height: 260px;
  padding: 28px 20px;
  border-radius: 8px;
  border: 1px dashed var(--line);
  background: #fff;
  color: var(--moss);
}

.empty-state i {
  font-size: 2rem;
  color: var(--violet);
}

.empty-state strong {
  color: var(--lagoon);
  font-family: "Noto Sans Georgian", sans-serif;
  font-size: 1.35rem;
}

.empty-state p {
  margin: 0;
  max-width: 420px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(64, 63, 120, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  opacity: 0;
  animation: floatIn 0.55s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 38px rgba(64, 63, 120, 0.13);
}

.video-card.active-card {
  border-color: rgba(108, 92, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(108, 92, 255, 0.12), 0 18px 34px rgba(64, 63, 120, 0.12);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(37, 99, 235, 0.08));
  overflow: hidden;
}

.card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 1;
  transform: none;
  background: transparent;
  transition: transform 0.28s ease;
}

.video-card:hover .card-thumb img {
  transform: scale(1.03);
}

.poster-violet {
  background: transparent;
}

.poster-gold {
  background: transparent;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: none;
  width: 100%;
  cursor: pointer;
  background: transparent !important;
  transition: background 0.22s ease, transform 0.22s ease;
  text-align: center;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-height: 0;
  min-width: 0;
  color: inherit !important;
}

.thumb-overlay span {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.76);
  background: rgba(108, 92, 255, 0.9);
  color: #f8fbff;
  font-size: 1.1rem;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.thumb-watch-btn,
.thumb-watch-btn:hover,
.thumb-watch-btn:focus-visible,
.thumb-watch-btn:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: inherit !important;
  transform: none !important;
}

.video-card:hover .thumb-overlay {
  background: transparent;
}

.video-card:hover .thumb-overlay span {
  transform: translateY(-1px) scale(1.05);
  background: rgba(10, 31, 43, 0.14);
  box-shadow:
    0 12px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.thumb-overlay:focus-visible {
  outline: 3px solid rgba(196, 181, 253, 0.65);
  outline-offset: -3px;
  background: transparent;
}

.card-content {
  padding: 13px 14px 15px;
}

.video-title {
  margin: 0 0 7px;
  color: var(--lagoon);
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
}

.video-desc {
  margin: 0;
  color: var(--moss);
  font-size: 0.82rem;
  line-height: 1.5;
}

.button-group {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.btn {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: filter 0.18s ease, box-shadow 0.18s ease;
}

.button-group .btn-youtube {
  flex: 0 0 42px;
  width: 42px;
  padding-inline: 0;
}

.thumb-watch-btn:disabled,
.btn:disabled,
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
  pointer-events: auto;
}

.btn:hover {
  filter: brightness(1.03);
}

.btn-watch {
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  color: #fff;
  box-shadow: 0 12px 20px rgba(108, 92, 255, 0.2);
}

.btn-youtube {
  background: #f5f2ff;
  color: var(--violet);
  box-shadow: none;
}

.ai-disclosure {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #68708c;
  font-size: 0.86rem;
}

.ai-disclosure p {
  margin: 0;
  line-height: 1.55;
}

.ai-disclosure i {
  color: var(--violet);
  margin-right: 6px;
}

.ai-disclosure-links {
  display: flex;
  gap: 8px;
}

.ai-disclosure-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: var(--violet);
  background: #f6f3ff;
}

.modal-video {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.3s ease;
}

.modal-video.active {
  visibility: visible;
  opacity: 1;
}

.modal-container {
  background: #FFFFFF;
  border-radius: 28px;
  max-width: 950px;
  width: 92%;
  box-shadow: 0 35px 55px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(37, 99, 235, 0.5);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.3s ease-out;
}

.modal-video.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.5rem;
  background: #000000;
  border-bottom: 2px solid #C4B5FD;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h3 i {
  color: #C4B5FD;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-youtube-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  background: #ff0033;
  color: #fff8f0;
  font-weight: 800;
  box-shadow: 0 12px 20px rgba(255, 0, 51, 0.2);
}

.modal-youtube-link:hover {
  filter: brightness(1.06);
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #FFFFFF;
  line-height: 1;
}

.close-modal:hover {
  color: #C4B5FD;
}

.video-player {
  width: 100%;
  background: #0a1f2b;
}

.youtube-embed-shell {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at top, rgba(255, 0, 51, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(7, 19, 28, 0.96), rgba(10, 31, 43, 1));
}

.youtube-embed-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.youtube-empty-state {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: #dce7ef;
}

.youtube-empty-state p {
  margin: 0;
  max-width: 420px;
  line-height: 1.7;
}

.toast-msg {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  color: #FFFFFF;
  padding: 12px 28px;
  border-radius: 60px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-left: 5px solid #C4B5FD;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.toast-msg.show {
  opacity: 1;
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

  .search-container,
  .ai-disclosure {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

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

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

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

@media (max-width: 680px) {
  .videos-page {
    padding: 18px 10px 22px;
  }

  .videos-hero {
    min-height: 0;
    padding: 22px 16px 18px;
  }

  .hero-title-row {
    gap: 14px;
    align-items: flex-start;
  }

  .videos-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 1.35rem;
  }

  .videos-hero-copy h1 {
    font-size: 1.55rem;
  }

  .videos-hero-copy p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .videos-hero-art {
    display: none;
  }

  .search-field {
    min-height: 44px;
    padding-left: 14px;
  }

  #searchButton {
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 0;
  }

  #searchButton i {
    font-size: 0.9rem;
  }

  .filter-actions button {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0;
  }

  .filter-actions button i {
    margin: 0;
    font-size: 0.95rem;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    min-height: 86px;
    padding: 14px;
    gap: 12px;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
  }

  .continue-section,
  .subjects-section,
  .videos-section {
    margin-top: 14px;
    padding: 12px;
  }

  .continue-video {
    grid-template-columns: 126px minmax(0, 1fr);
  }

  .subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .button-group {
    flex-direction: row;
  }

  .btn {
    width: auto;
  }





  .modal-header {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-actions {
    justify-content: space-between;
  }
}

/* Shared shell styles */

:root {
  --gx-primary: #2563EB;
  --gx-lagoon: #000000;
  --gx-gold: #C4B5FD;
  --gx-alabaster: #FFFFFF;
  --gx-moss: #475569;
  --gx-ink: #000000;
  --gx-white: #ffffff;
  --gx-border: 1px solid rgba(0, 0, 0, 0.16);
  --gx-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.sq-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: var(--gx-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sq-header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sq-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sq-logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
}

.sq-logo span {
  color: var(--gx-lagoon);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sq-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sq-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--gx-lagoon);
  font-weight: 700;
  font-size: 0.94rem;
  transition: all 0.25s ease;
}

.sq-link i {
  color: var(--gx-moss);
}

.sq-link:hover,
.sq-link.active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.34);
  color: var(--gx-lagoon);
}

.sq-link:hover i,
.sq-link.active i {
  color: var(--gx-primary);
}

.sq-nav-item {
  position: relative;
}

.sq-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 216px;
  background: rgba(255, 255, 255, 0.96);
  border: var(--gx-border);
  border-radius: 12px;
  box-shadow: var(--gx-shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.22s ease;
}

.sq-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sq-dropdown a {
  color: var(--gx-lagoon);
  text-decoration: none;
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.sq-dropdown a i {
  margin-right: 8px;
}

.sq-dropdown a:hover {
  background: rgba(0, 0, 0, 0.08);
}

.sq-user-id {
  margin: 2px 4px 8px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--gx-moss);
  font-weight: 700;
}

.sq-auth {
  display: flex;
  align-items: center;
}

.sq-auth button {
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}

.sq-login-btn {
  background: rgba(0, 0, 0, 0.12);
  color: var(--gx-lagoon);
  border: 1px solid rgba(0, 0, 0, 0.26) !important;
}

.sq-register-btn,
.sq-profile-btn {
  background: linear-gradient(130deg, #fbc466, var(--gx-gold));
  color: #3c2d00;
  box-shadow: 0 10px 20px rgba(196, 181, 253, 0.26);
}

.sq-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sq-user-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.24);
}

.sq-user-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sq-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.85);
  color: var(--gx-lagoon);
  font-size: 1.2rem;
  line-height: 1;
  place-items: center;
  cursor: pointer;
}







































@media (max-width: 980px) {
  .sq-header-container {
    flex-wrap: nowrap;
  }

  .sq-toggle {
    display: inline-grid;
  }

  .sq-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    border: var(--gx-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--gx-shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .sq-nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .sq-link {
    width: 100%;
  }


}

