[hidden] { display: none !important; }
button:disabled { cursor: not-allowed; opacity: .58; transform: none !important; box-shadow: none; }
.header-demo-badge { color: #94909e; font-size: 11px; letter-spacing: .04em; }
.topbar .user-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-badge { background: #ed785e; color: #fff; border-radius: 20px; font-size: 9px; min-width: 17px; height: 17px; display: inline-grid; place-items: center; }
.signed-out #app { padding-top: 36px; padding-bottom: 60px; }
.signed-out .topbar { border-bottom: 1px solid #eae7ed; }
.auth-layout { display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 8%; align-items: center; min-height: calc(100vh - 236px); max-width: 1090px; margin: 0 auto; }
.auth-story { padding: 10px 0 20px; }
.auth-story .eyebrow { font-size: 12px; letter-spacing: .06em; margin-bottom: 23px; }
.auth-story h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.4; letter-spacing: -.05em; margin-bottom: 20px; }
.auth-story h1 span { color: var(--purple); }
.auth-story > p { font-size: 14px; line-height: 1.9; color: #97929e; }
.auth-art { position: relative; height: 228px; margin: 12px 0 10px; max-width: 440px; }
.orbit { border: 1px dashed #d7ceea; border-radius: 50%; position: absolute; }
.orbit-one { width: 260px; height: 180px; top: 8px; left: 65px; transform: rotate(-22deg); }
.orbit-two { width: 335px; height: 230px; top: -8px; left: 28px; transform: rotate(-22deg); border-color: #e6e0ee; }
.orbit-avatar { position: absolute; display: grid; place-items: center; width: 49px; height: 49px; border: 5px solid #fff; border-radius: 18px; box-shadow: 0 8px 20px #62538b12; font-size: 19px; font-weight: 800; }
.orbit-avatar.one { left: 47px; top: 10px; background: #ffe9ce; color: #b58549; transform: rotate(-12deg); }
.orbit-avatar.two { right: 44px; top: 18px; background: #ffdfeb; color: #c5738e; transform: rotate(12deg); }
.orbit-avatar.three { right: 8px; bottom: 13px; background: #e6e1fd; color: #8066c5; transform: rotate(-7deg); }
.art-spark { position: absolute; left: 24px; bottom: 19px; color: #b9a8e6; font-size: 24px; }
.floating-note,.floating-order { position: absolute; display: flex; align-items: center; gap: 10px; padding: 17px 19px; background: #fff; border: 1px solid #f0ebf5; box-shadow: 0 14px 30px #57506e09; border-radius: 16px; }
.floating-note { top: 60px; left: 37px; transform: rotate(-4deg); }
.floating-order { top: 140px; right: 28px; transform: rotate(3deg); }
.floating-note strong,.floating-order strong { display: block; font-size: 12px; margin-bottom: 4px; }
.floating-note small,.floating-order small { font-size: 10px; color: #a39bab; }
.floating-order > span:last-child { margin-left: 12px; color: #b79deb; font-size: 19px; }
.note-check { width: 32px; height: 32px; border-radius: 50%; color: var(--mint); background: var(--mint-pale); display: grid; place-items: center; }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 18px; color: #96909f; font-size: 11px; margin-top: 24px; }
.auth-card { padding: 30px 30px 24px; border-radius: 24px; background: #fff; border: 1px solid #ede9f0; box-shadow: 0 14px 60px #54456d07; }
.demo-label { display: inline-block; font-size: 10px; padding: 5px 8px; border-radius: 7px; color: #9681bf; background: #f7f3fc; margin-bottom: 16px; }
.auth-card h2 { font-size: 22px; letter-spacing: -.04em; margin: 0 0 8px; }
.auth-subtitle { color: #9993a2; font-size: 12px; margin-bottom: 23px; line-height: 1.6; }
.auth-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 11px; background: #f5f3f8; margin-bottom: 21px; }
.auth-tabs button { flex: 1; padding: 10px 8px; border: 0; background: transparent; color: #a198ac; border-radius: 8px; font-size: 12px; font-weight: 600; }
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 7px #38205509; }
.wechat-mark { color: #25a268; font-size: 12px; margin-right: 3px; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 8px; font-size: 12px; color: #71697d; font-weight: 600; }
.auth-form input { height: 45px; width: 100%; border: 1px solid #e9e5ee; border-radius: 11px; padding: 0 12px; color: var(--ink); font-size: 13px; background: #fefeff; min-width: 0; }
.auth-form input::placeholder { color: #bdb6c4; font-size: 11px; font-weight: 400; }
.password-field { position: relative; display: flex; }
.password-field input { padding-right: 54px; }
.password-field button { position: absolute; right: 9px; top: 9px; height: 27px; padding: 0 7px; background: transparent; border: 0; color: #9d92ab; font-size: 11px; }
.auth-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 45px; font-size: 13px; margin-top: -3px; }
.auth-submit > span { font-size: 17px; font-weight: 400; }
.inline-error { color: #c65c70; font-size: 12px; line-height: 1.6; margin: 0; }
.inline-error:empty { display: none; }
.auth-switch { margin: 19px 0; text-align: center; color: #9e97a7; font-size: 12px; }
.auth-switch button { border: 0; background: transparent; color: var(--purple); font-size: inherit; font-weight: 600; padding: 4px; }
.auth-demo { display: grid; gap: 8px; border-top: 1px solid #f0ecf4; padding-top: 17px; text-align: center; }
.auth-demo > span { color: #b3aabc; font-size: 10px; }
.auth-demo button { border: 0; border-radius: 10px; padding: 10px 12px; color: #8066a9; background: #f7f3fc; font-size: 12px; font-weight: 600; }
.auth-disclaimer { margin: 14px 0 0; font-size: 10px; line-height: 1.75; color: #b2aab9; }
.wechat-button { display: block; width: 100%; padding: 12px; font-size: 12px; font-weight: 700; color: #32875f; border: 1px solid #dceee3; background: #f7fcf9; border-radius: 11px; margin-top: 15px; }
.wechat-button.filled { background: #29a16b; color: #fff; border: 0; margin-top: 8px; }
.wechat-flow { text-align: center; }
.qr-frame { width: 206px; height: 206px; display: grid; place-items: center; position: relative; margin: 0 auto 12px; padding: 14px; background: #fff; border: 1px solid #e7eee9; border-radius: 16px; overflow: hidden; }
.qr-frame img { display: block; width: 176px; height: 176px; }
.qr-demo-badge { position: absolute; bottom: 0; left: 0; right: 0; background: #eef7f2; color: #6c9a81; font-size: 9px; padding: 2px; }
.qr-inactive img { opacity: .09; filter: blur(2px); }
.qr-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; }
.qr-status-icon { color: #31a473; background: #e5f5ed; width: 41px; height: 41px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; margin-bottom: 3px; }
.qr-overlay strong { font-size: 14px; }
.qr-overlay small { font-size: 11px; color: #8c9d94; }
.qr-instruction { color: #8b8395; font-size: 11px; margin: 10px 0 5px; }
.qr-expiry { font-size: 10px; color: #a7a0af; min-height: 14px; margin: 0 0 12px; }
.text-button { border: 0; background: transparent; color: #8c7aab; font-size: 12px; padding: 7px; white-space: nowrap; }
.wechat-flow .text-button { margin-top: 7px; }
.social-demo-note { padding: 13px 16px; border: 1px solid #eae3f6; border-radius: 13px; background: #f4f0fb; display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.social-demo-note > span { font-size: 10px; font-weight: 700; color: #9174b6; border: 1px solid #ded2ee; border-radius: 6px; padding: 4px 6px; white-space: nowrap; }
.social-demo-note p { font-size: 11px; color: #94869f; line-height: 1.6; margin: 0; }
.social-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px, .85fr); gap: 20px; align-items: start; }
.social-aside { display: grid; gap: 18px; }
.inline-count { color: #a198af; background: #f4f0f8; font-size: 10px; border-radius: 7px; padding: 3px 7px; margin-left: 5px; vertical-align: 1px; }
.inline-count.highlight { color: #cc785e; background: #fdf0e7; }
.contact-search { display: flex; align-items: center; gap: 8px; border: 1px solid #ece7f1; background: #fdfcfe; border-radius: 11px; padding: 0 12px; min-height: 41px; color: #ab9dbb; margin-bottom: 15px; }
.contact-search input { min-width: 0; width: 100%; height: 39px; background: transparent; border: 0; color: var(--ink); font-size: 12px; outline: 0; }
.contact-search input::placeholder { color: #b0a6bb; }
.contact-search:focus-within { outline: 3px solid #7055e820; }
.contact-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.contact-card { border: 1px solid #ede8f2; border-radius: 14px; padding: 15px; background: #fff; min-width: 0; }
.person-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person-line > span:not(.contact-avatar) { min-width: 0; flex: 1; }
.person-line strong { font-size: 13px; font-weight: 700; display: block; overflow-wrap: anywhere; }
.person-line strong em { font-style: normal; color: #b1a6be; background: #f7f4fb; font-size: 8px; padding: 2px 4px; border-radius: 4px; margin-left: 5px; vertical-align: 1px; }
.person-line small { display: block; margin-top: 4px; font-size: 10px; color: #aba0b8; }
.person-line > .text-button { margin-left: auto; padding: 4px 0 4px 4px; font-size: 10px; }
.contact-avatar { display: grid; place-items: center; flex: 0 0 40px; height: 40px; width: 40px; border-radius: 14px; font-size: 16px; font-weight: 700; background: #eee8fe; color: #8964c3; }
.contact-avatar.orange { color: #ba884b; background: #fff0d8; }
.contact-avatar.pink { color: #c16e91; background: #fde5f0; }
.contact-avatar.blue { color: #6991b8; background: #e7f2ff; }
.contact-games { color: #a598b1; font-size: 10px; border-top: 1px solid #f4f0f7; padding-top: 12px; margin: 13px 0 0; line-height: 1.7; }
.social-empty { grid-column: 1 / -1; text-align: center; padding: 46px 14px; color: #a599b2; }
.social-empty > span { font-size: 32px; color: #b29bcd; display: block; margin-bottom: 15px; }
.social-empty > strong { display: block; font-size: 13px; color: #7c6f8b; }
.social-empty > p { font-size: 11px; line-height: 1.8; margin: 9px 0 13px; }
.social-empty.compact { padding: 16px 8px; }
.friend-request { border-top: 1px solid #f0eaf6; padding: 17px 0; }
.friend-request:first-child { border-top: 0; padding-top: 2px; }
.request-message { font-size: 11px; line-height: 1.7; color: #a293b0; background: #f9f6fc; padding: 10px 12px; border-radius: 10px; margin: 12px 0; overflow-wrap: anywhere; }
.request-buttons { display: flex; gap: 8px; justify-content: flex-end; }
.request-buttons .primary-btn,.request-buttons .secondary-btn { padding: 9px 13px; font-size: 11px; }
.mock-trigger { margin-top: 12px; width: 100%; background: #f8f5fc; border-radius: 10px; padding: 10px; font-size: 10px; }
.outgoing-request { padding: 12px 0; border-top: 1px solid #f1ebf6; }
.outgoing-request:first-child { padding-top: 0; border-top: 0; }
.outgoing-actions { display: flex; align-items: center; gap: 4px; margin-top: 10px; justify-content: flex-end; }
.outgoing-actions button { font-size: 10px; }
.muted-empty { color: #a79aaf; font-size: 11px; margin: 10px 0; line-height: 1.8; }
.member-modal { width: min(100%,480px); }
.member-modal .modal-head { align-items: center; }
.member-modal .modal-head p { line-height: 1.7; margin-top: 5px; }
.message-label { display: grid; gap: 8px; font-size: 11px; color: #9b8aa7; margin: 10px 0 17px; }
.message-label input { width: 100%; min-width: 0; border: 1px solid #eae3f0; border-radius: 10px; height: 39px; padding: 0 11px; font-size: 12px; }
.directory-results { display: grid; gap: 7px; max-height: 295px; overflow: auto; }
.directory-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f4eff8; }
.directory-row .person-line { flex: 1; min-width: 0; }
.directory-row .soft-btn { flex: 0 0 auto; font-size: 10px; padding: 8px 10px; }
.member-note { color: #a397af; font-size: 11px; line-height: 1.85; margin: 14px 0 0; overflow-wrap: anywhere; }
.profile-summary { text-align: center; padding: 12px 0 18px; }
.profile-summary .contact-avatar { width: 57px; height: 57px; font-size: 23px; margin: 0 auto 14px; border-radius: 19px; }
.profile-summary h3 { font-size: 19px; margin: 0 0 7px; overflow-wrap: anywhere; }
.profile-summary p { font-size: 11px; color: #a798b1; }
.profile-summary .skill-tags { justify-content: center; }
.danger-link { background: transparent; border: 0; color: #c97280; font-size: 12px; margin-right: auto; padding: 10px 2px; }
.order-actions { display: flex; align-items: center; gap: 5px; }
.order-share { border: 0; background: #f5f1fc; color: #a18abb; border-radius: 8px; padding: 6px 7px; font-size: 9px; font-weight: 600; white-space: nowrap; }
.order-row { column-gap: 8px; }
.share-order-preview { display: flex; align-items: center; gap: 13px; padding: 13px; border-radius: 12px; background: #f7f3fc; margin-bottom: 13px; }
.share-order-preview > div { flex: 1; min-width: 0; }
.share-order-preview strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.share-order-preview small { color: #a093ad; display: block; font-size: 10px; margin-top: 5px; }
.share-order-preview b { color: #8262b8; font-size: 16px; }
.recipient-list { max-height: 280px; overflow: auto; }
.recipient-row { display: flex; align-items: center; gap: 11px; padding: 12px 5px; border-bottom: 1px solid #f4eef8; cursor: pointer; }
.recipient-row input { accent-color: var(--purple); width: 16px; height: 16px; flex: 0 0 auto; }
.recipient-row > span:last-of-type { flex: 1; }
.recipient-row strong { font-size: 12px; display: block; }
.recipient-row small { font-size: 10px; color: #af9ebb; display: block; margin-top: 4px; }
.recipient-row em { font-size: 10px; font-style: normal; color: #5fae93; }
.recipient-row.already-sent { cursor: default; opacity: .7; }

@media (max-width: 1060px) {
  .auth-layout { gap: 5%; grid-template-columns: minmax(0,1fr) 385px; }
  .contact-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .topbar { gap: 14px; }
  .brand { min-width: 0; }
  .topbar-end { min-width: 0; }
  .topbar .user-name { display: none; }
  .auth-layout { grid-template-columns: minmax(0,1fr) 350px; gap: 24px; }
  .auth-story h1 { font-size: 35px; }
  .auth-art { transform: scale(.85); transform-origin: left center; }
  .auth-card { padding: 25px 22px; }
  .social-grid { grid-template-columns: minmax(0,1fr) minmax(270px,.8fr); gap: 14px; }
}
@media (max-width: 720px) {
  .auth-layout { display: flex; flex-direction: column; gap: 8px; }
  .auth-story { text-align: center; padding: 0 10px 15px; }
  .auth-story h1 { font-size: 29px; line-height: 1.5; margin-bottom: 0; }
  .auth-story h1 br { display: none; }
  .auth-story .eyebrow { font-size: 10px; margin-bottom: 8px; }
  .auth-story > p, .auth-art, .auth-benefits { display: none; }
  .auth-card { width: min(100%, 450px); }
  .social-grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .signed-out #app { padding-top: 27px; padding-bottom: 36px; }
}
@media (max-width: 640px) {
  .header-demo-badge { font-size: 9px; }
  .signed-out .topbar { padding-bottom: 12px; }
  .auth-story h1 { font-size: 25px; letter-spacing: -.06em; }
  .auth-card { border-radius: 20px; padding: 24px 20px 20px; }
  .auth-card h2 { font-size: 20px; }
  .auth-form input,.contact-search input,.message-label input { font-size: 16px; }
  .auth-form input::placeholder,.contact-search input::placeholder,.message-label input::placeholder { font-size: 12px; }
  .auth-form label { font-size: 12px; }
  .social-demo-note { align-items: flex-start; padding: 12px; gap: 8px; }
  .social-demo-note p { font-size: 10px; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-card { padding: 15px; }
  .person-line strong { font-size: 14px; }
  .person-line small { font-size: 11px; }
  .person-line > .text-button { font-size: 12px; }
  .contact-games { font-size: 11px; }
  .order-row .order-actions { grid-column: 2; grid-row: 2; justify-content: flex-end; }
  .order-row .order-price { padding-right: 0; }
  .order-share { padding: 7px 8px; }
  .member-modal { width: 100%; }
  .member-modal .modal-body { padding-bottom: 24px; }
  .recipient-row { min-height: 61px; }
  .directory-row .soft-btn { min-height: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.admin-nav[hidden] { display:none; }
.auth-demo [data-action="auth-admin-demo"] { color:#9479b3; font-size:11px; }
.admin-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:18px 0 22px; }
.admin-metrics article { padding:18px 20px; border:1px solid #ece7f0; border-radius:16px; background:#fff; }
.admin-metrics span { display:block; color:#8b8291; font-size:12px; }
.admin-metrics strong { display:block; color:#382e40; font-size:26px; margin-top:7px; }
.admin-panel .panel-inner { padding:20px; }
.admin-tabs { display:flex; gap:8px; overflow-x:auto; border-bottom:1px solid #eee9f0; margin:0 0 18px; }
.admin-tabs button { white-space:nowrap; border:0; background:transparent; color:#897f90; padding:12px 15px; font:inherit; cursor:pointer; border-bottom:2px solid transparent; }
.admin-tabs button.active { color:#75569b; border-bottom-color:#9876be; font-weight:650; }
.admin-search { max-width:400px; margin-bottom:16px; }
.admin-table-wrap { overflow-x:auto; }
.admin-table { width:100%; border-collapse:collapse; font-size:13px; }
.admin-table th { text-align:left; color:#918798; font-weight:550; font-size:11px; padding:11px 13px; background:#faf9fb; }
.admin-table td { border-bottom:1px solid #f0edf2; padding:13px; vertical-align:middle; }
.admin-table td strong,.admin-table td small { display:block; }
.admin-table td small { color:#a098a6; font-size:10px; margin-top:4px; }
.admin-status { display:inline-flex; border-radius:99px; padding:4px 9px; font-size:11px; background:#edf7f2; color:#4d9b7b; }
.admin-status.suspended { background:#fbefed; color:#c67669; }
@media(max-width:640px) {
  .admin-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .admin-metrics article { padding:14px; }
  .admin-metrics strong { font-size:22px; }
  .admin-panel .panel-inner { padding:12px; }
  .admin-table thead { display:none; }
  .admin-table,.admin-table tbody,.admin-table tr,.admin-table td { display:block; width:100%; }
  .admin-table tr { border:1px solid #eee9f0; border-radius:13px; padding:8px 12px; margin-bottom:10px; }
  .admin-table td { display:flex; justify-content:space-between; gap:14px; padding:8px 0; border:0; text-align:right; }
  .admin-table td::before { content:attr(data-label); color:#918798; text-align:left; flex:0 0 72px; }
  .admin-table td[colspan] { text-align:left; }
}
