@font-face {
  font-family: "Yekan Bakh";
  src: url("/fonts/YekanBakh-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("/fonts/YekanBakh-Black.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #172033;
  --ink-soft: #3f4a5f;
  --muted: #6d788c;
  --muted-light: #8e98a9;
  --line: #e5e8ef;
  --line-strong: #d7dce7;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --canvas: #f3f5f9;
  --accent: #5856d6;
  --accent-dark: #413eb2;
  --accent-soft: #efefff;
  --navy: #121a30;
  --navy-soft: #1d2844;
  --coral: #e85d69;
  --amber: #e9a42f;
  --mint: #149478;
  --blue: #357ad8;
  --iranian: #16876b;
  --religious: #8b5bc7;
  --world: #3478ca;
  --holiday: #db4d5a;
  --shadow: 0 18px 50px rgba(25, 35, 58, .07);
  --shadow-soft: 0 8px 28px rgba(25, 35, 58, .05);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Yekan Bakh", Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  min-width: 0;
  color: inherit;
  font: inherit;
  font-weight: 400;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
}

strong,
b,
small,
.occasion-count,
button,
label,
legend {
  font-weight: 400;
}

ul,
ol {
  margin-top: 0;
}

::selection {
  color: #fff;
  background: var(--accent);
}

:focus-visible {
  outline: 3px solid rgba(88, 86, 214, .23);
  outline-offset: 2px;
}

[dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
}

.hidden {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-header svg,
.today-strip svg,
main svg,
footer svg,
dialog svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy > strong,
.today-heading,
.calendar-heading h2,
.section-heading h2,
.banner-copy h2,
.section-copy h2,
.account-header h2,
.pricing-copy h2 {
  font-weight: 900;
}

/* نوار زندهٔ امروز */
.today-strip {
  width: 100%;
  max-width: 100%;
  color: #fff;
  background:
    radial-gradient(circle at 18% 10%, rgba(98, 94, 224, .23), transparent 28%),
    linear-gradient(118deg, #111a31 0%, #151f39 62%, #182442 100%);
}

.today-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .9fr) minmax(330px, 1fr);
  align-items: stretch;
  gap: 0;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
}

.today-primary,
.today-occasion,
.today-clock {
  min-width: 0;
  padding: 8px 32px;
}

.today-primary,
.today-occasion {
  border-inline-end: 1px solid rgba(255, 255, 255, .1);
}

.today-eyebrow,
.iran-status,
.clock-label {
  display: flex;
  align-items: center;
}

.today-eyebrow {
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.iran-status {
  gap: 8px;
}

.iran-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48d7a4;
  box-shadow: 0 0 0 5px rgba(72, 215, 164, .11);
}

.today-primary h1 {
  margin: 0 0 17px;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.35;
  letter-spacing: -1.2px;
}

.today-secondary-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.today-secondary-dates > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
}

.today-secondary-dates > div > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.4;
}

.today-secondary-dates small {
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
}

.today-secondary-dates b {
  overflow: hidden;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.today-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  color: #c9c8ff;
  background: rgba(98, 94, 224, .17);
}

.today-icon svg {
  width: 19px;
  height: 19px;
}

.today-icon.blue {
  color: #a8ccff;
  background: rgba(53, 122, 216, .17);
}

.today-icon.mint {
  color: #91e4ce;
  background: rgba(20, 148, 120, .17);
}

.today-icon.amber {
  color: #ffd78d;
  background: rgba(233, 164, 47, .16);
}

.today-occasion {
  display: flex;
  align-items: center;
  gap: 13px;
}

.today-occasion > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.today-occasion small,
.clock-label,
.today-clock > span {
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
}

.today-occasion strong {
  margin: 4px 0 3px;
  color: #fff;
  font-size: 17px;
  line-height: 1.65;
}

.today-occasion > div > span {
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
}

.today-clock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.clock-label {
  gap: 8px;
}

.clock-label svg {
  width: 17px;
  height: 17px;
}

#iran-clock {
  display: flex;
  direction: ltr;
  align-items: baseline;
  margin: 1px 0 -2px;
  color: #fff;
  font-size: clamp(46px, 4.65vw, 68px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  line-height: 1.15;
  unicode-bidi: isolate;
}

#iran-clock i {
  padding: 0 3px;
  color: #7f80e4;
  font-style: normal;
}

/* هدر */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 10px max(20px, calc((100% - var(--container)) / 2));
  border-bottom: 1px solid rgba(222, 226, 235, .92);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.brand,
.header-actions,
.main-nav {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 9px 22px rgba(88, 86, 214, .2);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.42;
}

.brand-copy > strong {
  font-size: 21px;
  letter-spacing: -.5px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-add,
.account-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  white-space: nowrap;
}

.quick-add {
  color: #fff;
  background: var(--accent);
}

.quick-add:hover {
  background: var(--accent-dark);
}

.account-button {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: #fff;
}

#account-button span[dir="ltr"] {
  direction: ltr;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

/* چیدمان عمومی */
main {
  display: flow-root;
  width: 100%;
  min-width: 0;
}

main > section {
  width: min(var(--container), calc(100% - 40px));
  max-width: 100%;
  min-width: 0;
  margin: 26px auto 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 13px;
}

.section-kicker.light {
  color: #b8b7ff;
}

.calendar-heading h2,
.section-heading h2,
.banner-copy h2,
.section-copy h2,
.account-header h2,
.pricing-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.35;
  letter-spacing: -1px;
}

.calendar-heading p,
.section-heading p,
.section-copy > p,
.pricing-copy > p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

/* تقویم */
.calendar-shell {
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calendar-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.calendar-heading h2 {
  margin-bottom: 5px;
}

.heading-add,
.primary-button,
.soft-button,
.banner-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 15px;
  line-height: 1.4;
}

.heading-add,
.primary-button {
  color: #fff;
  background: var(--accent);
}

.heading-add:hover,
.primary-button:hover {
  background: var(--accent-dark);
}

.heading-add svg,
.primary-button svg,
.banner-button svg {
  width: 19px;
  height: 19px;
}

.calendar-live {
  min-width: 0;
}

.calendar-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-soft);
}

.month-nav {
  display: grid;
  min-width: min(100%, 470px);
  grid-template-columns: auto minmax(150px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 13px;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: #c9c8f2;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.month-title {
  min-width: 0;
  text-align: center;
}

.month-title small {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 11px;
}

.month-title h3 {
  overflow: hidden;
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.calendar-tools,
.view-switch {
  display: flex;
  align-items: center;
}

.calendar-tools {
  gap: 9px;
}

.today-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 13px;
}

.today-btn > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.view-switch {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.view-switch button {
  min-width: 56px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}

.view-switch button.active {
  color: #fff;
  background: var(--accent);
}

.calendar-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  align-items: stretch;
  gap: 14px;
}

.calendar-board {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  direction: rtl;
}

.calendar-weekdays {
  margin-bottom: 7px;
  border-radius: 11px;
  background: #f4f5f9;
}

.calendar-weekdays span {
  min-width: 0;
  padding: 9px 3px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.calendar-weekdays span:last-child {
  color: var(--holiday);
}

.calendar-grid {
  gap: 5px;
}

.calendar-day {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 105px;
  flex-direction: column;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.calendar-day:hover {
  z-index: 1;
  border-color: #c7c6ef;
  background: #fbfbff;
  transform: translateY(-1px);
}

.day-date-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.day-date-header > b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
}

.day-today-badge {
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 9px;
  white-space: nowrap;
}

.calendar-day.today .day-date-header > b {
  color: #fff;
  background: var(--accent);
}

.calendar-day.holiday:not(.today) .day-date-header > b {
  color: var(--holiday);
}

.calendar-day.selected {
  border-color: var(--accent);
  background: #f6f6ff;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.calendar-day.outside {
  opacity: .38;
  background: #fafbfc;
}

.day-occasion {
  display: -webkit-box;
  min-width: 0;
  min-height: 34px;
  margin: 7px 0 5px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.minor-date {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--muted-light);
  font-size: 9px;
  direction: rtl;
}

.minor-date span {
  white-space: nowrap;
}

.occasion-dots {
  position: absolute;
  right: 9px;
  bottom: 7px;
  display: flex;
  gap: 3px;
}

.occasion-dots i,
.calendar-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--world);
}

.occasion-dots .iranian,
.calendar-legend .iranian { background: var(--iranian); }
.occasion-dots .religious,
.calendar-legend .religious { background: var(--religious); }
.occasion-dots .world,
.calendar-legend .world { background: var(--world); }

.occasion-count {
  position: absolute;
  left: 8px;
  bottom: 6px;
  display: grid;
  min-width: 20px;
  height: 18px;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  background: #f1f3f7;
  font-size: 9px;
  font-style: normal;
}

.holiday-dot {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--holiday);
}

.calendar-grid.week-view .calendar-day {
  min-height: 160px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 11px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-legend .holiday { background: var(--holiday); }

.selected-day {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 21px;
  border: 1px solid #deddf5;
  border-radius: 19px;
  background: linear-gradient(180deg, #f8f8ff, #fff);
}

.selected-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.selected-label b {
  padding: 3px 8px;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 10px;
}

.selected-date-stack {
  display: flex;
  flex-direction: column;
  padding: 21px 0 18px;
  border-bottom: 1px solid var(--line);
}

.selected-date-stack > span {
  color: var(--accent);
  font-size: 14px;
}

.selected-date-stack strong {
  margin: 3px 0;
  font-size: 25px;
  line-height: 1.55;
}

.selected-date-stack small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.occasion-panel {
  padding: 17px 0;
}

.occasion-panel .section-kicker {
  margin-bottom: 9px;
  font-size: 11px;
}

#occasion-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#occasion-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px 9px 8px;
  border-radius: 10px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 12px;
  line-height: 1.65;
}

#occasion-list li::before {
  position: absolute;
  top: 10px;
  right: 0;
  width: 3px;
  height: calc(100% - 20px);
  border-radius: 3px;
  background: var(--world);
  content: "";
}

#occasion-list li.iranian::before { background: var(--iranian); }
#occasion-list li.religious::before { background: var(--religious); }
#occasion-list li.world::before { background: var(--world); }
#occasion-list li.holiday::before { background: var(--holiday); }

#occasion-list li small {
  color: var(--muted);
  font-size: 10px;
}

.selected-action {
  width: 100%;
  margin-top: auto;
}

.lunar-note {
  margin: 10px 5px 0;
  color: var(--muted);
  font-size: 11px;
}

/* مناسبت‌ها */
.occasions-section,
.builder-section,
.pricing-section,
.account-section {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin-bottom: 6px;
}

.occasion-stat {
  display: flex;
  min-width: 142px;
  flex-direction: column;
  padding: 12px 16px;
  border: 1px solid #dcdcf5;
  border-radius: 14px;
  background: var(--accent-soft);
}

.occasion-stat strong {
  color: var(--accent);
  font-size: 23px;
}

.occasion-stat span {
  color: var(--muted);
  font-size: 11px;
}

.occasion-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 25px 0 17px;
}

.occasion-search {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.occasion-search svg {
  position: absolute;
  right: 14px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.occasion-search input {
  width: 100%;
  height: 48px;
  padding: 0 43px 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: var(--surface-soft);
  font-size: 14px;
}

.occasion-search input:focus {
  border-color: #bbb9ec;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(88, 86, 214, .08);
}

.occasion-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.occasion-filters button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 400;
}

.occasion-filters button.active {
  color: #fff;
  background: var(--accent);
}

.month-occasion-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.month-occasion-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  text-align: right;
}

.month-occasion-card:hover {
  border-color: #c9c8ed;
  background: #fbfbff;
}

.occasion-date-tile {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  line-height: 1.15;
}

.occasion-date-tile b {
  font-size: 19px;
}

.occasion-date-tile small {
  font-size: 9px;
}

.occasion-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.occasion-card-copy strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.occasion-card-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.occasion-card-badge {
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--muted);
  background: #f2f4f7;
  font-size: 9px;
  white-space: nowrap;
}

.month-occasion-card.holiday .occasion-date-tile,
.month-occasion-card.holiday .occasion-card-badge {
  color: var(--holiday);
  background: #fff0f2;
}

.occasion-empty,
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 35px 20px;
  color: var(--muted);
  text-align: center;
}

.occasion-empty svg,
.empty-state svg {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: var(--accent);
}

.occasion-empty h3,
.empty-state h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 18px;
}

.occasion-empty p,
.empty-state p {
  margin: 0;
  font-size: 13px;
}

/* بنر */
.reminder-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr);
  align-items: center;
  gap: 55px;
  overflow: hidden;
  padding: 46px 55px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 12% 110%, rgba(98, 94, 224, .38), transparent 36%),
    var(--navy);
}

.reminder-banner::after {
  position: absolute;
  top: -90px;
  left: -75px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
}

.banner-copy {
  position: relative;
  z-index: 1;
}

.banner-copy h2 {
  margin-bottom: 13px;
  color: #fff;
}

.banner-copy p {
  max-width: 590px;
  margin-bottom: 23px;
  color: rgba(255, 255, 255, .68);
  font-size: 15px;
}

.banner-button {
  color: var(--navy);
  background: #fff;
}

.banner-visual {
  position: relative;
  z-index: 1;
}

.notification-stack {
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
}

.notification-head,
.notification-card {
  display: flex;
  min-width: 0;
  align-items: center;
}

.notification-head {
  gap: 10px;
  margin-bottom: 12px;
}

.notification-head > span,
.notification-icon {
  display: grid;
  place-items: center;
  border-radius: 11px;
}

.notification-head > span {
  width: 39px;
  height: 39px;
  color: #cbcaff;
  background: rgba(98, 94, 224, .2);
}

.notification-head div,
.notification-card div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.notification-head strong {
  font-size: 14px;
}

.notification-head small {
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
}

.notification-card {
  gap: 10px;
  margin-top: 7px;
  padding: 10px;
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
}

.notification-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  color: var(--accent);
  background: var(--accent-soft);
}

.notification-icon.coral { color: var(--coral); background: #fff0f2; }
.notification-icon.amber { color: #b47511; background: #fff7e7; }
.notification-icon.mint { color: var(--mint); background: #eaf8f4; }

.notification-card b {
  font-size: 12px;
}

.notification-card small {
  color: var(--muted);
  font-size: 10px;
}

.notification-card em {
  margin-right: auto;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

/* فرم ثبت */
.builder-section {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 42px;
}

.section-copy {
  position: sticky;
  top: 100px;
}

.section-copy h2 {
  margin-bottom: 11px;
}

.builder-steps {
  display: grid;
  gap: 11px;
  margin: 25px 0 18px;
  padding: 0;
  list-style: none;
}

.builder-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--muted);
}

.builder-steps li.active {
  border-color: #deddf5;
  color: var(--ink);
  background: var(--accent-soft);
}

.builder-steps i {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: #fff;
  font-size: 13px;
  font-style: normal;
}

.builder-steps span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.builder-steps b {
  font-size: 13px;
}

.builder-steps small {
  color: var(--muted);
  font-size: 10px;
}

.free-counter {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.free-counter > strong {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 23px;
}

.free-counter > span {
  display: flex;
  flex-direction: column;
}

.free-counter b {
  font-size: 13px;
}

.free-counter small {
  color: var(--muted);
  font-size: 10px;
}

.event-form {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(25, 35, 58, .06);
}

.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-heading > div > span {
  color: var(--accent);
  font-size: 11px;
}

.form-heading h3 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.45;
}

.form-heading > small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.form-heading > small svg {
  width: 15px;
  height: 15px;
}

fieldset {
  min-width: 0;
  margin: 0 0 21px;
  padding: 0;
  border: 0;
}

legend,
.event-form > label,
.form-grid > label,
.date-row > label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

label small {
  color: var(--muted-light);
  font-size: 10px;
}

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

.category-chip {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 12px;
}

.category-chip svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.category-chip:hover,
.category-chip.active {
  color: var(--accent);
  border-color: #c9c8ed;
  background: var(--accent-soft);
}

.category-chip.active svg {
  color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
}

input,
select {
  height: 48px;
  padding: 0 13px;
}

textarea {
  min-height: 98px;
  padding: 12px 13px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #9ca5b4;
  font-weight: 400;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #b9b7ea;
  box-shadow: 0 0 0 4px rgba(88, 86, 214, .08);
}

#event-date,
#event-time,
#phone,
.otp-input {
  direction: ltr;
  text-align: right;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.date-row {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  margin-bottom: 21px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.segmented label {
  cursor: pointer;
}

.segmented input,
.check-list input,
.channel-list input,
.share-family input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.segmented span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
}

.segmented input:checked + span {
  color: #fff;
  background: var(--accent);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.check-list label {
  cursor: pointer;
}

.check-list span {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 36px 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-soft);
  font-size: 12px;
}

.check-list span::before {
  position: absolute;
  right: 12px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  content: "";
}

.check-list input:checked + span {
  color: var(--accent);
  border-color: #c9c8ed;
  background: var(--accent-soft);
}

.check-list input:checked + span::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.channel-list label {
  cursor: pointer;
}

.channel-list label > span {
  position: relative;
  display: grid;
  min-height: 122px;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 3px 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.channel-list svg {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.channel-list b {
  font-size: 13px;
}

.channel-list small {
  color: var(--muted);
  font-size: 10px;
}

.channel-list em {
  position: absolute;
  left: 9px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--muted);
  background: #f2f3f6;
  font-size: 9px;
  font-style: normal;
}

.channel-list input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.share-family {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px !important;
  cursor: pointer;
}

.share-family span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-family span::before {
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  content: "";
}

.share-family input:checked + span::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}

.notes-field {
  margin-bottom: 0 !important;
}

.form-error {
  min-height: 24px;
  margin: 7px 0 0;
  color: var(--holiday);
  font-size: 12px;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

/* مزیت‌ها */
.benefits-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.benefits-strip article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 18px;
  border-inline-end: 1px solid var(--line);
}

.benefits-strip article:last-child {
  border-inline-end: 0;
}

.benefits-strip article > span {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
}

.benefits-strip article > span svg {
  width: 21px;
  height: 21px;
}

.benefits-strip div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.benefits-strip strong {
  color: var(--ink);
  font-size: 13px;
}

.benefits-strip small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

/* حساب کاربری */
.account-section {
  color: var(--ink);
}

.account-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.account-header h2 {
  margin-bottom: 5px;
}

.account-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.account-plan {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-plan > span {
  padding: 6px 10px;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
}

.account-plan small {
  color: var(--muted);
  font-size: 11px;
}

.account-plan button {
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--holiday);
  background: #fff0f2;
  font-size: 11px;
}

.account-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  align-items: start;
  gap: 16px;
  margin-top: 20px;
}

.account-events-panel {
  min-width: 0;
}

.events-list {
  display: grid;
  gap: 9px;
}

.event-card {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.event-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
}

.event-main,
.event-date {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.event-main > strong,
.event-date > strong {
  font-size: 13px;
}

.event-main p,
.event-date small {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.event-date {
  text-align: left;
}

.event-actions {
  display: flex;
  gap: 5px;
}

.event-actions button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
}

.event-actions button.delete {
  color: var(--holiday);
  background: #fff0f2;
}

.event-actions svg {
  width: 17px;
  height: 17px;
}

.empty-state {
  min-height: 230px;
  border: 1px dashed var(--line-strong);
  border-radius: 17px;
  background: var(--surface-soft);
}

.empty-state .soft-button {
  margin-top: 14px;
}

.family-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid #dddcef;
  border-radius: 17px;
  background: #f8f8ff;
}

.family-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.family-heading h3 {
  margin: 0;
  font-size: 20px;
}

.capacity-badge {
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--accent);
  background: #fff;
  font-size: 9px;
  white-space: nowrap;
}

.family-state p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.soft-button {
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: #fff;
}

.soft-button:hover {
  color: var(--accent);
  border-color: #c4c2ed;
}

.soft-button.strong {
  width: 100%;
}

.primary-button.compact,
.soft-button.strong {
  min-height: 44px;
  font-size: 13px;
}

.family-state {
  color: var(--muted);
  font-size: 12px;
}

#family-setup {
  display: flex;
  align-items: center;
  gap: 8px;
}

#join-family-form {
  display: flex;
  min-width: 0;
  gap: 6px;
}

#join-family-form input {
  height: 44px;
}

.invite-box {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  font-size: 11px;
}

.invite-box button {
  padding: 6px;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
}

.family-members {
  display: grid;
  gap: 7px;
}

.family-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 9px;
  border-radius: 11px;
  background: #fff;
}

.family-member > div {
  display: flex;
  flex-direction: column;
}

.family-member strong {
  font-size: 12px;
}

.family-member small {
  color: var(--muted);
  font-size: 10px;
}

.family-member button {
  padding: 5px 7px;
  border-radius: 7px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 10px;
}

/* قیمت‌گذاری */
.pricing-copy {
  margin-bottom: 25px;
  text-align: center;
}

.pricing-copy p {
  margin-right: auto;
  margin-left: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.price-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.price-card.featured {
  border-color: #bdbbea;
  background: #f8f8ff;
  box-shadow: 0 15px 35px rgba(88, 86, 214, .1);
}

.price-card > span {
  color: var(--muted);
  font-size: 11px;
}

.price-card h3 {
  margin: 4px 0 12px;
  font-size: 25px;
}

.price-card .price {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 12px;
}

.price-card .price b {
  color: var(--ink);
  font-size: 27px;
}

.price-card .price small {
  font-size: 10px;
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 12px;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-right: 18px;
}

.price-card li::before {
  position: absolute;
  top: 9px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.price-card > button {
  margin-top: auto;
}

.discount-entry {
  display: grid;
  width: min(100%, 460px);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  margin: 16px auto 0;
  padding: 12px;
  border: 1px solid var(--ui-edge, var(--line));
  border-radius: 16px;
  background: var(--ui-surface, rgba(255, 255, 255, .58));
}

.discount-entry label {
  color: var(--ui-secondary, var(--ink-soft));
  font-size: 13px;
  font-weight: 400;
}

.discount-entry input {
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--ui-edge-strong, var(--line));
  border-radius: 12px;
  background: var(--ui-input, #fff);
  color: var(--ui-text, var(--ink));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}

.discount-entry span {
  grid-column: 1 / -1;
  color: var(--ui-muted, var(--muted));
  font-size: 11px;
  font-weight: 400;
}

.popular-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--accent) !important;
  background: var(--accent-soft);
  font-size: 9px !important;
}

.gateway-note {
  margin: 15px 0 0;
  padding: 10px;
  border-radius: 10px;
  color: #8a5c13;
  background: #fff7e7;
  font-size: 11px;
  text-align: center;
}

/* فوتر */
footer {
  display: grid;
  width: min(var(--container), calc(100% - 40px));
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  margin: 26px auto 0;
  padding: 28px 0 35px;
  color: var(--muted);
}

footer .brand-mark {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

footer .brand-copy > strong {
  color: var(--ink);
  font-size: 18px;
}

footer p {
  margin: 0;
  font-size: 11px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 11px;
}

.footer-links a:hover {
  color: var(--accent);
}

.enamad-seal {
  display: grid;
  width: 82px;
  min-height: 82px;
  padding: 6px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease;
}

.enamad-seal:hover {
  border-color: rgba(88, 86, 214, .34);
  transform: translateY(-2px);
}

.enamad-seal img {
  display: block;
  width: 68px;
  max-width: 100%;
  height: auto;
}

/* ورود */
.auth-dialog {
  width: min(440px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 27px;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .25);
}

.auth-dialog::backdrop {
  background: rgba(14, 22, 40, .62);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 13px;
  left: 13px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-soft);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
  padding-left: 35px;
}

.auth-brand > div {
  min-width: 0;
}

.auth-brand strong {
  font-size: 21px;
}

.auth-brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-dialog label { font-size: 13px; font-weight: 400; }

.auth-dialog label input {
  margin-top: 7px;
}

.auth-dialog .primary-button {
  width: 100%;
}

.back-link,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  color: var(--accent);
  background: transparent;
  font-size: 12px;
}

#otp-step > p {
  color: var(--muted);
  font-size: 13px;
}

#otp-phone {
  direction: ltr;
  color: var(--ink);
  unicode-bidi: isolate;
}

.dev-code {
  margin-bottom: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  color: #27604e;
  background: #eaf8f3;
  font-size: 11px;
}

.dev-code button {
  direction: ltr;
  color: #126c51;
  background: transparent;
  unicode-bidi: isolate;
}

.otp-input {
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: 8px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 50%;
  bottom: 22px;
  max-width: min(430px, calc(100% - 30px));
  padding: 11px 15px;
  border-radius: 11px;
  color: #fff;
  background: #176c55;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .18);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(50%, 0);
}

.toast.error {
  background: #a43240;
}

/* تبلت */
@media (max-width: 1080px) {
  .today-strip-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  }

  .today-primary {
    border-inline-end: 1px solid rgba(255, 255, 255, .1);
  }

  .today-occasion {
    grid-column: 1 / -1;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-inline-end: 0;
  }

  .calendar-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .calendar-day {
    min-height: 92px;
    padding: 8px;
  }

  .reminder-banner {
    gap: 30px;
    padding: 38px;
  }

  .builder-section {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 26px;
  }

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

  .segmented {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .main-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .calendar-layout,
  .builder-section,
  .account-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .selected-day {
    min-height: 0;
  }

  .selected-action {
    margin-top: 5px;
  }

  .reminder-banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .banner-visual {
    max-width: 520px;
  }

  .section-copy {
    position: static;
  }

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

  .benefits-strip article:nth-child(2) {
    border-inline-end: 0;
  }

  .benefits-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

/* موبایل */
@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .today-strip-inner,
  main > section,
  footer {
    width: min(100% - 24px, var(--container));
  }

  .today-strip-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 0 20px;
  }

  .today-primary,
  .today-occasion,
  .today-clock {
    padding: 14px 3px;
    border: 0;
  }

  .today-clock {
    order: -1;
    padding-top: 0;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  #iran-clock {
    font-size: clamp(48px, 16.5vw, 68px);
    letter-spacing: -1.5px;
  }

  .today-primary h1 {
    margin-bottom: 13px;
    font-size: 30px;
  }

  .today-eyebrow {
    font-size: 12px;
  }

  .today-secondary-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-secondary-dates > div {
    padding: 7px;
  }

  .today-secondary-dates b {
    font-size: 12px;
  }

  .today-icon {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
  }

  .today-occasion {
    grid-column: auto;
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .today-occasion strong {
    font-size: 15px;
  }

  .site-header {
    min-height: 66px;
    gap: 8px;
    padding: 9px 12px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .brand-copy > strong {
    font-size: 19px;
  }

  .brand-copy small,
  .quick-add span {
    display: none;
  }

  .quick-add {
    width: 40px;
    min-height: 40px;
    padding: 0;
  }

  .account-button {
    min-height: 40px;
    max-width: 145px;
    padding: 0 10px;
    font-size: 12px;
  }

  .account-button span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  main > section {
    margin-top: 16px;
  }

  .calendar-shell,
  .occasions-section,
  .builder-section,
  .pricing-section,
  .account-section {
    padding: 16px;
    border-radius: 20px;
  }

  .calendar-heading,
  .section-heading,
  .account-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .calendar-heading h2,
  .section-heading h2,
  .banner-copy h2,
  .section-copy h2,
  .account-header h2,
  .pricing-copy h2 {
    font-size: 29px;
    letter-spacing: -.6px;
  }

  .calendar-heading p,
  .section-heading p,
  .section-copy > p,
  .pricing-copy > p {
    font-size: 13px;
  }

  .heading-add {
    width: 100%;
  }

  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 9px;
  }

  .month-nav {
    min-width: 0;
    width: 100%;
    grid-template-columns: 39px minmax(0, 1fr) 39px;
    gap: 5px;
  }

  .icon-btn {
    width: 39px;
    min-height: 39px;
    justify-content: center;
    padding: 0;
  }

  .icon-btn span {
    display: none;
  }

  .month-title h3 {
    font-size: 20px;
  }

  .calendar-tools {
    justify-content: space-between;
  }

  .view-switch {
    flex: 1;
  }

  .view-switch button {
    flex: 1;
  }

  .calendar-board {
    padding: 7px;
    border-radius: 14px;
  }

  .calendar-weekdays {
    margin-bottom: 4px;
  }

  .calendar-weekdays span {
    padding: 7px 1px;
    font-size: 10px;
  }

  .calendar-grid {
    gap: 2px;
  }

  .calendar-day,
  .calendar-grid.week-view .calendar-day {
    min-height: 62px;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 1px;
    border-radius: 9px;
  }

  .calendar-day:hover {
    transform: none;
  }

  .day-date-header {
    width: 100%;
    justify-content: center;
  }

  .day-date-header > b {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 16px;
  }

  .day-today-badge,
  .day-occasion,
  .minor-date,
  .occasion-count,
  .holiday-dot {
    display: none;
  }

  .occasion-dots {
    position: static;
    min-height: 6px;
    margin-top: 7px;
  }

  .occasion-dots i {
    width: 5px;
    height: 5px;
  }

  .calendar-legend {
    gap: 7px 12px;
    font-size: 9px;
  }

  .selected-day {
    padding: 17px;
  }

  .selected-date-stack {
    padding: 15px 0;
  }

  .selected-date-stack strong {
    font-size: 21px;
  }

  .lunar-note {
    font-size: 9px;
    line-height: 1.65;
  }

  .section-heading {
    display: flex;
  }

  .occasion-stat {
    min-width: 0;
  }

  .occasion-controls {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 18px;
  }

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

  .occasion-filters button {
    padding: 0 5px;
  }

  .month-occasion-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .month-occasion-card {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 9px;
  }

  .occasion-date-tile {
    width: 45px;
    height: 45px;
  }

  .occasion-card-badge {
    display: none;
  }

  .reminder-banner {
    gap: 25px;
    padding: 27px 20px;
    border-radius: 20px;
  }

  .banner-copy p {
    font-size: 13px;
  }

  .banner-button {
    width: 100%;
  }

  .notification-stack {
    padding: 12px;
    border-radius: 17px;
  }

  .builder-section {
    gap: 24px;
  }

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

  .builder-steps li {
    align-items: center;
    flex-direction: column;
    gap: 5px;
    padding: 8px 4px;
    text-align: center;
  }

  .builder-steps b {
    font-size: 10px;
  }

  .builder-steps small {
    display: none;
  }

  .event-form {
    padding: 16px;
    border-radius: 17px;
  }

  .form-heading h3 {
    font-size: 21px;
  }

  .form-heading > small {
    display: none;
  }

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

  .form-grid,
  .date-row,
  .check-list,
  .channel-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .segmented {
    grid-column: auto;
  }

  .channel-list label > span {
    min-height: 82px;
  }

  .submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-row .primary-button {
    width: 100%;
  }

  .benefits-strip {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 18px;
  }

  .benefits-strip article,
  .benefits-strip article:nth-child(2) {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .benefits-strip article:last-child {
    border-bottom: 0;
  }

  .account-plan {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .event-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .event-date {
    grid-column: 2;
    text-align: right;
  }

  .event-actions {
    grid-column: 3;
    grid-row: 1 / 3;
    flex-direction: column;
  }

  #family-setup,
  #join-family-form {
    align-items: stretch;
    flex-direction: column;
  }

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

  footer {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 14px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .auth-dialog {
    padding: 22px 18px;
  }
}

@media (max-width: 390px) {
  .today-secondary-dates {
    grid-template-columns: minmax(0, 1fr);
  }

  #iran-clock {
    font-size: 46px;
  }

  .account-button svg {
    display: none;
  }

  .calendar-weekdays span {
    font-size: 9px;
  }

  .calendar-day,
  .calendar-grid.week-view .calendar-day {
    min-height: 56px;
  }

  .day-date-header > b {
    width: 27px;
    height: 27px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* حداقل خوانایی برای متن‌های کمکی؛ هیچ متن رابط از ۱۱ پیکسل کوچک‌تر نیست. */
small,
.day-today-badge,
.day-occasion,
.minor-date,
.occasion-count,
.calendar-legend,
.lunar-note,
.occasion-card-badge,
.occasion-card-copy > span,
.notification-card b,
.notification-card em,
.builder-steps b,
.channel-list em,
.submit-row p,
.capacity-badge,
.popular-badge,
.gateway-note,
.footer-links,
footer p {
  font-size: 11px !important;
  font-weight: 400 !important;
}

/* --------------------------------------------------------------------------
   TaghvimeTo 3.3 — Liquid Glass calendar
   لایهٔ نهایی طراحی؛ شفافیت با کنتراست خوانا و چیدمان کاملاً واکنش‌گرا
   -------------------------------------------------------------------------- */

:root {
  --ink: #17213a;
  --ink-soft: #47536a;
  --muted: #6f7b91;
  --muted-light: #909aab;
  --line: rgba(255, 255, 255, .68);
  --line-strong: rgba(132, 145, 176, .24);
  --surface: rgba(255, 255, 255, .64);
  --surface-soft: rgba(247, 249, 255, .62);
  --canvas: #edf3ff;
  --accent: #5b63f2;
  --accent-dark: #4149d7;
  --accent-soft: rgba(91, 99, 242, .11);
  --navy: #17213b;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .76);
  --glass-edge: rgba(255, 255, 255, .78);
  --glass-shadow: 0 22px 70px rgba(72, 86, 129, .13), inset 0 1px 0 rgba(255, 255, 255, .88);
  --glass-shadow-soft: 0 10px 34px rgba(72, 86, 129, .09), inset 0 1px 0 rgba(255, 255, 255, .82);
  --shadow: var(--glass-shadow);
  --shadow-soft: var(--glass-shadow-soft);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --container: 1360px;
}

body {
  position: relative;
  background:
    radial-gradient(circle at 8% 2%, rgba(133, 204, 255, .36), transparent 29rem),
    radial-gradient(circle at 88% 13%, rgba(186, 151, 255, .31), transparent 31rem),
    radial-gradient(circle at 44% 52%, rgba(156, 225, 215, .20), transparent 35rem),
    linear-gradient(145deg, #f7faff 0%, #eef3ff 45%, #f8f5ff 100%);
  background-attachment: fixed;
}

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

/* نوار جمع‌وجور امروز */
.today-strip {
  padding: 16px 0 0;
  color: var(--ink);
  background: transparent;
}

.today-strip-inner {
  position: relative;
  display: grid;
  width: min(var(--container), calc(100% - 40px));
  min-height: 128px;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, .9fr) auto;
  gap: 0;
  margin: 0 auto;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .42)),
    radial-gradient(circle at 8% 0%, rgba(136, 211, 255, .34), transparent 32%);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
}

.today-strip-inner::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .62), transparent 32%, transparent 70%, rgba(255, 255, 255, .28));
  content: "";
  pointer-events: none;
}

.today-primary,
.today-occasion,
.today-clock {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 7px 20px;
  border-inline-end: 1px solid rgba(102, 119, 155, .14);
}

.today-primary {
  padding-inline-start: 8px;
}

.today-eyebrow {
  gap: 8px 14px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.iran-status i {
  width: 7px;
  height: 7px;
  background: #24b58a;
  box-shadow: 0 0 0 5px rgba(36, 181, 138, .10);
}

.today-primary h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -.45px;
  line-height: 1.45;
}

.today-secondary-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.today-secondary-dates > div {
  gap: 7px;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 13px;
  background: rgba(255, 255, 255, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.today-secondary-dates small {
  color: var(--muted);
  font-size: 11px;
}

.today-secondary-dates b {
  color: var(--ink-soft);
  font-size: 12px;
}

.today-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 10px;
  color: var(--accent);
  background: rgba(91, 99, 242, .10);
}

.today-icon svg,
.today-icon.blue svg,
.today-icon.mint svg,
.today-icon.amber svg {
  width: 16px;
  height: 16px;
}

.today-icon.blue { color: #367cd7; background: rgba(54, 124, 215, .10); }
.today-icon.mint { color: #178c72; background: rgba(23, 140, 114, .10); }
.today-icon.amber { color: #b57714; background: rgba(221, 155, 41, .13); }

.today-occasion {
  align-items: center;
  gap: 11px;
}

.today-occasion small,
.today-occasion > div > span {
  color: var(--muted);
  font-size: 11px;
}

.today-occasion strong {
  display: -webkit-box;
  margin: 2px 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.today-clock {
  display: flex;
  min-width: 222px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-inline-end: 12px;
  border-inline-end: 0;
}

.analog-clock {
  position: relative;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .46) 53%, rgba(213, 222, 247, .56));
  box-shadow: 0 10px 26px rgba(53, 67, 110, .14), inset 0 1px 1px rgba(255, 255, 255, .95), inset 0 -1px 2px rgba(78, 94, 139, .12);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.analog-clock::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(90, 104, 141, .12);
  border-radius: 50%;
  content: "";
}

.clock-ticks {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: repeating-conic-gradient(from -1deg, rgba(52, 65, 103, .63) 0 2deg, transparent 2deg 30deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
}

.clock-hand {
  position: absolute;
  z-index: 2;
  bottom: 50%;
  left: 50%;
  display: block;
  width: 2px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%) rotate(0deg);
  transform-origin: 50% 100%;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1);
}

.hour-hand { height: 21px; width: 3px; }
.minute-hand { height: 29px; }
.second-hand { height: 31px; width: 1px; background: #ff4f69; transition: none; }

.clock-pin {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(50, 58, 124, .25);
  transform: translate(-50%, -50%);
}

.clock-copy {
  display: flex;
  min-width: 104px;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.35;
}

.clock-copy small,
.clock-copy > span {
  color: var(--muted);
  font-size: 11px;
}

#iran-clock {
  display: flex;
  direction: ltr;
  align-items: baseline;
  margin: 1px 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
  line-height: 1.3;
  unicode-bidi: isolate;
}

#iran-clock i {
  padding: 0 2px;
  color: var(--accent);
  font-style: normal;
}

/* هدر شناور */
.site-header {
  top: 10px;
  width: min(var(--container), calc(100% - 40px));
  min-height: 64px;
  margin: 12px auto 0;
  padding: 8px 10px;
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  background: rgba(255, 255, 255, .61);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 14px;
  background: linear-gradient(145deg, #7077ff, #4c54dc);
  box-shadow: 0 8px 20px rgba(74, 82, 215, .22), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.main-nav a,
.quick-add,
.account-button {
  border-radius: 999px;
}

.quick-add,
.heading-add,
.primary-button {
  background: linear-gradient(145deg, #6d74ff, #5058df);
  box-shadow: 0 8px 20px rgba(71, 79, 205, .18), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.account-button {
  border-color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

main > section {
  width: min(var(--container), calc(100% - 40px));
  margin-top: 20px;
}

/* تقویم سه‌گانهٔ لنزی */
.calendar-shell {
  position: relative;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .36)),
    radial-gradient(circle at 82% 8%, rgba(172, 148, 255, .12), transparent 28%);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
}

.calendar-shell::before {
  position: absolute;
  top: 0;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  content: "";
}

.calendar-toolbar {
  position: relative;
  z-index: 2;
  gap: 14px;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 20px;
  background: rgba(255, 255, 255, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), 0 8px 26px rgba(75, 90, 132, .06);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.month-nav {
  min-width: min(100%, 510px);
  grid-template-columns: auto minmax(150px, 1fr) auto;
  gap: 7px;
}

.icon-btn,
.today-btn,
.view-switch,
.view-switch button,
.calendar-add {
  border-radius: 999px;
}

.icon-btn {
  min-height: 42px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}

.icon-btn:hover {
  border-color: rgba(110, 119, 242, .34);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 7px 18px rgba(74, 83, 161, .10), inset 0 1px 0 #fff;
}

.month-title h3 {
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -.35px;
}

.month-title small {
  color: var(--muted);
  font-size: 11px;
}

.calendar-tools {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.today-btn {
  min-height: 40px;
  padding: 0 13px;
  border-color: rgba(255, 255, 255, .82);
  color: var(--muted);
  background: rgba(255, 255, 255, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
  opacity: 1;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.today-btn > span {
  background: #a6adbd;
  box-shadow: none;
}

.today-btn:disabled { opacity: 1; }

.today-btn.active {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: linear-gradient(145deg, #6b73ff, #5058df);
  box-shadow: 0 9px 24px rgba(70, 78, 207, .25), inset 0 1px 0 rgba(255, 255, 255, .38);
}

.today-btn.active > span {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
}

.today-btn.active:hover { transform: translateY(-1px); }

.view-switch {
  padding: 3px;
  border-color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.view-switch button {
  min-width: 54px;
  min-height: 34px;
}

.view-switch button.active {
  background: rgba(255, 255, 255, .88);
  color: var(--accent-dark);
  box-shadow: 0 5px 14px rgba(68, 78, 127, .11), inset 0 1px 0 #fff;
}

.calendar-add {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.calendar-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 310px);
  gap: 12px;
}

.calendar-board {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 23px;
  background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.calendar-weekdays {
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  background: rgba(255, 255, 255, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84);
}

.calendar-weekdays span {
  padding: 8px 2px;
  color: var(--ink-soft);
  font-size: 12px;
}

.calendar-grid {
  gap: 7px;
}

.calendar-day {
  isolation: isolate;
  min-height: 103px;
  align-items: center;
  justify-content: center;
  padding: 11px 8px 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .30)),
    rgba(224, 232, 250, .22);
  box-shadow: 0 7px 20px rgba(72, 88, 129, .07), inset 0 1px 0 rgba(255, 255, 255, .94), inset 0 -1px 0 rgba(117, 132, 166, .08);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}

.calendar-day::before {
  position: absolute;
  z-index: -1;
  top: -42%;
  right: -18%;
  width: 90%;
  height: 70%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .48);
  filter: blur(15px);
  content: "";
  pointer-events: none;
}

.calendar-day:hover {
  z-index: 2;
  border-color: rgba(103, 112, 239, .35);
  background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(245, 247, 255, .52));
  box-shadow: 0 13px 29px rgba(65, 79, 126, .13), inset 0 1px 0 #fff;
  transform: translateY(-2px) scale(1.012);
}

.day-date-trio {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1;
}

.jalali-day {
  color: var(--ink);
  font-family: "Yekan Bakh", Tahoma, sans-serif;
  font-size: 29px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}

.secondary-day-numbers {
  display: grid;
  width: min(70px, 100%);
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.gregorian-day,
.hijri-day {
  display: block;
  min-width: 0;
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.gregorian-day {
  color: #647188;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.hijri-day {
  color: #7a65a5;
  font-family: "Geeza Pro", "Noto Naskh Arabic", Tahoma, serif;
}

.calendar-day.holiday:not(.today) .jalali-day { color: var(--holiday); }

.calendar-day.selected:not(.today) {
  border-color: rgba(80, 88, 223, .8);
  background: linear-gradient(145deg, rgba(244, 245, 255, .92), rgba(226, 230, 255, .58));
  box-shadow: 0 12px 28px rgba(67, 75, 190, .17), inset 0 0 0 1px rgba(91, 99, 242, .34), inset 0 1px 0 #fff;
}

.calendar-day.today {
  border-color: rgba(255, 255, 255, .52);
  color: #fff;
  background:
    radial-gradient(circle at 25% 10%, rgba(255, 255, 255, .33), transparent 35%),
    linear-gradient(145deg, #7581ff 0%, #5963ef 52%, #4650cf 100%);
  box-shadow: 0 15px 32px rgba(69, 79, 201, .28), inset 0 1px 0 rgba(255, 255, 255, .48), inset 0 -1px 0 rgba(29, 38, 138, .25);
}

.calendar-day.today .jalali-day,
.calendar-day.today .gregorian-day,
.calendar-day.today .hijri-day {
  color: #fff;
}

.calendar-day.today .gregorian-day,
.calendar-day.today .hijri-day { opacity: .82; }

.calendar-day.today.selected {
  box-shadow: 0 15px 34px rgba(69, 79, 201, .31), inset 0 0 0 2px rgba(255, 255, 255, .76), inset 0 1px 0 #fff;
}

.calendar-day.outside {
  opacity: .45;
  background: rgba(255, 255, 255, .27);
}

.calendar-day.outside:hover { opacity: .76; }

.occasion-dots {
  right: 50%;
  bottom: 8px;
  gap: 3px;
  transform: translateX(50%);
}

.occasion-dots i {
  width: 5px;
  height: 5px;
  box-shadow: 0 1px 3px rgba(30, 40, 70, .16);
}

.calendar-day.today .occasion-dots i {
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .84);
}

.holiday-dot {
  top: 9px;
  left: 9px;
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 3px rgba(219, 77, 90, .10);
}

.calendar-day.today .holiday-dot {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .15);
}

.calendar-grid.week-view .calendar-day { min-height: 150px; }

.calendar-legend {
  margin-top: 10px;
  padding: 0 6px;
  color: var(--muted);
}

.selected-day {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38)),
    radial-gradient(circle at 80% 0%, rgba(121, 129, 255, .13), transparent 40%);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.selected-label b,
.occasion-card-badge,
.capacity-badge,
.popular-badge {
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .52);
}

#occasion-list li {
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.lunar-note {
  margin: 9px 12px 0;
  font-size: 11px;
}

/* یک زبان بصری برای سایر بخش‌ها */
.occasions-section,
.builder-section,
.pricing-section,
.account-section,
.benefits-strip {
  border-color: var(--glass-edge);
  background: linear-gradient(145deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .38));
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
}

.occasion-search input,
.occasion-filters,
.month-occasion-card,
.event-form,
.category-chip,
.date-row,
.check-list label,
.channel-list label > span,
.benefits-strip article,
.account-plan,
.account-events,
.family-card,
.price-card,
.empty-state {
  border-color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.occasion-search input:focus,
.event-form input:focus,
.event-form select:focus,
.event-form textarea:focus,
.auth-dialog input:focus {
  border-color: rgba(91, 99, 242, .45);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 0 0 4px rgba(91, 99, 242, .09), inset 0 1px 0 #fff;
}

.month-occasion-card:hover,
.category-chip:hover {
  border-color: rgba(91, 99, 242, .28);
  background: rgba(255, 255, 255, .72);
}

.category-chip.active,
.check-list input:checked + span,
.channel-list input:checked + span {
  border-color: rgba(91, 99, 242, .34);
  background: rgba(240, 241, 255, .78);
}

.reminder-banner {
  border: 1px solid rgba(255, 255, 255, .25);
  background:
    radial-gradient(circle at 8% 115%, rgba(98, 210, 216, .28), transparent 38%),
    radial-gradient(circle at 95% 0%, rgba(169, 139, 255, .28), transparent 38%),
    linear-gradient(135deg, rgba(24, 34, 61, .94), rgba(37, 47, 82, .92));
  box-shadow: 0 24px 70px rgba(33, 43, 73, .18), inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}

.notification-stack,
.notification-card {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.notification-card { color: #fff; }

.auth-dialog {
  border: 1px solid rgba(255, 255, 255, .78);
  background: rgba(250, 252, 255, .86);
  box-shadow: 0 30px 90px rgba(31, 42, 78, .25), inset 0 1px 0 #fff;
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .today-strip-inner,
  .site-header,
  .calendar-shell,
  .selected-day,
  .occasions-section,
  .builder-section,
  .pricing-section,
  .account-section,
  .benefits-strip {
    background: #f9fbff;
  }
}

@media (max-width: 1080px) {
  .today-strip-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .today-primary { border-inline-end: 0; }

  .today-occasion {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 7px;
    padding-top: 9px;
    border-top: 1px solid rgba(102, 119, 155, .12);
    border-inline-end: 0;
  }

  .calendar-layout {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 280px);
  }

  .calendar-day { min-height: 94px; }
}

@media (max-width: 880px) {
  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .month-nav { width: 100%; }
  .calendar-tools { justify-content: center; }

  .calendar-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .selected-day { min-height: 0; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 76px; }

  .today-strip { padding-top: 10px; }

  .today-strip-inner,
  .site-header,
  main > section,
  footer {
    width: calc(100% - 20px);
    max-width: 100%;
  }

  .today-strip-inner {
    min-height: 0;
    padding: 10px;
    border-radius: 23px;
  }

  .today-primary,
  .today-clock,
  .today-occasion {
    padding: 5px 8px;
  }

  .today-primary { padding-inline-start: 2px; }

  .today-eyebrow {
    gap: 7px;
    margin-bottom: 2px;
    font-size: 11px;
  }

  .today-primary h1 {
    margin-bottom: 6px;
    font-size: 19px;
  }

  .today-secondary-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .today-secondary-dates > div {
    min-height: 35px;
    padding: 4px 6px;
  }

  .today-secondary-dates .today-icon { display: none; }

  .today-secondary-dates b {
    max-width: 125px;
    font-size: 11px;
  }

  .today-clock {
    min-width: 76px;
    flex-direction: column;
    gap: 3px;
  }

  .analog-clock {
    width: 63px;
    height: 63px;
    flex-basis: 63px;
  }

  .hour-hand { height: 16px; }
  .minute-hand { height: 22px; }
  .second-hand { height: 24px; }

  .clock-copy {
    min-width: 0;
    align-items: center;
  }

  .clock-copy small,
  .clock-copy > span { display: none; }

  #iran-clock {
    font-size: 14px;
    letter-spacing: -.2px;
  }

  .today-occasion {
    min-height: 45px;
    margin-top: 6px;
    padding-top: 8px;
  }

  .today-occasion strong {
    font-size: 13px;
    -webkit-line-clamp: 1;
  }

  .today-occasion > div > span { display: none; }

  .site-header {
    top: 7px;
    min-height: 57px;
    margin-top: 9px;
    padding: 7px;
    border-radius: 19px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .brand-copy small,
  .quick-add { display: none; }

  .calendar-shell {
    padding: 8px;
    border-radius: 23px;
  }

  .calendar-toolbar {
    gap: 7px;
    margin-bottom: 7px;
    padding: 6px;
    border-radius: 17px;
  }

  .month-nav {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 4px;
  }

  .icon-btn {
    width: 40px;
    min-height: 39px;
    justify-content: center;
    padding: 0;
  }

  .icon-btn > span { display: none; }

  .month-title h3 { font-size: 19px; }

  .calendar-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
    gap: 5px;
  }

  .today-btn {
    min-width: 0;
    justify-content: center;
    padding: 0 8px;
    font-size: 12px;
  }

  .view-switch button {
    min-width: 43px;
    padding: 0 8px;
  }

  .calendar-add {
    min-width: 40px;
    width: 40px;
    padding: 0;
  }

  .calendar-add span { display: none; }

  .calendar-board {
    padding: 6px;
    border-radius: 18px;
  }

  .calendar-weekdays {
    margin-bottom: 5px;
    border-radius: 12px;
  }

  .calendar-weekdays span {
    padding: 7px 0;
    font-size: 10px;
  }

  .calendar-grid { gap: 4px; }

  .calendar-day,
  .calendar-grid.week-view .calendar-day {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    padding: 7px 2px 10px;
    border-radius: 13px;
  }

  .calendar-day:hover { transform: none; }

  .day-date-trio { gap: 6px; }

  .jalali-day { font-size: 21px; }

  .secondary-day-numbers {
    width: min(48px, 100%);
    gap: 3px;
  }

  .gregorian-day,
  .hijri-day { font-size: 10px; }

  .occasion-dots {
    position: absolute;
    bottom: 5px;
    display: flex;
    min-height: 0;
    margin: 0;
  }

  .occasion-dots i {
    width: 4px;
    height: 4px;
  }

  .holiday-dot {
    top: 6px;
    left: 6px;
    display: block;
    width: 5px;
    height: 5px;
  }

  .calendar-legend {
    justify-content: center;
    gap: 5px 10px;
    font-size: 11px;
  }

  .selected-day {
    padding: 17px;
    border-radius: 19px;
  }

  .occasions-section,
  .builder-section,
  .pricing-section,
  .account-section {
    padding: 20px 14px;
    border-radius: 23px;
  }
}

@media (max-width: 390px) {
  .today-secondary-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #iran-clock { font-size: 13px; }

  .calendar-day,
  .calendar-grid.week-view .calendar-day { min-height: 66px; }

  .jalali-day { font-size: 19px; }

  .gregorian-day,
  .hijri-day { font-size: 9px; }
}

/* نسخهٔ قابل خواندن برای موتور جست‌وجو و حالت بدون جاوااسکریپت */
.seo-calendar {
  min-width: 0;
}

.seo-calendar > h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 400;
}

.seo-weekdays,
.seo-days {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  direction: rtl;
}

.seo-weekdays {
  margin-bottom: 7px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 15px;
  background: rgba(255, 255, 255, .4);
}

.seo-weekdays span {
  padding: 8px 2px;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.seo-days { gap: 7px; }

.seo-day {
  display: flex;
  min-width: 0;
  min-height: 94px;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .30));
  box-shadow: 0 7px 20px rgba(72, 88, 129, .07), inset 0 1px 0 rgba(255, 255, 255, .94);
}

.seo-day.holiday:not(.today) .jalali-day { color: var(--holiday); }

.seo-day.today {
  background: linear-gradient(145deg, #7581ff, #5963ef 52%, #4650cf);
  box-shadow: 0 15px 32px rgba(69, 79, 201, .26), inset 0 1px 0 rgba(255, 255, 255, .48);
}

.seo-day.today .jalali-day,
.seo-day.today .gregorian-day,
.seo-day.today .hijri-day { color: #fff; }

.seo-day.selected:not(.today) {
  border-color: rgba(80, 88, 223, .78);
  box-shadow: inset 0 0 0 1px rgba(91, 99, 242, .3);
}

.seo-day.outside { opacity: .45; }

.seo-day-details {
  margin-top: 12px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 19px;
  background: rgba(255, 255, 255, .43);
}

.seo-day-details h2 { margin-bottom: 4px; font-size: 19px; }
.seo-day-details p,
.seo-day-details li { color: var(--muted); font-size: 13px; }

.noscript-note {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .5);
  font-size: 13px;
}

@media (max-width: 680px) {
  .seo-calendar > h1 { font-size: 19px; }
  .seo-weekdays span { padding: 7px 0; font-size: 10px; }
  .seo-days { gap: 4px; }
  .seo-day { min-height: 70px; padding: 7px 2px; border-radius: 13px; }
}

/* --------------------------------------------------------------------------
   TaghvimeTo 3.4 — compact RTL calendar, fast date picker and luminous dark mode
   -------------------------------------------------------------------------- */

.theme-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, .48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), 0 7px 20px rgba(58, 70, 118, .08);
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.theme-toggle:hover { transform: translateY(-1px) rotate(-7deg); }
.theme-toggle .theme-sun { display: none; }

body,
.site-header,
.today-strip-inner,
.calendar-shell,
.calendar-toolbar,
.calendar-board,
.selected-day,
.event-form,
.occasions-section,
.builder-section,
.pricing-section,
.account-section,
.benefits-strip,
.date-picker-dialog {
  transition: color .2s ease, border-color .24s ease, background-color .24s ease, box-shadow .24s ease;
}

/* نوار اول عمداً هویت رنگی متفاوتی از بدنه دارد. */
.today-strip-inner {
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
  background:
    radial-gradient(circle at 8% 8%, rgba(116, 225, 255, .28), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(191, 151, 255, .34), transparent 38%),
    linear-gradient(125deg, rgba(45, 61, 157, .96), rgba(82, 74, 196, .94) 52%, rgba(38, 47, 111, .97));
  box-shadow: 0 22px 60px rgba(51, 58, 151, .24), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.today-strip-inner::before {
  background: linear-gradient(112deg, rgba(255, 255, 255, .22), transparent 30%, transparent 68%, rgba(255, 255, 255, .12));
}

.today-primary,
.today-occasion,
.today-clock { border-color: rgba(255, 255, 255, .16); }

.today-strip-inner :is(h1, strong, b, #iran-clock) { color: #fff; }
.today-strip-inner :is(small, .clock-copy > span, #today-occasion-meta, #today-weekday) { color: rgba(255, 255, 255, .72); }
.today-secondary-dates > div,
.today-occasion {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.analog-clock {
  border-color: rgba(255, 255, 255, .3);
  background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .23), 0 10px 28px rgba(15, 21, 76, .2);
}

.clock-hand { background: #fff; }
.second-hand { background: #7de5ff; }
#iran-clock i { color: #88e9ff; }

.site-header {
  border-color: rgba(255, 255, 255, .82);
  background:
    linear-gradient(120deg, rgba(245, 248, 255, .83), rgba(232, 236, 255, .68)),
    rgba(255, 255, 255, .62);
}

/* اعداد روز: راست‌چین، فشرده و با سه سلسله‌مراتب واضح. */
.calendar-grid { gap: 6px; }

.calendar-day,
.seo-day {
  min-height: 84px;
  align-items: stretch;
  justify-content: flex-start;
  padding: 9px 10px 12px;
  border-radius: 16px;
}

.calendar-day { touch-action: manipulation; }

.day-date-trio {
  width: auto;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  margin-inline-end: auto;
  text-align: right;
}

.jalali-day {
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -.35px;
}

.secondary-day-numbers {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  direction: ltr;
  line-height: 1;
}

.gregorian-day,
.hijri-day {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
  text-align: right;
}

.hijri-day {
  padding-inline-start: 7px;
  border-inline-start: 1px solid rgba(105, 117, 147, .2);
}

.occasion-dots {
  right: auto;
  bottom: 8px;
  left: 10px;
  transform: none;
}

.personal-event-marker {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 19px;
  height: 5px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 999px;
  background: linear-gradient(90deg, #7b61ff, #42c8ff);
  box-shadow: 0 0 0 3px rgba(91, 99, 242, .09), 0 2px 8px rgba(68, 91, 225, .28);
}

.calendar-day.has-personal-event:not(.today) {
  background:
    radial-gradient(circle at 96% 100%, rgba(91, 99, 242, .11), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .32));
}

.calendar-day.today .personal-event-marker {
  border-color: rgba(255, 255, 255, .48);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .14);
}

.calendar-legend i.personal {
  width: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7b61ff, #42c8ff);
  box-shadow: 0 2px 7px rgba(74, 94, 220, .22);
}

#occasion-list li.personal-event {
  position: relative;
  padding-inline-start: 14px;
  border-color: rgba(91, 99, 242, .22);
  background: linear-gradient(120deg, rgba(238, 240, 255, .82), rgba(232, 248, 255, .7));
}

#occasion-list li.personal-event::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  right: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(#7b61ff, #42c8ff);
  content: "";
}

.calendar-grid[aria-busy="true"] { pointer-events: none; }

.calendar-enter-previous .calendar-day { animation: calendar-from-right .2s cubic-bezier(.2, .8, .2, 1) both; }
.calendar-enter-next .calendar-day { animation: calendar-from-left .2s cubic-bezier(.2, .8, .2, 1) both; }
.calendar-enter-previous .calendar-day,
.calendar-enter-next .calendar-day { animation-delay: calc(var(--day-index) * 1.3ms); }

@keyframes calendar-from-right {
  from { opacity: .25; transform: translateX(10px) scale(.99); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes calendar-from-left {
  from { opacity: .25; transform: translateX(-10px) scale(.99); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.calendar-day.selected { animation: selected-day-pop .18s cubic-bezier(.2, .8, .2, 1); }

@keyframes selected-day-pop {
  0% { transform: scale(.96); }
  70% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

/* انتخاب‌گر تاریخ فرم */
.date-picker-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.date-picker-trigger {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
  text-align: right;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.date-picker-trigger:hover {
  border-color: rgba(91, 99, 242, .4);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 0 0 4px rgba(91, 99, 242, .07), inset 0 1px 0 #fff;
}

.date-picker-trigger:active { transform: scale(.99); }
.date-picker-trigger svg { width: 18px; height: 18px; color: var(--accent); }

.date-picker-dialog {
  width: min(430px, calc(100% - 22px));
  max-width: 100%;
  margin: auto;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 27px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(173, 148, 255, .2), transparent 36%),
    rgba(249, 251, 255, .9);
  box-shadow: 0 34px 100px rgba(25, 34, 75, .3), inset 0 1px 0 #fff;
  backdrop-filter: blur(34px) saturate(170%);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
}

.date-picker-dialog[open] { animation: dialog-open .2s cubic-bezier(.2, .8, .2, 1); }
.date-picker-dialog::backdrop { background: rgba(16, 23, 48, .34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

@keyframes dialog-open {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.date-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 3px 14px;
}

.date-picker-heading > div { min-width: 0; }
.date-picker-heading span { color: var(--muted); font-size: 12px; }
.date-picker-heading h2 { margin: 1px 0 0; font-size: 21px; line-height: 1.45; }

.date-picker-heading .dialog-close {
  position: static;
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, .55);
}

.date-picker-navigation {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 17px;
  background: rgba(255, 255, 255, .44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.date-picker-navigation > button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 13px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, .55);
  transition: background .16s ease, transform .16s ease;
}

.date-picker-navigation > button:hover { background: rgba(255, 255, 255, .84); transform: scale(1.03); }
.date-picker-navigation svg { width: 18px; height: 18px; }

.date-picker-selects {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 6px;
}

.date-picker-selects select {
  height: 42px;
  padding: 0 9px;
  border-color: rgba(125, 137, 168, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  font-size: 14px;
  text-align: right;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  direction: rtl;
}

.date-picker-weekdays {
  margin-top: 11px;
  padding: 0 3px;
}

.date-picker-weekdays span {
  padding: 4px 0 6px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.date-picker-grid {
  position: relative;
  min-height: 312px;
  gap: 5px;
  transition: opacity .14s ease, transform .14s ease;
}

.date-picker-grid.loading { pointer-events: none; opacity: .44; transform: scale(.992); }

.date-picker-day {
  display: grid;
  min-width: 0;
  min-height: 46px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 13px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
  font-size: 14px;
  transition: color .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .14s ease;
}

.date-picker-day:hover {
  z-index: 1;
  color: var(--accent-dark);
  border-color: rgba(91, 99, 242, .3);
  background: rgba(242, 243, 255, .86);
  box-shadow: 0 6px 16px rgba(66, 76, 156, .12), inset 0 1px 0 #fff;
  transform: translateY(-1px);
}

.date-picker-day.outside { opacity: .33; }

.date-picker-day.today {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  background: linear-gradient(145deg, #7480ff, #5059df);
  box-shadow: 0 7px 18px rgba(75, 84, 211, .25), inset 0 1px 0 rgba(255, 255, 255, .38);
}

.date-picker-day.selected:not(.today) {
  color: var(--accent-dark);
  border-color: rgba(91, 99, 242, .58);
  background: rgba(237, 239, 255, .9);
  box-shadow: inset 0 0 0 1px rgba(91, 99, 242, .24), 0 5px 15px rgba(72, 80, 172, .1);
}

.picker-enter .date-picker-day { animation: picker-day-in .17s ease both; }

@keyframes picker-day-in {
  from { opacity: .35; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.date-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 136, 169, .14);
}

.date-picker-footer > span { color: var(--muted); font-size: 11px; }

.date-picker-today {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, #6d74ff, #5058df);
  box-shadow: 0 8px 20px rgba(71, 79, 205, .2), inset 0 1px 0 rgba(255, 255, 255, .34);
  font-size: 12px;
}

.date-picker-today svg { width: 16px; height: 16px; }

/* حالت تاریک؛ همان شیشه، با کنتراست و نور کنترل‌شده. */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f6ff;
  --ink-soft: #cbd4e8;
  --muted: #9ba8c2;
  --muted-light: #7f8ba4;
  --line: rgba(174, 194, 235, .13);
  --line-strong: rgba(184, 203, 242, .2);
  --surface: rgba(19, 27, 49, .78);
  --surface-soft: rgba(25, 34, 59, .7);
  --canvas: #080d1c;
  --accent: #8f96ff;
  --accent-dark: #b7bcff;
  --accent-soft: rgba(123, 133, 255, .16);
  --navy: #090f22;
  --navy-soft: #121a32;
  --glass: rgba(20, 29, 52, .68);
  --glass-strong: rgba(26, 36, 63, .82);
  --glass-edge: rgba(190, 207, 245, .15);
  --glass-shadow: 0 24px 75px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
  --glass-shadow-soft: 0 12px 38px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .07);
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 2%, rgba(47, 123, 185, .2), transparent 31rem),
    radial-gradient(circle at 90% 12%, rgba(116, 75, 212, .2), transparent 34rem),
    radial-gradient(circle at 45% 55%, rgba(31, 145, 133, .1), transparent 37rem),
    linear-gradient(145deg, #080d1c, #0c1327 48%, #0b1021);
  background-attachment: fixed;
}

[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-sun { display: block; }

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .account-button {
  color: #dce2ff;
  border-color: rgba(184, 204, 244, .16);
  background: rgba(26, 36, 64, .66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .2);
}

[data-theme="dark"] .site-header {
  border-color: rgba(186, 203, 242, .14);
  background:
    linear-gradient(120deg, rgba(21, 31, 58, .87), rgba(30, 34, 68, .76)),
    rgba(12, 19, 38, .78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .07);
}

[data-theme="dark"] .today-strip-inner {
  border-color: rgba(168, 188, 245, .18);
  background:
    radial-gradient(circle at 8% 8%, rgba(73, 205, 239, .2), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(162, 112, 255, .27), transparent 38%),
    linear-gradient(125deg, rgba(24, 40, 106, .97), rgba(62, 49, 137, .96) 54%, rgba(16, 25, 65, .98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .15);
}

[data-theme="dark"] :is(
  .calendar-shell,
  .selected-day,
  .occasions-section,
  .builder-section,
  .pricing-section,
  .account-section,
  .benefits-strip
) {
  border-color: rgba(184, 203, 242, .13);
  background:
    radial-gradient(circle at 90% 0%, rgba(118, 92, 235, .08), transparent 34%),
    linear-gradient(145deg, rgba(22, 31, 55, .78), rgba(13, 20, 39, .69));
  box-shadow: var(--glass-shadow);
}

[data-theme="dark"] :is(.calendar-toolbar, .calendar-board, .calendar-weekdays) {
  border-color: rgba(183, 202, 239, .12);
  background: rgba(31, 42, 70, .44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

[data-theme="dark"] :is(.icon-btn, .today-btn, .view-switch, .date-picker-trigger) {
  color: var(--ink-soft);
  border-color: rgba(185, 203, 242, .14);
  background: rgba(31, 42, 71, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

[data-theme="dark"] .view-switch button.active {
  color: #eef1ff;
  background: rgba(116, 126, 255, .26);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .09);
}

[data-theme="dark"] .calendar-day,
[data-theme="dark"] .seo-day {
  border-color: rgba(184, 203, 242, .12);
  background:
    linear-gradient(145deg, rgba(39, 51, 82, .58), rgba(18, 27, 50, .46)),
    rgba(18, 27, 49, .5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .17), inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -1px 0 rgba(0, 0, 0, .18);
}

[data-theme="dark"] .calendar-day::before { background: rgba(127, 155, 255, .08); }

[data-theme="dark"] .calendar-day:hover {
  border-color: rgba(139, 150, 255, .42);
  background: linear-gradient(145deg, rgba(54, 66, 104, .72), rgba(27, 36, 66, .58));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .27), 0 0 26px rgba(93, 104, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .1);
}

[data-theme="dark"] .calendar-day.has-personal-event:not(.today) {
  background:
    radial-gradient(circle at 96% 100%, rgba(99, 110, 255, .19), transparent 45%),
    linear-gradient(145deg, rgba(40, 52, 86, .63), rgba(19, 28, 52, .5));
}

[data-theme="dark"] .calendar-day.selected:not(.today) {
  border-color: rgba(137, 146, 255, .68);
  background: linear-gradient(145deg, rgba(74, 79, 157, .45), rgba(38, 43, 91, .46));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .24), 0 0 28px rgba(101, 112, 255, .12), inset 0 0 0 1px rgba(145, 154, 255, .24);
}

[data-theme="dark"] .gregorian-day { color: #9eabc3; }
[data-theme="dark"] .hijri-day { color: #c3aef0; border-color: rgba(186, 201, 233, .16); }
[data-theme="dark"] .calendar-day.outside { opacity: .34; }

[data-theme="dark"] :is(
  .occasion-search input,
  .occasion-filters,
  .month-occasion-card,
  .event-form,
  .category-chip,
  .date-row,
  .check-list label,
  .channel-list label > span,
  .benefits-strip article,
  .account-plan,
  .account-events,
  .family-card,
  .price-card,
  .empty-state,
  #occasion-list li
) {
  color: var(--ink);
  border-color: rgba(183, 202, 239, .12);
  background: rgba(26, 36, 61, .56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

[data-theme="dark"] #occasion-list li.personal-event {
  border-color: rgba(126, 137, 255, .22);
  background: linear-gradient(120deg, rgba(64, 65, 126, .45), rgba(29, 61, 85, .4));
}

[data-theme="dark"] :is(input, select, textarea) {
  color: var(--ink);
  border-color: rgba(183, 202, 239, .17);
  background: rgba(14, 22, 42, .64);
}

[data-theme="dark"] :is(input, textarea)::placeholder { color: #71809d; }
[data-theme="dark"] option { color: #eef2ff; background: #121b32; }

[data-theme="dark"] :is(.category-chip.active, .check-list input:checked + span, .channel-list input:checked + span) {
  color: #e5e8ff;
  border-color: rgba(137, 146, 255, .3);
  background: rgba(103, 112, 242, .17);
}

[data-theme="dark"] .date-picker-dialog,
[data-theme="dark"] .auth-dialog {
  color: var(--ink);
  border-color: rgba(189, 207, 244, .16);
  background:
    radial-gradient(circle at 90% 0%, rgba(130, 93, 238, .14), transparent 38%),
    rgba(13, 21, 41, .93);
  box-shadow: 0 38px 110px rgba(0, 0, 0, .54), inset 0 1px 0 rgba(255, 255, 255, .08);
}

[data-theme="dark"] :is(.date-picker-heading .dialog-close, .date-picker-navigation, .date-picker-navigation > button, .date-picker-selects select, .date-picker-day) {
  color: var(--ink-soft);
  border-color: rgba(184, 203, 242, .14);
  background: rgba(29, 40, 68, .68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

[data-theme="dark"] .date-picker-day:hover {
  color: #e7eaff;
  border-color: rgba(137, 147, 255, .36);
  background: rgba(83, 91, 172, .34);
}

[data-theme="dark"] .date-picker-day.selected:not(.today) {
  color: #eef0ff;
  border-color: rgba(142, 151, 255, .58);
  background: rgba(89, 96, 190, .34);
  box-shadow: inset 0 0 0 1px rgba(150, 160, 255, .2), 0 5px 18px rgba(0, 0, 0, .2);
}

[data-theme="dark"] .date-picker-footer { border-color: rgba(184, 203, 242, .12); }

[data-theme="dark"] footer { color: var(--ink-soft); }

@media (max-width: 680px) {
  .theme-toggle {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .calendar-grid { gap: 4px; }

  .calendar-day,
  .calendar-grid.week-view .calendar-day,
  .seo-day {
    min-height: 59px;
    align-items: stretch;
    justify-content: flex-start;
    padding: 7px 7px 9px;
    border-radius: 12px;
  }

  .day-date-trio { gap: 3px; }
  .jalali-day { font-size: 20px; }
  .secondary-day-numbers { width: auto; gap: 4px; }
  .gregorian-day,
  .hijri-day { font-size: 10px; }
  .hijri-day { padding-inline-start: 4px; }

  .occasion-dots { bottom: 5px; left: 6px; gap: 2px; }
  .occasion-dots i { width: 3px; height: 3px; }
  .personal-event-marker { right: 6px; bottom: 5px; width: 14px; height: 4px; }

  .date-picker-dialog { width: calc(100% - 14px); padding: 13px; border-radius: 23px; }
  .date-picker-navigation { grid-template-columns: 39px minmax(0, 1fr) 39px; gap: 5px; padding: 5px; }
  .date-picker-navigation > button { width: 39px; height: 39px; }
  .date-picker-selects { gap: 4px; }
  .date-picker-selects select { height: 39px; padding: 0 6px; font-size: 13px; }
  .date-picker-grid { min-height: 272px; gap: 4px; }
  .date-picker-day { min-height: 39px; border-radius: 11px; font-size: 13px; }
  .date-picker-footer > span { display: none; }
  .date-picker-footer { justify-content: center; }
}

@media (max-width: 390px) {
  .calendar-day,
  .calendar-grid.week-view .calendar-day,
  .seo-day { min-height: 56px; padding: 6px 5px 8px; }
  .jalali-day { font-size: 18px; }
  .gregorian-day,
  .hijri-day { font-size: 9px; }
  .date-picker-grid { min-height: 250px; gap: 3px; }
  .date-picker-day { min-height: 35px; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-day,
  .date-picker-dialog,
  .date-picker-day { animation: none !important; }
}

/* هویت بصری تقویمِ تو */
.brand-mark {
  overflow: visible;
  padding: 0;
  border: 0;
  color: transparent;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  filter: drop-shadow(0 7px 13px rgba(57, 64, 175, .2));
}

.brand-copy > strong {
  letter-spacing: -.65px;
}

/* --------------------------------------------------------------------------
   TaghvimeTo 3.6 — unified Apple glass system, accessible themes and week UI
   -------------------------------------------------------------------------- */

:root {
  --ui-text: #172033;
  --ui-secondary: #4f5c73;
  --ui-muted: #68758c;
  --ui-faint: #8390a6;
  --ui-edge: rgba(91, 108, 145, .17);
  --ui-edge-strong: rgba(85, 100, 137, .27);
  --ui-surface: rgba(255, 255, 255, .72);
  --ui-surface-raised: rgba(255, 255, 255, .88);
  --ui-surface-soft: rgba(246, 249, 255, .66);
  --ui-input: rgba(255, 255, 255, .9);
  --ui-placeholder: #7d899e;
  --ui-accent: #5963ef;
  --ui-accent-deep: #424bd0;
  --ui-focus: rgba(89, 99, 239, .16);
  --ui-holiday-surface: rgba(229, 75, 91, .065);
  --ui-holiday-edge: rgba(216, 70, 85, .18);
  --ui-holiday-text: #c64050;
  --ui-shadow: 0 22px 64px rgba(48, 63, 105, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
  --ui-shadow-soft: 0 10px 30px rgba(48, 63, 105, .08), inset 0 1px 0 rgba(255, 255, 255, .86);
}

[data-theme="dark"] {
  --ui-text: #f4f7ff;
  --ui-secondary: #c9d2e6;
  --ui-muted: #a9b5cd;
  --ui-faint: #8e9bb6;
  --ui-edge: rgba(188, 205, 242, .17);
  --ui-edge-strong: rgba(193, 209, 245, .28);
  --ui-surface: rgba(24, 33, 57, .77);
  --ui-surface-raised: rgba(31, 42, 70, .9);
  --ui-surface-soft: rgba(18, 27, 49, .68);
  --ui-input: rgba(10, 17, 34, .82);
  --ui-placeholder: #93a0ba;
  --ui-accent: #939aff;
  --ui-accent-deep: #b7bcff;
  --ui-focus: rgba(143, 151, 255, .22);
  --ui-holiday-surface: rgba(255, 92, 108, .11);
  --ui-holiday-edge: rgba(255, 104, 119, .24);
  --ui-holiday-text: #ff9aa5;
  --ui-shadow: 0 24px 72px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
  --ui-shadow-soft: 0 12px 34px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .07);
}

body {
  color: var(--ui-text);
  font-size: 16px;
}

:is(p, li, label, legend, small, input, select, textarea, button) {
  font-weight: 400;
}

small,
.section-kicker,
.field-label,
.form-heading > div > span,
.month-title small,
.clock-copy small,
.clock-copy > span {
  color: var(--ui-muted);
}

small { font-size: 13px; }
label,
legend,
.field-label { color: var(--ui-secondary); font-size: 14px; }

:is(input, select, textarea) {
  min-height: 50px;
  border-color: var(--ui-edge-strong);
  border-radius: 15px;
  color: var(--ui-text);
  background: var(--ui-input);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62);
  font-size: 16px;
  line-height: 1.55;
  caret-color: var(--ui-accent);
}

textarea { min-height: 112px; }

:is(input, textarea)::placeholder {
  color: var(--ui-placeholder);
  opacity: 1;
}

:is(input, select, textarea, button, a):focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 2px;
}

:is(input, select, textarea):focus {
  border-color: var(--ui-accent);
  background: var(--ui-surface-raised);
  box-shadow: 0 0 0 4px var(--ui-focus), inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* Compact, colorful first frame with a fully rounded occasion lens. */
.today-strip { padding-top: 14px; }

.today-strip-inner {
  min-height: 134px;
  padding: 12px;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at 8% 2%, rgba(121, 226, 255, .26), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(196, 159, 255, .3), transparent 38%),
    linear-gradient(125deg, #273a93 0%, #554bb9 54%, #222d72 100%);
  box-shadow: 0 24px 68px rgba(43, 51, 139, .25), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.today-primary,
.today-clock {
  padding: 8px 22px;
  border-color: rgba(255, 255, 255, .14);
}

.today-primary { padding-inline-start: 12px; }

.today-occasion {
  align-self: stretch;
  gap: 12px;
  margin: 2px 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .17), 0 10px 30px rgba(22, 27, 82, .1);
}

.today-occasion .today-icon {
  color: #ffe29a;
  background: rgba(255, 221, 135, .14);
}

.today-strip-inner :is(.today-eyebrow, small, #today-weekday, #today-occasion-meta, .clock-copy > span) {
  color: rgba(255, 255, 255, .76);
}

.today-strip-inner :is(h1, strong, b, #iran-clock) { color: #fff; }
.today-primary h1 { margin-bottom: 9px; font-size: clamp(22px, 2vw, 29px); }
.today-secondary-dates small { font-size: 12px; }
.today-secondary-dates b { color: rgba(255, 255, 255, .94); font-size: 13px; }

.today-secondary-dates > div {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

.today-occasion small,
.today-occasion > div > span { font-size: 12px; }
.today-occasion strong { font-size: 16px; line-height: 1.55; }

.analog-clock {
  border-color: rgba(255, 255, 255, .31);
  background: radial-gradient(circle at 34% 25%, rgba(255, 255, 255, .25), rgba(255, 255, 255, .07));
  box-shadow: 0 12px 30px rgba(18, 23, 75, .22), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.analog-clock::before { border-color: rgba(255, 255, 255, .15); }
.clock-ticks { background: repeating-conic-gradient(from -1deg, rgba(255, 255, 255, .78) 0 2deg, transparent 2deg 30deg); }
.clock-hand { background: #fff; }
.second-hand { background: #8eeeff; }
#iran-clock { color: #fff; font-size: 23px; }
#iran-clock i { color: #91efff; }

/* Coherent glass chrome in both appearance modes. */
.site-header,
.calendar-shell,
.occasions-section,
.builder-section,
.pricing-section,
.account-section,
.benefits-strip {
  border-color: var(--ui-edge);
  background:
    radial-gradient(circle at 92% 0%, rgba(121, 132, 255, .08), transparent 34%),
    linear-gradient(145deg, var(--ui-surface), var(--ui-surface-soft));
  box-shadow: var(--ui-shadow);
}

.calendar-shell { padding: 15px; }

.calendar-toolbar,
.calendar-board,
.selected-day,
.event-form,
.family-card,
.price-card,
.month-occasion-card,
.account-events,
.empty-state {
  border-color: var(--ui-edge);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-soft);
}

.calendar-toolbar {
  margin-bottom: 11px;
  border-radius: 20px;
}

.month-title h3 { color: var(--ui-text); }
.month-title small { color: var(--ui-muted); font-size: 12px; }

:is(.icon-btn, .today-btn, .view-switch, .account-button, .theme-toggle, .date-picker-trigger) {
  color: var(--ui-secondary);
  border-color: var(--ui-edge);
  background: var(--ui-surface-raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48);
}

.view-switch button { color: var(--ui-secondary); }
.view-switch button.active {
  color: var(--ui-accent-deep);
  background: var(--ui-surface-raised);
  box-shadow: 0 5px 16px rgba(57, 70, 118, .11), inset 0 1px 0 rgba(255, 255, 255, .48);
}

.calendar-board {
  padding: 10px;
  overflow: hidden;
  border-radius: 23px;
}

.calendar-weekdays {
  border-color: var(--ui-edge);
  background: var(--ui-surface-soft);
}

.calendar-weekdays span { color: var(--ui-secondary); font-size: 13px; }

/* Month view: compact, right aligned, clear three-calendar hierarchy. */
.calendar-grid {
  min-width: 0;
  gap: 6px;
  transition: opacity .16s ease, filter .16s ease, transform .16s ease;
}

.calendar-grid.calendar-loading {
  opacity: .58;
  filter: saturate(.76);
}

.calendar-day,
.seo-day {
  min-width: 0;
  min-height: 82px;
  align-items: stretch;
  justify-content: flex-start;
  padding: 9px 10px 12px;
  border-color: var(--ui-edge);
  border-radius: 16px;
  color: var(--ui-text);
  background: linear-gradient(145deg, var(--ui-surface-raised), var(--ui-surface-soft));
  box-shadow: 0 7px 20px rgba(47, 62, 103, .065), inset 0 1px 0 rgba(255, 255, 255, .62);
}

.calendar-day::before { opacity: .54; }

.day-date-trio {
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
  direction: rtl;
  text-align: right;
}

.jalali-day {
  color: var(--ui-text);
  font-size: 24px;
  line-height: 1.05;
  text-align: right;
}

.secondary-day-numbers {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  direction: ltr;
  line-height: 1;
}

.gregorian-day,
.hijri-day { font-size: 11px; text-align: right; }
.gregorian-day { color: #5f6d83; }
.hijri-day { color: #755f9d; border-color: var(--ui-edge); }

.calendar-day.holiday:not(.today):not(.selected),
.seo-day.holiday:not(.today) {
  border-color: var(--ui-holiday-edge);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .62), transparent),
    var(--ui-holiday-surface);
}

.calendar-day.holiday:not(.today) .jalali-day,
.seo-day.holiday:not(.today) { color: var(--ui-holiday-text); }

.calendar-day.selected:not(.today) {
  border-color: rgba(80, 90, 224, .72);
  background: linear-gradient(145deg, rgba(245, 246, 255, .96), rgba(224, 229, 255, .72));
  box-shadow: 0 10px 28px rgba(64, 73, 184, .16), inset 0 0 0 1px rgba(89, 99, 239, .28), inset 0 1px 0 rgba(255, 255, 255, .72);
}

.calendar-day.today {
  border-color: rgba(255, 255, 255, .55);
  background:
    radial-gradient(circle at 24% 8%, rgba(255, 255, 255, .34), transparent 38%),
    linear-gradient(145deg, #7b85ff, #5862ec 54%, #424dca);
  box-shadow: 0 14px 32px rgba(65, 75, 196, .27), inset 0 1px 0 rgba(255, 255, 255, .52);
}

.calendar-day.outside { opacity: .38; }
.holiday-dot { background: var(--ui-holiday-text); }

/* Week view is intentionally not a stretched month grid. */
.calendar-board.week-layout { padding: 9px; }

.calendar-grid.week-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.calendar-grid.week-view .calendar-day {
  display: grid;
  min-height: 108px;
  grid-template-columns: minmax(175px, .78fr) minmax(220px, 1fr) minmax(220px, 1.25fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  text-align: right;
}

.calendar-grid.week-view .calendar-day:hover {
  transform: translateY(-1px) scale(1.002);
}

.week-day-identity,
.week-other-dates,
.week-day-events,
.week-day-status,
.week-gregorian-date,
.week-hijri-date {
  display: flex;
  min-width: 0;
}

.week-day-identity { flex-direction: column; gap: 5px; }
.week-day-name { color: var(--ui-muted); font-size: 13px; }
.week-jalali-date { display: flex; align-items: baseline; gap: 8px; }
.week-jalali-date b { color: var(--ui-text); font-size: 30px; line-height: 1; }
.week-jalali-date span { color: var(--ui-secondary); font-size: 15px; }

.week-other-dates {
  align-items: stretch;
  gap: 8px;
}

.week-gregorian-date,
.week-hijri-date {
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--ui-edge);
  border-radius: 13px;
  background: var(--ui-surface-soft);
}

.week-gregorian-date { direction: ltr; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
.week-hijri-date { font-family: "Geeza Pro", "Noto Naskh Arabic", Tahoma, serif; }
.week-other-dates small { color: var(--ui-muted); font-size: 11px; }
.week-other-dates b { overflow: hidden; color: var(--ui-secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.week-day-events {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.week-event-chip,
.week-day-empty,
.week-event-more {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ui-secondary);
  font-size: 13px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-event-chip {
  position: relative;
  width: 100%;
  padding-inline-start: 12px;
}

.week-event-chip::before {
  position: absolute;
  top: .62em;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--world);
  content: "";
}

.week-event-chip.personal::before { background: #6b6ff2; box-shadow: 0 0 0 3px rgba(107, 111, 242, .1); }
.week-event-chip.iranian::before { background: var(--iranian); }
.week-event-chip.religious::before { background: var(--religious); }
.week-event-chip.holiday::before { background: var(--holiday); }
.week-day-empty { color: var(--ui-faint); }
.week-event-more { color: var(--ui-accent-deep); font-size: 12px; }

.week-day-status {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--ui-muted);
}

.week-day-status svg { width: 18px; height: 18px; }
.week-holiday-badge {
  padding: 4px 9px;
  border: 1px solid var(--ui-holiday-edge);
  border-radius: 999px;
  color: var(--ui-holiday-text);
  background: var(--ui-holiday-surface);
  font-size: 11px;
}

.calendar-grid.week-view .calendar-day.today .week-day-name,
.calendar-grid.week-view .calendar-day.today .week-jalali-date b,
.calendar-grid.week-view .calendar-day.today .week-jalali-date span,
.calendar-grid.week-view .calendar-day.today .week-event-chip,
.calendar-grid.week-view .calendar-day.today .week-day-empty,
.calendar-grid.week-view .calendar-day.today .week-event-more,
.calendar-grid.week-view .calendar-day.today .week-day-status { color: #fff; }

.calendar-grid.week-view .calendar-day.today .week-gregorian-date,
.calendar-grid.week-view .calendar-day.today .week-hijri-date {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .12);
}

.calendar-grid.week-view .calendar-day.today .week-other-dates :is(small, b) { color: rgba(255, 255, 255, .88); }

/* Forms and account areas: regular type, clear labels and predictable grids. */
.event-form { padding: clamp(20px, 2.6vw, 34px); }
.form-heading { padding-bottom: 17px; border-color: var(--ui-edge); }
.form-heading h3 { color: var(--ui-text); font-size: 22px; }
.form-heading > div > span,
.form-heading > small { color: var(--ui-muted); font-size: 13px; }

.category-chip,
.check-list label,
.channel-list label > span,
.date-row {
  color: var(--ui-secondary);
  border-color: var(--ui-edge);
  background: var(--ui-surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .44);
}

.category-chip { min-height: 52px; font-size: 14px; }
.category-chip.active,
.check-list input:checked + span,
.channel-list input:checked + span {
  color: var(--ui-accent-deep);
  border-color: rgba(89, 99, 239, .36);
  background: rgba(89, 99, 239, .1);
}

.form-grid > label,
.date-row > label,
.notes-field { gap: 8px; color: var(--ui-secondary); font-size: 14px; }
.form-grid > label > small,
.notes-field > small { color: var(--ui-muted); font-size: 12px; }
.date-row { padding: 12px; border-radius: 19px; }
.date-picker-trigger { height: 50px; border-radius: 15px; color: var(--ui-text); font-size: 16px; }
.field-label { font-size: 14px; }
.check-list span { min-height: 52px; color: var(--ui-secondary); font-size: 14px; }
.channel-list label > span { min-height: 112px; }
.channel-list b { color: var(--ui-text); font-size: 15px; }
.channel-list small { color: var(--ui-muted); font-size: 13px; }
.channel-list em { font-size: 12px; }
.submit-row p { color: var(--ui-muted); font-size: 14px; }

.account-header p,
.account-plan small,
.family-state p,
.family-card p,
.empty-state p { color: var(--ui-muted); font-size: 14px; }

.family-card {
  padding: 22px;
  border-radius: 24px;
}

.family-heading { align-items: flex-start; gap: 14px; }
.family-heading h3 { margin-top: 3px; color: var(--ui-text); font-size: 22px; }

#family-setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ui-edge);
}

#family-setup > .primary-button {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

#family-setup > span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ui-muted);
  font-size: 12px;
}

#family-setup > span::before,
#family-setup > span::after {
  height: 1px;
  flex: 1;
  background: var(--ui-edge);
  content: "";
}

#join-family-form {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

#join-family-form input {
  width: 100%;
  min-height: 48px;
  text-align: right;
}

#join-family-form .soft-button { min-height: 48px; padding-inline: 18px; }

.benefits-strip article strong,
.price-card h3,
.selected-date-stack strong,
.event-card h3 { color: var(--ui-text); }
.benefits-strip article small,
.price-card li,
.month-occasion-card p,
.selected-date-stack small { color: var(--ui-muted); }

/* Explicit dark surfaces and contrast; avoids washed-out controls. */
[data-theme="dark"] .site-header,
[data-theme="dark"] .calendar-shell,
[data-theme="dark"] .occasions-section,
[data-theme="dark"] .builder-section,
[data-theme="dark"] .pricing-section,
[data-theme="dark"] .account-section,
[data-theme="dark"] .benefits-strip {
  border-color: var(--ui-edge);
  background:
    radial-gradient(circle at 92% 0%, rgba(119, 102, 241, .1), transparent 34%),
    linear-gradient(145deg, rgba(24, 33, 57, .82), rgba(12, 19, 37, .76));
  box-shadow: var(--ui-shadow);
}

[data-theme="dark"] :is(
  .calendar-toolbar,
  .calendar-board,
  .selected-day,
  .event-form,
  .family-card,
  .price-card,
  .month-occasion-card,
  .account-events,
  .empty-state,
  .category-chip,
  .check-list label,
  .channel-list label > span,
  .date-row
) {
  color: var(--ui-text);
  border-color: var(--ui-edge);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-soft);
}

[data-theme="dark"] :is(input, select, textarea) {
  color: var(--ui-text);
  border-color: var(--ui-edge-strong);
  background: var(--ui-input);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

[data-theme="dark"] :is(input, textarea)::placeholder { color: var(--ui-placeholder); }

[data-theme="dark"] :is(.icon-btn, .today-btn, .view-switch, .account-button, .theme-toggle, .date-picker-trigger) {
  color: var(--ui-secondary);
  border-color: var(--ui-edge);
  background: rgba(30, 41, 70, .84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

[data-theme="dark"] .view-switch button { color: var(--ui-secondary); }
[data-theme="dark"] .view-switch button.active {
  color: #f1f3ff;
  background: rgba(113, 123, 255, .27);
}

[data-theme="dark"] .calendar-weekdays,
[data-theme="dark"] .week-gregorian-date,
[data-theme="dark"] .week-hijri-date {
  border-color: var(--ui-edge);
  background: rgba(13, 21, 40, .58);
}

[data-theme="dark"] .calendar-day,
[data-theme="dark"] .seo-day {
  border-color: var(--ui-edge);
  background: linear-gradient(145deg, rgba(39, 51, 82, .68), rgba(18, 27, 50, .6));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .07);
}

[data-theme="dark"] .calendar-day.holiday:not(.today):not(.selected),
[data-theme="dark"] .seo-day.holiday:not(.today) {
  border-color: var(--ui-holiday-edge);
  background:
    linear-gradient(145deg, rgba(52, 38, 57, .72), rgba(27, 24, 42, .64)),
    var(--ui-holiday-surface);
}

[data-theme="dark"] .calendar-day.selected:not(.today) {
  border-color: rgba(143, 151, 255, .68);
  background: linear-gradient(145deg, rgba(75, 82, 160, .48), rgba(39, 45, 92, .56));
}

[data-theme="dark"] .gregorian-day { color: #b3bdd2; }
[data-theme="dark"] .hijri-day { color: #d0baf6; }
[data-theme="dark"] .week-jalali-date b { color: var(--ui-text); }
[data-theme="dark"] .week-jalali-date span,
[data-theme="dark"] .week-other-dates b { color: var(--ui-secondary); }
[data-theme="dark"] .category-chip.active,
[data-theme="dark"] .check-list input:checked + span,
[data-theme="dark"] .channel-list input:checked + span {
  color: #eef0ff;
  border-color: rgba(143, 151, 255, .34);
  background: rgba(109, 118, 242, .2);
}

@media (max-width: 1050px) {
  .calendar-grid.week-view .calendar-day {
    grid-template-columns: minmax(160px, .8fr) minmax(200px, 1fr) minmax(190px, 1fr) auto;
    gap: 12px;
  }

  .week-other-dates { flex-direction: column; gap: 5px; }
  .week-gregorian-date,
  .week-hijri-date { padding: 6px 9px; }
}

@media (max-width: 900px) {
  .today-strip-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .today-occasion {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 8px 2px 2px;
  }

  .today-primary { border-inline-end: 1px solid rgba(255, 255, 255, .14); }
  .today-clock { border-inline-end: 0; }

  .calendar-grid.week-view .calendar-day {
    grid-template-columns: minmax(160px, .75fr) minmax(210px, 1fr) auto;
  }

  .week-day-events { grid-column: 1 / 3; }
  .week-day-status { grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  small { font-size: 12px; }

  .today-strip { padding-top: 8px; }
  .today-strip-inner {
    width: calc(100% - 16px);
    grid-template-columns: minmax(0, 1fr);
    padding: 9px;
    border-radius: 25px;
  }

  .today-primary,
  .today-clock {
    padding: 11px 10px;
    border: 0;
  }

  .today-primary h1 { font-size: 21px; }
  .today-clock { justify-content: flex-start; }
  .analog-clock { width: 70px; height: 70px; flex-basis: 70px; }
  .hour-hand { height: 18px; }
  .minute-hand { height: 25px; }
  .second-hand { height: 27px; }
  #iran-clock { font-size: 22px; }

  .today-occasion {
    grid-column: auto;
    grid-row: auto;
    margin: 3px 0 0;
    padding: 12px;
    border-radius: 18px;
  }

  .site-header,
  main > section { width: calc(100% - 16px); }
  .site-header { padding: 7px; border-radius: 19px; }
  .calendar-shell { padding: 8px; border-radius: 23px; }
  .calendar-toolbar { padding: 7px; border-radius: 17px; }
  .calendar-board { padding: 6px; border-radius: 18px; }
  .calendar-weekdays { margin-bottom: 5px; border-radius: 12px; }
  .calendar-weekdays span { padding: 7px 1px; font-size: 11px; }

  .calendar-grid { gap: 4px; }
  .calendar-day,
  .seo-day {
    min-height: 58px;
    padding: 7px 6px 9px;
    border-radius: 12px;
  }

  .jalali-day { font-size: 19px; }
  .secondary-day-numbers { gap: 4px; }
  .gregorian-day,
  .hijri-day { font-size: 9.5px; }
  .hijri-day { padding-inline-start: 4px; }
  .occasion-dots { bottom: 5px; left: 6px; }
  .personal-event-marker { right: 6px; bottom: 5px; }

  .calendar-board.week-layout { padding: 6px; }
  .calendar-grid.week-view { gap: 6px; }
  .calendar-grid.week-view .calendar-day {
    min-height: 118px;
    grid-template-columns: minmax(112px, .72fr) minmax(0, 1fr) auto;
    gap: 9px;
    padding: 12px;
    border-radius: 17px;
  }

  .week-day-name { font-size: 12px; }
  .week-jalali-date { align-items: flex-start; flex-direction: column; gap: 2px; }
  .week-jalali-date b { font-size: 27px; }
  .week-jalali-date span { font-size: 13px; }
  .week-other-dates { min-width: 0; }
  .week-other-dates b { font-size: 11px; }
  .week-day-events { grid-column: 1 / -1; }
  .week-day-status { grid-column: 3; grid-row: 1; }
  .week-event-chip,
  .week-day-empty { font-size: 12px; }

  .event-form { padding: 17px 13px; }
  .form-heading h3 { font-size: 20px; }
  .date-row { padding: 10px; }
  #join-family-form { grid-template-columns: minmax(0, 1fr); }
  #join-family-form .soft-button { width: 100%; }
}

@media (max-width: 390px) {
  .calendar-day,
  .seo-day { min-height: 55px; padding: 6px 5px 8px; }
  .jalali-day { font-size: 18px; }
  .gregorian-day,
  .hijri-day { font-size: 9px; }
  .calendar-grid.week-view .calendar-day { min-height: 116px; padding: 11px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-grid,
  .calendar-day,
  .week-event-chip { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   TaghvimeTo 3.7 — atmospheric glass, quieter calendar and dark-mode repair
   -------------------------------------------------------------------------- */

:root {
  --ambient-base: #eef3fb;
  --ambient-violet: rgba(119, 111, 255, .25);
  --ambient-blue: rgba(80, 189, 255, .22);
  --ambient-rose: rgba(255, 151, 197, .15);
  --quiet-surface: rgba(255, 255, 255, .55);
  --quiet-surface-raised: rgba(255, 255, 255, .72);
  --quiet-highlight: rgba(255, 255, 255, .76);
  --quiet-shadow: 0 18px 48px rgba(45, 60, 104, .09);
}

[data-theme="dark"] {
  --ambient-base: #07101f;
  --ambient-violet: rgba(100, 84, 244, .24);
  --ambient-blue: rgba(25, 128, 222, .18);
  --ambient-rose: rgba(182, 72, 177, .12);
  --quiet-surface: rgba(22, 32, 55, .61);
  --quiet-surface-raised: rgba(30, 42, 70, .76);
  --quiet-highlight: rgba(255, 255, 255, .08);
  --quiet-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

body {
  position: relative;
  isolation: isolate;
  background: var(--ambient-base);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  inset: -18%;
  content: "";
  pointer-events: none;
  will-change: transform;
}

body::before {
  background:
    radial-gradient(circle at 16% 20%, var(--ambient-blue) 0 0, transparent 31%),
    radial-gradient(circle at 82% 13%, var(--ambient-violet) 0 0, transparent 34%),
    radial-gradient(circle at 58% 82%, var(--ambient-rose) 0 0, transparent 28%);
  filter: blur(70px) saturate(125%);
  animation: ambient-drift-a 20s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}

body::after {
  background:
    radial-gradient(circle at 78% 72%, var(--ambient-blue) 0 0, transparent 26%),
    radial-gradient(circle at 28% 65%, var(--ambient-violet) 0 0, transparent 31%);
  filter: blur(92px) saturate(120%);
  opacity: .72;
  animation: ambient-drift-b 27s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}

@keyframes ambient-drift-a {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.055); }
  100% { transform: translate3d(-1%, 4%, 0) scale(1.025); }
}

@keyframes ambient-drift-b {
  0% { transform: translate3d(2%, 3%, 0) scale(1.03); }
  55% { transform: translate3d(-4%, -1%, 0) scale(.98); }
  100% { transform: translate3d(3%, -3%, 0) scale(1.06); }
}

/* The first frame is one lens with three calm, balanced zones. */
.today-strip-inner {
  min-height: 148px;
  grid-template-columns: minmax(360px, 1.14fr) minmax(310px, .92fr) minmax(260px, .74fr);
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 34px;
  background:
    radial-gradient(circle at 7% 0%, rgba(113, 224, 255, .25), transparent 31%),
    radial-gradient(circle at 87% 2%, rgba(207, 166, 255, .27), transparent 37%),
    linear-gradient(126deg, #293f9b 0%, #574db6 53%, #273273 100%);
  box-shadow: 0 26px 72px rgba(41, 48, 132, .22), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.today-strip-inner::before {
  background: linear-gradient(112deg, rgba(255, 255, 255, .2), transparent 28%, transparent 70%, rgba(255, 255, 255, .1));
}

.today-primary,
.today-occasion,
.today-clock {
  min-height: 124px;
  margin: 0;
  padding: 14px 19px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 34px rgba(22, 28, 84, .09);
}

.today-primary {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.today-occasion {
  align-self: stretch;
  padding-inline: 21px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 216, 137, .12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055));
}

.today-clock {
  min-width: 0;
  justify-content: center;
  padding-inline: 17px;
}

.today-primary h1 { margin-bottom: 8px; font-size: clamp(22px, 2vw, 28px); }
.today-secondary-dates > div { border: 0; background: rgba(255, 255, 255, .095); }
.today-occasion strong { font-size: 16px; }

.analog-clock {
  width: 78px;
  height: 78px;
  flex-basis: 78px;
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 14px 32px rgba(13, 19, 69, .22), inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -8px 22px rgba(21, 28, 92, .12);
}

#iran-clock { font-size: 23px; }

/* Fewer outlines: hierarchy comes from material, light and spacing. */
.calendar-shell {
  padding: 13px;
  border-color: rgba(119, 135, 173, .13);
  background: linear-gradient(145deg, rgba(255, 255, 255, .55), rgba(241, 246, 255, .42));
  box-shadow: 0 26px 72px rgba(40, 55, 97, .1), inset 0 1px 0 rgba(255, 255, 255, .84);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.calendar-toolbar {
  padding: 8px 10px;
  border-color: transparent;
  background: linear-gradient(135deg, var(--quiet-surface-raised), var(--quiet-surface));
  box-shadow: inset 0 1px 0 var(--quiet-highlight), 0 10px 28px rgba(45, 60, 104, .055);
}

.calendar-board {
  padding: 9px;
  border-color: transparent;
  background: rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 var(--quiet-highlight), var(--quiet-shadow);
}

.calendar-weekdays {
  border: 0;
  background: rgba(103, 118, 158, .055);
}

.calendar-grid {
  gap: 6px;
  perspective: 900px;
  transform-style: preserve-3d;
  transition: opacity .2s ease, filter .24s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
}

.calendar-grid.calendar-loading {
  opacity: .7;
  filter: blur(1.5px) saturate(.88);
  transform: scale(.996);
}

.calendar-day,
.seo-day {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(255, 255, 255, .6), rgba(245, 248, 255, .36));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .68), 0 7px 21px rgba(49, 63, 102, .045);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), box-shadow .26s ease, background .22s ease, border-color .22s ease;
  will-change: transform;
}

.calendar-day::before { opacity: .38; }

.calendar-day.holiday:not(.today):not(.selected),
.seo-day.holiday:not(.today) {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(255, 255, 255, .48), rgba(232, 79, 95, .075));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 0 0 1px rgba(222, 81, 96, .075);
}

.calendar-day.selected:not(.today) {
  border-color: rgba(96, 105, 239, .42);
  background: linear-gradient(145deg, rgba(247, 248, 255, .88), rgba(222, 227, 255, .68));
  box-shadow: 0 13px 34px rgba(65, 74, 185, .14), inset 0 0 0 1px rgba(103, 112, 244, .17), inset 0 1px 0 rgba(255, 255, 255, .82);
}

.calendar-day.today {
  border-color: transparent;
  box-shadow: 0 15px 36px rgba(66, 76, 199, .25), inset 0 1px 0 rgba(255, 255, 255, .48), inset 0 0 0 1px rgba(255, 255, 255, .19);
}

@media (hover: hover) and (pointer: fine) {
  .calendar-day:hover {
    z-index: 2;
    transform: translateY(-3px) scale(1.012);
    box-shadow: 0 16px 34px rgba(50, 64, 108, .12), inset 0 1px 0 rgba(255, 255, 255, .78);
  }
}

.calendar-enter-previous .calendar-day,
.calendar-enter-next .calendar-day {
  animation-duration: .38s;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
  animation-delay: calc(var(--day-index) * 1.5ms);
}

@keyframes calendar-from-right {
  from { opacity: .12; filter: blur(5px); transform: translate3d(18px, 0, -8px) scale(.982); }
  62% { opacity: 1; filter: blur(0); transform: translate3d(-1.5px, 0, 0) scale(1.003); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes calendar-from-left {
  from { opacity: .12; filter: blur(5px); transform: translate3d(-18px, 0, -8px) scale(.982); }
  62% { opacity: 1; filter: blur(0); transform: translate3d(1.5px, 0, 0) scale(1.003); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
}

.calendar-day.selected { animation-duration: .28s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }

@keyframes selected-day-pop {
  0% { transform: scale(.965); filter: brightness(.94); }
  58% { transform: scale(1.018); filter: brightness(1.04); }
  100% { transform: scale(1); filter: brightness(1); }
}

.selected-day {
  border-color: transparent;
  background:
    radial-gradient(circle at 100% 0%, rgba(102, 111, 244, .09), transparent 42%),
    linear-gradient(160deg, var(--quiet-surface-raised), var(--quiet-surface));
  box-shadow: inset 0 1px 0 var(--quiet-highlight), 0 16px 42px rgba(48, 62, 103, .07);
}

.selected-date-stack { border-color: rgba(105, 121, 159, .11); }

.selected-label b {
  min-width: 68px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  color: #4b52cf;
  background: rgba(89, 99, 239, .14);
  font-size: 11px;
  text-align: center;
}

#occasion-list li {
  background: rgba(255, 255, 255, .52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62);
}

.calendar-grid.week-view { gap: 9px; }

.calendar-grid.week-view .calendar-day {
  border-color: transparent;
  background: linear-gradient(140deg, rgba(255, 255, 255, .62), rgba(245, 248, 255, .38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .68), 0 10px 28px rgba(48, 62, 103, .06);
}

.week-gregorian-date,
.week-hijri-date {
  border-color: transparent;
  background: rgba(94, 109, 151, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}

/* Family activation is a full-width primary action, not a floating half button. */
#family-no-plan {
  display: grid;
  gap: 15px;
}

#family-no-plan p { margin: 0; }

.family-activate-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding-inline: 18px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #6872f7, #5059df);
  box-shadow: 0 13px 30px rgba(74, 84, 213, .22), inset 0 1px 0 rgba(255, 255, 255, .32);
}

.family-activate-button:hover {
  color: #fff;
  background: linear-gradient(135deg, #747dfb, #5963e8);
  transform: translateY(-1px);
}

/* Dark mode: every control stays on a dark material with readable type. */
[data-theme="dark"] body { background: var(--ambient-base); }

[data-theme="dark"] .calendar-shell {
  border-color: rgba(190, 207, 244, .11);
  background: linear-gradient(145deg, rgba(20, 29, 51, .7), rgba(9, 16, 32, .58));
  box-shadow: 0 30px 78px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .07);
}

[data-theme="dark"] .calendar-toolbar,
[data-theme="dark"] .calendar-board,
[data-theme="dark"] .selected-day {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(29, 40, 68, .72), rgba(15, 24, 45, .58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .065), 0 16px 42px rgba(0, 0, 0, .2);
}

[data-theme="dark"] .calendar-weekdays { border: 0; background: rgba(255, 255, 255, .035); }

[data-theme="dark"] .calendar-day,
[data-theme="dark"] .seo-day,
[data-theme="dark"] .calendar-grid.week-view .calendar-day {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(42, 55, 88, .58), rgba(19, 29, 52, .48));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 9px 26px rgba(0, 0, 0, .13);
}

[data-theme="dark"] .calendar-day.holiday:not(.today):not(.selected),
[data-theme="dark"] .seo-day.holiday:not(.today) {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(62, 42, 61, .68), rgba(29, 26, 44, .56));
  box-shadow: inset 0 0 0 1px rgba(255, 112, 126, .08), inset 0 1px 0 rgba(255, 255, 255, .05);
}

[data-theme="dark"] .calendar-day.selected:not(.today) {
  border-color: rgba(153, 160, 255, .42);
  background: linear-gradient(145deg, rgba(79, 87, 165, .53), rgba(38, 45, 91, .6));
  box-shadow: 0 14px 34px rgba(3, 7, 25, .25), inset 0 0 0 1px rgba(157, 164, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .1);
}

[data-theme="dark"] .week-gregorian-date,
[data-theme="dark"] .week-hijri-date {
  border-color: transparent;
  background: rgba(5, 12, 27, .36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

[data-theme="dark"] .selected-label { color: #c1cbe0; }

[data-theme="dark"] .selected-label b {
  color: #f1f3ff;
  background: linear-gradient(135deg, rgba(126, 136, 255, .42), rgba(103, 113, 236, .28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13);
}

[data-theme="dark"] #occasion-list li {
  color: #eef2ff;
  background: rgba(36, 48, 78, .74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

[data-theme="dark"] #occasion-list li small { color: #b8c3d9; }

[data-theme="dark"] :is(.soft-button, .empty-state .soft-button, #join-family-form .soft-button) {
  color: #edf1ff;
  border-color: rgba(166, 178, 224, .2);
  background: linear-gradient(145deg, rgba(48, 62, 98, .82), rgba(28, 39, 68, .82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .075), 0 8px 20px rgba(0, 0, 0, .16);
}

[data-theme="dark"] :is(.soft-button, .empty-state .soft-button, #join-family-form .soft-button):hover {
  color: #fff;
  border-color: rgba(150, 159, 255, .38);
  background: linear-gradient(145deg, rgba(68, 80, 128, .9), rgba(41, 52, 91, .9));
}

[data-theme="dark"] :is(.soft-button.strong, .family-activate-button, .empty-state .soft-button) {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #737cf7, #555fdf);
  box-shadow: 0 13px 30px rgba(35, 41, 124, .32), inset 0 1px 0 rgba(255, 255, 255, .24);
}

[data-theme="dark"] .capacity-badge,
[data-theme="dark"] .account-plan > span {
  color: #d9ddff;
  background: rgba(117, 127, 249, .18);
}

[data-theme="dark"] .account-plan button {
  color: #ff9ba7;
  background: rgba(255, 92, 108, .12);
}

[data-theme="dark"] .family-card,
[data-theme="dark"] .empty-state {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(31, 42, 70, .69), rgba(18, 27, 49, .62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 40px rgba(0, 0, 0, .18);
}

@media (max-width: 1020px) {
  .today-strip-inner { grid-template-columns: minmax(0, 1fr) minmax(260px, .68fr); }
  .today-occasion { grid-column: 1 / -1; grid-row: 2; min-height: 88px; }
  .today-primary,
  .today-clock { min-height: 116px; }
}

@media (max-width: 680px) {
  .today-strip-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
    border-radius: 27px;
  }

  .today-primary,
  .today-occasion,
  .today-clock {
    min-height: 0;
    padding: 12px;
    border: 0;
    border-radius: 20px;
  }

  .today-primary { order: 1; }
  .today-clock { order: 2; justify-content: flex-start; }
  .today-occasion { order: 3; grid-column: auto; grid-row: auto; }
  .calendar-shell { padding: 7px; }
  .calendar-toolbar { padding: 6px; }
  .calendar-board { padding: 5px; }
  .calendar-grid { gap: 4px; }

  .calendar-day,
  .seo-day {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 12px rgba(49, 63, 102, .035);
  }

  .family-activate-button { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after { animation: none !important; }
}

/* --------------------------------------------------------------------------
   TaghvimeTo 3.8 — compact mobile time, isolated week dates and search answers
   -------------------------------------------------------------------------- */

.today-heading {
  margin: 0 0 8px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -.5px;
}

.week-date-value {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 4px;
  overflow: hidden;
  direction: inherit;
  unicode-bidi: isolate;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-date-day,
.week-date-year { font-variant-numeric: tabular-nums; }

.week-gregorian-date,
.week-gregorian-date .week-date-value {
  direction: ltr;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  unicode-bidi: isolate;
}

.week-hijri-date,
.week-hijri-date .week-date-value {
  direction: rtl;
  font-family: "Geeza Pro", "Noto Naskh Arabic", Tahoma, serif;
  text-align: right;
  unicode-bidi: isolate;
}

.week-day-events.is-empty { color: var(--ui-faint); }

.demo-badge {
  margin-inline-start: auto;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .11);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
  white-space: nowrap;
}

.plan-validity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.plan-validity b {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.plan-validity small { color: rgba(232, 237, 255, .68); }

.search-answer {
  width: min(var(--container), calc(100% - 40px));
  margin: 18px auto 0;
  padding: 22px;
  border: 1px solid rgba(121, 137, 177, .13);
  border-radius: 26px;
  color: var(--ui-text);
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 112, 244, .1), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .62), rgba(242, 246, 255, .46));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76), 0 18px 48px rgba(42, 57, 98, .075);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.search-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--ui-muted);
  font-size: 12px;
}

.search-breadcrumbs a { color: var(--ui-accent-deep); }
.search-breadcrumbs i { color: var(--ui-faint); font-style: normal; }

.search-answer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  align-items: start;
  gap: 20px;
}

.search-answer h1 {
  margin: 0 0 8px;
  color: var(--ui-text);
  font-size: clamp(23px, 2.7vw, 36px);
  line-height: 1.35;
}

.search-direct-answer {
  margin: 0;
  color: var(--ui-secondary);
  font-size: 16px;
  line-height: 1.9;
}

.search-clock-answer {
  margin: 7px 0 0;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.8;
}

.search-facts,
.search-occasion-summary,
.seo-year-months {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-facts li,
.search-occasion-summary li,
.seo-year-months a {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 13px;
  color: var(--ui-secondary);
  background: rgba(255, 255, 255, .42);
}

.search-facts span,
.search-occasion-summary small,
.seo-year-months span { color: var(--ui-muted); font-size: 12px; }

.search-facts b,
.search-occasion-summary strong,
.seo-year-months b { color: var(--ui-text); font-weight: 400; }

.search-answer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.search-answer-nav a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ui-accent-deep);
  background: rgba(101, 111, 241, .1);
  font-size: 13px;
}

.seo-year-months {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

[data-theme="dark"] .search-answer {
  border-color: rgba(190, 207, 244, .1);
  background:
    radial-gradient(circle at 100% 0%, rgba(113, 122, 248, .15), transparent 38%),
    linear-gradient(145deg, rgba(30, 42, 70, .76), rgba(14, 23, 43, .68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .065), 0 20px 54px rgba(0, 0, 0, .22);
}

[data-theme="dark"] :is(.search-facts li, .search-occasion-summary li, .seo-year-months a) {
  color: #d9e0f0;
  background: rgba(255, 255, 255, .045);
}

[data-theme="dark"] .search-answer-nav a {
  color: #d8dcff;
  background: rgba(121, 131, 248, .16);
}

@media (max-width: 760px) {
  .search-answer-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .seo-year-months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .today-clock {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 10px;
    min-height: 76px;
    padding: 8px 11px;
  }

  .analog-clock {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .hour-hand { height: 15px; }
  .minute-hand { height: 20px; }
  .second-hand { height: 22px; }

  .clock-copy {
    min-width: 0;
    align-items: flex-start;
    justify-content: center;
  }

  #iran-clock { font-size: 20px; white-space: nowrap; }

  .calendar-grid.week-view { gap: 5px; }

  .calendar-grid.week-view .calendar-day {
    min-height: 78px;
    grid-template-columns: minmax(92px, .7fr) minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 6px 8px;
    padding: 8px 9px;
    border-radius: 15px;
  }

  .week-day-identity { gap: 2px; }
  .week-day-name { font-size: 11px; }
  .week-jalali-date { align-items: baseline; flex-direction: row; gap: 5px; }
  .week-jalali-date b { font-size: 23px; }
  .week-jalali-date span { font-size: 11px; white-space: nowrap; }

  .week-other-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .week-gregorian-date,
  .week-hijri-date {
    min-width: 0;
    gap: 1px;
    padding: 5px 6px;
    border-radius: 10px;
  }

  .week-other-dates small { font-size: 9px; }
  .week-other-dates b { font-size: 10px; }
  .week-date-value { gap: 3px; }
  .week-date-year { display: none; }
  .week-date-month { overflow: hidden; text-overflow: ellipsis; }

  .week-day-events {
    grid-column: 1 / 3;
    grid-row: 2;
    gap: 2px;
  }

  .week-day-events.is-empty { display: none; }
  .week-event-chip,
  .week-event-more { font-size: 10.5px; line-height: 1.4; }
  .week-event-chip:nth-child(n + 2) { display: none; }
  .week-day-status { grid-column: 3; grid-row: 1; gap: 4px; }
  .week-day-status svg { width: 15px; height: 15px; }
  .week-holiday-badge { padding: 3px 5px; font-size: 9px; }

  .notification-head { flex-wrap: wrap; }
  .demo-badge { margin-inline-start: 0; }

  .search-answer {
    width: calc(100% - 16px);
    margin-top: 12px;
    padding: 15px;
    border-radius: 21px;
  }

  .search-answer h1 { font-size: 22px; }
  .search-direct-answer { font-size: 14px; line-height: 1.8; }
  .search-facts li,
  .search-occasion-summary li { padding: 8px 9px; }
}

@media (max-width: 390px) {
  .calendar-grid.week-view .calendar-day { min-height: 74px; padding: 7px; }
  .week-jalali-date b { font-size: 21px; }
  .week-gregorian-date,
  .week-hijri-date { padding-inline: 5px; }
}

/* --------------------------------------------------------------------------
   TaghvimeTo 3.9 — one-button, platform-aware installation
   -------------------------------------------------------------------------- */

.install-app-button {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(98, 108, 232, .18);
  border-radius: 13px;
  color: #424bc9;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .86), transparent 52%),
    linear-gradient(145deg, rgba(238, 240, 255, .96), rgba(220, 225, 255, .76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 8px 20px rgba(72, 80, 184, .1);
  font-size: 13px;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.install-app-button:hover {
  border-color: rgba(89, 99, 239, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), 0 11px 25px rgba(72, 80, 184, .16);
  transform: translateY(-1px);
}

.install-app-button svg {
  width: 18px;
  height: 18px;
}

.install-app-button.is-ready::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 50%;
  background: #28b987;
  box-shadow: 0 0 0 3px rgba(40, 185, 135, .12);
  content: "";
}

.install-app-button.is-installed {
  color: #16876b;
  border-color: rgba(22, 135, 107, .16);
  background: rgba(223, 247, 239, .72);
}

.install-dialog {
  width: min(640px, calc(100% - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  margin: auto;
  padding: 26px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 30px;
  color: var(--ui-text, var(--ink));
  background:
    radial-gradient(circle at 94% 0%, rgba(116, 105, 255, .17), transparent 37%),
    linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(239, 244, 255, .9));
  box-shadow: 0 38px 110px rgba(24, 32, 71, .27), inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(34px) saturate(150%);
  -webkit-backdrop-filter: blur(34px) saturate(150%);
  direction: rtl;
}

.install-dialog[open] { animation: install-dialog-in .24s cubic-bezier(.2, .82, .2, 1); }

.install-dialog::backdrop {
  background: rgba(12, 18, 39, .42);
  backdrop-filter: blur(12px) saturate(112%);
  -webkit-backdrop-filter: blur(12px) saturate(112%);
}

.install-dialog > .dialog-close {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 17px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(112, 127, 166, .14);
  border-radius: 14px;
  color: var(--ui-secondary, var(--ink-soft));
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.install-dialog > .dialog-close svg { width: 18px; height: 18px; }

.install-dialog-hero {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  padding-inline-end: 2px;
}

.install-dialog-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(224, 229, 255, .7));
  box-shadow: 0 16px 32px rgba(65, 72, 173, .16), inset 0 1px 0 rgba(255, 255, 255, .86);
}

.install-dialog-icon img { width: 68px; height: 68px; }

.install-platform-badge {
  display: inline-flex;
  margin-bottom: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--ui-accent-deep, var(--accent-dark));
  background: rgba(91, 99, 242, .1);
  font-size: 11px;
}

.install-dialog h2 {
  margin: 0 0 4px;
  color: var(--ui-text, var(--ink));
  font-size: clamp(22px, 4vw, 29px);
  line-height: 1.42;
}

.install-dialog-subtitle,
#install-dialog-subtitle {
  margin: 0;
  color: var(--ui-muted, var(--muted));
  font-size: 14px;
  line-height: 1.85;
}

.install-steps {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.install-steps li {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 27px 45px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid rgba(122, 136, 169, .11);
  border-radius: 18px;
  background: rgba(255, 255, 255, .52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74);
}

.install-step-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #747dfb, #535ddd);
  box-shadow: 0 6px 14px rgba(72, 80, 193, .18);
  font-size: 11px;
}

.install-step-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 14px;
  color: #5963e8;
  background: rgba(91, 99, 242, .09);
}

.install-step-icon svg { width: 21px; height: 21px; }
.install-steps strong { display: block; color: var(--ui-text, var(--ink)); font-size: 14px; line-height: 1.55; }
.install-steps p { margin: 1px 0 0; color: var(--ui-muted, var(--muted)); font-size: 12px; line-height: 1.75; }

.install-security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: 15px;
  color: #426f63;
  background: rgba(44, 172, 133, .08);
}

.install-security-note svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; }
.install-security-note p { margin: 0; font-size: 12px; line-height: 1.75; }
.install-security-note.is-warning { color: #a34754; background: rgba(224, 76, 91, .09); }

.install-dialog-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 16px;
}

.install-dialog-actions .primary-button,
.install-dialog-actions .soft-button {
  min-height: 49px;
  justify-content: center;
  border-radius: 16px;
}

.install-copy { gap: 7px; }
.install-copy svg { width: 17px; height: 17px; }

[data-theme="dark"] .install-app-button {
  color: #e6e8ff;
  border-color: rgba(151, 160, 255, .19);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .09), transparent 52%),
    linear-gradient(145deg, rgba(68, 77, 145, .74), rgba(39, 48, 96, .72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 9px 24px rgba(0, 0, 0, .2);
}

[data-theme="dark"] .install-app-button.is-installed {
  color: #9be3ca;
  border-color: rgba(91, 200, 161, .18);
  background: rgba(35, 105, 83, .28);
}

[data-theme="dark"] .install-dialog {
  color: var(--ui-text);
  border-color: rgba(187, 203, 243, .15);
  background:
    radial-gradient(circle at 94% 0%, rgba(121, 106, 255, .19), transparent 38%),
    linear-gradient(145deg, rgba(25, 35, 61, .97), rgba(10, 18, 35, .96));
  box-shadow: 0 42px 120px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .08);
}

[data-theme="dark"] .install-dialog > .dialog-close,
[data-theme="dark"] .install-steps li {
  color: var(--ui-secondary);
  border-color: rgba(184, 203, 242, .12);
  background: rgba(33, 44, 73, .65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
}

[data-theme="dark"] .install-dialog-icon {
  border-color: rgba(190, 207, 244, .14);
  background: linear-gradient(145deg, rgba(58, 69, 113, .78), rgba(28, 37, 68, .76));
  box-shadow: 0 17px 36px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
}

[data-theme="dark"] .install-platform-badge { color: #dfe2ff; background: rgba(123, 133, 255, .17); }
[data-theme="dark"] .install-step-icon { color: #c9ceff; background: rgba(118, 128, 246, .15); }
[data-theme="dark"] .install-security-note { color: #a7decc; background: rgba(57, 177, 139, .11); }
[data-theme="dark"] .install-security-note.is-warning { color: #ffb2bb; background: rgba(229, 77, 93, .12); }

@keyframes install-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 680px) {
  .header-actions { gap: 5px; }
  .install-app-button {
    min-height: 39px;
    gap: 5px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
  }

  .install-app-button svg { width: 17px; height: 17px; }
  .install-dialog {
    width: calc(100% - 14px);
    max-height: calc(100dvh - 14px);
    padding: 18px 14px max(16px, env(safe-area-inset-bottom));
    border-radius: 26px;
  }

  .install-dialog > .dialog-close { top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 12px; }
  .install-dialog-hero { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding-inline-start: 35px; }
  .install-dialog-icon { width: 62px; height: 62px; border-radius: 19px; }
  .install-dialog-icon img { width: 55px; height: 55px; }
  .install-dialog h2 { font-size: 20px; }
  #install-dialog-subtitle { font-size: 13px; line-height: 1.72; }
  .install-steps { gap: 6px; margin-top: 16px; }
  .install-steps li { grid-template-columns: 25px 40px minmax(0, 1fr); gap: 8px; padding: 9px; border-radius: 15px; }
  .install-step-number { width: 25px; height: 25px; }
  .install-step-icon { width: 40px; height: 40px; border-radius: 12px; }
  .install-steps strong { font-size: 13px; }
  .install-steps p { font-size: 11px; line-height: 1.65; }
  .install-dialog-actions { grid-template-columns: minmax(0, 1fr); }
  .install-copy { order: 2; }
}

@media (max-width: 390px) {
  .brand-copy > strong { font-size: 17px; }
  .install-app-button { padding-inline: 8px; }
  .install-app-button span { font-size: 11px; }
  .account-button { width: 39px; padding: 0; }
  .account-button svg { display: block; }
  .account-button span { display: none; }
  .install-dialog-hero { grid-template-columns: 55px minmax(0, 1fr); gap: 9px; }
  .install-dialog-icon { width: 55px; height: 55px; border-radius: 17px; }
  .install-dialog-icon img { width: 49px; height: 49px; }
  .install-platform-badge { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .install-app-button,
  .install-dialog { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   TaghvimeTo 4.2 — targeted accessibility, checkout and seasonal SEO
   -------------------------------------------------------------------------- */

/* Preserve the preferred 3.7 glass layout; only repair low-contrast elements. */
.today-icon.blue {
  color: #d9ecff;
  background: rgba(60, 155, 246, .25);
}

.today-icon.mint {
  color: #c5fff0;
  background: rgba(39, 190, 151, .23);
}

.today-icon.blue svg,
.today-icon.mint svg {
  color: currentColor;
  stroke: currentColor;
  opacity: 1;
}

.month-occasion-card.iranian .occasion-card-badge,
#occasion-list li.iranian small { color: #08745b; background: #e7f8f2; }

.month-occasion-card.religious .occasion-card-badge,
#occasion-list li.religious small { color: #7142a6; background: #f2eafa; }

.month-occasion-card.world .occasion-card-badge,
#occasion-list li.world small { color: #225fa7; background: #e8f2ff; }

#occasion-list li small {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 999px;
}

.occasion-filters button[data-occasion-filter="iranian"] { color: #08745b; }
.occasion-filters button[data-occasion-filter="religious"] { color: #7142a6; }
.occasion-filters button[data-occasion-filter="world"] { color: #225fa7; }
.occasion-filters button.active { color: #fff; }

/* The form controls share one baseline without changing the old section layout. */
.date-row { align-items: end; }
.date-calendar-field,
.date-picker-field,
.date-row > label {
  display: grid;
  min-width: 0;
  align-content: end;
  gap: 7px;
  margin: 0;
}

.date-row .field-label {
  display: flex;
  min-height: 22px;
  align-items: center;
  color: var(--ui-secondary, var(--ink-soft));
  font-size: 14px;
  line-height: 1.4;
}

.date-row :is(.segmented, .date-picker-trigger, input, select) {
  width: 100%;
  min-height: 52px;
  margin: 0;
}

.event-form.was-validated :is(input, select, textarea):invalid,
.event-form .field-invalid .date-picker-trigger {
  border-color: #df5364;
  background: rgba(255, 244, 246, .94);
  box-shadow: 0 0 0 4px rgba(223, 83, 100, .1);
}

.event-form .field-invalid .field-label { color: #c63e50; }

/* A visible, self-contained discount control on the original pricing layout. */
.discount-entry {
  display: grid;
  width: min(100%, 720px);
  grid-template-columns: minmax(185px, .78fr) minmax(320px, 1.22fr);
  align-items: center;
  gap: 12px 16px;
  margin: 18px auto 0;
  padding: 15px;
  border: 1px solid var(--ui-edge-strong, var(--line));
  border-radius: 19px;
  background: var(--ui-surface-raised, rgba(255, 255, 255, .72));
  box-shadow: 0 12px 32px rgba(43, 57, 96, .07), inset 0 1px 0 rgba(255, 255, 255, .78);
}

.discount-entry span { grid-column: auto; }
.discount-entry :is(span) { color: inherit; font-size: inherit; }

.discount-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.discount-heading > div { display: grid; min-width: 0; gap: 2px; }
.discount-heading strong { color: var(--ui-text, var(--ink)); font-size: 15px; }
.discount-heading small { color: var(--ui-muted, var(--muted)); font-size: 12px; line-height: 1.6; }

.discount-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  color: #565fdf;
  background: rgba(91, 99, 242, .12);
}

.discount-icon svg { width: 20px; height: 20px; }

.discount-control {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.discount-entry .discount-control input {
  width: 100%;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--ui-edge-strong, var(--line));
  border-radius: 14px;
  color: var(--ui-text, var(--ink));
  background: var(--ui-input, #fff);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  text-align: left;
}

#apply-discount-code {
  display: inline-flex;
  min-width: 124px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #6871f1, #5058d8);
  box-shadow: 0 9px 22px rgba(70, 78, 202, .2), inset 0 1px 0 rgba(255, 255, 255, .24);
  font-size: 14px;
}

#apply-discount-code svg { width: 18px; height: 18px; }

.discount-feedback {
  min-height: 20px;
  grid-column: 1 / -1;
  margin: -3px 52px 0 0;
  color: var(--ui-muted, var(--muted));
  font-size: 12px;
  line-height: 1.7;
}

.discount-feedback.success { color: #08745b; }
.discount-feedback.error { color: #c63e50; }
.discount-feedback.loading { color: #4e57cf; }

.price-values { display: inline-grid; align-items: baseline; gap: 1px; }
.price-original {
  color: var(--ui-muted, var(--muted));
  font-size: 14px;
  line-height: 1.2;
  text-decoration-color: #d34f62;
  text-decoration-thickness: 2px;
}

.price-card.discount-applied {
  border-color: rgba(20, 148, 120, .24);
  box-shadow: 0 14px 34px rgba(20, 148, 120, .09), inset 0 0 0 1px rgba(20, 148, 120, .07);
}

/* Compact Nowruz answer in the top frame. */
.nowruz-countdown {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  text-decoration: none;
}

.nowruz-countdown > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.4;
}

.nowruz-countdown small { color: rgba(255, 255, 255, .74); font-size: 11px; }
.nowruz-countdown b { color: #fff; font-size: 13px; white-space: nowrap; }
.nowruz-countdown:hover { color: #fff; background: rgba(255, 255, 255, .16); }

/* Internal search-intent links: useful to people and crawlable without clutter. */
.seasonal-seo-links {
  display: flex;
  width: min(var(--container), calc(100% - 40px));
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(121, 137, 177, .12);
  border-radius: 16px;
  color: var(--ui-muted, var(--muted));
  background: var(--quiet-surface, rgba(255, 255, 255, .55));
  box-shadow: inset 0 1px 0 var(--quiet-highlight, rgba(255, 255, 255, .7));
}
.seasonal-seo-links > span { flex: 0 0 auto; font-size: 12px; }
.seasonal-seo-links a {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--ui-accent-deep, var(--accent));
  background: rgba(101, 111, 241, .09);
  font-size: 12px;
}

/* Dedicated answer cards share the app's existing glass language. */
.special-date-answer .special-answer-highlight {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 17px;
  color: var(--ui-text, var(--ink));
  background: rgba(101, 111, 241, .09);
}

.special-answer-highlight strong { font-size: clamp(22px, 3vw, 34px); }
.special-answer-highlight span { color: var(--ui-secondary, var(--ink-soft)); font-size: 14px; }
.special-source { margin-top: 12px; color: var(--ui-muted, var(--muted)); font-size: 12px; line-height: 1.8; }
.special-source a { color: var(--ui-accent-deep, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }

[data-theme="dark"] .month-occasion-card.iranian .occasion-card-badge,
[data-theme="dark"] #occasion-list li.iranian small { color: #a7f1d9; background: rgba(36, 158, 120, .22); }

[data-theme="dark"] .month-occasion-card.religious .occasion-card-badge,
[data-theme="dark"] #occasion-list li.religious small { color: #e3c7ff; background: rgba(147, 92, 201, .25); }

[data-theme="dark"] .month-occasion-card.world .occasion-card-badge,
[data-theme="dark"] #occasion-list li.world small { color: #b8dbff; background: rgba(50, 119, 202, .24); }

[data-theme="dark"] .occasion-filters button[data-occasion-filter="iranian"] { color: #a7f1d9; }
[data-theme="dark"] .occasion-filters button[data-occasion-filter="religious"] { color: #e3c7ff; }
[data-theme="dark"] .occasion-filters button[data-occasion-filter="world"] { color: #b8dbff; }
[data-theme="dark"] .occasion-filters button.active { color: #fff; }

[data-theme="dark"] .event-form.was-validated :is(input, select, textarea):invalid,
[data-theme="dark"] .event-form .field-invalid .date-picker-trigger {
  border-color: rgba(255, 124, 141, .72);
  background: rgba(83, 31, 45, .62);
  box-shadow: 0 0 0 4px rgba(255, 102, 124, .11);
}

[data-theme="dark"] .discount-entry {
  border-color: rgba(190, 206, 242, .16);
  background: linear-gradient(145deg, rgba(31, 42, 70, .82), rgba(17, 27, 49, .78));
  box-shadow: 0 15px 38px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .065);
}

[data-theme="dark"] .discount-icon { color: #d9ddff; background: rgba(117, 126, 248, .2); }
[data-theme="dark"] .discount-entry .discount-control input { color: #f2f5ff; border-color: rgba(190, 206, 242, .2); background: rgba(11, 19, 38, .82); }
[data-theme="dark"] .discount-feedback.success { color: #9de9cf; }
[data-theme="dark"] .discount-feedback.error { color: #ff9cab; }
[data-theme="dark"] .discount-feedback.loading { color: #c9ceff; }
[data-theme="dark"] .price-card.discount-applied { border-color: rgba(82, 215, 171, .25); }
[data-theme="dark"] .seasonal-seo-links { border-color: rgba(190, 207, 244, .1); }
[data-theme="dark"] .seasonal-seo-links a { color: #d8dcff; background: rgba(121, 131, 248, .16); }
[data-theme="dark"] .special-date-answer .special-answer-highlight { background: rgba(121, 131, 248, .13); }

@media (max-width: 900px) {
  .discount-entry { grid-template-columns: minmax(0, 1fr); }
  .discount-feedback { margin-right: 52px; }
}

@media (max-width: 680px) {
  .nowruz-countdown { flex: 1 1 auto; }
  .discount-entry { gap: 12px; padding: 14px; border-radius: 17px; }
  .discount-control { grid-template-columns: minmax(0, 1fr); }
  #apply-discount-code { width: 100%; min-height: 50px; }
  .discount-entry .discount-control input { height: 50px; min-height: 50px; text-align: center; }
  .discount-feedback { margin: -2px 0 0; text-align: center; }
  .seasonal-seo-links { width: calc(100% - 20px); padding: 8px; }
}
