:root {
  color-scheme: dark;
  --bg: #080b12;
  --surface: rgba(18, 22, 34, .88);
  --surface-strong: #151a28;
  --surface-soft: #10141f;
  --line: rgba(151, 159, 187, .16);
  --text: #f4f6fb;
  --muted: #969eb2;
  --primary: #8175ff;
  --primary-strong: #9b92ff;
  --mint: #43e6b4;
  --danger: #ff647c;
  --warning: #f7c65f;
  --shadow: 0 24px 80px rgba(0, 0, 0, .36);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 70% -10%, #22204d 0, transparent 36%), var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.ambient { position: fixed; pointer-events: none; filter: blur(80px); opacity: .2; border-radius: 50%; }
.ambient-one { width: 280px; height: 280px; right: 8%; top: 5%; background: #6d59ff; }
.ambient-two { width: 220px; height: 220px; left: 22%; bottom: 4%; background: #17a985; opacity: .08; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); transition: grid-template-columns .2s ease; }
.app-shell.is-sidebar-collapsed { grid-template-columns: 82px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 22px; display: flex; flex-direction: column; background: rgba(9, 12, 19, .76); border-right: 1px solid var(--line); backdrop-filter: blur(22px); z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: .12em; font-size: 20px; }
.brand img { filter: drop-shadow(0 8px 24px rgba(111, 96, 255, .25)); }
.sidebar-toggle { position: absolute; top: 34px; right: -14px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #111624; box-shadow: 0 8px 20px rgba(0,0,0,.28); cursor: pointer; font-size: 20px; line-height: 1; transition: color .16s ease, transform .2s ease; }
.sidebar-toggle:hover { color: var(--text); }
.side-nav { display: grid; gap: 7px; margin-top: 42px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; color: var(--muted); font-weight: 620; transition: .18s ease; }
.side-nav a:hover, .side-nav a.active { color: var(--text); background: rgba(129, 117, 255, .12); }
.nav-icon { width: 24px; text-align: center; font-size: 19px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 16px; }
.quiet-link { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 0 8px; }
.quiet-link .nav-icon { font-size: 16px; }
.account-control { position: relative; min-width: 0; }
.user-chip { width: 100%; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 15px; color: var(--text); background: rgba(255,255,255,.025); text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.user-chip:hover, .user-chip[aria-expanded="true"] { background: rgba(129,117,255,.08); border-color: rgba(129,117,255,.3); }
.user-chip-details { min-width: 0; display: grid; flex: 1; }
.user-chip strong, .user-chip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { color: var(--muted); font-size: 11px; }
.account-menu-chevron { color: var(--muted); font-size: 12px; transition: transform .16s ease; }
.user-chip[aria-expanded="true"] .account-menu-chevron { transform: rotate(180deg); }
.account-menu { position: absolute; z-index: 40; left: 0; right: 0; bottom: calc(100% + 9px); display: grid; gap: 4px; min-width: 205px; padding: 7px; border: 1px solid var(--line); border-radius: 15px; background: #141927; box-shadow: 0 18px 46px rgba(0,0,0,.42); }
.account-menu[hidden] { display: none; }
.account-menu a, .account-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 0; border-radius: 10px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.account-menu a:hover, .account-menu button:hover { background: rgba(255,255,255,.055); }
.account-menu .danger { color: var(--danger); }
.app-shell.is-sidebar-collapsed .sidebar { padding-left: 14px; padding-right: 14px; }
.app-shell.is-sidebar-collapsed .brand { justify-content: center; }
.app-shell.is-sidebar-collapsed .brand-label,
.app-shell.is-sidebar-collapsed .nav-label,
.app-shell.is-sidebar-collapsed .quiet-link-label,
.app-shell.is-sidebar-collapsed .user-chip-details,
.app-shell.is-sidebar-collapsed .account-menu-chevron { display: none; }
.app-shell.is-sidebar-collapsed .side-nav a,
.app-shell.is-sidebar-collapsed .quiet-link,
.app-shell.is-sidebar-collapsed .user-chip { justify-content: center; padding-left: 8px; padding-right: 8px; }
.app-shell.is-sidebar-collapsed .side-nav a { gap: 0; }
.app-shell.is-sidebar-collapsed .account-menu { left: 0; right: auto; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(145deg, var(--primary), #5c53d7); color: white; font-weight: 800; }
.main-content { width: min(1180px, 100%); padding: 46px clamp(24px, 5vw, 72px) 80px; margin: 0 auto; }
.mobile-header, .mobile-nav { display: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.eyebrow { display: block; color: var(--primary-strong); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; margin-bottom: 7px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin-bottom: 8px; font-size: 20px; letter-spacing: -.02em; }
p { color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 720; white-space: nowrap; }
.status-pill.success { color: var(--mint); background: rgba(67,230,180,.08); border-color: rgba(67,230,180,.2); }
.status-pill.warning { color: var(--warning); }
.status-pill.muted { color: var(--muted); }
.hero-card, .panel, .metric-card, .setting-card, .auth-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(23, 27, 42, .92), rgba(13, 17, 27, .92)); box-shadow: var(--shadow); }
.hero-card { min-height: 220px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(26px, 5vw, 46px); border-radius: 28px; overflow: hidden; position: relative; }
.hero-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -50px; top: -90px; border-radius: 50%; background: rgba(129,117,255,.1); filter: blur(8px); }
.hero-card h2 { font-size: clamp(28px, 5vw, 48px); margin-bottom: 12px; }
.hero-card p { max-width: 560px; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-subscription-actions .button { min-width: 210px; }
.hero-card.compact { min-height: 160px; margin-bottom: 18px; }
.hero-card.compact h2 { font-size: clamp(24px, 4vw, 34px); }
.orb { width: 130px; height: 130px; flex: 0 0 130px; display: grid; place-items: center; border-radius: 43px; background: linear-gradient(145deg, #2b2a58, #111526); border: 1px solid rgba(157,146,255,.28); transform: rotate(10deg); box-shadow: inset 0 0 40px rgba(129,117,255,.16), 0 20px 50px rgba(0,0,0,.3); z-index: 1; }
.orb img { width: 86px; height: 86px; transform: rotate(-10deg); filter: drop-shadow(0 12px 24px rgba(67,230,180,.12)); }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.metric-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tariff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.tariff-card { display: grid; align-content: start; gap: 8px; padding: 19px 20px; }
.tariff-card h2 { margin-bottom: 2px; }
.tariff-card p { margin: 2px 0 8px; font-size: 14px; }
.tariff-card .price { display: flex; align-items: baseline; gap: 6px; margin: 2px 0; }
.tariff-card .price strong { font-size: 28px; line-height: 1; }
.tariff-card .price span { color: var(--muted); font-size: 13px; }
.tariff-card .button { margin-top: auto; }
.metric-card { border-radius: 19px; padding: 20px; box-shadow: none; }
.metric-card small, .metric-card span { display: block; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; font-size: 24px; margin: 8px 0 5px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { padding: 24px; border-radius: var(--radius); box-shadow: none; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-heading h2 { margin: 0; }
.form-panel { max-width: 740px; }
.profile-panel { display: grid; gap: 28px; }
.profile-section { min-width: 0; }
.profile-section-heading { margin-bottom: 18px; }
.profile-section-heading h2 { margin: 0; }
.profile-data-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-data-heading .button { min-width: 180px; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.profile-divider { height: 1px; background: var(--line); }
.empty-state { min-height: 130px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; padding: 20px; }
.empty-state > span { font-size: 28px; color: var(--primary); }
.empty-state p { margin: 8px 0 0; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 13px; border: 1px solid transparent; cursor: pointer; font-weight: 740; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button-primary { color: white; background: linear-gradient(135deg, var(--primary), #665be8); box-shadow: 0 10px 28px rgba(104,91,232,.22); }
.button-secondary { color: var(--text); background: rgba(255,255,255,.045); border-color: var(--line); }
.button-ghost { color: var(--muted); border-color: var(--line); background: transparent; }
.button-telegram { color: white; background: #259bd8; }
.button-danger { color: white; background: rgba(255,100,124,.8); }
.button-wide { width: 100%; }
.button-small { min-height: 34px; padding: 7px 11px; border-radius: 10px; font-size: 12px; white-space: nowrap; }
.secret-row { display: flex; gap: 10px; }
.secret-row.vertical { flex-direction: column; }
.secret-row input { flex: 1; min-width: 0; }
.connection-warning { color: var(--text); font-weight: 700; }
.field-note { margin: 12px 0 0; font-size: 12px; }
.field-note .status-pill { margin-right: 6px; vertical-align: middle; }
.support-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.support-strip h2 { margin-bottom: 6px; }
.support-strip p { margin-bottom: 0; }
.support-strip .button { flex: 0 0 auto; }
.checkout-card { width: min(620px, 100%); margin: 0 auto; padding: clamp(22px, 4vw, 32px); }
.checkout-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.checkout-summary small, .checkout-price small { display: block; margin-bottom: 6px; color: var(--muted); }
.checkout-summary h2 { margin: 0; font-size: 24px; }
.checkout-price { text-align: right; }
.checkout-price strong { font-size: 30px; white-space: nowrap; }
.checkout-details { display: grid; gap: 0; margin: 18px 0; }
.checkout-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checkout-details dt { color: var(--muted); }
.checkout-details dd { margin: 0; font-weight: 700; }
.checkout-notice { margin: 0 0 18px; }
.stack-form { display: grid; gap: 17px; }
.auth-options { display: grid; gap: 10px; }
.telegram-login-form { margin: 0; }
.signup-button { margin-top: 10px; }
.field { display: grid; gap: 7px; color: var(--text); font-weight: 650; font-size: 13px; }
.field small { color: var(--muted); font-weight: 450; }
.password-input-wrap { position: relative; }
.password-input-wrap input { width: 100%; padding-right: 92px; }
.password-visibility { position: absolute; top: 50%; right: 9px; min-width: 72px; padding: 7px 9px; border: 0; border-radius: 9px; color: var(--primary-strong); background: rgba(129,117,255,.1); font: inherit; font-size: 11px; font-weight: 720; cursor: pointer; transform: translateY(-50%); }
.password-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.password-tools button { padding: 0; border: 0; color: var(--primary-strong); background: transparent; font: inherit; font-size: 12px; font-weight: 720; cursor: pointer; }
.checkbox-row { display: flex; align-items: flex-start; gap: 11px; color: var(--text); cursor: pointer; }
.checkbox-row input { flex: 0 0 auto; margin-top: 3px; }
.checkbox-row span { display: grid; gap: 3px; }
.checkbox-row small { color: var(--muted); font-weight: 450; }
.field-error, .errorlist { color: #ff8799 !important; }
.errorlist { list-style: none; padding: 10px 12px; margin: 0 0 12px; border-radius: 12px; background: rgba(255,100,124,.08); font-size: 13px; }
input, select, textarea { width: 100%; color: var(--text); background: rgba(5,8,14,.72); border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, select:focus, textarea:focus { border-color: rgba(129,117,255,.7); box-shadow: 0 0 0 3px rgba(129,117,255,.12); }
input[type="checkbox"] { width: 19px; height: 19px; padding: 0; accent-color: var(--primary); }
input:disabled { color: var(--muted); }
textarea { resize: vertical; }
.entrance-shell { min-height: 100vh; width: min(480px, calc(100% - 32px)); margin: 0 auto; display: grid; align-content: center; gap: 22px; padding: 42px 0; position: relative; z-index: 1; }
.entrance-brand { justify-self: center; font-size: 24px; }
.auth-card { padding: clamp(25px, 6vw, 38px); border-radius: 27px; }
.auth-heading { text-align: center; margin-bottom: 26px; }
.auth-heading h1 { font-size: clamp(30px, 8vw, 42px); margin-bottom: 12px; }
.auth-heading p { margin-bottom: 0; }
.auth-note { margin: 20px 0 0; text-align: center; font-size: 13px; }
.auth-note a { color: var(--primary-strong); }
.invite-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-bottom: 18px; }
.invite-copy { min-width: 0; }
.invite-qr { display: grid; justify-items: center; gap: 8px; padding: 10px; border: 0; border-radius: 18px; background: #fff; color: #33384a; cursor: zoom-in; line-height: 1.2; box-shadow: 0 12px 36px rgba(0,0,0,.2); }
.invite-qr img { display: block; width: 180px; height: 180px; }
.invite-qr span { font-size: 11px; font-weight: 700; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.message-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.message { padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-strong); font-size: 13px; }
.message.success { color: var(--mint); border-color: rgba(67,230,180,.22); }
.settings-list { display: grid; gap: 14px; }
.section-heading { margin: 34px 0 16px; }
.section-heading h2 { margin: 5px 0 0; }
.setting-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding: 20px; border-radius: 18px; box-shadow: none; }
.setting-card h2, .setting-card p { margin-bottom: 3px; }
.setting-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: rgba(129,117,255,.12); color: var(--primary-strong); font-size: 21px; font-weight: 800; }
.notice { margin-top: 18px; padding: 17px 19px; border: 1px solid rgba(247,198,95,.18); border-radius: 16px; background: rgba(247,198,95,.055); }
.notice.compact { margin: 0 0 20px; }
.notice p { margin: 4px 0 0; }
.development-notice { border-color: rgba(67,230,180,.2); background: rgba(67,230,180,.055); }
.development-notice strong { color: var(--mint); }
.table-status, .reward-state { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; font-size: 12px; font-weight: 700; }
.table-status.success, .reward-state.success { color: var(--mint); border-color: rgba(67,230,180,.22); background: rgba(67,230,180,.07); }
.table-status.muted, .reward-state.muted { color: var(--muted); }
.reward-state.waiting { color: var(--warning); border-color: rgba(247,198,95,.22); background: rgba(247,198,95,.06); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.modal-dialog { width: min(440px, calc(100% - 28px)); max-width: none; padding: 0; border: 0; color: var(--text); background: transparent; overflow: visible; }
.modal-dialog::backdrop { background: rgba(2,5,10,.76); backdrop-filter: blur(8px); }
.modal-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, #171c2b, #0f131e); box-shadow: 0 30px 100px rgba(0,0,0,.58); text-align: center; }
.modal-card h2 { margin-bottom: 8px; }
.modal-card p { margin-bottom: 22px; }
.modal-close { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.035); cursor: pointer; font-size: 22px; line-height: 1; }
.modal-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 16px; color: var(--danger); background: rgba(255,100,124,.1); font-size: 24px; }
.modal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.modal-actions form, .modal-actions .button { width: 100%; margin: 0; }
.password-dialog { width: min(560px, calc(100% - 28px)); }
.password-modal-card { text-align: left; }
.password-modal-card > h2, .password-modal-card > p { text-align: center; }
.password-modal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.password-modal-actions .button { width: 100%; }
.passkey-panel { max-width: 820px; }
.passkey-actions { margin: 0; flex-wrap: nowrap; }
.qr-dialog { width: min(760px, calc(100% - 24px)); }
.qr-modal-card img { display: block; width: min(66vmin, 580px); height: min(66vmin, 580px); max-width: 100%; margin: 0 auto; padding: 14px; border-radius: 20px; background: #fff; }
.action-row { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.terms-list { display: grid; gap: 9px; margin: 0; }
.terms-list > div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.terms-list dt { color: var(--muted); }
.terms-list dd { margin: 0; text-align: right; font-weight: 700; }
.terms-text { margin-top: 18px; font-size: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: var(--muted); font-weight: 600; }
.money.positive { color: var(--mint); }
.balance-callout { font-size: 18px; }
.ticket-list { display: grid; }
.ticket-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.ticket-row > div { display: grid; gap: 5px; }
.ticket-row > div:last-child { justify-items: end; }
.ticket-row small { color: var(--muted); }
.ticket-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .45fr) auto auto; align-items: end; gap: 12px; }
.ticket-admin-list-panel { margin-top: 18px; }
.staff-ticket-row > div:first-child { min-width: 0; }
.staff-ticket-row strong, .staff-ticket-row small { overflow-wrap: anywhere; }
.staff-ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 18px; }
.staff-ticket-conversation { min-width: 0; }
.ticket-management-card { position: sticky; top: 24px; }
.ticket-customer-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.ticket-customer-card div { display: grid; gap: 5px; min-width: 0; }
.ticket-customer-card small { color: var(--muted); }
.ticket-customer-card strong { overflow-wrap: anywhere; }
.conversation { display: grid; gap: 12px; margin-bottom: 18px; }
.bubble { max-width: min(720px, 88%); padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.bubble.mine { justify-self: end; border-bottom-right-radius: 5px; background: rgba(129,117,255,.11); }
.bubble.support { border-bottom-left-radius: 5px; }
.bubble.customer { border-bottom-left-radius: 5px; }
.bubble.internal { border-color: rgba(255,199,92,.3); background: rgba(255,199,92,.07); }
.bubble-meta { display: flex; gap: 16px; justify-content: space-between; color: var(--muted); font-size: 11px; }
.bubble p { margin: 9px 0 0; color: var(--text); }
.attachment-picker { display: grid; gap: 10px; }
.attachment-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
.attachment-dropzone { display: grid; justify-items: start; gap: 6px; padding: 16px; border: 1px dashed var(--line); border-radius: 15px; background: rgba(255,255,255,.018); transition: border-color .15s ease, background .15s ease; }
.attachment-dropzone.is-dragover { border-color: var(--primary-strong); background: rgba(129,117,255,.08); }
.attachment-dropzone p, .attachment-dropzone small { margin: 0; }
.attachment-dropzone p { color: var(--text); font-size: 13px; }
.attachment-dropzone small { color: var(--muted); }
.attachment-client-error { margin: 0; color: #ff8799; font-size: 12px; }
.attachment-selection { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.attachment-selection li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.attachment-selection li > span { display: grid; gap: 2px; min-width: 0; }
.attachment-selection strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.attachment-selection small { color: var(--muted); font-size: 10px; }
.attachment-selection button { padding: 4px; border: 0; color: #ff8799; background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.message-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.message-attachment { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5,8,14,.42); }
.message-attachment > span:not(.attachment-file-icon) { min-width: 0; display: grid; gap: 3px; }
.message-attachment strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.message-attachment small { color: var(--muted); font-size: 10px; }
.image-attachment img { width: 54px; height: 54px; flex: 0 0 54px; object-fit: cover; border-radius: 8px; background: var(--surface); }
.attachment-file-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 9px; color: var(--primary-strong); background: rgba(129,117,255,.1); }
.status-new, .status-waiting_support { color: var(--warning); border-color: rgba(255,199,92,.25); }
.status-waiting_user { color: var(--primary-strong); border-color: rgba(129,117,255,.28); }
.status-resolved { color: var(--mint); border-color: rgba(67,230,180,.24); }
.status-closed { color: var(--muted); }
@media (max-width: 1100px) {
  .content-grid { grid-template-columns: 1fr; }
  .staff-ticket-layout { grid-template-columns: 1fr; }
  .ticket-management-card { position: static; }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { padding: 20px 16px 96px; }
  .mobile-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 20; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: rgba(14,18,28,.94); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
  .mobile-nav a { display: grid; place-items: center; gap: 1px; color: var(--muted); padding: 4px; }
  .mobile-nav a.active { color: var(--primary-strong); }
  .mobile-nav span { font-size: 20px; line-height: 1; }
  .mobile-nav small { font-size: 9px; }
  .metric-grid, .metric-grid-two, .content-grid { grid-template-columns: 1fr; }
  .tariff-grid { grid-template-columns: 1fr; }
  .profile-fields { grid-template-columns: 1fr; }
  .hero-card { min-height: 200px; }
  .orb { width: 88px; height: 88px; flex-basis: 88px; border-radius: 28px; }
  .orb img { width: 58px; height: 58px; }
  .setting-card { grid-template-columns: auto 1fr; }
  .setting-card > .button, .setting-card > .status-pill { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 520px) {
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading > .button { width: 100%; }
  .hero-card { align-items: flex-start; }
  .orb { display: none; }
  .secret-row { flex-direction: column; }
  .hero-subscription-actions .button { width: 100%; }
  .support-strip { align-items: stretch; flex-direction: column; }
  .invite-panel { grid-template-columns: 1fr; }
  .invite-qr { justify-self: center; }
  .profile-data-heading { align-items: stretch; flex-direction: column; }
  .profile-data-heading .button { width: 100%; }
  .modal-card { padding: 26px 20px 20px; }
  .modal-actions { grid-template-columns: 1fr; }
  .password-modal-actions { grid-template-columns: 1fr; }
  .ticket-row { flex-direction: column; }
  .ticket-row > div:last-child { justify-items: start; }
  .ticket-filters { grid-template-columns: 1fr; }
  .ticket-customer-card { grid-template-columns: 1fr; }
  .message-attachments { grid-template-columns: 1fr; }
  .terms-list > div { display: grid; gap: 3px; }
  .terms-list dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
