*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f7f3ff;
  --color-surface: #ffffff;
  --color-text: #1d102f;
  --color-text-muted: #6b6280;
  --color-primary: #8b5cf6;
  --color-primary-dark: #7c3aed;
  --color-border: #e9ddff;
  --color-alt: #f3ecff;
  --shadow-sm: 0 1px 5px rgba(139, 92, 246, 0.08);
  --shadow-md: 0 8px 30px rgba(139, 92, 246, 0.15);
  --radius: 14px;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-home {
  justify-content: center;
  position: relative;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.nav-home > .language-switcher {
  position: absolute;
  left: 0;
}

.language-switcher button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.58;
  filter: saturate(0.72);
  transition: opacity 0.15s, background 0.15s, border-color 0.15s, filter 0.15s;
}

.language-switcher button:hover,
.language-switcher button.pending {
  opacity: 0.9;
  filter: saturate(1);
}

.language-switcher button.active {
  border-color: rgba(124, 58, 237, 0.2);
  background: var(--color-alt);
  opacity: 1;
  filter: saturate(1);
}

.language-switcher button:focus-visible {
  outline: 3px solid rgba(139, 92, 246, 0.28);
  outline-offset: 1px;
}

.login-header-btn {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0.58rem 1.1rem;
  border-radius: 9px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(139, 92, 246, 0.25);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.login-header-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.32);
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: calc(var(--header-height) + 5rem) 0 3.5rem;
  background: linear-gradient(
      160deg,
      #e9d5ff 0%,
      #f5f3ff 45%,
      var(--color-bg) 100%
  );
}

.hero-content {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.hero-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-full {
  width: 100%;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-alt);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-header-left {
  text-align: left;
  margin: 0 0 2rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* About */
#about {
  padding-top: 3.25rem;
}

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

.about-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.about-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.about-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--color-alt);
}

.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.about-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.effectiveness-card {
  background: linear-gradient(145deg, #ffffff 0%, #faf7ff 100%);
}

.reviews {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

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

.reviews-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.reviews-score {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  transition: color 0.2s;
}

.reviews-score:hover {
  color: var(--color-primary);
}

.reviews-score span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.reviews-stars {
  display: inline-flex;
  gap: 0.2rem;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
  line-height: 1;
  color: #f5b301;
  letter-spacing: 0.03em;
  transition: transform 0.2s, filter 0.2s;
}

.reviews-stars:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 3px 5px rgba(245, 179, 1, 0.25));
}

.about-card .reviews-caption {
  font-size: 0.82rem;
}

.about-terms-link {
  display: inline-flex;
  margin-top: 1.35rem;
  color: var(--color-primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
  transition: color 0.2s, transform 0.2s;
}

.about-terms-link:hover {
  color: var(--color-primary);
  transform: translateX(3px);
}

/* Reviews page */
.reviews-page {
  min-height: 100vh;
  padding: calc(var(--header-height) + 4rem) 0 5rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(139, 92, 246, 0.16), transparent 32%),
    var(--color-bg);
}

.reviews-page-header {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.reviews-source {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reviews-page-header h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.reviews-page-header > p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: fit-content;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.reviews-summary-score {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
}

.reviews-summary-score span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.reviews-summary-stars {
  color: #f5b301;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.reviews-summary-label {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.review-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-alt);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
}

.review-rating {
  color: #f5b301;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.review-text {
  flex: 1;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.review-origin {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  color: #7c73a2;
  font-size: 0.72rem;
  font-weight: 600;
}

.back-link {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--color-primary);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-details strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact-details a {
  color: var(--color-primary);
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}

.form-status.success {
  color: #059669;
}

.form-status.error {
  color: #dc2626;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.social-link img {
    width: 36px;
    height: 36px;
    transition: 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.terms-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-alt);
  color: var(--color-primary-dark);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.terms-link svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.terms-link .terms-shield {
  fill: var(--color-surface);
}

.terms-link .terms-check {
  stroke-width: 1.8;
}

.terms-link:hover {
  transform: translateY(-3px) scale(1.04);
  background: #e9ddff;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.22);
}

/* Terms page */
.terms-page {
  min-height: 100vh;
  padding: calc(var(--header-height) + 4rem) 0 5rem;
  background:
    radial-gradient(circle at 15% 8%, rgba(139, 92, 246, 0.13), transparent 28%),
    var(--color-bg);
}

.terms-document {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.terms-page-heading {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

.terms-page-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms-page-heading h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.terms-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  counter-reset: terms;
}

.terms-list-continued {
  counter-reset: terms 12;
}

.terms-section-heading {
  margin: 2.5rem 0 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
}

.terms-list li {
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 4rem;
  border: 1px solid #eee7fa;
  border-radius: 12px;
  background: #fcfaff;
  color: var(--color-text-muted);
  font-size: 0.96rem;
  counter-increment: terms;
}

.terms-list li::before {
  content: counter(terms);
  position: absolute;
  top: 1.05rem;
  left: 1.15rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: var(--color-alt);
  color: var(--color-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.terms-list li:hover {
  border-color: var(--color-border);
  background: #faf7ff;
}

/* Login page */
.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: calc(var(--header-height) + 3rem) 4% 3rem;
  background:
    radial-gradient(circle at 20% 15%, rgba(139, 92, 246, 0.18), transparent 30%),
    radial-gradient(circle at 85% 80%, rgba(196, 181, 253, 0.22), transparent 30%),
    var(--color-bg);
}

.login-card {
  width: min(430px, 100%);
  padding: clamp(1.6rem, 5vw, 2.5rem);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.login-card-header {
  margin-bottom: 2rem;
  text-align: center;
}

.login-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
  border-radius: 15px;
  background: var(--color-alt);
  color: var(--color-primary-dark);
}

.login-card-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-card-header h1 {
  margin-bottom: 0.45rem;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.login-card-header p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.login-form {
  display: grid;
  gap: 1.25rem;
}

.login-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.login-field input {
  width: 100%;
  padding: 0.82rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-field input::placeholder {
  color: #a59daf;
}

.login-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}

.login-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.82rem 1rem;
  border: 0;
  border-radius: 9px;
  background: var(--color-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.24);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.login-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(139, 92, 246, 0.3);
}

.login-submit:active {
  transform: translateY(0);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.login-status {
  min-height: 1.35rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.login-status.error {
  color: #dc2626;
}

/* Dashboard */
.dashboard-body {
  min-width: 320px;
  background: #f6f3fb;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  padding: 2rem 1.25rem 1.25rem;
  overflow-y: auto;
  background:
    radial-gradient(circle at 15% 0%, rgba(139, 92, 246, 0.26), transparent 28%),
    #1b112a;
  color: #fff;
}

.dashboard-logo {
  display: inline-block;
  padding: 0 0.75rem;
  color: #fff;
  font-size: 1.45rem;
}

.dashboard-nav {
  display: grid;
  gap: 0.45rem;
  margin-top: 2.5rem;
}

.dashboard-nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
  padding: 0.78rem 0.85rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #afa5bd;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.dashboard-nav-link svg,
.logout-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
}

.dashboard-nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #7043d9);
  box-shadow: 0 8px 22px rgba(76, 39, 150, 0.35);
}

.sidebar-bottom {
  display: grid;
  gap: 0.75rem;
}

.sidebar-disclaimer {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-disclaimer span {
  color: #c4aaff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-disclaimer p {
  margin-top: 0.35rem;
  color: #9d92aa;
  font-size: 0.72rem;
  line-height: 1.45;
}

.logout-button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #92879f;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.logout-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-main {
  min-width: 0;
}

.dashboard-mobile-header {
  display: none;
}

.dashboard-content {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: 2.25rem clamp(1.5rem, 4vw, 3.75rem) 1.5rem;
}

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

.dashboard-date {
  margin-bottom: 0.15rem;
  color: #877c93;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dashboard-topbar h1 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.dashboard-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.account-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.45rem 0.72rem;
  border: 1px solid #e1d8ec;
  border-radius: 999px;
  background: #f8f5fb;
  color: #71677c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-role-badge.admin {
  border-color: rgba(124, 58, 237, 0.2);
  background: linear-gradient(135deg, #f0e7ff, #faf7ff);
  color: #6d35cd;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #e7dff1;
  border-radius: 999px;
  background: #fff;
  color: #6c6277;
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(53, 34, 78, 0.04);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.daily-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.2), transparent 20%),
    linear-gradient(135deg, #7c3aed 0%, #8b5cf6 52%, #a78bfa 100%);
  color: #fff;
  box-shadow: 0 18px 45px rgba(105, 63, 181, 0.22);
}

.daily-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -60px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 45px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.daily-hero > div {
  max-width: 710px;
}

.daily-eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: #eee7ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.daily-hero h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.daily-hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.refresh-deals-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}

.refresh-deals-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.refresh-deals-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.refresh-deals-button.loading svg {
  animation: dashboard-spin 0.8s linear infinite;
}

.refresh-deals-button[hidden],
.deal-limit[hidden],
.member-limit[hidden],
.dashboard-nav-link[hidden],
.safety-tip-button[hidden] {
  display: none !important;
}

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

.deal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.1rem 0 2.2rem;
}

.deal-stat {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid #eae4f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(55, 36, 78, 0.04);
}

.deal-stat-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.deal-stat-icon.purple { background: #f1eaff; color: #7c3aed; }
.deal-stat-icon.amber { background: #fff6d9; color: #b77900; }
.deal-stat-icon.blue { background: #e7f4ff; color: #1672b8; }
.deal-stat-icon.green { background: #e5f8ed; color: #168a4a; }

.deal-stat div {
  display: grid;
  min-width: 0;
}

.deal-stat strong {
  overflow: hidden;
  font-size: 1.05rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-stat div span {
  color: #8a8094;
  font-size: 0.67rem;
}

.offers-section {
  min-width: 0;
}

.offers-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.offers-toolbar h2 {
  margin-bottom: 0.1rem;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.offers-toolbar p {
  color: #8a8094;
  font-size: 0.77rem;
}

.offers-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.source-filter select,
.sort-filter select {
  min-width: 130px;
  padding: 0.58rem 2rem 0.58rem 0.75rem;
  border: 1px solid #e1d9eb;
  border-radius: 9px;
  background: #fff;
  color: #574d63;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.sort-filter select {
  min-width: 174px;
}

.dashboard-language-switcher {
  border-color: #e1d8ec;
  box-shadow: 0 4px 14px rgba(53, 34, 78, 0.04);
}

.deal-limit {
  display: flex;
  padding: 3px;
  border: 1px solid #e1d9eb;
  border-radius: 9px;
  background: #fff;
}

.deal-limit button {
  min-width: 36px;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8a8094;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.deal-limit button.active {
  background: var(--color-alt);
  color: var(--color-primary-dark);
}

.member-limit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.48rem 0.7rem;
  border: 1px solid #ddd2ec;
  border-radius: 9px;
  background: #f9f6fc;
  color: #684d84;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.member-limit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #7c3aed;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rotation-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e5dcef;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, #faf7fd);
  color: #655a70;
  box-shadow: 0 5px 18px rgba(57, 37, 77, 0.04);
}

.rotation-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #efe7fb;
}

.rotation-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #7c3aed;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rotation-banner strong,
.rotation-banner span {
  display: block;
}

.rotation-banner strong {
  margin-bottom: 0.15rem;
  color: #332c3b;
  font-size: 0.78rem;
}

.rotation-banner span {
  color: #8a8094;
  font-size: 0.7rem;
}

.rotation-countdown {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: #efe7fb;
  color: #6d35cd;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.preview-banner {
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #dfd1ff;
  border-radius: 10px;
  background: #f5efff;
  color: #6f538f;
  font-size: 0.76rem;
}

.source-status-banner {
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #efd9a8;
  border-radius: 10px;
  background: #fff9e9;
  color: #78633a;
  font-size: 0.72rem;
}

.source-status-banner:not([hidden]) {
  display: flex;
}

.source-status-banner strong {
  flex: 0 0 auto;
  padding: 0.22rem 0.42rem;
  border-radius: 5px;
  background: #f7e8ba;
  color: #80631b;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-banner:not([hidden]) {
  display: flex;
}

.preview-banner strong {
  flex: 0 0 auto;
  padding: 0.25rem 0.45rem;
  border-radius: 5px;
  background: #e7d9ff;
  color: #6d3cc5;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.offers-loading,
.offers-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  gap: 0.35rem;
  border: 1px dashed #ded5e9;
  border-radius: 16px;
  color: #8a8094;
  text-align: center;
}

.offers-loading {
  flex-wrap: wrap;
}

.offers-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: loading-bounce 1s infinite ease-in-out;
}

.offers-loading span:nth-child(2) { animation-delay: 0.12s; }
.offers-loading span:nth-child(3) { animation-delay: 0.24s; }
.offers-loading p { flex-basis: 100%; font-size: 0.78rem; }

@keyframes loading-bounce {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.45; }
  35% { transform: translateY(-6px); opacity: 1; }
}

.offer-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e7e0ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(53, 34, 78, 0.05);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  content-visibility: auto;
  contain-intrinsic-size: 260px;
}

.offer-card:hover {
  transform: translateY(-3px);
  border-color: #d9c9f2;
  box-shadow: 0 15px 32px rgba(70, 42, 106, 0.1);
}

.offer-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(145deg, #f0e8ff, #e4d6fa);
}

.offer-visual.vinted {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(145deg, #e4fbfb, #cbeeed);
}

.offer-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.offer-visual.image-loaded img {
  opacity: 1;
}

.offer-emoji {
  font-size: 3.25rem;
  filter: drop-shadow(0 8px 10px rgba(72, 42, 104, 0.12));
}

.offer-source {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.28rem 0.46rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: #594b65;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.offer-score {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: #22a35a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(18, 105, 55, 0.2);
}

.offer-score.good { background: #d98c11; }
.offer-score.fair { background: #7c72a2; }

.offer-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem;
}

.offer-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.42rem;
  color: #968b9f;
  font-size: 0.64rem;
}

.offer-meta span + span::before {
  content: "•";
  margin-right: 0.45rem;
  color: #c2bac9;
}

.offer-title {
  display: -webkit-box;
  margin-bottom: 0.65rem;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.offer-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.offer-price {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.offer-market-price {
  color: #a69dac;
  font-size: 0.68rem;
  text-decoration: line-through;
}

.offer-discount {
  padding: 0.2rem 0.38rem;
  border-radius: 5px;
  background: #e5f8ed;
  color: #168a4a;
  font-size: 0.6rem;
  font-weight: 800;
}

.price-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.price-comparison > div {
  min-width: 0;
  padding: 0.48rem;
  border: 1px solid #eee8f3;
  border-radius: 8px;
  background: #fbf9fd;
}

.price-comparison > div.current {
  border-color: #d9c8f4;
  background: #f3edff;
}

.price-comparison span,
.price-comparison strong {
  display: block;
}

.price-comparison span {
  margin-bottom: 0.12rem;
  color: #978ca0;
  font-size: 0.53rem;
  line-height: 1.25;
}

.price-comparison strong {
  overflow: hidden;
  color: #4e4357;
  font-size: 0.64rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-saving {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.65rem;
  border-radius: 8px;
  background: #eaf8ef;
  color: #227346;
}

.offer-saving strong {
  flex: 0 0 auto;
  font-size: 0.66rem;
}

.offer-saving span {
  overflow: hidden;
  color: #548266;
  font-size: 0.55rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-reason {
  margin-bottom: 0.8rem;
  color: #776c80;
  font-size: 0.7rem;
  line-height: 1.45;
}

.offer-reason strong {
  color: #4e4258;
}

.offer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.offer-confidence {
  color: #8e8397;
  font-size: 0.62rem;
}

.offer-confidence strong {
  display: block;
  color: #62566b;
  font-size: 0.67rem;
}

.view-offer-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #f1eaff;
  color: #7040c7;
  font-size: 0.68rem;
  font-weight: 800;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.view-offer-button:hover {
  color: #fff;
  background: var(--color-primary);
  transform: translateX(2px);
}

.compact-offers .offer-card {
  grid-template-columns: 105px minmax(0, 1fr);
}

.compact-offers .offer-visual {
  min-height: 185px;
}

.compact-offers .offer-content {
  padding: 0.78rem;
}

.compact-offers .offer-reason {
  display: none;
}

.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid #e7e0ee;
  color: #92879d;
  font-size: 0.68rem;
}

.dashboard-footer a {
  flex: 0 0 auto;
  color: #7550b6;
  font-weight: 700;
}

.dashboard-toast {
  position: fixed;
  z-index: 300;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: 320px;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: #21162e;
  color: #fff;
  font-size: 0.76rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  box-shadow: 0 12px 30px rgba(26, 15, 41, 0.25);
  transition: opacity 0.25s, transform 0.25s;
}

.dashboard-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.nav-admin {
  margin-left: auto;
  padding: 0.15rem 0.35rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  color: #d9c7ff;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-modal {
  position: fixed;
  z-index: 520;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.admin-modal.open {
  visibility: visible;
  opacity: 1;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 14, 37, 0.7);
  backdrop-filter: blur(8px);
}

.admin-modal-dialog {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(920px, 94vh);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: #f8f5fb;
  box-shadow: 0 34px 90px rgba(22, 10, 36, 0.34);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.22s ease;
}

.admin-modal.open .admin-modal-dialog {
  transform: translateY(0) scale(1);
}

.admin-modal-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem 1.1rem;
  border-bottom: 1px solid #e6deed;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.admin-modal-label {
  display: block;
  margin-bottom: 0.3rem;
  color: #7c3aed;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-modal-header h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.035em;
}

.admin-modal-header p {
  margin-top: 0.28rem;
  color: #887e91;
  font-size: 0.76rem;
}

.admin-modal-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e6deed;
  border-radius: 10px;
  background: #fff;
  color: #756a7f;
  font-size: 1.2rem;
  cursor: pointer;
}

.admin-tabs {
  position: sticky;
  z-index: 4;
  top: 98px;
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #e8e1ef;
  background: rgba(248, 245, 251, 0.96);
  backdrop-filter: blur(12px);
}

.admin-tabs button {
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7c7285;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-tabs button.active {
  background: #eadefb;
  color: #6e36d1;
}

.admin-panel-view {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.admin-panel-view[hidden] {
  display: none;
}

.admin-create-card,
.admin-users-card,
.admin-settings-card {
  padding: 1.1rem;
  border: 1px solid #e5ddec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(60, 40, 78, 0.04);
}

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

.admin-section-heading span {
  display: block;
  margin-bottom: 0.15rem;
  color: #8a62c9;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-section-heading h3 {
  font-size: 1rem;
}

.admin-section-heading > strong {
  color: #7e7388;
  font-size: 0.68rem;
}

.admin-section-copy {
  max-width: 680px;
  margin: -0.35rem 0 1rem;
  color: #887d91;
  font-size: 0.72rem;
}

.admin-form {
  display: grid;
  gap: 0.85rem;
}

.admin-form-grid,
.admin-search-meta,
.admin-search-row-grid,
.admin-user-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

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

.admin-search-meta {
  grid-template-columns: repeat(2, minmax(0, 220px));
}

.admin-form label,
.admin-user-settings label,
.admin-search-row label {
  display: grid;
  gap: 0.3rem;
  color: #655b6e;
  font-size: 0.65rem;
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-user-settings input,
.admin-user-settings select,
.admin-search-row input {
  width: 100%;
  min-width: 0;
  padding: 0.62rem 0.7rem;
  border: 1px solid #ded5e7;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #403748;
  font: inherit;
  font-size: 0.72rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-user-settings input:focus,
.admin-user-settings select:focus,
.admin-search-row input:focus {
  border-color: #9b71e2;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.admin-check-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.admin-check-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #6f6478;
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-check-row input {
  accent-color: #7c3aed;
}

.admin-primary-button,
.admin-secondary-button,
.admin-danger-button {
  width: fit-content;
  padding: 0.58rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-primary-button {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
}

.admin-secondary-button {
  border-color: #ddd4e7;
  background: #fff;
  color: #655a70;
}

.admin-danger-button {
  border-color: #f0ced3;
  background: #fff4f5;
  color: #b43a4c;
}

.admin-primary-button.small,
.admin-danger-button.small {
  padding: 0.48rem 0.65rem;
}

.admin-users-list,
.admin-searches-list {
  display: grid;
  gap: 0.75rem;
}

.admin-user-row,
.admin-search-row {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid #e9e2ef;
  border-radius: 11px;
  background: #fcfafd;
}

.admin-user-row.inactive {
  opacity: 0.68;
  background: #f6f3f7;
}

.admin-user-identity,
.admin-user-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.admin-user-identity strong,
.admin-user-identity span {
  display: block;
}

.admin-user-identity strong {
  font-size: 0.82rem;
}

.admin-user-identity div > span {
  margin-top: 0.12rem;
  color: #94899d;
  font-size: 0.6rem;
}

.admin-user-status {
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: #e7f8ed;
  color: #21854c;
  font-size: 0.56rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-user-row.inactive .admin-user-status {
  background: #f4e7e9;
  color: #ad4050;
}

.admin-user-actions {
  justify-content: flex-start;
}

.admin-search-row {
  position: relative;
}

.admin-search-row > .admin-danger-button {
  justify-self: end;
}

.admin-loading,
.admin-empty {
  padding: 1.5rem;
  color: #8c8195;
  font-size: 0.72rem;
  text-align: center;
}

.admin-panel-status {
  position: sticky;
  z-index: 6;
  bottom: 0;
  min-height: 0;
  padding: 0 1.5rem;
  background: #f8f5fb;
  color: #6f6478;
  font-size: 0.7rem;
}

.admin-panel-status:not(:empty) {
  min-height: 42px;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  border-top: 1px solid #e5ddec;
}

.admin-panel-status.success {
  color: #1f7a47;
}

.admin-panel-status.error {
  color: #b4384a;
}

.modal-open {
  overflow: hidden;
}

.safety-tip-button {
  position: fixed;
  z-index: 180;
  right: 1.35rem;
  bottom: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: #241531;
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(30, 16, 42, 0.24);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.safety-tip-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #c8a8ff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safety-tip-button:hover {
  transform: translateY(-3px);
  background: #332043;
  box-shadow: 0 16px 34px rgba(30, 16, 42, 0.3);
}

.safety-modal {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.25s, opacity 0.25s;
}

.safety-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.safety-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 11, 30, 0.68);
  backdrop-filter: blur(7px);
}

.safety-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 2.5rem));
  padding: clamp(1.45rem, 4vw, 2.2rem);
  overflow-y: auto;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(139, 92, 246, 0.12), transparent 28%),
    #fff;
  box-shadow: 0 28px 70px rgba(19, 10, 29, 0.34);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.25s ease;
}

.safety-modal.open .safety-modal-dialog {
  transform: translateY(0) scale(1);
}

.safety-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
  color: #776b82;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.safety-modal-close:hover {
  background: var(--color-alt);
  color: var(--color-primary-dark);
}

.safety-modal-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border-radius: 15px;
  background: var(--color-alt);
  color: var(--color-primary-dark);
}

.safety-modal-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safety-modal-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.safety-modal-dialog h2 {
  max-width: 440px;
  margin-bottom: 0.65rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.safety-modal-dialog > p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.safety-checklist {
  display: grid;
  gap: 0.7rem;
  margin: 1.35rem 0;
  list-style: none;
}

.safety-checklist li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid #eee8f5;
  border-radius: 11px;
  background: #fcfaff;
}

.safety-checklist li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #eee5ff;
  color: #7443cb;
  font-size: 0.65rem;
  font-weight: 800;
}

.safety-checklist strong {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.82rem;
}

.safety-checklist p {
  color: #807588;
  font-size: 0.72rem;
  line-height: 1.45;
}

.safety-modal-note {
  padding: 0.8rem 0.9rem;
  margin-bottom: 1rem;
  border-left: 3px solid #f0aa22;
  border-radius: 0 9px 9px 0;
  background: #fff8e7;
  color: #786039;
  font-size: 0.72rem;
  line-height: 1.45;
}

.safety-modal-confirm {
  width: 100%;
  padding: 0.78rem 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(139, 92, 246, 0.22);
  transition: background 0.2s, transform 0.2s;
}

.safety-modal-confirm:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

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

@media (max-width: 1120px) {
  .dashboard-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

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

@media (max-width: 780px) {
  .admin-modal {
    padding: 0;
  }

  .admin-modal-dialog {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

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

  .admin-user-settings,
  .admin-search-row-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-shell {
    display: block;
  }

  .dashboard-sidebar {
    position: fixed;
    z-index: 250;
    left: 0;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    box-shadow: 18px 0 45px rgba(24, 13, 38, 0.28);
    transition: transform 0.28s ease;
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .dashboard-mobile-header {
    position: sticky;
    z-index: 200;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 4%;
    border-bottom: 1px solid #e7e0ee;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
  }

  .dashboard-mobile-header .logo {
    font-size: 1.2rem;
  }

  .sidebar-toggle {
    display: grid;
    gap: 4px;
    width: 32px;
    padding: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .sidebar-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-text);
  }

  .mobile-header-spacer {
    width: 32px;
  }

  .dashboard-content {
    padding: 1.5rem 4% 1rem;
  }

  .daily-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .offers-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .offers-controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .language-switcher {
    gap: 1px;
    padding: 2px;
  }

  .language-switcher button {
    width: 30px;
    height: 28px;
    font-size: 0.95rem;
  }

  .nav-home > .language-switcher {
    left: 0;
  }

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

  .source-filter select,
  .sort-filter select {
    width: 100%;
    min-width: 0;
  }

  .deal-limit,
  .member-limit {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .admin-modal-header {
    padding: 1rem;
  }

  .admin-modal-header p {
    display: none;
  }

  .admin-tabs {
    top: 78px;
    padding: 0.65rem 1rem;
    overflow-x: auto;
  }

  .admin-panel-view {
    padding: 1rem;
  }

  .admin-form-grid,
  .admin-search-meta,
  .admin-search-row-grid,
  .admin-user-settings,
  .quality-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-user-actions button {
    width: 100%;
  }

  .admin-section-heading {
    align-items: flex-start;
  }

  .dashboard-topbar {
    align-items: flex-start;
  }

  .dashboard-topbar-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 0.4rem;
  }

  .account-role-badge {
    min-height: 28px;
    padding: 0.35rem 0.55rem;
    font-size: 0.6rem;
  }

  .dashboard-status {
    padding: 0.5rem;
  }

  .dashboard-status span:last-child {
    display: none;
  }

  .rotation-banner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .rotation-countdown {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }

  .deal-stats {
    gap: 0.6rem;
  }

  .deal-stat {
    padding: 0.75rem;
  }

  .deal-stat-icon {
    width: 32px;
    height: 32px;
  }

  .offer-card {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .offer-visual {
    min-height: 235px;
  }

  .offer-content {
    padding: 0.85rem;
  }

  .offer-action {
    align-items: flex-end;
  }

  .dashboard-footer {
    align-items: flex-start;
  }

  .safety-tip-button {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.68rem;
  }

  .safety-tip-button span {
    display: none;
  }

  .safety-modal {
    align-items: end;
    padding: 0;
  }

  .safety-modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
}






/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

  .reviews-list {
    grid-template-columns: 1fr;
  }

  .reviews-page {
    padding-top: calc(var(--header-height) + 2.5rem);
  }

  .terms-page {
    padding-top: calc(var(--header-height) + 2rem);
  }

  .terms-list li {
    padding: 1rem 1rem 1rem 3.6rem;
  }

  .login-header-btn {
    min-width: 74px;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .hero {
    padding-bottom: 2.75rem;
  }
}
