:root {
  --bg: #0c0d11;
  --surface: #181b22;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #b0b8cb;
  --muted-2: #7f889a;
  --accent: #4d7cff;
  --accent-2: #2dd4bf;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --max: 1380px;
  --font-display: "Segoe UI", "Trebuchet MS", sans-serif;
  --font-body: Aptos, "Segoe UI", Tahoma, Arial, "Noto Sans Arabic", sans-serif;
}

@font-face {
  font-family: "NRT-Bold";
  src:
    local("NRT-Bold"),
    local("NRT Bold"),
    local("NRT-Bd"),
    local("NRT");
  font-style: normal;
  font-weight: 700;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(77, 124, 255, 0.18), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.08), transparent 20%),
    linear-gradient(180deg, #0b0c10 0%, #0d0f14 100%);
}

html[lang="ckb"],
html[lang="ar"] {
  --font-display: "NRT-Bold", "Noto Sans Arabic", Tahoma, sans-serif;
  --font-body: "NRT-Bold", "Noto Sans Arabic", Tahoma, sans-serif;
}

html[lang="ckb"] body,
html[lang="ckb"] button,
html[lang="ckb"] input,
html[lang="ckb"] select,
html[lang="ckb"] textarea,
html[lang="ckb"] small,
html[lang="ckb"] strong,
html[lang="ckb"] p,
html[lang="ckb"] span,
html[lang="ckb"] h1,
html[lang="ckb"] h2,
html[lang="ckb"] h3,
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea,
html[lang="ar"] small,
html[lang="ar"] strong,
html[lang="ar"] p,
html[lang="ar"] span,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-family: "NRT-Bold", "Noto Sans Arabic", Tahoma, sans-serif !important;
}

a {
  color: inherit;
  text-decoration: none;
}

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

input {
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
}

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
}

.page-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.site-header {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 0;
}

.brand {
  display: inline-flex;
  gap: 0.4rem;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.brand-accent {
  color: var(--accent-2);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--muted);
}

.site-nav a:hover,
.signin-link:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

.search-shell {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: min(31rem, 100%);
  width: min(31rem, 100%);
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
}

.search-shell svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.search-shell input {
  width: 100%;
}

.language-inline {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.lang-chip {
  min-width: 2.65rem;
  height: 2.3rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.lang-chip.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.theme-toggle {
  min-height: 2.3rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}

.signin-link {
  color: var(--text);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0.7rem 1rem;
}

.hero-section {
  position: relative;
  padding: 3rem 0 2.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(52rem, 100%);
  margin: 0 auto;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
}

.hero-orb-one {
  top: 1rem;
  left: 6%;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(77, 124, 255, 0.3), transparent 70%);
}

.hero-orb-two {
  top: 4rem;
  right: 8%;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18), transparent 72%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
}

.hero-badge span:first-child {
  display: inline-grid;
  place-items: center;
  min-width: 3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(77, 124, 255, 0.22);
  color: #d7e2ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-kicker {
  margin: 0 0 1rem;
  color: #cfd8ef;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero-section h1,
.feature-section h2,
.membership-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.hero-section h1 {
  font-size: clamp(3rem, 6.8vw, 5.9rem);
}

.hero-text,
.feature-intro p,
.feature-column p,
.membership-copy p,
.site-footer p {
  color: var(--muted);
}

.hero-text {
  width: min(44rem, 100%);
  margin: 1.4rem auto 0;
  font-size: 1.2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  min-height: 3.35rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
}

.button-primary {
  background: linear-gradient(90deg, var(--accent) 0%, #3c97ff 100%);
  color: #ffffff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.tool-strip {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.2rem;
  color: #a2abc0;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.3rem;
}

.stat-card {
  padding: 1.2rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.stat-card strong {
  display: block;
  font-size: 1rem;
}

.stat-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.gallery-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  padding: 1rem 0 4.5rem;
}

.gallery-card {
  position: relative;
  grid-column: span 2;
  min-height: 14rem;
  overflow: hidden;
  border-radius: 1.4rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-card.wide {
  grid-column: span 3;
}

.gallery-card.tall {
  grid-row: span 2;
  min-height: 29rem;
}

.gallery-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 25%, rgba(0, 0, 0, 0.72) 100%);
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-meta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
}

.gallery-meta p {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.gallery-meta strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.35;
}

.feature-section,
.membership-section,
.regional-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
  padding: 1rem 0 5rem;
}

.section-kicker {
  margin: 0 0 1rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.feature-section h2,
.membership-copy h2 {
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  max-width: 10ch;
}

.feature-intro p:last-child,
.membership-copy p:last-child {
  max-width: 38rem;
  line-height: 1.75;
}

.feature-columns {
  display: grid;
  gap: 1rem;
}

.feature-column,
.regional-card,
.membership-panel {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.feature-column h3 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
}

.feature-column p {
  margin: 0;
  line-height: 1.75;
}

.regional-copy p:last-child {
  max-width: 38rem;
  line-height: 1.75;
}

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

.regional-card {
  padding-top: 1.3rem;
}

.regional-card span {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.regional-card h3 {
  margin: 0.9rem 0 0.7rem;
  font-size: 1.3rem;
}

.regional-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.membership-panel {
  background:
    linear-gradient(180deg, rgba(77, 124, 255, 0.08), rgba(45, 212, 191, 0.04)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  padding: 2rem;
}

.price-line {
  margin: 0 0 1rem;
}

.price {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.price-note {
  margin-inline-start: 0.5rem;
  color: var(--muted);
}

.benefit-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  color: #dbe1ee;
}

.membership-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}

.footer-brand {
  color: var(--text);
  font-weight: 800;
}

html[dir="rtl"] body {
  font-family: Tahoma, "Segoe UI", "Noto Sans Arabic", sans-serif;
}

html[dir="rtl"] .site-header,
html[dir="rtl"] .feature-section,
html[dir="rtl"] .membership-section,
html[dir="rtl"] .site-footer {
  direction: rtl;
}

html[dir="rtl"] .hero-section,
html[dir="rtl"] .feature-intro,
html[dir="rtl"] .feature-column,
html[dir="rtl"] .regional-copy,
html[dir="rtl"] .regional-card,
html[dir="rtl"] .membership-copy,
html[dir="rtl"] .membership-panel,
html[dir="rtl"] .site-footer {
  text-align: right;
}

html[dir="rtl"] .stat-card {
  text-align: right;
}

html[dir="rtl"] .search-shell input {
  direction: rtl;
  text-align: right;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: start;
  }

  .site-nav.is-open {
    position: absolute;
    top: 4.8rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: rgba(12, 13, 17, 0.96);
    z-index: 10;
  }

  .gallery-card {
    grid-column: span 3;
  }

  .gallery-card.wide {
    grid-column: span 4;
  }

  .feature-section,
  .membership-section,
  .regional-section {
    grid-template-columns: 1fr;
  }

  .regional-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(var(--max), calc(100% - 1rem));
  }

  .site-header {
    grid-template-columns: auto auto;
    gap: 0.8rem;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .search-shell {
    width: 100%;
    min-width: 0;
    order: 3;
  }

  .gallery-card,
  .gallery-card.wide,
  .gallery-card.tall {
    grid-column: span 6;
    grid-row: auto;
    min-height: 15rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero-section {
    padding-top: 1.8rem;
  }

  .hero-section h1 {
    font-size: clamp(2.45rem, 12vw, 3.6rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .gallery-card,
  .gallery-card.wide,
  .gallery-card.tall {
    grid-column: span 12;
    min-height: 16rem;
  }

  .membership-panel {
    padding: 1.4rem;
  }
}

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(77, 124, 255, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.12), transparent 24%),
    linear-gradient(180deg, #0a0c10 0%, #0f1218 100%);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(22rem, 1.1fr);
  min-height: 100vh;
}

.auth-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(77, 124, 255, 0.12)),
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.18), transparent 20%);
  border-right: 1px solid var(--line);
}

.auth-brand {
  display: inline-flex;
  gap: 0.4rem;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.auth-visual-copy {
  max-width: 30rem;
}

.auth-visual-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.auth-visual-copy p:last-child {
  margin: 1.2rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.auth-feature-stack {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.auth-mini-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
}

.auth-mini-card strong {
  display: block;
}

.auth-mini-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-panel-page {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

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

.auth-topbar-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.back-link,
.text-link {
  color: #d9e2f5;
}

.auth-form-shell {
  width: min(34rem, 100%);
  margin: auto;
}

.auth-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.auth-heading p:last-child {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.auth-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.auth-switch {
  min-height: 3.2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.auth-switch.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.account-form {
  display: none;
  margin-top: 1.7rem;
}

.account-form.is-active {
  display: block;
}

.auth-label {
  display: inline-block;
  margin: 1rem 0 0.55rem;
  color: #dce4f7;
  font-size: 0.95rem;
}

.auth-input {
  display: flex;
  align-items: center;
  min-height: 3.65rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.auth-input-password {
  justify-content: space-between;
  gap: 1rem;
}

.auth-input input {
  width: 100%;
}

.password-toggle {
  border: none;
  background: transparent;
  color: #dce4f7;
  font-weight: 700;
}

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

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
}

.check-row input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.auth-consent {
  margin-top: 1rem;
  line-height: 1.6;
}

.auth-submit {
  width: 100%;
  margin-top: 1.3rem;
}

.auth-status {
  margin: 1rem 0 0;
  color: var(--muted);
  min-height: 1.5rem;
}

html[dir="rtl"] .auth-layout,
html[dir="rtl"] .auth-topbar,
html[dir="rtl"] .auth-row {
  direction: rtl;
}

html[dir="rtl"] .auth-visual-copy,
html[dir="rtl"] .auth-form-shell,
html[dir="rtl"] .auth-status,
html[dir="rtl"] .auth-mini-card {
  text-align: right;
}

html[dir="rtl"] .auth-input input[type="email"],
html[dir="rtl"] .auth-input input[type="password"] {
  direction: ltr;
  text-align: left;
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    gap: 2rem;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .auth-visual,
  .auth-panel-page {
    padding: 1rem;
  }

  .auth-topbar,
  .auth-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-topbar-tools {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  html[dir="rtl"] .auth-topbar,
  html[dir="rtl"] .auth-row {
    align-items: flex-end;
  }

  html[dir="rtl"] .auth-topbar-tools {
    justify-content: flex-end;
  }
}

.dashboard-body {
  min-height: 100vh;
  color: #edf3ff;
  background:
    linear-gradient(180deg, rgba(14, 18, 29, 0.96), rgba(10, 13, 22, 0.98)),
    radial-gradient(circle at 12% 10%, rgba(77, 124, 255, 0.18), transparent 20%),
    radial-gradient(circle at 82% 16%, rgba(45, 212, 191, 0.14), transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, auto, 28px 28px, 28px 28px;
}

.dashboard-page {
  width: min(1360px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2.25rem;
}

.dashboard-banner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(77, 124, 255, 0.16), rgba(45, 212, 191, 0.1)),
    rgba(13, 17, 28, 0.86);
  color: #e7efff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.dashboard-banner-copy {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.dashboard-banner-copy p {
  margin: 0;
}

.dashboard-banner-tag {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(77, 124, 255, 0.22);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.banner-close {
  border: none;
  background: transparent;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
}

.workspace-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: rgba(11, 15, 24, 0.78);
  backdrop-filter: blur(14px);
}

.workspace-brand {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #f7fbff;
}

.workspace-nav {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.workspace-tab {
  padding: 0.95rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: #9baccc;
  font-weight: 700;
}

.workspace-tab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(77, 124, 255, 0.24), rgba(45, 212, 191, 0.12));
  border-color: rgba(77, 124, 255, 0.38);
}

.workspace-tools {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.tool-button {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: #d0dcf6;
}

.member-chip {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-shell {
  position: relative;
}

.profile-trigger {
  border: none;
  background: transparent;
  color: inherit;
}

.member-chip strong {
  display: block;
  color: #f4f8ff;
}

.member-chip small {
  color: #6cc9ff;
}

.member-avatar {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(77, 124, 255, 0.2), rgba(45, 212, 191, 0.18));
  color: #f4fbff;
  font-weight: 800;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  right: 0;
  z-index: 20;
  width: min(22rem, 88vw);
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.4rem;
  background: rgba(12, 16, 26, 0.96);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
}

.profile-menu-head {
  display: grid;
  gap: 0.22rem;
  margin-bottom: 1rem;
}

.profile-menu-title {
  color: #6cc9ff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.profile-menu-head strong {
  color: #f3f8ff;
}

.profile-menu-head small {
  color: #9eb0cb;
  word-break: break-word;
}

.profile-form {
  display: grid;
  gap: 0.65rem;
}

.profile-label {
  color: #9eb0cb;
  font-size: 0.88rem;
}

.profile-input-shell {
  display: flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.profile-input-shell input {
  width: 100%;
}

.profile-save,
.profile-logout {
  width: 100%;
}

.profile-feedback {
  min-height: 1.2rem;
  margin: 0.8rem 0;
  color: #78e3a6;
  font-size: 0.88rem;
}

.profile-feedback.is-error {
  color: #ff8e8e;
}

.workspace-main {
  display: grid;
  gap: 1.8rem;
  padding-top: 1.6rem;
}

.welcome-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: stretch;
}

.dashboard-hero {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.14), transparent 18%),
    radial-gradient(circle at bottom left, rgba(77, 124, 255, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(17, 24, 40, 0.96), rgba(12, 18, 31, 0.96));
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.28);
}

.welcome-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #f8fbff;
}

.welcome-copy p:last-child {
  margin: 0.55rem 0 0;
  color: #a8b5ce;
  line-height: 1.7;
}

.welcome-name {
  color: #63d4ff;
}

.hero-side {
  display: grid;
  gap: 1rem;
  width: min(18rem, 100%);
}

.hero-side-card {
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.03);
}

.hero-side-label {
  display: block;
  color: #6cc9ff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.hero-side-card strong {
  display: block;
  margin-top: 0.55rem;
  color: #ffffff;
  font-size: 1.35rem;
}

.hero-side-card p {
  margin: 0.55rem 0 0;
  color: #a6b4ce;
  line-height: 1.65;
}

.logout-button {
  min-width: 11.5rem;
  background: rgba(255, 255, 255, 0.03);
  color: #f2f7ff;
  border-color: rgba(255, 255, 255, 0.12);
}

.license-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(18rem, 1.15fr) auto;
  gap: 1.3rem;
  align-items: center;
  padding: 1.7rem 1.8rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(77, 124, 255, 0.16), transparent 24%),
    linear-gradient(135deg, #0f1628 0%, #171f39 60%, #111827 100%);
  color: #ffffff;
  box-shadow: 0 28px 55px rgba(20, 27, 49, 0.22);
}

.license-icon {
  display: inline-grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(77, 124, 255, 0.18), rgba(45, 212, 191, 0.08));
  color: #7ddcff;
  font-weight: 900;
}

.license-copy h2 {
  margin: 0;
  font-size: 2rem;
}

.license-copy p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.license-input-shell {
  display: flex;
  align-items: center;
  min-height: 4rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(6, 9, 18, 0.45);
}

.license-input-shell input {
  width: 100%;
  color: #d7e4ff;
  letter-spacing: 0.12em;
}

.verify-button {
  min-width: 9rem;
  box-shadow: none;
}

.license-feedback {
  margin: -0.7rem 0 0;
  color: #a8b5ce;
}

.license-feedback[data-message-key="licenseSuccess"] {
  color: #89f3b1;
}

.license-feedback[data-message-key="licenseInvalid"],
.license-feedback[data-message-key="licenseMismatch"] {
  color: #ff9db4;
}

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

.service-card,
.announcement-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top left, rgba(77, 124, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(16, 21, 33, 0.96), rgba(13, 18, 29, 0.98));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
}

.service-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4d7cff, #2dd4bf);
}

.service-card:not(.service-card-active)::before {
  background: linear-gradient(90deg, #ff4d7a, #d14cff);
}

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

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(77, 124, 255, 0.22), rgba(86, 157, 255, 0.12));
  color: #7ba7ff;
  font-weight: 900;
  font-size: 1.2rem;
}

.service-icon-green {
  background: linear-gradient(180deg, rgba(147, 255, 182, 0.2), rgba(61, 193, 84, 0.12));
  color: #88f0a1;
}

.service-icon-cyan {
  background: linear-gradient(180deg, rgba(92, 222, 255, 0.22), rgba(54, 145, 189, 0.12));
  color: #7ee8ff;
}

.status-pill {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-active {
  background: rgba(80, 227, 154, 0.14);
  color: #89f3b1;
}

.status-expired {
  background: rgba(255, 90, 129, 0.14);
  color: #ff8ca9;
}

.service-card h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 2rem;
  color: #f3f7ff;
}

.service-card p {
  margin: 0;
  color: #9fb0cb;
  line-height: 1.75;
}

.service-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
}

.service-meta small {
  display: block;
  color: #7f90ad;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.service-meta strong {
  display: block;
  margin-top: 0.55rem;
  color: #8af0b2;
}

.service-card:not(.service-card-active) .service-meta strong {
  color: #ff8cab;
}

.service-action {
  width: 100%;
  margin-top: 1.7rem;
}

.button-renew {
  background: linear-gradient(90deg, #ff446f 0%, #e446c5 100%);
  color: #ffffff;
}

.announcement-panel {
  padding: 2rem;
}

.announcement-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.announcement-item {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-item strong {
  display: block;
  color: #eef4ff;
}

.announcement-item p {
  margin: 0.45rem 0 0;
  color: #9eb0cb;
  line-height: 1.7;
}

html[dir="rtl"] .dashboard-page,
html[dir="rtl"] .dashboard-banner,
html[dir="rtl"] .workspace-header,
html[dir="rtl"] .workspace-tools,
html[dir="rtl"] .welcome-row,
html[dir="rtl"] .license-panel,
html[dir="rtl"] .service-card-top,
html[dir="rtl"] .panel-head {
  direction: rtl;
}

html[dir="rtl"] .workspace-main,
html[dir="rtl"] .welcome-copy,
html[dir="rtl"] .license-copy,
html[dir="rtl"] .service-card,
html[dir="rtl"] .announcement-panel {
  text-align: right;
}

html[dir="rtl"] .member-chip {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.55rem 1rem 0.55rem 0.65rem;
}

html[dir="rtl"] .profile-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .license-input-shell input {
  direction: ltr;
  text-align: left;
}

@media (max-width: 1180px) {
  .workspace-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .workspace-nav,
  .workspace-tools {
    width: 100%;
    justify-content: flex-start;
  }

  html[dir="rtl"] .workspace-header {
    justify-items: end;
  }

  html[dir="rtl"] .workspace-nav,
  html[dir="rtl"] .workspace-tools {
    justify-content: flex-end;
  }

  .license-panel,
  .service-grid,
  .welcome-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .dashboard-page {
    width: calc(100% - 1rem);
  }

  .dashboard-banner,
  .welcome-row,
  .workspace-tools,
  .workspace-nav,
  .service-card-top,
  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .workspace-tab {
    width: 100%;
    text-align: center;
  }

  .member-chip {
    border: none;
    padding: 0;
  }

  .service-meta {
    grid-template-columns: 1fr;
  }

  html[dir="rtl"] .dashboard-banner,
  html[dir="rtl"] .welcome-row,
  html[dir="rtl"] .workspace-tools,
  html[dir="rtl"] .workspace-nav,
  html[dir="rtl"] .service-card-top,
  html[dir="rtl"] .panel-head {
    align-items: flex-end;
  }
}

.service-card-linkable {
  cursor: pointer;
}

.service-card-linkable:focus-visible {
  outline: 2px solid rgba(108, 201, 255, 0.9);
  outline-offset: 4px;
}

.service-body {
  background:
    linear-gradient(180deg, #eef5ff 0%, #f7fbff 100%),
    linear-gradient(90deg, rgba(34, 92, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(34, 92, 255, 0.06) 1px, transparent 1px);
  color: #14213d;
}

.service-page {
  padding-bottom: 3rem;
}

.service-banner {
  color: #eef4ff;
}

.service-header {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(18, 34, 65, 0.08);
}

.service-header .workspace-brand,
.service-header .workspace-tab.is-active,
.service-header .member-chip strong {
  color: #16233f;
}

.service-header .workspace-tab {
  background: rgba(29, 58, 112, 0.05);
  border-color: rgba(29, 58, 112, 0.08);
  color: #5d7092;
}

.service-header .workspace-tab.is-active {
  background: linear-gradient(135deg, rgba(77, 124, 255, 0.16), rgba(45, 212, 191, 0.12));
}

.service-header .tool-button,
.service-header .language-inline {
  background: rgba(29, 58, 112, 0.05);
  color: #35507e;
}

.service-header .member-chip {
  border-color: rgba(18, 34, 65, 0.08);
}

.service-main {
  padding-top: 1.4rem;
}

.service-shell {
  display: grid;
  gap: 1.4rem;
}

.service-topline,
.download-surface,
.history-surface {
  border: 1px solid rgba(18, 34, 65, 0.08);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 44px rgba(39, 61, 110, 0.08);
}

.service-topline {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  align-items: flex-start;
  padding: 2rem;
}

.service-copy h1,
.download-surface-head h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  color: #17233d;
}

.service-copy h1 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.service-subtitle,
.metric-panel p,
.supported-formats-box p,
.history-item p,
.history-item time {
  color: #5d7092;
  line-height: 1.7;
}

.service-breadcrumb {
  color: #4b75d6;
}

.crumb-divider {
  margin: 0 0.45rem;
}

.service-state-strip {
  display: grid;
  gap: 0.9rem;
  width: min(24rem, 100%);
}

.service-state-pill {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(241, 247, 255, 0.96), rgba(249, 252, 255, 0.96));
  border: 1px solid rgba(18, 34, 65, 0.08);
}

.service-state-pill small {
  display: block;
  color: #7285a6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.service-state-pill strong {
  display: block;
  margin-top: 0.3rem;
  color: #15223b;
}

.state-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(77, 124, 255, 0.12);
}

.state-dot.is-online {
  background: #4d7cff;
}

.state-dot.is-active {
  background: #19c286;
  box-shadow: 0 0 0 8px rgba(25, 194, 134, 0.12);
}

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

.metric-panel {
  padding: 1.55rem;
  border: 1px solid rgba(18, 34, 65, 0.08);
  border-radius: 1.7rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 38px rgba(39, 61, 110, 0.08);
}

.metric-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  font-weight: 900;
}

.metric-icon-gold {
  background: rgba(255, 176, 0, 0.14);
  color: #cb8a00;
}

.metric-icon-mint {
  background: rgba(25, 194, 134, 0.14);
  color: #139768;
}

.metric-icon-blue {
  background: rgba(77, 124, 255, 0.12);
  color: #2c61dd;
}

.metric-icon-violet {
  background: rgba(145, 102, 255, 0.12);
  color: #7c52e0;
}

.metric-panel small {
  display: block;
  margin-top: 1rem;
  color: #7b8ead;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.metric-panel strong {
  display: block;
  margin-top: 0.85rem;
  color: #182644;
  font-size: clamp(1.7rem, 2vw, 2.3rem);
}

.metric-bar {
  height: 0.45rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: rgba(22, 35, 61, 0.08);
  overflow: hidden;
}

.metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4d7cff, #2dd4bf);
}

.metric-timer-note {
  margin-top: 1rem;
  color: #6b7fa2;
  line-height: 1.7;
}

.spark-bars {
  display: flex;
  align-items: end;
  gap: 0.35rem;
  height: 2rem;
  margin-top: 1rem;
}

.spark-bars span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(77, 124, 255, 0.3), rgba(77, 124, 255, 0.9));
}

.spark-bars span:nth-child(1) {
  height: 35%;
}

.spark-bars span:nth-child(2) {
  height: 48%;
}

.spark-bars span:nth-child(3) {
  height: 70%;
}

.spark-bars span:nth-child(4) {
  height: 82%;
}

.download-surface,
.history-surface {
  padding: 1.85rem;
}

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

.supported-formats-box {
  margin-top: 1.4rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(25, 194, 134, 0.16);
  border-radius: 1.3rem;
  background: linear-gradient(135deg, rgba(25, 194, 134, 0.08), rgba(77, 124, 255, 0.04));
}

.supported-formats-box strong {
  color: #0f6f55;
}

.supported-formats-box p {
  margin: 0.45rem 0 0;
}

.download-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  margin-top: 1.4rem;
}

.download-input-shell {
  display: flex;
  align-items: center;
  min-height: 4rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(18, 34, 65, 0.1);
  border-radius: 1.25rem;
  background: #f9fbff;
}

.download-input-shell input {
  width: 100%;
  color: #14213d;
}

.compact-button {
  min-width: 9.5rem;
}

.download-button {
  min-width: 13rem;
}

.download-button.is-loading {
  opacity: 0.88;
  cursor: wait;
}

.download-progress {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  background: rgba(74, 118, 255, 0.08);
  border: 1px solid rgba(74, 118, 255, 0.12);
}

.download-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: #1a2d52;
}

.download-progress-head strong {
  font-size: 0.98rem;
}

.download-progress-head span {
  font-size: 0.9rem;
  color: #4f6488;
}

.download-progress-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #5d7092;
  word-break: break-word;
}

.download-progress-bar {
  position: relative;
  width: 100%;
  height: 0.7rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(20, 33, 61, 0.08);
}

.download-progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4d7cff 0%, #2dd4bf 100%);
  transition: width 0.2s ease;
}

.download-progress.is-indeterminate .download-progress-bar span {
  width: 42%;
  animation: download-indeterminate 1.2s ease-in-out infinite;
}

.download-feedback {
  margin: 1rem 0 0;
  color: #5d7092;
}

@keyframes download-indeterminate {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(250%);
  }
}

.history-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(18, 34, 65, 0.08);
  border-radius: 1.25rem;
  background: #fbfdff;
}

.history-item-main strong {
  display: block;
  color: #17233d;
}

.history-item-main p,
.history-item-side time {
  margin: 0.35rem 0 0;
}

.history-item-side {
  text-align: right;
}

.history-status {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(25, 194, 134, 0.12);
  color: #138059;
  font-size: 0.82rem;
  font-weight: 800;
}

.history-empty {
  margin: 0;
  color: #5d7092;
}

.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;
}

html[dir="rtl"] .service-topline,
html[dir="rtl"] .service-state-pill,
html[dir="rtl"] .download-surface-head,
html[dir="rtl"] .history-item {
  direction: rtl;
}

html[dir="rtl"] .service-copy,
html[dir="rtl"] .metric-panel,
html[dir="rtl"] .download-surface,
html[dir="rtl"] .history-surface,
html[dir="rtl"] .history-item-side {
  text-align: right;
}

html[dir="rtl"] .download-input-shell input {
  direction: ltr;
  text-align: left;
}

@media (max-width: 1180px) {
  .service-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-topline {
    flex-direction: column;
  }

  .service-state-strip {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .service-stats-grid,
  .service-state-strip,
  .download-form {
    grid-template-columns: 1fr;
  }

  .download-surface-head,
  .history-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-item-side {
    text-align: left;
  }

  html[dir="rtl"] .download-surface-head,
  html[dir="rtl"] .history-item {
    align-items: flex-end;
  }

  html[dir="rtl"] .history-item-side {
    text-align: right;
  }
}

.admin-button {
  min-width: 11.5rem;
}

.admin-body {
  background:
    linear-gradient(180deg, rgba(14, 18, 29, 0.98), rgba(9, 12, 20, 1)),
    radial-gradient(circle at 15% 12%, rgba(77, 124, 255, 0.18), transparent 20%),
    radial-gradient(circle at 82% 14%, rgba(45, 212, 191, 0.12), transparent 18%);
}

.admin-main {
  gap: 1.4rem;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: stretch;
}

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

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

.admin-panel {
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at top left, rgba(77, 124, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(16, 21, 33, 0.96), rgba(13, 18, 29, 0.98));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
}

.admin-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  letter-spacing: -0.04em;
}

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

.admin-submit {
  width: 100%;
  margin-top: 0.8rem;
}

.admin-feedback {
  margin: 1rem 0 0;
  color: #9eb0cb;
}

.admin-feedback.is-error {
  color: #ff9db4;
}

.admin-table-list,
.admin-transaction-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.admin-record {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
}

.admin-record-main strong {
  display: block;
  color: #eef4ff;
}

.admin-record-main p {
  margin: 0.35rem 0 0;
  color: #9eb0cb;
  line-height: 1.6;
}

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

.admin-record-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, max-content));
  gap: 0.6rem 1rem;
  justify-items: end;
  align-items: start;
  color: #b7c6df;
  font-size: 0.92rem;
}

.admin-action-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-self: end;
}

.admin-role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(77, 124, 255, 0.18);
  color: #dcebff;
  font-weight: 800;
}

.admin-empty {
  margin: 0;
  color: #9eb0cb;
}

.admin-inline-label {
  display: grid;
  gap: 0.35rem;
  color: #d8e2f5;
  font-size: 0.9rem;
}

.admin-inline-input,
.auth-input select,
.auth-input textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f8ff;
  padding: 0.85rem 0.95rem;
}

.auth-input select,
.auth-input textarea {
  outline: none;
}

.auth-input-textarea {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: none;
}

.auth-input-textarea textarea {
  resize: vertical;
  min-height: 7rem;
}

.admin-small-button {
  min-width: 8rem;
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
}

.button-danger {
  background: rgba(255, 90, 116, 0.12);
  border: 1px solid rgba(255, 90, 116, 0.24);
  color: #ff9dae;
}

html[dir="rtl"] .admin-hero,
html[dir="rtl"] .admin-record {
  direction: rtl;
}

html[dir="rtl"] .admin-panel,
html[dir="rtl"] .admin-record-meta {
  text-align: right;
}

html[dir="rtl"] .admin-record-meta {
  justify-items: start;
}

html[dir="rtl"] .admin-action-row {
  justify-self: start;
}

@media (max-width: 1180px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid,
  .admin-hero {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .admin-stats-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-record-grid {
    grid-template-columns: 1fr;
  }

  .admin-record {
    flex-direction: column;
  }

  .admin-record-meta {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  html[dir="rtl"] .admin-record-meta {
    justify-items: end;
  }

  .admin-action-row {
    width: 100%;
    justify-self: stretch;
  }
}

html[data-theme="light"] body {
  color: #16233f;
  background:
    radial-gradient(circle at 50% -10%, rgba(77, 124, 255, 0.1), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.08), transparent 18%),
    linear-gradient(180deg, #f4f8ff 0%, #f8fbff 100%);
}

html[data-theme="light"] .search-shell,
html[data-theme="light"] .language-inline,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .auth-mini-card,
html[data-theme="light"] .auth-switcher,
html[data-theme="light"] .auth-input,
html[data-theme="light"] .workspace-header,
html[data-theme="light"] .hero-side-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .announcement-panel,
html[data-theme="light"] .service-meta,
html[data-theme="light"] .license-input-shell,
html[data-theme="light"] .admin-panel,
html[data-theme="light"] .admin-record,
html[data-theme="light"] .tool-button {
  border-color: rgba(18, 34, 65, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: #16233f;
  box-shadow: 0 16px 36px rgba(39, 61, 110, 0.08);
}

html[data-theme="light"] .site-nav,
html[data-theme="light"] .hero-text,
html[data-theme="light"] .feature-intro p:last-child,
html[data-theme="light"] .feature-column p,
html[data-theme="light"] .regional-copy p:last-child,
html[data-theme="light"] .regional-card p,
html[data-theme="light"] .membership-copy p,
html[data-theme="light"] .site-footer p,
html[data-theme="light"] .auth-visual-copy p:last-child,
html[data-theme="light"] .auth-mini-card p,
html[data-theme="light"] .auth-heading p:last-child,
html[data-theme="light"] .auth-status,
html[data-theme="light"] .welcome-copy p:last-child,
html[data-theme="light"] .hero-side-card p,
html[data-theme="light"] .service-card p,
html[data-theme="light"] .announcement-item p,
html[data-theme="light"] .license-copy p,
html[data-theme="light"] .license-feedback,
html[data-theme="light"] .admin-record-main p,
html[data-theme="light"] .admin-empty,
html[data-theme="light"] .admin-feedback,
html[data-theme="light"] .history-item p,
html[data-theme="light"] .history-item time {
  color: #5d7092;
}

html[data-theme="light"] .brand,
html[data-theme="light"] .auth-brand,
html[data-theme="light"] .workspace-brand,
html[data-theme="light"] .hero-section h1,
html[data-theme="light"] .feature-section h2,
html[data-theme="light"] .membership-copy h2,
html[data-theme="light"] .auth-visual-copy h1,
html[data-theme="light"] .auth-heading h2,
html[data-theme="light"] .welcome-copy h1,
html[data-theme="light"] .license-copy h2,
html[data-theme="light"] .service-card h3,
html[data-theme="light"] .announcement-item strong,
html[data-theme="light"] .service-copy h1,
html[data-theme="light"] .download-surface-head h2,
html[data-theme="light"] .admin-panel-head h2,
html[data-theme="light"] .metric-panel strong,
html[data-theme="light"] .member-chip strong {
  color: #16233f;
}

html[data-theme="light"] .signin-link,
html[data-theme="light"] .back-link,
html[data-theme="light"] .text-link {
  color: #16233f;
}

html[data-theme="light"] .auth-body {
  background:
    radial-gradient(circle at top left, rgba(77, 124, 255, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.08), transparent 22%),
    linear-gradient(180deg, #f3f8ff 0%, #fbfdff 100%);
}

html[data-theme="light"] .auth-visual {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(77, 124, 255, 0.08)),
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.1), transparent 22%);
  border-right-color: rgba(18, 34, 65, 0.08);
}

html[data-theme="light"] .auth-switch.is-active,
html[data-theme="light"] .workspace-tab.is-active {
  background: linear-gradient(135deg, rgba(77, 124, 255, 0.16), rgba(45, 212, 191, 0.12));
  color: #16233f;
}

html[data-theme="light"] .dashboard-body:not(.service-body):not(.admin-body) {
  color: #16233f;
  background:
    linear-gradient(180deg, #edf4ff 0%, #f8fbff 100%),
    linear-gradient(90deg, rgba(34, 92, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(34, 92, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

html[data-theme="light"] .dashboard-banner,
html[data-theme="light"] .dashboard-hero,
html[data-theme="light"] .license-panel {
  border-color: rgba(18, 34, 65, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(230, 241, 255, 0.96));
  color: #16233f;
  box-shadow: 0 18px 40px rgba(39, 61, 110, 0.08);
}

html[data-theme="light"] .dashboard-banner-tag {
  background: rgba(77, 124, 255, 0.14);
  color: #315fd7;
}

html[data-theme="light"] .banner-close,
html[data-theme="light"] .tool-button {
  color: #35507e;
}

html[data-theme="light"] .member-chip {
  border-left-color: rgba(18, 34, 65, 0.08);
}

html[data-theme="light"] .profile-menu {
  border-color: rgba(18, 34, 65, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 46px rgba(39, 61, 110, 0.12);
}

html[data-theme="light"] .profile-menu-head strong {
  color: #16233f;
}

html[data-theme="light"] .profile-menu-head small,
html[data-theme="light"] .profile-label {
  color: #587092;
}

html[data-theme="light"] .profile-input-shell {
  border-color: rgba(18, 34, 65, 0.08);
  background: rgba(239, 245, 255, 0.9);
}

html[data-theme="light"] .profile-feedback {
  color: #13814b;
}

html[data-theme="light"] .profile-feedback.is-error {
  color: #c24a4a;
}

html[data-theme="light"] .service-icon,
html[data-theme="light"] .license-icon {
  border-color: rgba(18, 34, 65, 0.08);
}

html[data-theme="light"] .license-input-shell input,
html[data-theme="light"] .admin-inline-input,
html[data-theme="light"] .auth-input input,
html[data-theme="light"] .download-input-shell input,
html[data-theme="light"] .auth-input select,
html[data-theme="light"] .auth-input textarea {
  color: #16233f;
}

html[data-theme="light"] .admin-role-pill {
  background: rgba(77, 124, 255, 0.14);
  color: #315fd7;
}

html[data-theme="light"] .history-item,
html[data-theme="light"] .supported-formats-box,
html[data-theme="light"] .download-input-shell,
html[data-theme="light"] .service-topline,
html[data-theme="light"] .download-surface,
html[data-theme="light"] .history-surface,
html[data-theme="light"] .metric-panel,
html[data-theme="light"] .service-state-pill {
  border-color: rgba(18, 34, 65, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: #16233f;
  box-shadow: 0 18px 38px rgba(39, 61, 110, 0.08);
}

html[data-theme="light"] .admin-body {
  background:
    linear-gradient(180deg, #eef5ff 0%, #fafcff 100%),
    radial-gradient(circle at 14% 12%, rgba(77, 124, 255, 0.12), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(45, 212, 191, 0.08), transparent 18%);
}

html[data-theme="dark"] .service-body {
  color: #edf3ff;
  background:
    linear-gradient(180deg, rgba(14, 18, 29, 0.98), rgba(9, 12, 20, 1)),
    radial-gradient(circle at 12% 10%, rgba(77, 124, 255, 0.18), transparent 20%),
    radial-gradient(circle at 82% 16%, rgba(45, 212, 191, 0.12), transparent 18%);
}

html[data-theme="dark"] .service-header {
  background: rgba(11, 15, 24, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .service-header .workspace-brand,
html[data-theme="dark"] .service-header .workspace-tab.is-active,
html[data-theme="dark"] .service-header .member-chip strong,
html[data-theme="dark"] .service-copy h1,
html[data-theme="dark"] .download-surface-head h2,
html[data-theme="dark"] .metric-panel strong {
  color: #f7fbff;
}

html[data-theme="dark"] .service-header .workspace-tab,
html[data-theme="dark"] .service-subtitle,
html[data-theme="dark"] .metric-panel p,
html[data-theme="dark"] .supported-formats-box p,
html[data-theme="dark"] .history-item p,
html[data-theme="dark"] .history-item time,
html[data-theme="dark"] .metric-timer-note {
  color: #a6b4ce;
}

html[data-theme="dark"] .service-topline,
html[data-theme="dark"] .download-surface,
html[data-theme="dark"] .history-surface,
html[data-theme="dark"] .metric-panel,
html[data-theme="dark"] .service-state-pill,
html[data-theme="dark"] .supported-formats-box,
html[data-theme="dark"] .download-input-shell,
html[data-theme="dark"] .history-item {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(77, 124, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(16, 21, 33, 0.96), rgba(13, 18, 29, 0.98));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .download-input-shell input,
html[data-theme="dark"] .service-state-pill strong,
html[data-theme="dark"] .history-item-main strong {
  color: #edf3ff;
}
