/* Customer portal (/account) and printable receipts.
   Loaded after style.css on account pages; the receipt page loads it on its own,
   so the receipt section defines its own variables. */

/* ---------- Sign in / sign up ---------- */
.auth-wrap{max-width:1040px;margin:56px auto 80px;padding:0 20px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:28px;align-items:stretch}
.auth-wrap-single{grid-template-columns:minmax(0,560px);justify-content:center}
.auth-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:40px 42px}
.auth-card h1{font-size:clamp(1.7rem,3vw,2.1rem);line-height:1.2;margin:0 0 8px}
.auth-card .eyebrow{margin-bottom:10px}
.auth-lead{color:var(--muted);margin:0 0 22px;font-size:.98rem}
.auth-form label,.account-form label{display:block;font-size:.92rem;font-weight:650;color:var(--navy);margin-bottom:16px}
.auth-form .form-row,.account-form .form-row{gap:16px}
.auth-hint{display:block;color:var(--muted);font-size:.84rem;font-weight:500;margin:-8px 0 16px}
.account-form label .auth-hint{margin:6px 0 0}
.auth-row{display:flex;justify-content:flex-end;margin:-6px 0 18px;font-size:.9rem}
.auth-check{display:flex!important;align-items:flex-start;gap:10px;font-weight:500!important;color:var(--text)!important}
.auth-check input{width:18px!important;height:18px;margin:3px 0 0!important;flex:none;accent-color:var(--blue)}
.auth-submit{width:100%;margin-top:6px}
.auth-switch{margin:22px 0 0;text-align:center;color:var(--muted);font-size:.95rem}
.auth-side{border-radius:var(--radius);padding:40px 36px;color:#fff;background:linear-gradient(150deg,#1a45c4 0%,#2358ed 45%,#6d5ae6 100%);display:flex;align-items:center}
.auth-side ul{list-style:none;margin:0;padding:0;display:grid;gap:22px}
.auth-side li{position:relative;padding-inline-start:38px;font-size:1.05rem;font-weight:600;line-height:1.5}
.auth-side li::before{content:"";position:absolute;inset-inline-start:0;top:2px;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat}
.account-errors p{margin:0}.account-errors p+p{margin-top:6px}
.account-errors{margin-bottom:18px}

/* ---------- Header link ---------- */
.account-link{display:inline-flex;align-items:center;gap:8px;font-weight:650;font-size:.95rem;color:var(--navy);padding:9px 14px;border-radius:999px;border:1px solid var(--line);background:var(--white);white-space:nowrap}
.account-link:hover{border-color:var(--blue-line);color:var(--blue);text-decoration:none}
.account-link svg{width:18px;height:18px}

/* ---------- Account shell ---------- */
.account-hero{background:linear-gradient(180deg,var(--soft),#fff);border-bottom:1px solid var(--line)}
.account-hero-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:40px;padding-bottom:26px}
.account-id{display:flex;align-items:center;gap:18px;min-width:0}
.account-id h1{font-size:clamp(1.5rem,3vw,2rem);margin:0;line-height:1.2}
.account-id p{margin:4px 0 0;color:var(--muted);font-size:.95rem;overflow-wrap:anywhere}
.account-id .eyebrow{margin-bottom:6px}
.account-avatar{width:58px;height:58px;flex:none;border-radius:50%;display:grid;place-items:center;font-size:1.5rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet))}
.account-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:0}
.account-tabs a{display:inline-flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:3px solid transparent;color:var(--text);font-weight:650;white-space:nowrap}
.account-tabs a svg{width:18px;height:18px}
.account-tabs a:hover{color:var(--blue);text-decoration:none}
.account-tabs a[aria-current=page]{color:var(--blue);border-color:var(--blue)}
.account-body{padding-top:34px;padding-bottom:80px}
.account-narrow{max-width:860px}
.account-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 18px}
.account-section-head h2{margin:0;font-size:1.35rem}
.account-back{display:inline-block;font-weight:650;font-size:.92rem;margin-bottom:14px}
.account-lead{color:var(--muted);margin:-4px 0 20px}
.account-note{color:var(--muted);font-size:.88rem;margin-top:18px}
.account-alert{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff8e6;border:1px solid #f3dda4;border-radius:var(--radius-sm);padding:18px 22px;margin-bottom:24px}
.account-alert strong{color:#7a5300}.account-alert p{margin:4px 0 0;color:#7a5f1f;font-size:.93rem}
.account-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:30px}
.account-stat{display:block;background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);padding:18px 20px;box-shadow:var(--shadow-sm);color:inherit}
a.account-stat:hover{border-color:var(--blue-line);text-decoration:none}
.account-stat span{display:block;color:var(--muted);font-size:.86rem;font-weight:600}
.account-stat strong{display:block;font-size:1.6rem;line-height:1.3;margin-top:4px;color:var(--navy)}
.account-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px 30px;margin-bottom:22px;box-shadow:var(--shadow-sm)}
.account-panel h2{font-size:1.2rem;margin:0 0 18px}
.account-form textarea{min-height:140px;resize:vertical}
.account-form select{margin-top:8px}

/* ---------- Orders ---------- */
.order-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.order-card{display:grid;grid-template-columns:132px minmax(0,1fr) auto;gap:20px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);padding:14px 18px 14px 14px;box-shadow:var(--shadow-sm)}
html[dir=rtl] .order-card{padding:14px 14px 14px 18px}
.order-thumb{aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:var(--soft);display:grid;place-items:center;color:var(--muted);font-weight:800}
.order-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.order-info h3{margin:0 0 6px;font-size:1.05rem;line-height:1.35}
.order-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;color:var(--muted);font-size:.88rem;align-items:center}
.order-status,.ticket-status{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.78rem;font-weight:700;background:var(--soft);color:var(--text);white-space:nowrap}
.status-paid,.status-answered{background:var(--green-soft);color:#14633c}
.status-refunded,.status-closed{background:#f1f2f5;color:#5f6b7d}
.status-partially_refunded,.status-pending{background:#fff4dc;color:#7a5300}
.status-open{background:var(--blue-soft);color:var(--blue-dark)}
.order-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}
.order-actions .button svg{width:17px;height:17px}
.order-help{font-size:.88rem;font-weight:650}

/* ---------- Tickets ---------- */
.ticket-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ticket-list a{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);padding:16px 20px;color:inherit;box-shadow:var(--shadow-sm)}
.ticket-list a:hover{border-color:var(--blue-line);text-decoration:none}
.ticket-no{font-weight:800;color:var(--muted);font-size:.9rem}
.ticket-subject{flex:1;min-width:0}
.ticket-subject strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ticket-subject small{color:var(--muted);font-size:.84rem}
.ticket-new{background:var(--violet-soft);color:var(--violet);border-radius:999px;padding:3px 10px;font-size:.78rem;font-weight:700;white-space:nowrap}
.ticket-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.ticket-head h2{margin:2px 0 0;font-size:1.4rem;line-height:1.3}
.ticket-product{margin:6px 0 0;color:var(--muted);font-size:.9rem}
.ticket-thread{list-style:none;margin:0 0 24px;padding:0;display:grid;gap:14px}
.ticket-msg{border:1px solid var(--line);border-radius:var(--radius-sm);padding:16px 20px;background:#fff}
.ticket-msg.from-admin{background:var(--blue-soft);border-color:var(--blue-line)}
.ticket-msg-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:.9rem}
.ticket-msg-head time{color:var(--muted)}
.ticket-msg-body{overflow-wrap:anywhere;line-height:1.65}
.ticket-reply{background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);padding:20px}

@media (max-width:860px){
 .auth-wrap{grid-template-columns:1fr;margin-top:28px}
 .auth-side{display:none}
 .auth-card{padding:28px 22px}
 .account-hero-inner{flex-direction:column;align-items:flex-start}
 .account-stats{grid-template-columns:1fr 1fr}
 .order-card{grid-template-columns:96px minmax(0,1fr)}
 .order-actions{grid-column:1/-1;justify-content:flex-start}
 .account-alert{flex-direction:column;align-items:flex-start}
 .account-panel{padding:22px 18px}
}
@media (max-width:480px){.account-stats{grid-template-columns:1fr}.ticket-list a{flex-wrap:wrap}}

/* ---------- Receipt (standalone page) ---------- */
.receipt-body{margin:0;background:#eef1f6;color:#0f1b33;font:15px/1.6 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,"Noto Sans Arabic",Tahoma,sans-serif}
.receipt-actions{max-width:820px;margin:24px auto 0;padding:0 20px;display:flex;justify-content:space-between;align-items:center}
.receipt-actions a{color:#2358ed;font-weight:650;text-decoration:none}
.receipt-actions button{font:inherit;font-weight:700;color:#fff;background:#2358ed;border:0;border-radius:10px;padding:10px 18px;cursor:pointer}
.receipt{max-width:780px;margin:16px auto 40px;background:#fff;border-radius:16px;padding:44px 48px;box-shadow:0 14px 40px rgba(15,27,51,.08)}
.receipt-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-bottom:2px solid #0f1b33;padding-bottom:20px}
.receipt-head img{max-width:220px;height:auto}
.receipt-head h1{margin:0;font-size:1.8rem;text-align:end}
.receipt-head p{margin:2px 0 0;color:#6b778c;text-align:end}
.receipt-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:26px 0}
.receipt-grid h2{font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;color:#6b778c;margin:0 0 6px}
.receipt-grid p{margin:0}
.receipt-ref{font-family:ui-monospace,Consolas,monospace;font-size:.85em;overflow-wrap:anywhere}
.receipt-table{width:100%;border-collapse:collapse}
.receipt-table th{text-align:start;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:#6b778c;border-bottom:1px solid #e3e8ef;padding:10px 0}
.receipt-table th:last-child,.receipt-table td:last-child{text-align:end;white-space:nowrap}
.receipt-table td{padding:14px 0;border-bottom:1px solid #eef1f6;vertical-align:top}
.receipt-table td small{display:block;color:#6b778c;font-size:.85rem}
.receipt-table tfoot td{border-bottom:0;padding:8px 0;color:#4f5d74}
.receipt-total td{font-size:1.15rem;font-weight:800;color:#0f1b33!important;border-top:2px solid #0f1b33!important;padding-top:14px!important}
.receipt-note{margin:28px 0 0;color:#4f5d74;font-size:.9rem;background:#f5f7fb;border-radius:10px;padding:14px 16px}
.receipt-note a{color:#2358ed}
.receipt-foot{margin-top:28px;text-align:center;color:#6b778c;font-size:.85rem}
@media (max-width:640px){.receipt{padding:26px 20px;border-radius:0}.receipt-grid{grid-template-columns:1fr}.receipt-head{flex-direction:column}.receipt-head h1,.receipt-head p{text-align:start}}
@media print{.no-print{display:none!important}.receipt-body{background:#fff}.receipt{box-shadow:none;margin:0;padding:0;max-width:none}}

/* ---------- Admin: orders and tickets ---------- */
.portal-admin{max-width:1180px}
.portal-admin-narrow{max-width:860px}
.portal-admin-head h1{margin:0;font-size:1.8rem}
.portal-admin-head p{margin:4px 0 20px;color:var(--muted)}
.portal-admin .ticket-head h1{font-size:1.45rem;margin:2px 0 0}
.portal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.portal-stats div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px}
.portal-stats span{display:block;color:var(--muted);font-size:.85rem;font-weight:600}
.portal-stats strong{font-size:1.5rem}
.portal-search{display:flex;gap:10px;align-items:center;margin-bottom:16px}
.portal-search input{flex:1;height:44px;padding:0 14px;border:1px solid var(--line-strong);border-radius:10px;font:inherit}
.portal-filters{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.portal-filters a{padding:7px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font-weight:650;font-size:.9rem;color:var(--text)}
.portal-filters a[aria-current=page]{background:var(--blue);border-color:var(--blue);color:#fff}
.portal-table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:12px}
.portal-table{width:100%;border-collapse:collapse;font-size:.92rem}
.portal-table th{text-align:start;background:var(--soft);color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;padding:11px 14px;white-space:nowrap}
.portal-table td{padding:12px 14px;border-top:1px solid var(--line);vertical-align:top}
.portal-table td small{display:block;color:var(--muted);font-size:.82rem}
.portal-pill{display:inline-block;margin-top:4px;font-style:normal;font-size:.72rem;font-weight:700;background:var(--green-soft);color:#14633c;border-radius:999px;padding:1px 8px}
.portal-warn{color:#a3560b!important}
.portal-empty{background:#fff;border:1.5px dashed var(--line-strong);border-radius:12px;padding:30px;text-align:center;color:var(--muted)}
.portal-empty strong{color:var(--navy)}
.portal-reply-bar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.portal-reply-bar label{margin:0}
.portal-secret{font-family:ui-monospace,Consolas,monospace;font-size:.9rem;background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:8px 12px;display:inline-block;overflow-wrap:anywhere}
@media (max-width:760px){.portal-stats{grid-template-columns:1fr}}
.content-field-hint{display:block;margin-top:6px;color:var(--muted);font-size:.82rem;font-weight:500;line-height:1.5}
.portal-steps{margin:10px 0 16px;padding-inline-start:20px;display:grid;gap:6px}
.settings-check{display:flex;align-items:center;gap:8px;margin:8px 0 4px;font-size:.9rem;color:var(--text)}
#payments input[type=password],#payments input[type=url]{width:100%}
/* The site's .form adds its own card; inside account cards the form sits flat. */
.auth-card .form,.account-body .form,.portal-admin .form{background:none;border:0;box-shadow:none;padding:0;margin:0}
.account-body .ticket-reply.form{background:#fff;border:1px solid var(--line);padding:20px}

/* Admin: shop editor and review moderation */
.bundle-picker{border:0;padding:0;margin:18px 0 0}
.bundle-picker legend{margin-bottom:10px}
.bundle-picker legend small{font-weight:500;color:var(--muted)}
.bundle-picker-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;max-height:340px;overflow:auto;padding:4px}
.bundle-picker-list label{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;margin:0;font-weight:600;font-size:.92rem;cursor:pointer}
.bundle-picker-list label:has(input:checked){border-color:var(--blue);background:var(--blue-soft)}
.bundle-picker-list input{width:auto;margin:3px 0 0;flex-shrink:0}
.bundle-picker-list small{display:block;color:var(--muted);font-weight:500;font-size:.8rem}
.portal-reviews td{vertical-align:top}
.portal-reviews .review-snippet{display:block;max-width:420px;white-space:normal;margin-top:3px}
.portal-row-actions{display:flex;gap:6px;flex-wrap:wrap}
.portal-row-actions form{margin:0}

/* Admin: product gallery editor */
.gallery-editor-list{list-style:none;margin:0 0 14px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.gallery-editor-list:empty{display:none}
.gallery-tile{position:relative;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;transition:opacity .2s,border-color .2s}
.gallery-tile img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:var(--soft)}
.gallery-tile-bar{display:flex;align-items:center;gap:4px;padding:6px 8px;border-top:1px solid var(--line);font-size:.82rem}
.gallery-move{width:28px;height:28px;border:1px solid var(--line);border-radius:8px;background:#fff;line-height:1;padding:0}
.gallery-move:hover{border-color:var(--blue);color:var(--blue)}
.gallery-pos{min-width:22px;text-align:center;font-weight:700;color:var(--muted)}
.gallery-remove{margin:0 0 0 auto!important;display:inline-flex!important;align-items:center;gap:5px;font-weight:600!important;font-size:.8rem!important;color:#c0303c!important;cursor:pointer}
.gallery-remove input{width:auto!important;margin:0!important}
.gallery-tile.is-removed{opacity:.45;border-color:#f3c9cd}
.gallery-tile.is-removed img{filter:grayscale(1)}
.gallery-tile.is-new{border-style:dashed;border-color:var(--blue)}
.gallery-tile-name{display:block;padding:6px 8px;font-size:.78rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gallery-drop{position:relative;display:grid!important;justify-items:center;gap:4px;padding:26px 18px;margin:0 0 12px!important;border:2px dashed var(--line-strong);border-radius:14px;background:var(--soft);text-align:center;cursor:pointer;transition:border-color .2s,background .2s}
.gallery-drop:hover,.gallery-drop.is-over,.gallery-drop:focus-within{border-color:var(--blue);background:var(--blue-soft)}
.gallery-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%!important;margin:0!important}
.gallery-drop svg{width:28px;height:28px;color:var(--blue)}
.gallery-drop strong{font-size:1rem}
.gallery-drop span{font-size:.85rem;font-weight:500;color:var(--muted)}

/* ---------- Product gallery: English / Arabic tabs, images + videos ---------- */
.media-tabs{display:flex;gap:6px;padding:5px;margin:4px 0 16px;border:1px solid var(--line);border-radius:14px;background:var(--soft);width:max-content;max-width:100%}
.media-tab{display:inline-flex;align-items:center;gap:9px;padding:9px 14px;border:0;border-radius:10px;background:transparent;color:var(--text);font:inherit;font-size:.92rem;font-weight:650;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
.media-tab:hover{color:var(--navy)}
.media-tab[aria-selected=true]{background:#fff;color:var(--blue);box-shadow:0 1px 2px rgba(15,27,51,.06),0 6px 14px -8px rgba(15,27,51,.25)}
.media-tab-code{display:grid;place-items:center;min-width:26px;height:20px;padding:0 5px;border-radius:6px;background:var(--blue-soft);color:var(--blue);font-size:.68rem;font-weight:800;letter-spacing:.04em}
.media-tab[aria-selected=true] .media-tab-code{background:var(--blue);color:#fff}
.media-tab-count{min-width:22px;padding:1px 7px;border-radius:999px;background:rgba(15,27,51,.07);color:var(--muted);font-size:.74rem;font-weight:700;text-align:center}
.media-panel[hidden]{display:none}
.media-panel-hint{margin:0 0 12px;color:var(--muted);font-size:.86rem}
.media-empty{margin:0 0 12px;padding:14px 16px;border:1px dashed var(--line-strong);border-radius:12px;color:var(--muted);font-size:.88rem;text-align:center}
.gallery-tile-media{position:relative;background:#0f1b33}
.gallery-tile-media img,.gallery-tile-media video{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:var(--soft)}
.gallery-tile.is-video .gallery-tile-media video{background:#0f1b33}
.gallery-tile-badge{position:absolute;top:8px;inset-inline-start:8px;display:inline-flex;align-items:center;gap:5px;padding:3px 9px 3px 7px;border-radius:999px;background:rgba(15,27,51,.78);color:#fff;font-size:.72rem;font-weight:700}
.gallery-tile-badge svg{width:11px;height:11px}
.gallery-drop.has-files{border-color:var(--blue);background:var(--blue-soft)}
.gallery-tile.is-removed video{filter:grayscale(1)}
@media (max-width:640px){.media-tabs{width:100%}.media-tab{flex:1;justify-content:center;padding:9px 8px;font-size:.86rem}}

/* ---------- Product editor: section menu stays visible under the admin top bar ---------- */
.content-editor-nav{top:84px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.content-editor-nav::-webkit-scrollbar{display:none}
.content-editor-nav a{flex-shrink:0;white-space:nowrap;transition:background .2s,color .2s}
.content-editor-nav a.is-current{background:var(--blue-soft);color:var(--blue)}
.content-editor-nav a.is-current b{background:var(--blue);color:#fff}
.content-section{scroll-margin-top:150px}
@media (max-width:900px){.content-editor-nav{top:72px}}

/* Sign-up code page */
.otp-card{text-align:start}
.otp-badge{display:grid;place-items:center;width:56px;height:56px;margin-bottom:14px;border-radius:16px;background:linear-gradient(135deg,#eef3ff,#f3eeff);color:var(--blue);box-shadow:inset 0 0 0 1px #dbe5ff}
.otp-badge svg{width:28px;height:28px}
.otp-notice{margin:0 0 14px;padding:10px 12px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1e40af;font-size:.9rem}
.otp-label{display:block;margin:6px 0 10px;font-size:.92rem;font-weight:650;color:var(--navy)}
.otp-input{display:block;width:100%;margin:0;padding:14px 16px;border:1px solid var(--line-strong);border-radius:12px;font:700 1.6rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.6em;text-align:center}
.otp-field{position:relative;margin:0 0 6px}
.otp-input.is-enhanced{position:absolute;inset:0;z-index:2;width:100%;height:100%;padding:0;border:0;background:transparent;color:transparent;caret-color:transparent;opacity:0;cursor:text}
.otp-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;direction:ltr}
.otp-slot{position:relative;display:grid;place-items:center;height:62px;border:1.5px solid var(--line-strong);border-radius:12px;background:#fff;color:var(--navy);font:800 1.65rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;transition:border-color .15s,box-shadow .15s,transform .15s}
.otp-slot.is-filled{border-color:#94a3b8;background:#fbfcfe}
.otp-slot.is-active{border-color:var(--blue);box-shadow:0 0 0 4px rgba(35,88,237,.14)}
.otp-slot.is-active:empty::after{content:"";width:2px;height:26px;border-radius:2px;background:var(--blue);animation:otpCaret 1s steps(2) infinite}
@keyframes otpCaret{50%{opacity:0}}
.otp-field.has-error .otp-slot{border-color:#ef4444;background:#fffafa}
.otp-field.has-error .otp-slots{animation:otpShake .4s ease}
@keyframes otpShake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
@media (prefers-reduced-motion:reduce){.otp-field.has-error .otp-slots,.otp-slot.is-active:empty::after{animation:none}}
@media (max-width:420px){.otp-slots{gap:6px}.otp-slot{height:52px;font-size:1.35rem}}
.otp-timer{margin:10px 0 16px;color:var(--muted);font-size:.86rem}
.otp-timer b{color:var(--navy);font-variant-numeric:tabular-nums}
.otp-timer.is-soon b{color:#b45309}
.otp-timer.is-expired{color:#b91c1c;font-weight:600}
.otp-resend{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);color:var(--muted);font-size:.88rem}
.otp-resend form{display:inline;margin:0}
.otp-resend-btn{padding:0;border:0;background:none;color:var(--blue);font:inherit;font-weight:700;cursor:pointer}
.otp-resend-btn:disabled{color:var(--muted);cursor:not-allowed}
.otp-resend-btn:not(:disabled):hover{text-decoration:underline}
.otp-limit{color:#b45309}
.otp-change{margin-top:14px}
.otp-next{margin:12px 0 0;color:var(--muted);font-size:.84rem;line-height:1.5;text-align:center}

/* =============================================================================
   Support tickets (customer account) + shared ticket pieces + profile photo
   ============================================================================= */
.tk-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:18px}
.tk-head h2{margin:0;font-size:1.5rem}
.tk-head p{max-width:62ch;margin:6px 0 0;color:var(--muted)}
.tk-head .button,.tk-send,.tk-close-btn,.pf-upload{display:inline-flex;align-items:center;gap:8px}
.tk-head .button svg,.tk-send svg,.tk-close-btn svg,.pf-upload svg{width:17px;height:17px}
.tk-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.tk-tabs a{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#334155;font-size:.88rem;font-weight:650;text-decoration:none}
.tk-tabs a[aria-current=page]{border-color:var(--navy);background:var(--navy);color:#fff}
.tk-tabs em{min-width:20px;padding:0 6px;border-radius:999px;background:#eef1f6;color:#475569;font-size:.72rem;font-style:normal;text-align:center}
.tk-tabs a[aria-current=page] em{background:rgba(255,255,255,.18);color:#fff}
.tk-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.tk-item{display:flex;align-items:center;gap:14px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:#fff;color:inherit;text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.tk-item:hover{border-color:var(--blue-line);box-shadow:0 10px 24px -16px rgba(15,27,51,.3);transform:translateY(-1px)}
.tk-item.is-unread{border-color:#bfdbfe;background:#f8fbff}
.tk-item.is-closed{opacity:.75}
.tk-item-ico{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:12px;background:var(--blue-soft);color:var(--blue)}
.tk-item-ico svg{width:20px;height:20px}
.tk-cat-billing{background:#fef3c7;color:#b45309}.tk-cat-technical{background:#ede9fe;color:#6d28d9}.tk-cat-customization{background:#dcfce7;color:#15803d}.tk-cat-account{background:#f1f5f9;color:#475569}.tk-cat-order{background:#e0f2fe;color:#0369a1}
.tk-item-main{display:grid;flex:1;gap:3px;min-width:0}
.tk-item-top{display:flex;align-items:center;gap:8px;min-width:0}
.tk-item-top b{overflow:hidden;color:var(--navy);text-overflow:ellipsis;white-space:nowrap}
.tk-item small{color:var(--muted);font-size:.82rem}
.tk-new{flex:none;padding:1px 8px;border-radius:999px;background:var(--blue);color:#fff;font-size:.7rem;font-weight:800}
.tk-chev svg{width:18px;height:18px;color:#94a3b8}
.tk-status{flex:none;padding:4px 11px;border-radius:999px;font-size:.76rem;font-weight:750;white-space:nowrap}
.tk-status.is-open{background:#fef3c7;color:#92400e}
.tk-status.is-answered{background:#dbeafe;color:#1d4ed8}
.tk-status.is-closed{background:#f1f5f9;color:#475569}
.tk-empty{display:grid;justify-items:center;gap:8px;padding:48px 20px;border:1px dashed var(--line-strong);border-radius:18px;background:#fff;text-align:center}
.tk-empty-ico{display:grid;place-items:center;width:60px;height:60px;border-radius:16px;background:var(--blue-soft);color:var(--blue)}
.tk-empty-ico svg{width:28px;height:28px}
.tk-empty h3{margin:4px 0 0}
.tk-empty p{max-width:46ch;margin:0 0 8px;color:var(--muted)}
/* New ticket */
.tk-new-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
@media (max-width:960px){.tk-new-layout{grid-template-columns:1fr}}
.tk-compose h2{margin:0}
.tk-sub{margin:6px 0 18px;color:var(--muted)}
.tk-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:640px){.tk-grid{grid-template-columns:1fr}}
.tk-compose label small{color:var(--muted);font-weight:500}
.tk-tips{padding:20px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#f8faff,#fff)}
.tk-tips h3{margin:0 0 12px;font-size:1rem}
.tk-tips ul{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.tk-tips li{display:flex;gap:10px;color:var(--text);font-size:.88rem;line-height:1.5}
.tk-tips svg{flex:none;width:18px;height:18px;margin-top:2px;color:var(--blue)}
/* Attachments picker (also used in the admin) */
.tk-attach{margin:4px 0 16px}
.tk-attach-label{display:block;margin-bottom:8px;color:var(--navy);font-size:.92rem;font-weight:650}
.tk-attach-label small{color:var(--muted);font-weight:500}
.tk-drop{position:relative;display:flex;align-items:center;gap:12px;margin:0;padding:14px 16px;border:1.5px dashed var(--line-strong);border-radius:12px;background:#fbfcfe;color:var(--muted);font-size:.88rem;font-weight:500;cursor:pointer;transition:border-color .15s,background .15s}
.tk-drop:hover,.tk-drop.is-over{border-color:var(--blue);background:var(--blue-soft)}
.tk-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.tk-drop>svg{flex:none;width:22px;height:22px;color:var(--blue)}
.tk-drop b{color:var(--blue)}
.tk-drop small{display:block;margin-top:2px;color:#94a3b8;font-size:.78rem}
.tk-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;padding:0;list-style:none}
.tk-chips:empty{display:none}
.tk-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:5px 6px 5px 11px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:.82rem}
.tk-chip span{overflow:hidden;max-width:220px;text-overflow:ellipsis;white-space:nowrap;color:var(--navy);font-weight:600}
.tk-chip small{color:var(--muted)}
.tk-chip button{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:#f1f5f9;color:#475569;cursor:pointer}
.tk-chip button:hover{background:#fee2e2;color:#b91c1c}
.tk-attach-error{margin:8px 0 0;color:#b91c1c;font-size:.84rem;font-weight:600}
/* Conversation (customer) */
.tk-view{max-width:880px;margin:0 auto}
.tk-view-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:14px;margin:8px 0 20px}
.tk-view-head h2{margin:4px 0 0;font-size:1.45rem}
.tk-view-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--muted);font-size:.84rem;font-weight:600}
.tk-dot{width:4px;height:4px;border-radius:50%;background:#cbd5e1}
.tk-view-sub{margin:4px 0 0;color:var(--muted);font-size:.86rem}
.tk-view-actions{display:flex;align-items:center;gap:10px}
.tk-view-actions form{margin:0}
.tk-thread{display:grid;gap:16px;margin:0 0 18px;padding:0;list-style:none}
.tk-msg{display:flex;align-items:flex-start;gap:12px}
.tk-msg.is-me{flex-direction:row-reverse}
.tk-avatar{display:grid;place-items:center;flex:none;width:38px;height:38px;overflow:hidden;border-radius:50%;background:linear-gradient(135deg,#dbe6ff,#e9e2ff);color:#3949ab;font-weight:800}
.tk-avatar img{width:100%;height:100%;object-fit:cover}
.tk-avatar.is-team{background:#fff;border:1px solid var(--line);padding:5px}
.tk-avatar.is-team img{object-fit:contain}
.tk-avatar>span{display:grid;place-items:center;width:100%;height:100%;background:hsl(var(--h,220) 80% 93%);color:hsl(var(--h,220) 55% 35%)}
.tk-bubble{max-width:min(640px,calc(100% - 50px));padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(15,27,51,.04)}
.tk-msg.is-team .tk-bubble{border-start-start-radius:6px}
.tk-msg.is-me .tk-bubble{border-color:#c7d7fe;background:#f3f7ff;border-start-end-radius:6px}
.tk-bubble-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:6px;font-size:.84rem}
.tk-bubble-head b{color:var(--navy)}
.tk-bubble-head time{color:#94a3b8;white-space:nowrap}
.tk-bubble-body{color:var(--text);line-height:1.65;overflow-wrap:anywhere}
.tk-files{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0;padding:0;list-style:none}
.tk-files a{display:flex;align-items:center;gap:10px;max-width:260px;padding:6px 10px 6px 6px;border:1px solid var(--line);border-radius:10px;background:#fff;color:inherit;text-decoration:none}
.tk-files a:hover{border-color:var(--blue-line)}
.tk-files img{width:52px;height:40px;object-fit:cover;border-radius:6px;background:#f1f5f9}
.tk-file-ico{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:#eef3ff;color:var(--blue)}
.tk-file-ico svg{width:20px;height:20px}
.tk-files a>span:last-child{display:grid;min-width:0}
.tk-files b{overflow:hidden;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
.tk-files small{color:var(--muted);font-size:.74rem}
.tk-closed-note{display:flex;align-items:center;gap:8px;margin:0 0 14px;padding:12px 14px;border:1px solid #bbf7d0;border-radius:12px;background:#f0fdf4;color:#166534;font-size:.9rem}
.tk-closed-note svg{flex:none;width:18px;height:18px}
.tk-reply-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}
.button.is-busy{opacity:.7;pointer-events:none}
/* Profile photo */
.pf-photo{display:flex;align-items:center;gap:20px}
.pf-photo-preview{display:grid;place-items:center;flex:none;width:96px;height:96px;overflow:hidden;border-radius:50%;background:linear-gradient(135deg,#2358ed,#6d5ae6);color:#fff;font-size:2.2rem;font-weight:800;box-shadow:0 0 0 4px #fff,0 0 0 5px var(--line)}
.pf-photo-preview img{width:100%;height:100%;object-fit:cover}
.pf-photo-preview.is-uploading{opacity:.6}
.pf-photo-body h2{margin:0 0 4px}
.pf-photo-body p{margin:0 0 12px;color:var(--muted);font-size:.88rem}
.pf-photo-actions{display:flex;flex-wrap:wrap;gap:8px}
.pf-photo-actions form{margin:0}
.pf-upload{position:relative;margin:0;cursor:pointer}
.pf-upload input{position:absolute;width:1px;height:1px;opacity:0}
.pf-upload:focus-within{outline:3px solid #8fb0ff;outline-offset:2px}
@media (max-width:560px){.pf-photo{flex-direction:column;text-align:center}.pf-photo-actions{justify-content:center}}
.account-avatar{overflow:hidden}
.account-avatar.has-photo{background:#fff}
.account-avatar img{width:100%;height:100%;object-fit:cover}

/* Code page v2: header row, email chip, toned notices, resend panel. */
.otp-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.otp-head .otp-badge{margin:0;width:48px;height:48px;border-radius:14px}
.otp-head .otp-badge svg{width:24px;height:24px}
.otp-head .eyebrow{margin:0!important}
.otp-card .auth-lead{margin:0 0 10px}
.otp-email{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 22px;padding:10px 10px 10px 16px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;font-weight:700;color:var(--navy);overflow-wrap:anywhere}
.otp-email a{flex-shrink:0;padding:6px 12px;border-radius:8px;background:#fff;border:1px solid var(--line);color:var(--blue);font-size:.84rem;font-weight:700;text-decoration:none}
.otp-email a:hover{border-color:var(--blue)}
.otp-notice{display:flex;gap:12px;align-items:flex-start;margin:0 0 20px;padding:14px 16px;border:1px solid;border-radius:12px;font-size:.9rem;line-height:1.5}
.otp-notice>svg{width:20px;height:20px;flex-shrink:0;margin-top:1px}
.otp-notice>div{display:flex;flex-direction:column;gap:2px}
.otp-notice strong{font-size:.94rem}
.otp-notice.is-warn{background:#fffbeb;border-color:#fcd34d;color:#78350f}
.otp-notice.is-warn>svg{color:#d97706}
.otp-notice.is-ok{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.otp-notice.is-ok>svg{color:#059669}
.otp-notice.is-info{background:#eff6ff;border-color:#bfdbfe;color:#1e3a8a}
.otp-notice.is-info>svg{color:var(--blue)}
.otp-timer{display:flex;align-items:center;gap:7px}
.otp-timer svg{width:16px;height:16px;flex-shrink:0}
.otp-resend{justify-content:space-between;gap:12px;margin-top:22px;padding:14px 16px;border:1px dashed var(--line-strong);border-radius:12px;background:#fafbfd}
.otp-resend-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.otp-resend-text b{color:var(--navy);font-size:.9rem}
.otp-resend-text span{font-size:.84rem}
.otp-resend-btn{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
.otp-resend-btn svg{width:15px;height:15px}
.otp-resend-btn:not(:disabled):hover{border-color:var(--blue);text-decoration:none}
.otp-resend-btn:disabled{background:#f1f5f9}
@media (max-width:420px){.otp-resend{flex-direction:column;align-items:stretch}.otp-resend-btn{justify-content:center;width:100%}}

/* Sign-in v2: icon header, label-row link, divider, secondary action, staff note. */
.auth-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.auth-head .eyebrow{margin:0!important}
.auth-badge{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,#eef3ff,#f3eeff);color:var(--blue);box-shadow:inset 0 0 0 1px #dbe5ff}
.auth-badge svg{width:24px;height:24px}
.auth-form input::placeholder{color:#a0abbd;opacity:1}
.pw-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.pw-label-row label{margin:0}
.pw-forgot{font-size:.86rem;font-weight:600;color:var(--blue);text-decoration:none;white-space:nowrap}
.pw-forgot:hover{text-decoration:underline}
.auth-form .pw-group+.auth-submit{margin-top:8px}
.auth-divider{display:flex;align-items:center;gap:12px;margin:26px 0 14px;color:var(--muted);font-size:.86rem}
.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;background:var(--line)}
.auth-alt{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;border:1.5px solid var(--line-strong);border-radius:12px;background:#fff;color:var(--navy);font-weight:700;text-decoration:none;transition:border-color .15s,color .15s,background .15s}
.auth-alt svg{width:17px;height:17px;transition:transform .15s}
.auth-alt:hover{border-color:var(--blue);color:var(--blue);background:#f8faff}
.auth-alt:hover svg{transform:translateX(3px)}
html[dir=rtl] .auth-alt svg{transform:scaleX(-1)}
html[dir=rtl] .auth-alt:hover svg{transform:scaleX(-1) translateX(3px)}
.auth-head~.auth-team{margin-top:18px;background:none;padding:0;justify-content:center;text-align:start;font-size:.82rem}
.auth-head~.auth-team svg{width:16px;height:16px}
.auth-team b{color:var(--navy);font-weight:650}

/* Forgot password v2: help card, back link, sent-state checklist. */
.auth-badge.is-ok{background:linear-gradient(135deg,#ecfdf5,#eff6ff);color:#059669;box-shadow:inset 0 0 0 1px #bbf7d0}
a.button.auth-submit{display:flex;align-items:center;justify-content:center;text-decoration:none}
.auth-help{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px 14px;margin-top:22px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#f8fafc}
.auth-help-ico{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#fff;border:1px solid var(--line);color:var(--blue)}
.auth-help-ico svg{width:19px;height:19px}
.auth-help>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.auth-help b{color:var(--navy);font-size:.9rem}
.auth-help>div span{color:var(--muted);font-size:.84rem;line-height:1.45}
.auth-help>a{padding:8px 13px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;color:var(--blue);font-size:.86rem;font-weight:700;text-decoration:none;white-space:nowrap}
.auth-help>a:hover{border-color:var(--blue)}
@media (max-width:520px){.auth-help{grid-template-columns:auto 1fr}.auth-help>a{grid-column:1/-1;text-align:center}}
.auth-back{display:inline-flex;align-items:center;justify-content:center;gap:8px;align-self:center;margin:22px auto 0;padding:8px 12px;border-radius:10px;color:var(--muted);font-size:.92rem;font-weight:650;text-decoration:none}
.auth-card:not(.auth-card-center) .auth-back{display:flex;width:max-content}
.auth-back svg{width:16px;height:16px}
.auth-back:hover{color:var(--blue);background:#f4f7ff}
html[dir=rtl] .auth-back svg{transform:scaleX(-1)}
.auth-checklist{list-style:none;margin:0 0 22px;padding:16px 18px;display:grid;gap:10px;border:1px solid var(--line);border-radius:14px;background:#f8fafc}
.auth-checklist li{position:relative;padding-inline-start:28px;color:var(--navy);font-size:.9rem;line-height:1.45}
.auth-checklist li::before{content:"";position:absolute;inset-inline-start:0;top:1px;width:18px;height:18px;border-radius:50%;background:#dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8.5'/%3E%3C/svg%3E") center/11px no-repeat}

/* Forgot password v3: "check your inbox" sent state. */
.auth-card-sent{text-align:center}
.sent-hero{position:relative;display:grid;place-items:center;width:112px;height:112px;margin:0 auto 22px}
.sent-ring{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,rgba(35,88,237,.12),rgba(35,88,237,0) 70%);animation:sentPulse 2.8s ease-out infinite}
.sent-ring-2{animation-delay:1.4s}
.sent-icon{position:relative;display:grid;place-items:center;width:76px;height:76px;border-radius:24px;background:linear-gradient(140deg,#2358ed,#6d5ae6);color:#fff;box-shadow:0 18px 36px -14px rgba(35,88,237,.6),inset 0 1px 0 rgba(255,255,255,.25);animation:sentFloat 3.6s ease-in-out infinite}
.sent-icon svg{width:36px;height:36px}
.sent-check{position:absolute;inset-inline-end:12px;bottom:12px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#10b981;color:#fff;border:3px solid #fff;box-shadow:0 6px 14px -4px rgba(16,185,129,.6);animation:sentPop .5s .2s cubic-bezier(.3,1.6,.5,1) both}
.sent-check svg{width:15px;height:15px;stroke-width:3}
@keyframes sentPulse{0%{transform:scale(.7);opacity:1}100%{transform:scale(1.35);opacity:0}}
@keyframes sentFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes sentPop{from{transform:scale(0)}to{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.sent-ring,.sent-icon,.sent-check{animation:none}}
.sent-body{display:flex;flex-direction:column;align-items:center}
.auth-card-sent .sent-body .eyebrow{align-self:center;margin-bottom:12px}
.auth-card-sent .auth-lead{max-width:400px;margin:0 auto 16px}
.sent-email{display:inline-flex;align-items:center;gap:10px;max-width:100%;padding:7px 7px 7px 14px;border:1px solid var(--line);border-radius:999px;background:#f8fafc}
html[dir=rtl] .sent-email{padding:7px 14px 7px 7px}
.sent-email>svg{width:17px;height:17px;flex-shrink:0;color:var(--blue)}
.sent-email b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--navy);font-size:.94rem}
.sent-email a{flex-shrink:0;padding:5px 12px;border-radius:999px;background:#fff;border:1px solid var(--line-strong);color:var(--blue);font-size:.8rem;font-weight:700;text-decoration:none}
.sent-email a:hover{border-color:var(--blue)}
.sent-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;list-style:none;margin:14px 0 24px;padding:0}
.sent-meta li{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:.85rem;font-weight:600}
.sent-meta svg{width:15px;height:15px;color:#059669}
.sent-open{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sent-open.is-single{grid-template-columns:1fr}
.sent-open .auth-alt{min-height:50px}
.sent-open .auth-alt:hover svg{transform:translate(2px,-2px)}
html[dir=rtl] .sent-open .auth-alt svg,html[dir=rtl] .sent-open .auth-alt:hover svg{transform:none}
.sent-resend{display:flex;align-items:center;margin-top:16px;text-align:start}
.sent-resend form{margin:0;flex-shrink:0}
.sent-resend .otp-resend-text span{color:var(--muted)}
.sent-resend .otp-resend-btn{cursor:pointer;color:var(--blue);font-weight:700;font-size:.86rem}
.sent-resend .otp-resend-btn:disabled{cursor:not-allowed;color:var(--muted)}
.auth-card-sent .auth-back{margin-top:18px}
@media (max-width:420px){.sent-open{grid-template-columns:1fr}.sent-resend{flex-direction:column;align-items:stretch}.sent-resend .otp-resend-btn{width:100%;justify-content:center}}
.auth-alt:hover,.auth-alt:focus-visible{text-decoration:none!important}

/* ===== Support tickets v2: progress, banners, timeline events, satisfaction ===== */
.tk-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 18px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:#fff;list-style:none;counter-reset:none}
.tk-steps li{position:relative;display:flex;align-items:center;gap:10px;min-width:0;padding-inline-end:14px}
.tk-steps li:not(:last-child)::after{content:'';flex:1;height:2px;min-width:18px;border-radius:2px;background:#e2e8f0}
.tk-steps li.is-done:not(:last-child)::after{background:#22a466}
.tk-step-dot{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:#f1f5f9;color:#64748b;font-size:.82rem;font-weight:800;border:2px solid #e2e8f0}
.tk-step-dot svg{width:16px;height:16px;stroke-width:2.6}
.tk-steps li.is-done .tk-step-dot{background:#22a466;border-color:#22a466;color:#fff}
.tk-steps li.is-current .tk-step-dot{background:var(--blue);border-color:#c7d7fe;color:#fff;box-shadow:0 0 0 4px rgba(35,88,237,.12)}
.tk-step-text{display:grid;gap:1px;min-width:0}
.tk-step-text b{color:var(--navy);font-size:.88rem;white-space:nowrap}
.tk-step-text small{color:var(--muted);font-size:.76rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-steps li:not(.is-done):not(.is-current) .tk-step-text b{color:#94a3b8}

.tk-banner{display:flex;align-items:flex-start;gap:12px;margin:0 0 20px;padding:13px 16px;border-radius:14px;font-size:.9rem;line-height:1.55}
.tk-banner svg{flex:none;width:20px;height:20px;margin-top:1px}
.tk-banner small{display:block;margin-top:2px;opacity:.8;font-size:.82rem}
.tk-banner.is-open{background:#fff8eb;border:1px solid #fbe3b4;color:#7c4a03}
.tk-banner.is-answered{background:#eff5ff;border:1px solid #cfe0ff;color:#1e3a8a}

.tk-event{display:flex;justify-content:center}
.tk-event>span{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:#f8fafc;color:#475569;font-size:.8rem;font-weight:600;text-align:center}
.tk-event svg{flex:none;width:15px;height:15px;color:#22a466}
.tk-event time{color:#94a3b8;font-weight:500}

.tk-rate{margin:0 0 16px;padding:22px 24px;border:1px solid #fde7a8;border-radius:18px;background:linear-gradient(135deg,#fffbeb,#fff 70%);scroll-margin-top:calc(var(--header-h,76px) + 20px)}
.tk-rate h3{margin:0;font-size:1.15rem}
.tk-rate-form>p{margin:4px 0 16px;color:var(--muted);font-size:.9rem}
.tk-rate-scale{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 14px;padding:0;border:0}
.tk-rate-scale label{position:relative;margin:0;cursor:pointer}
.tk-rate-scale input{position:absolute;opacity:0;pointer-events:none}
.tk-rate-scale span{display:grid;justify-items:center;gap:2px;padding:12px 6px;border:1.5px solid var(--line);border-radius:14px;background:#fff;text-align:center;transition:border-color .15s,background .15s,transform .15s}
.tk-rate-scale svg{width:26px;height:26px;fill:#e2e8f0;transition:fill .15s}
.tk-rate-scale b{color:var(--navy);font-size:.95rem}
.tk-rate-scale small{color:var(--muted);font-size:.72rem;line-height:1.25}
.tk-rate-scale label:hover span{border-color:#f5c542;transform:translateY(-2px)}
.tk-rate-scale label:hover svg{fill:#f5c542}
.tk-rate-scale input:checked+span{border-color:#f5b301;background:#fff6d6;box-shadow:0 8px 20px -14px rgba(245,179,1,.9)}
.tk-rate-scale input:checked+span svg{fill:#f5b301}
.tk-rate-scale input:focus-visible+span{outline:2px solid var(--blue);outline-offset:2px}
.tk-rate-comment{display:grid;gap:6px;margin:0 0 14px;color:var(--navy);font-size:.9rem;font-weight:650}
.tk-rate-comment small{color:var(--muted);font-weight:500}
.tk-rate-comment textarea{width:100%;padding:10px 12px;border:1px solid var(--line-strong,#cbd5e1);border-radius:12px;font:inherit;font-weight:400;resize:vertical}
.tk-rate-done{display:flex;align-items:flex-start;gap:14px}
.tk-rate-badge{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:#22a466;color:#fff}
.tk-rate-badge svg{width:22px;height:22px;stroke-width:2.6}
.tk-rate-done p{margin:6px 0 4px;color:var(--text);font-size:.92rem}
.tk-rate-stars{display:inline-flex;gap:2px;vertical-align:-3px}
.tk-rate-stars svg{width:17px;height:17px;fill:#e2e8f0}
.tk-rate-stars svg.is-on{fill:#f5b301}
.tk-rate-change{font-size:.84rem;font-weight:650}
.tk-rate-chip{flex:none;padding:1px 9px;border-radius:999px;background:#fff6d6;color:#8a6500;font-size:.72rem;font-weight:800}
.tk-reply-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.tk-reply-hint{color:var(--muted);font-size:.82rem}
.tk-closed-note{display:flex;align-items:center;gap:8px}
.tk-closed-note svg{flex:none;width:18px;height:18px}

@media (max-width:640px){
 .tk-steps{grid-template-columns:minmax(0,1fr);gap:10px}
 .tk-steps li::after{display:none}
 .tk-rate{padding:18px}
 .tk-rate-scale{gap:6px}
 .tk-rate-scale small{display:none}
}
/* File chips in ticket threads: show the type (PDF, ZIP, DOCX…) under the icon. */
.tk-file-ico{position:relative}
.tk-file-ico em{position:absolute;bottom:-3px;inset-inline-end:-6px;padding:0 4px;border-radius:4px;background:var(--blue,#2358ed);color:#fff;font-size:.56rem;font-style:normal;font-weight:800;line-height:1.5;letter-spacing:.02em}
