
 

:root {
  --bg: #faf8ff;
  --surface: #ffffff;
  --text: #252238;
  --muted: #817b96;
  --purple: #8458e8;
  --purple-dark: #6741c5;
  --pink: #ee78b4;
  --border: #eee8f8;
  --shadow: 0 12px 38px rgba(88, 60, 145, .09);
  --radius: 23px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 10% 0%, #f2eaff 0, transparent 35%),
    radial-gradient(ellipse at 95% 20%, #fff0f7 0, transparent 30%),
    var(--bg);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.8;
}

body.viewer-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #ad8cff;
  outline-offset: 4px;
}

.page {
  width: min(100% - 28px, 980px);
  margin: 28px auto 40px;
}

/* نوار بالای صفحه */

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  letter-spacing: -.3px;
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: white;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 5px 14px #9871d933;
}

.top-link {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #ffffffc9;
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 700;
}

/* کارت‌های اصلی */

.profile,
.highlights-section,
.gallery-section {
  border: 1px solid #ffffff;
  border-radius: var(--radius);
  background: #ffffffdf;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.profile {
  padding: clamp(20px, 5vw, 38px);
}

.profile-main {
  display: flex;
  align-items: center;
  gap: clamp(18px, 5vw, 42px);
}

.avatar-wrap {
  flex: 0 0 auto;
  width: clamp(100px, 20vw, 152px);
  aspect-ratio: 1 / 1;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff9cc9, #a68aff, #f4b8dc);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  border: 4px solid white;
  border-radius: 50%;
  object-fit: cover;
  background: #f0e8ff;
}

.profile-info {
  min-width: 0;
  flex: 1;
}

.profile-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.profile-heading h1 {
  margin: 0;
  font-size: clamp(21px, 4vw, 31px);
  line-height: 1.5;
  font-weight: 900;
}

.verified {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: white;
  background: #5899f7;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.username {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
  direction: ltr;
  text-align: right;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 14px 0;
}

.stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.stat strong {
  color: var(--text);
  font-size: 15px;
}

.bio {
  margin: 12px 0 0;
  font-size: 14px;
  color: #59536e;
  overflow-wrap: anywhere;
}

.bio strong {
  color: var(--text);
}

.bio-link {
  display: inline-block;
  margin-top: 9px;
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 800;
  direction: ltr;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: white;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s;
}

.action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px #7753b91b;
}

.action.primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(120deg, var(--purple), var(--pink));
}

/* عنوان بخش‌ها */

.highlights-section,
.gallery-section {
  margin-top: 19px;
  padding: 23px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.section-note {
  color: var(--muted);
  font-size: 12px;
}

/* هایلایت‌های دایره‌ای */

.highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.highlight {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.highlight-cover {
  width: min(100%, 112px);
  aspect-ratio: 1 / 1;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5a3cf, #936df1, #f6c4df);
  transition: transform .2s;
}

.highlight:hover .highlight-cover {
  transform: scale(1.05);
}

.highlight-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid white;
  border-radius: 50%;
  background: #f1eaff;
}

.highlight-title {
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ==========================================
   گالری تصاویر
   قاب مربع، فشرده و بدون برش
   ========================================== */

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* قاب هر تصویر */

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #f3f0f7;
  cursor: pointer;
  text-align: right;
}

/* نمایش کامل عکس اصلی بدون برش */

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #f3f0f7;
  transition: none;
}

/* عدم بزرگ‌نمایی عکس هنگام هاور */

.gallery-item:hover img {
  transform: none;
}

/* توضیحات روی تصویر */

.gallery-overlay {
  position: absolute;
  inset: 35% 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  padding: 12px;
  color: white;
  background: linear-gradient(transparent, #130c25c9);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
}

.gallery-overlay strong {
  font-size: 12px;
}

.gallery-overlay small {
  font-size: 10px;
}

/* آیکون عکس یا ویدئو */

.media-icon {
  position: absolute;
  top: 7px;
  left: 7px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #241d35a6;
  color: white;
  font-size: 15px;
  pointer-events: none;
}

.empty-message {
  grid-column: 1 / -1;
  padding: 28px 10px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

/* دسکتاپ بزرگ: سه تصویر در هر ردیف */

@media (min-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
}

/* پابرگ */

.footer {
  padding: 25px 10px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.footer a {
  color: var(--purple-dark);
  font-weight: 800;
}

/* نمایشگر عکس و ویدئو */

.viewer {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(16, 12, 26, .94);
  backdrop-filter: blur(8px);
}

.viewer.open {
  display: flex;
}

.viewer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 760px);
  max-height: 94dvh;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #ffffff24;
  border-radius: 19px;
  background: #17131f;
  box-shadow: 0 20px 70px #0005;
}

.viewer-top {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: white;
  background: #211a2d;
}

.viewer-heading {
  min-width: 0;
}

.viewer-heading strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-heading small {
  display: block;
  color: #c8bed8;
  font-size: 11px;
}

.viewer-close {
  display: grid;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid #ffffff20;
  border-radius: 12px;
  background: #ffffff12;
  color: white;
  font-size: 25px;
  cursor: pointer;
}

.viewer-stage {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  overflow: hidden;
  background: #0c0a11;
}

#viewer-media-container {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.viewer-media {
  display: block;
  max-width: 100%;
  max-height: calc(94dvh - 175px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.viewer-media.video {
  /* نسبت تصویر از خود فایل ویدئو گرفته می‌شود؛ بدون تحمیل 16:9 */
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(94dvh - 175px);
  aspect-ratio: auto;
  object-fit: contain;
  background: #000;
}

.viewer-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid #ffffff4a;
  border-radius: 50%;
  background: #17131fbf;
  color: white;
  font-size: 25px;
  cursor: pointer;
  transform: translateY(-50%);
}

.viewer-prev {
  right: 12px;
}

.viewer-next {
  left: 12px;
}

.viewer-bottom {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #e9e1f3;
  background: #211a2d;
}

.viewer-description {
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.viewer-counter {
  flex: 0 0 auto;
  direction: ltr;
  color: #c8bed8;
  font-size: 12px;
}

/* ==========================================
   موبایل
   ========================================== */

@media (max-width: 600px) {
  .page {
    width: 100%;
    margin: 0 auto;
  }

  .topbar {
    min-height: 43px;
    margin: 0;
    padding: 5px 12px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .top-link {
    padding: 5px 10px;
    font-size: 11px;
  }

  .profile {
    padding: 13px 12px 10px;
    border-radius: 0;
    box-shadow: none;
  }

  .profile-main {
    align-items: center;
    gap: 13px;
  }

  .avatar-wrap {
    width: 82px;
    padding: 3px;
  }

  .avatar {
    border-width: 3px;
  }

  .profile-heading {
    gap: 5px;
    margin-bottom: 0;
  }

  .profile-heading h1 {
    font-size: 18px;
    line-height: 1.5;
  }

  .verified {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  .username {
    margin: 0 0 5px;
    font-size: 11px;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-content: stretch;
    gap: 4px;
    margin: 7px 0;
    width: 100%;
  }

  .stat {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
  }

  .stat strong {
    font-size: 12px;
  }

  .bio {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.7;
  }

  .bio-link {
    margin-top: 3px;
    font-size: 11px;
  }

  .profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 10px;
  }

  .action {
    min-height: 34px;
    padding: 5px 7px;
    border-radius: 9px;
    font-size: 11px;
  }

  .highlights-section,
  .gallery-section {
    margin-top: 5px;
    padding: 11px 8px;
    border-radius: 0;
    box-shadow: none;
  }

  .section-heading {
    margin-bottom: 10px;
  }

  .section-heading h2 {
    font-size: 14px;
  }

  .section-note {
    font-size: 10px;
  }

  .highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .highlight {
    gap: 5px;
  }

  .highlight-cover {
    width: 61px;
    max-width: 100%;
    padding: 3px;
  }

  .highlight-cover img {
    border-width: 2px;
  }

  .highlight-title {
    font-size: 10px;
    line-height: 1.5;
  }

  /* گالری موبایل: سه ستون مربع و جمع‌وجور */

  .gallery-section {
    margin-top: 0;
    padding: 9px 5px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
  }

 
.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eee8f8;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


  .gallery-overlay {
    display: none;
  }

  .media-icon {
    top: 5px;
    left: 5px;
    width: 23px;
    height: 23px;
    border-radius: 7px;
    font-size: 12px;
  }

  .footer {
    padding: 12px 8px;
    font-size: 10px;
  }

  .viewer {
    padding: 7px;
  }

  .viewer-inner {
    width: 100%;
    max-height: 96dvh;
    border-radius: 14px;
  }

  .viewer-media,
  .viewer-media.video {
    max-width: 100%;
    max-height: calc(96dvh - 170px);
  }

  .viewer-nav {
    width: 37px;
    height: 37px;
  }
}

/* موبایل‌های کوتاه */

@media (max-width: 600px) and (max-height: 800px) {
  .topbar {
    min-height: 37px;
  }

  .profile {
    padding-top: 8px;
    padding-bottom: 7px;
  }

  .avatar-wrap {
    width: 70px;
  }

  .bio {
    line-height: 1.55;
  }

  .highlights-section {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .highlight-cover {
    width: 54px;
  }

  .section-heading {
    margin-bottom: 7px;
  }
}

/* کاهش حرکت برای دسترس‌پذیری */

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

/* تصاویر گالری: قاب همیشه مربع و عکس تمام قاب را پر می‌کند */
.gallery-grid .gallery-item {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: #eee8f8 !important;
}
.gallery-grid .gallery-item img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scaleX(1.025) scaleY(0.985);
  background: transparent !important;
}
/* هایلایت‌ها: همه دسته‌ها نمایش داده شوند و در صفحه کوچک جمع نشوند */
.highlights-section { overflow: visible; }
.highlights {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  overflow: visible;
}
.highlight { min-width: 0; visibility: visible; }
.highlight-cover { flex: 0 0 auto; }
@media (max-width: 600px) {
  .gallery-grid .gallery-item { aspect-ratio: 1 / 1 !important; }
  .gallery-grid .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: scaleX(1.025) scaleY(0.985);
  }
  .highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .highlight-cover { width: min(100%, 61px) !important; }
}
/* اصلاح نهایی موبایل: چهار پست در هر ردیف و سه آمار هم‌ردیف */
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 3px !important; }
  .gallery-grid .gallery-item { aspect-ratio: 1 / 1 !important; }
  .gallery-grid .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: scaleX(1.025) scaleY(0.985);
  }
  .stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
  }
  .stat { min-width: 0; align-items: center !important; text-align: center !important; white-space: nowrap; }
  .profile-info { min-width: 0; width: 100%; }
}



/* سه ستون در تمام اندازه‌ها؛ قاب‌های بزرگ‌تر با حفظ مربع بودن */
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
}
.gallery-grid .gallery-item {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  overflow: hidden !important;
}
/* کشیدگی عکس کمتر از قبل: مربع‌ها بزرگ‌تر شده‌اند و عکس کامل می‌ماند */
.gallery-grid .gallery-item img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
}


/* دکمه تغییر تم */
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle-icon { font-size: 17px; line-height: 1; }
.theme-toggle:focus-visible { outline: 3px solid #ad8cff; outline-offset: 3px; }

/* پالت حالت تاریک */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11101a;
  --surface: #1c1a29;
  --text: #f1edf9;
  --muted: #aaa2bd;
  --purple: #b39aff;
  --purple-dark: #c3afff;
  --pink: #e88fc4;
  --border: #393248;
  --shadow: 0 12px 38px rgba(0, 0, 0, .24);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at 10% 0%, #29203f 0, transparent 35%),
    radial-gradient(ellipse at 95% 20%, #30202f 0, transparent 30%),
    var(--bg);
  color: var(--text);
}
html[data-theme="dark"] .profile,
html[data-theme="dark"] .highlights-section,
html[data-theme="dark"] .gallery-section {
  border-color: #393248;
  background: #1c1a29eF;
}
html[data-theme="dark"] .top-link,
html[data-theme="dark"] .action,
html[data-theme="dark"] .theme-toggle {
  border-color: var(--border);
  background: #252235;
  color: var(--text);
}
html[data-theme="dark"] .bio { color: #c9c2d8; }
html[data-theme="dark"] .bio strong,
html[data-theme="dark"] .stat strong { color: var(--text); }
html[data-theme="dark"] .gallery-item,
html[data-theme="dark"] .gallery-item img,
html[data-theme="dark"] .highlight-cover img,
html[data-theme="dark"] .avatar {
  background-color: #282438;
}
html[data-theme="dark"] .highlight-cover img { border-color: #1c1a29; }
html[data-theme="dark"] .avatar { border-color: #292438; }
html[data-theme="dark"] .gallery-overlay {
  background: linear-gradient(transparent, #05040bdc);
}
html[data-theme="dark"] .footer a { color: #c3afff; }
html[data-theme="dark"] .viewer-inner { background: #17131f; }
html[data-theme="dark"] .viewer-top,
html[data-theme="dark"] .viewer-bottom { background: #211a2d; }
html[data-theme="dark"] .viewer-stage { background: #09080e; }
html[data-theme="dark"] .action:not(.primary):hover,
html[data-theme="dark"] .theme-toggle:hover {
  border-color: #6f5b9f;
  background: #302943;
}
@media (max-width: 600px) {
  .topbar-actions { gap: 5px; }
  .theme-toggle { min-height: 30px; padding: 4px 8px; gap: 4px; font-size: 10px; border-radius: 9px; }
  .theme-toggle-icon { font-size: 14px; }
}


/* محافظت بازدارنده از ذخیرهٔ ساده و زوم رسانه در موبایل؛ جلوگیری قطعی از کپی ممکن نیست. */
img, video {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.gallery-item img, .highlight-cover img, .avatar, .viewer-media {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.viewer-media, #viewer-media-container {
  touch-action: pan-y;
}
.viewer-media.video {
  -webkit-user-select: none;
  user-select: none;
}


/* دکمه ترجمه و چیدمان انگلیسی */
.language-toggle { white-space: nowrap; }
html[lang="en"] body { font-family: Arial, Helvetica, sans-serif; }
html[lang="en"] .profile-heading,
html[lang="en"] .section-heading { text-align: left; }
html[lang="en"] .profile-heading { justify-content: flex-start; }
html[lang="en"] .stats { direction: ltr; }
html[lang="en"] .gallery-overlay { text-align: left; }
html[lang="en"] .footer { direction: ltr; }
@media (max-width: 480px) {
  .topbar-actions { gap: 5px; }
  .language-toggle { min-height: 30px; padding: 4px 8px; gap: 4px; font-size: 10px; border-radius: 9px; }
}


/* تاریخ و ساعت زنده */
.live-datetime {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(88, 60, 145, .05);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  direction: ltr;
}
.datetime-label { font-weight: 900; }
#datetime-value { unicode-bidi: plaintext; }
html[lang="fa"] .live-datetime { direction: rtl; }
html[data-theme="dark"] .live-datetime { border-color: var(--border); background: var(--surface); color: var(--text); }
@media (max-width: 600px) {
  .live-datetime { font-size: 12px; padding: 9px 10px; gap: 5px; }
  .topbar-actions { gap: 5px; }
  .theme-toggle { padding: 7px 9px; min-height: 36px; }
}


/* ساعت تهران کنار دکمه ترجمه */
.live-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  white-space: nowrap;
}
html[data-theme="dark"] .live-clock { background: #252235; border-color: var(--border); color: var(--text); }
@media (max-width: 600px) {
  .live-clock { min-width: 49px; padding: 5px 6px; font-size: 11px; border-radius: 9px; }
  .topbar-actions { flex-wrap: nowrap; }
}
