/* Gloya — membership, account, legal, reviews, footer layer */

/* ── Form fields (shared by auth + brand form) ──────────── */
.g-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.g-field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.g-field-wrap { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; transition: border-color .14s, box-shadow .14s; }
.g-field-wrap:focus-within { border-color: var(--accent-ink-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.g-field-wrap.has-err { border-color: oklch(0.6 0.16 25); }
.g-field-input { flex: 1; border: none; outline: none; background: none; padding: 13px 15px; font-size: 15px; color: var(--ink); font-family: var(--font-body); border-radius: 13px; width: 100%; }
.g-field-input::placeholder { color: var(--muted); }
.g-field-wrap .g-field-input { padding: 13px 15px; }
.g-field-area { border: 1px solid var(--border); border-radius: 13px; resize: vertical; min-height: 92px; line-height: 1.5; }
.g-field-area:focus { border-color: var(--accent-ink-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.g-field-eye { font-size: 12.5px; font-weight: 600; color: var(--accent-ink-strong); padding: 0 14px; flex-shrink: 0; }
.g-field-err { font-size: 12.5px; color: oklch(0.55 0.16 25); font-weight: 500; }
.g-field-hint { font-size: 12px; color: var(--muted); }
.g-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-field-prefix { padding-left: 15px; color: var(--muted); font-size: 15px; }
.g-field-ok { padding: 0 14px; display: flex; }

/* ── Profile completion ─────────────────────────────────── */
.g-profile-av-row { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 18px; }
.g-profile-av { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex-shrink: 0; }
.g-profile-av-name { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--ink); }
.g-profile-av-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.g-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; cursor: pointer; }
.g-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.g-check-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; transition: all .14s; }
.g-check input:checked + .g-check-box { background: var(--accent); border-color: var(--accent); }
.g-check-text { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.g-check.has-err .g-check-box { border-color: oklch(0.6 0.16 25); }

/* ── Auth modal ─────────────────────────────────────────── */
.g-auth-wrap { position: absolute; inset: 0; z-index: 80; background: rgba(0,0,0,0.42); display: flex; align-items: flex-end; justify-content: center; animation: g-fade .2s ease; }
.g-auth { width: 100%; max-width: 460px; background: var(--bg); border-radius: 26px 26px 0 0; max-height: 94%; overflow-y: auto; animation: g-slideup .3s cubic-bezier(.2,.8,.2,1); scrollbar-width: none; }
.g-auth::-webkit-scrollbar { display: none; }
.g-auth-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 4px; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.g-auth-back, .g-auth-close { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.g-auth-brand { display: flex; align-items: center; }
.g-auth-body { padding: 8px 24px 30px; }
.g-auth-title { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; margin: 6px 0 0; }
.g-auth-sub { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; margin: 8px 0 20px; text-wrap: pretty; }
.g-auth-link { color: var(--accent-ink-strong); font-weight: 600; font-size: inherit; }
.g-auth-forgot { display: block; font-size: 13px; margin: -4px 0 16px; text-align: right; width: 100%; }
.g-auth-alt { text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.g-auth-fine { font-size: 12px; color: var(--faint); line-height: 1.5; text-align: center; margin-top: 16px; }
.g-auth-illus { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin: 8px auto 18px; }

/* ── Account screen ─────────────────────────────────────── */
.g-acc-guest { text-align: center; padding: 30px 16px 10px; }
.g-acc-guest-mark { width: 60px; height: 60px; border-radius: 18px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.g-acc-guest-title { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 0 0 10px; }
.g-acc-guest-text { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; max-width: 340px; margin: 0 auto 22px; text-wrap: pretty; }
.g-acc-guest-actions { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 0 auto; }

.g-acc-card { display: flex; align-items: center; gap: 15px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.g-acc-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex-shrink: 0; }
.g-acc-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.g-acc-email { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.g-acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.g-acc-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 15px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.g-acc-stat-num { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--ink); }
.g-acc-stat-label { font-size: 12px; color: var(--muted); font-weight: 500; }

.g-acc-empty { font-size: 14px; color: var(--muted); line-height: 1.5; padding: 6px 2px; }
.g-acc-revlist { display: flex; flex-direction: column; gap: 11px; }
.g-acc-rev { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; cursor: pointer; }
.g-acc-rev-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.g-acc-rev-prod { font-size: 14px; font-weight: 600; color: var(--ink); }
.g-acc-rev-stars { display: inline-flex; gap: 1px; color: var(--tone-mid); flex-shrink: 0; }
.g-acc-rev-text { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }

.g-acc-rows { display: flex; flex-direction: column; gap: 9px; }
.g-acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; text-align: left; transition: border-color .14s; }
.g-acc-row:hover { border-color: var(--border-2); }
.g-acc-row-label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.g-acc-row-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.g-acc-logout { width: 100%; margin-top: 26px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; font-size: 15px; color: oklch(0.55 0.16 25); }

/* ── Reviews on product ─────────────────────────────────── */
.g-reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.g-reviews-agg { display: inline-flex; align-items: center; gap: 5px; }
.g-reviews-agg-num { font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: var(--ink); }
.g-reviews-agg-c { font-size: 12.5px; color: var(--muted); margin-left: 3px; }
.g-reviews-write { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.g-reviews-write-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.g-reviews-write-go { margin-left: auto; color: var(--muted); display: flex; }
.g-reviews-form { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.g-reviews-rate { display: flex; gap: 4px; margin-bottom: 12px; }
.g-reviews-star { padding: 2px; }
.g-reviews-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

.g-reviews-list { display: flex; flex-direction: column; gap: 14px; }
.g-rev { padding: 15px 0; border-top: 1px solid var(--border); }
.g-rev:first-child { border-top: none; padding-top: 4px; }
.g-rev-top { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.g-rev-av { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.g-rev-id { flex: 1; min-width: 0; }
.g-rev-name { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.g-rev-verified { font-size: 10.5px; font-weight: 600; color: var(--tone-hi); display: inline-flex; align-items: center; gap: 3px; }
.g-rev-date { font-size: 12px; color: var(--muted); }
.g-rev-stars { display: inline-flex; gap: 1px; color: var(--tone-mid); flex-shrink: 0; }
.g-rev-text { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 0 10px; text-wrap: pretty; }
.g-rev-helpful { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.g-rev-helpful.is-on { color: var(--accent-ink-strong); background: var(--accent-soft); border-color: transparent; }

/* ── Legal pages ────────────────────────────────────────── */
.g-legal-hero { padding: 8px 0 4px; }
.g-legal-title { font-family: var(--font-display); font-size: 28px; font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.g-legal-updated { font-size: 12.5px; color: var(--muted); margin-top: 10px; font-family: var(--font-mono); }
.g-legal-intro { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 18px 0 24px; text-wrap: pretty; }
.g-legal-sections { display: flex; flex-direction: column; gap: 22px; }
.g-legal-sect-h { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 19px; font-weight: 500; margin-bottom: 12px; letter-spacing: -0.01em; }
.g-legal-num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-ink-strong); background: var(--accent-soft); padding: 4px 8px; border-radius: 7px; }
.g-legal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.g-legal-list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.g-legal-contact { display: flex; gap: 11px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 15px 16px; margin-top: 26px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.g-legal-contact-ic { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── Brand objection ────────────────────────────────────── */
.g-brand-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent-ink-strong); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.g-brand-method { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-brand-mcard { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 15px; }
.g-brand-mh { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.g-brand-mt { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.g-brand-steps { display: flex; flex-direction: column; gap: 14px; }
.g-brand-step { display: flex; gap: 14px; align-items: flex-start; }
.g-brand-step-n { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.g-brand-step-h { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.g-brand-step-t { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.g-brand-form { }
.g-brand-upload { display: flex; align-items: center; gap: 9px; padding: 14px 16px; border: 1.5px dashed var(--border-2); border-radius: 13px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; cursor: pointer; }
.g-brand-upload:hover { border-color: var(--accent-ink-strong); color: var(--ink-2); }
.g-brand-sent { text-align: center; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.g-brand-sent-h { font-family: var(--font-display); font-size: 21px; font-weight: 500; }
.g-brand-sent-t { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 8px 0 18px; }

/* ── Social auth ────────────────────────────────────────── */
.g-social { margin-bottom: 18px; }
.g-social-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.g-social-btn { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; transition: border-color .14s, background .14s; }
.g-social-btn:hover { border-color: var(--border-2); background: var(--surface-2); }
.g-social-glyph { display: flex; align-items: center; justify-content: center; height: 22px; color: var(--ink); }
.g-social-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.g-social-div { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--faint); font-size: 12.5px; }
.g-social-div::before, .g-social-div::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.g-social-anon { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.g-social-anon:hover { background: var(--surface-3); }
.g-social-anon-ic { display: flex; }

/* ── Account anon tag ───────────────────────────────────── */
.g-acc-name { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.g-acc-anon-tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--accent-ink-strong); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
.g-acc-handle { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--ink); }

/* ── Privacy / anonymization ────────────────────────────── */
.g-priv-status { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); border-radius: 13px; padding: 13px 15px; font-size: 13.5px; font-weight: 500; color: var(--accent-ink); margin-bottom: 18px; }
.g-priv-list { display: flex; flex-direction: column; gap: 12px; }
.g-priv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.g-priv-card.is-danger { border-color: color-mix(in oklch, oklch(0.6 0.16 25) 35%, var(--border)); }
.g-priv-card-top { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.g-priv-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.g-priv-ic.is-danger { background: oklch(0.95 0.04 25); }
.g-priv-card-h { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.g-priv-card-d { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 14px; text-wrap: pretty; }
.g-priv-act { padding: 10px 18px; border-radius: 11px; background: var(--dark); color: var(--bg); font-size: 14px; font-weight: 600; white-space: nowrap; }
[data-theme="dark"] .g-priv-act { background: var(--ink); }
.g-priv-act:disabled { background: var(--surface-3); color: var(--muted); }
.g-priv-act.is-danger { background: oklch(0.55 0.16 25); color: #fff; }

.g-btn-danger { background: oklch(0.55 0.16 25); color: #fff; }
.g-out-mark.is-danger { background: oklch(0.95 0.04 25); color: oklch(0.55 0.16 25); }

/* ── Toast ──────────────────────────────────────────────── */
.g-toast { position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%); background: var(--dark); color: var(--bg); font-size: 13.5px; font-weight: 500; padding: 12px 18px; border-radius: 999px; z-index: 70; max-width: 86%; text-align: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4); animation: g-pop .25s ease; }
[data-theme="dark"] .g-toast { background: var(--ink); }

/* ── Product float / dtop groups ────────────────────────── */
.g-prod-float-r, .g-prod-dtop-r { display: flex; gap: 10px; align-items: center; }
.g-prod-float-r { pointer-events: auto; }

/* ── Share sheet ────────────────────────────────────────── */
.g-og { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 18px; background: var(--surface); }
.g-og-media { position: relative; height: 150px; }
.g-og-media .g-ph { height: 100%; border-radius: 0; }
.g-og-score { position: absolute; top: 12px; right: 12px; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 11px; background: var(--dark); color: var(--bg); font-family: var(--font-mono); font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px -4px rgba(0,0,0,0.4); }
[data-theme="dark"] .g-og-score { background: var(--accent); color: var(--accent-ink); }
.g-og-body { padding: 13px 15px 15px; }
.g-og-brand { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: lowercase; color: var(--muted); font-family: var(--font-mono); margin-bottom: 6px; }
.g-og-name { font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.g-og-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin-top: 7px; flex-wrap: wrap; }
.g-share-prod { display: flex; align-items: center; gap: 12px; padding: 4px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.g-share-media { width: 52px; height: 52px; flex-shrink: 0; }
.g-share-media .g-ph { height: 100%; }
.g-share-name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.g-share-score { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.g-share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.g-share-ch { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px; }
.g-share-ch-ic { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .12s; }
.g-share-ch:active .g-share-ch-ic { transform: scale(0.92); }
.g-share-ch-label { font-size: 11.5px; color: var(--ink-2); font-weight: 500; }
.g-share-link { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; padding: 8px 8px 8px 14px; }
.g-share-link-ic { display: flex; flex-shrink: 0; }
.g-share-link-url { flex: 1; font-size: 13.5px; color: var(--ink-2); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-share-copy { padding: 9px 16px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; flex-shrink: 0; transition: background .14s; }
.g-share-copy.is-done { background: var(--tone-hi); color: #fff; }
.g-share-native { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 14px; padding: 13px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ── Desktop nav avatar / CTA ───────────────────────────── */
.g-dnav-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; border: 2px solid transparent; }
.g-dnav-avatar.is-on { border-color: var(--accent-ink-strong); }
.g-dnav-cta { font-size: 14.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent); padding: 10px 20px; border-radius: 999px; }

/* ── Desktop footer ─────────────────────────────────────── */
.g-footer { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
