@import url('./persian-typography.css?v=33.003');
@import url('./dialog-controls.css?v=20261017');
@import url('./web-refinements.css?v=20261017');
.site-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.site-nav > a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.site-nav .site-icon, .user-menu .site-icon { width: 18px; height: 18px; }
.user-menu { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.search .site-icon { color: var(--muted); }
@media (max-width: 1000px) and (min-width: 721px) { .site-nav { flex-wrap: wrap; } }
:root { color-scheme: dark; --bg: #121212; --header: #202122; --panel: #27292b; --text: #f3f4f5; --muted: #999da5; --border: #343638; --green: #78a934; --blue: #197bd2; --warning: #5c5128; --warning-text: #f0d27a; }
:root[data-theme='light'] { color-scheme: light; --bg: #fafafa; --header: #fff; --panel: #f1f3f5; --text: #25282d; --muted: #707782; --border: #e0e4e8; --green: #527d20; --warning: #fff4cd; --warning-text: #786018; }
* { box-sizing: border-box; } [hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.9 Vazirmatn, Tahoma, sans-serif; }
button, input { font: inherit; } button, a { -webkit-tap-highlight-color: transparent; } button { cursor: pointer; } button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
a { color: inherit; text-decoration: none; } button { background: none; color: inherit; border: 0; } .container { max-width: 1480px; width: calc(100% - 100px); margin: auto; }
.site-header { background: var(--header); border-bottom: 1px solid var(--border); padding-top: 14px; }
.header-main { display: flex; gap: 20px; align-items: center; }
.brand { color: var(--green); display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 24px; white-space: nowrap; } .brand-logo { display: block; width: 36px; height: 36px; flex-shrink: 0; object-fit: contain; border-radius: 8px; }
.search { flex: 1; display: flex; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); padding: 4px 12px; } .search > span { color: var(--muted); font-size: 30px; line-height: 1; } .search input { flex: 1; width: 100%; min-width: 0; background: none; border: 0; color: var(--text); outline: none; padding: 4px; } .search input::placeholder { color: var(--muted); } .search button { font-size: 12px; color: var(--muted); }
.user-menu { display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: 13px; border: 1px solid var(--border); border-radius: 9px; white-space: nowrap; } .user-menu span { color: var(--muted); }
.site-nav { display: flex; gap: 30px; align-items: center; padding: 14px 0 10px; } .site-nav button, .site-nav > a { font-size: 13px; } .site-nav .app-link { margin-right: auto; color: var(--green); font-weight: 700; }
.account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding: 32px 0 80px; align-items: start; }
.account-sidebar { display: flex; flex-direction: column; gap: 5px; position: sticky; top: 24px; } .sidebar-label { color: var(--muted); font-size: 12px; margin: 0 15px 10px; } .account-sidebar a, .account-sidebar > button { padding: 10px 15px; text-align: right; border-radius: 9px; } .account-sidebar a:hover { background: var(--panel); } .account-sidebar a[aria-current='page'] { background: var(--panel); color: var(--green); font-weight: 700; } .account-sidebar .logout { color: #ef7272; font-weight: 700; } .account-sidebar .theme-toggle { border-top: 1px solid var(--border); border-radius: 0; color: var(--muted); font-size: 13px; margin-top: 12px; }
.account-content { min-width: 0; } .preview-note { color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 25px; } h1 { font-size: 23px; margin: 0 0 24px; } h2 { font-size: 17px; } .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; } .balance { color: var(--green); font-size: 13px; }
.charge-options { border: 0; padding: 0; margin: 12px 0 28px; } .charge-options legend { margin-bottom: 10px; } .charge-options label { display: flex; align-items: center; gap: 12px; width: fit-content; padding: 8px 0; cursor: pointer; } .charge-options input { width: 19px; height: 19px; margin: 0; accent-color: #71b5fa; }
.wallet-warning { display: flex; align-items: center; gap: 14px; border-radius: 22px; background: var(--warning); color: var(--warning-text); padding: 12px 18px; margin: 18px 0 28px; font-weight: 600; } .wallet-warning span { font-size: 26px; } .primary-button { min-width: 170px; padding: 9px 30px; background: var(--blue); color: white; border-radius: 24px; font-weight: 600; } .primary-button:hover { filter: brightness(1.12); } .wallet-description { line-height: 2.6; margin: 32px 0 22px; } .wallet-links { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; } .wallet-links button { color: var(--green); }
.muted { color: var(--muted); font-size: 14px; } .feedback { padding: 14px 18px; border: 1px solid var(--border); background: var(--panel); border-radius: 10px; margin-bottom: 20px; }
.account-form { max-width: 540px; display: grid; gap: 14px; } .account-form label { display: grid; gap: 7px; font-size: 14px; } .account-form input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); } .account-form button { justify-self: start; margin-top: 8px; }
.customer-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; max-width: 760px; margin-top: 24px; } .customer-books img { width: 100%; height: 260px; object-fit: contain; background: var(--panel); border-radius: 8px; } .customer-books h2 { font-size: 14px; } .customer-books button { color: var(--green); font-size: 13px; padding: 0; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); } .empty-state > span { font-size: 60px; } .empty-state h2 { color: var(--text); } .summary-card { display: flex; justify-content: space-between; max-width: 400px; padding: 25px; border: 1px solid var(--border); border-radius: 12px; } .summary-card strong { color: var(--green); }
.table-scroll { overflow-x: auto; } table { border-collapse: collapse; width: 100%; min-width: 530px; text-align: right; } th, td { padding: 12px 10px; border-bottom: 1px solid var(--border); font-size: 14px; } th { color: var(--muted); font-weight: 400; } .success-badge { color: var(--green); font-size: 12px; } .device-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); } .device-row p { font-size: 13px; color: var(--muted); margin: 5px 0 0; } .danger-button { color: #ef7272; }
@media (max-width: 1050px) { .container { width: calc(100% - 48px); } .header-main { gap: 18px; } .brand { font-size: 22px; } .account-layout { gap: 24px; grid-template-columns: 190px minmax(0, 1fr); } .site-nav { gap: 15px; } }
@media (max-width: 720px) { .container { width: calc(100% - 32px); } .header-main { flex-wrap: wrap; justify-content: space-between; } .search { flex-basis: 100%; order: 3; } .site-nav { gap: 8px; flex-wrap: wrap; } .site-nav button, .site-nav > a { font-size: 12px; } .account-layout { display: flex; flex-direction: column; gap: 24px; padding-top: 22px; } .account-sidebar { position: static; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--border); } .sidebar-label { display: none; } .account-sidebar a, .account-sidebar > button { font-size: 12px; padding: 8px 10px; } .account-sidebar .theme-toggle { border: 0; margin: 0; } .account-content { width: 100%; } .section-heading { flex-direction: column; gap: 0; margin-bottom: 20px; } .section-heading h1 { margin-bottom: 8px; } .wallet-warning { font-size: 13px; border-radius: 14px; } .customer-books { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .customer-books img { height: 220px; } }
@media (max-width: 420px) {
  .header-main { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 8px; }
  .header-main .brand { font-size: 18px; gap: 5px; }
  .header-main .brand-logo { width: 30px; height: 30px; border-radius: 7px; }
  .header-main .user-menu { grid-column: 3; max-width: 110px; font-size: 11px; gap: 5px; padding: 6px; }
  .header-main .user-menu .site-icon { width: 15px; height: 15px; }
  .header-main .search { grid-column: 1 / -1; width: 100%; }
  .site-nav { gap: 8px 12px; }
}
/* Shared compact single-value controls across storefront and account pages. */
html body select:not([multiple]):not([size]) { height: 34px; min-height: 34px; padding-block: 4px; font-size: 13px; line-height: 1.4; border-radius: 6px; }
#initial-email-dialog { width: min(440px,calc(100vw - 32px)); padding: 20px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--panel); }
#initial-email-dialog::backdrop { background: #0008; }
#initial-email-dialog p { line-height: 1.9; font-size: 13px; }
#initial-email-dialog input { display: block; width: 100%; padding: 8px; margin-block: 8px; border: 1px solid var(--border); border-radius: 6px; color: inherit; background: var(--panel); }
#initial-email-dialog form > div { display: flex; gap: 8px; justify-content: flex-end; }
#initial-email-dialog [data-email-error] { color: #dc4654; }
.account-email { margin-block: 18px; } .account-email > small { display: block; margin-bottom: 10px; }


