:root {
  --ink: #111111;
  --muted: #777777;
  --soft: #f3f3f3;
  --line: #e6e6e6;
  --paper: #ffffff;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max: 1180px;
  --shadow: 0 18px 45px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .wallet-balance, .brand-name { font-family: Manrope, Arial, sans-serif; letter-spacing: -.06em; }
.app-shell { min-height: 100vh; padding-bottom: 112px; }
.topbar { width: min(var(--max), calc(100% - 40px)); height: 78px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.avatar-button, .history-button, .icon-button, .modal-close { border: 0; background: var(--soft); color: var(--ink); border-radius: 50%; display: grid; place-items: center; }
.avatar-button, .history-button { width: 40px; height: 40px; font-weight: 800; }
.avatar-button { justify-self: start; background: var(--ink); color: white; }
.history-button { justify-self: end; font-size: 22px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: Manrope, Arial, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -.06em; }
.brand-mark { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 10px 10px 10px 3px; background: var(--ink); color: white; font: 800 20px Manrope, sans-serif; }
.brand-mark.small { width: 24px; height: 24px; border-radius: 8px 8px 8px 2px; font-size: 16px; vertical-align: middle; margin-right: 7px; }
.main-content { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.dashboard-head { padding: 20px 0 24px; }
.date-line { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.dashboard-head h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1; }
.dashboard-head p { margin-top: 9px; color: var(--muted); font-size: 13px; }
.wallet-card { color: white; background: var(--ink); border-radius: var(--radius-lg); padding: 24px; min-height: 182px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); }
.wallet-top, .wallet-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wallet-label { color: rgba(255,255,255,.64); font-size: 10px; letter-spacing: .12em; font-weight: 800; }
.wallet-balance { display: block; font-size: clamp(32px, 7vw, 52px); line-height: 1; margin-top: 10px; }
.refresh-button { width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: white; border-radius: 50%; }
.wallet-note { color: rgba(255,255,255,.68); font-size: 12px; }
.button { border: 0; border-radius: 999px; min-height: 42px; padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 12px; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-light { background: white; color: var(--ink); }
.button-outline { background: white; color: var(--ink); border: 1px solid var(--ink); }
.wallet-card .button-light { color: var(--ink); }
.section { padding: 38px 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { font-size: 26px; }
.section-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.text-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; padding: 8px 0; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.service-card { border: 1px solid var(--line); background: white; border-radius: var(--radius-md); min-height: 138px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; transition: .2s; }
.service-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.service-card.is-disabled { color: var(--muted); background: #fafafa; }
.service-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); font: 800 18px Manrope, sans-serif; }
.service-title { font-size: 14px; line-height: 1.05; }
.service-status { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.empty-state { border: 1px dashed #d7d7d7; border-radius: var(--radius-md); padding: 22px; color: var(--muted); font-size: 13px; line-height: 1.5; background: #fcfcfc; }
.empty-state strong { color: var(--ink); display: block; margin-bottom: 5px; }
.transaction-list { display: grid; gap: 10px; }
.transaction-row { border: 1px solid var(--line); border-radius: 16px; padding: 15px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.transaction-row strong { display: block; font-size: 13px; }
.transaction-row span { color: var(--muted); font-size: 11px; }
.status-pill { border-radius: 999px; padding: 5px 8px; background: var(--soft); color: var(--ink); font-size: 10px; font-weight: 800; align-self: start; }
.site-footer { width: min(var(--max), calc(100% - 40px)); margin: 56px auto 0; padding: 28px 0 120px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; }
.site-footer strong { color: var(--ink); }
.site-footer p { margin-top: 9px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 15px; }
.footer-links a:hover { color: var(--ink); }
.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(470px, calc(100% - 28px)); padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 14px 40px rgba(0,0,0,.14); backdrop-filter: blur(18px); }
.bottom-nav-item { border: 0; background: transparent; color: var(--muted); border-radius: 15px; padding: 8px 3px; display: grid; gap: 3px; place-items: center; font-size: 10px; font-weight: 800; }
.bottom-nav-item span:first-child { font-size: 18px; line-height: 18px; }
.bottom-nav-item.active { color: white; background: var(--ink); }
.drawer-backdrop, .modal-layer { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.32); opacity: 0; pointer-events: none; transition: opacity .2s; backdrop-filter: blur(3px); }
.side-drawer { position: fixed; z-index: 31; inset: 0 auto 0 0; width: min(350px, 88vw); background: white; padding: 26px; transform: translateX(-103%); transition: transform .25s; box-shadow: 15px 0 45px rgba(0,0,0,.12); }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-open .side-drawer { transform: translateX(0); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-label, .modal-kicker { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.drawer-brand { margin-top: 42px; display: flex; align-items: center; gap: 9px; font: 800 22px Manrope, sans-serif; }
.drawer-links { display: grid; gap: 7px; margin-top: 40px; }
.drawer-links button { border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; background: transparent; text-align: left; color: var(--ink); font-weight: 800; display: flex; gap: 12px; align-items: center; }
.drawer-links button span { width: 27px; height: 27px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.drawer-footer { position: absolute; bottom: 28px; color: var(--muted); font-size: 12px; }
.modal-layer { z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.48); }
.modal-layer.is-open { opacity: 1; pointer-events: auto; }
.modal { position: relative; width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 26px; padding: 28px; background: white; box-shadow: 0 25px 80px rgba(0,0,0,.22); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; font-size: 21px; }
.modal h2 { font-size: 30px; margin: 12px 0 8px; }
.modal-intro { color: var(--muted); font-size: 13px; line-height: 1.5; padding-right: 28px; }
.modal-form { display: grid; gap: 14px; margin-top: 22px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--muted); font-size: 11px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: #fafafa; color: var(--ink); padding: 12px 13px; outline: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.modal-actions .button { flex: 1; }
.modal-quiet { color: var(--muted); text-align: center; font-size: 11px; line-height: 1.5; margin-top: 13px; }
.receipt, .admin-card { border: 1px solid var(--line); border-radius: 17px; padding: 17px; background: #fafafa; margin-top: 20px; }
.receipt-rows, .admin-list { display: grid; gap: 12px; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.receipt-row strong { color: var(--ink); text-align: right; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: white; }
.metric span { color: var(--muted); font-size: 10px; display: block; }
.metric strong { display: block; font: 800 24px Manrope, sans-serif; margin-top: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 10px; }
.admin-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 15px 0; }
.admin-filter { min-height: 40px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); padding: 9px 12px; font-size: 12px; }
.notice { padding: 12px 14px; border-radius: 13px; background: var(--soft); color: var(--muted); font-size: 12px; line-height: 1.5; }
.legal-page { max-width: 820px; padding: 35px 0 20px; }
.legal-page h1 { font-size: clamp(34px, 7vw, 58px); line-height: .98; margin-bottom: 16px; }
.legal-page h2 { font-size: 21px; margin: 28px 0 9px; }
.legal-page p, .legal-page li { color: #555; font-size: 14px; line-height: 1.7; }
.legal-page ul { padding-left: 20px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 95px; transform: translate(-50%, 18px); width: min(390px, calc(100% - 30px)); padding: 13px 16px; background: var(--ink); color: white; border-radius: 14px; opacity: 0; pointer-events: none; transition: .2s; text-align: center; font-size: 12px; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 800px) { .service-grid { grid-template-columns: repeat(2, 1fr); } .admin-grid { grid-template-columns: repeat(2, 1fr); } .wallet-card { min-height: 170px; } }
@media (max-width: 560px) { .topbar, .main-content, .site-footer { width: min(100% - 28px, var(--max)); } .service-grid { gap: 9px; } .service-card { min-height: 130px; padding: 13px; } .site-footer { display: grid; padding-bottom: 120px; } .footer-links { justify-content: start; } .admin-table { display: block; overflow-x: auto; white-space: nowrap; } }

/* Requested service illustration palette and profile/pricing controls. */
.service-icon svg { width: 25px; height: 25px; }
.service-icon.icon-peach { background: #FAD9B3; }
.service-icon.icon-blue { background: #AECBFF; }
.service-icon.icon-pink { background: #F8ADCB; }
.service-icon.icon-purple { background: #EBB3F8; }
.service-icon.icon-mint { background: #BFE8D4; }
.service-icon.icon-yellow { background: #F7E39B; }
.service-title { font-weight: 800; }
.avatar-image { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
[data-avatar] { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; border-radius: inherit; }
.profile-page { max-width: 760px; padding: 34px 0 50px; }
.profile-hero { display: flex; align-items: center; gap: 18px; margin: 28px 0 32px; }
.profile-hero h1 { font-size: clamp(32px, 7vw, 58px); line-height: .95; }
.profile-hero p { color: var(--muted); margin-top: 7px; font-size: 13px; }
.profile-avatar-large { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: white; font: 800 34px Manrope, sans-serif; flex: 0 0 auto; }
.profile-picture-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.profile-danger { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.45; }
.funding-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fafafa; color: var(--muted); font-size: 12px; }
.funding-summary strong { grid-column: 1 / -1; color: var(--ink); font-size: 16px; padding-top: 5px; border-top: 1px solid var(--line); }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.price-management { border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: #fafafa; }
.price-toolbar { margin-top: 20px; }
.price-table th span, .price-table td span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.inline-price { display: flex; gap: 5px; align-items: center; min-width: 145px; }
.admin-price-input { width: 100px; min-height: 35px; border: 1px solid var(--line); border-radius: 9px; padding: 7px; background: white; color: var(--ink); }
.profit-negative { color: #c62828; font-weight: 800; }
.toggle { border: 1px solid var(--line); border-radius: 999px; min-width: 48px; padding: 5px 9px; background: white; color: var(--muted); font-size: 10px; font-weight: 800; }
.toggle.on { background: var(--ink); color: white; border-color: var(--ink); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px 0; color: var(--muted); font-size: 11px; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.receipt-details { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.receipt-details h3 { font-size: 13px; margin-bottom: 10px; }
.receipt-detail-row { position: relative; align-items: center; }
.receipt-detail-row strong { max-width: 62%; overflow-wrap: anywhere; }
.receipt-detail-row .copy-token { color: var(--ink); margin-left: auto; padding-left: 6px; }
@media (max-width: 560px) { .profile-picture-actions { justify-content: stretch; } .profile-picture-actions .button { flex: 1; } .admin-head { align-items: flex-start; } .admin-head .button { flex: 0 0 auto; } .funding-summary { grid-template-columns: 1fr; } .funding-summary strong { grid-column: auto; } }
