/* Gftiq customer-platform DEMO. Front end only, sample data. Uses the site tokens from ../css/styles.css. */
body.app { background: var(--bg); margin: 0; min-height: 100vh; }
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--paper); border-right: 1px solid var(--line); padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; height: 100vh; box-sizing: border-box; }
.side__brand { display: flex; flex-direction: column; gap: .1rem; padding: 0 .5rem .6rem; border-bottom: 1px solid var(--line); }
.side__brand img { width: 84px; height: auto; }
.side__brand span { font-size: .78rem; color: var(--ink-soft); font-weight: 700; }
.side nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.side nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .96rem; }
.side nav a:hover { background: var(--sand); }
.side nav a[aria-current="page"] { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.side nav svg { width: 20px; height: 20px; flex: none; }
.side__cta { margin: .3rem 0; }
.side__cta .btn { width: 100%; justify-content: center; box-sizing: border-box; }
.side__foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: .8rem; font-size: .85rem; display: grid; gap: .45rem; }
.side__user { display: flex; gap: .6rem; align-items: center; }
.side__foot a, .linkbtn { color: var(--teal-text); font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.side__foot a:hover, .linkbtn:hover { text-decoration: underline; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: .8rem; color: var(--navy); background: var(--aqua-soft); border: 1.5px solid var(--aqua); flex: none; }
.avatar--gold { background: var(--gold-soft); border-color: var(--gold); }
.avatar--sand { background: var(--sand); border-color: var(--sand-deep); }
.main { padding: 1.6rem 2rem 4rem; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.topbar h1 { font-size: 1.7rem; margin: 0; }
.topbar p { margin: .2rem 0 0; color: var(--ink-soft); }
.topbar__actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.demo-badge { position: fixed; right: 14px; bottom: 12px; z-index: 50; font-size: .74rem; font-weight: 700; color: var(--ink-soft); background: rgba(255,255,255,.92); border: 1.5px dashed var(--gold); border-radius: 999px; padding: .28rem .7rem; pointer-events: none; }
.grid { display: grid; gap: 1.1rem; }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-21 { grid-template-columns: 2fr 1fr; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem 1.25rem; min-width: 0; }
.card h2 { font-size: 1.08rem; margin: 0 0 .8rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.card h2 small { font-weight: 700; font-size: .78rem; color: var(--ink-soft); }
.d-kpi .label { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.d-kpi .d-value { font-size: 1.85rem; font-weight: 800; line-height: 1.15; margin: .25rem 0; }
.d-kpi .sub { font-size: .82rem; color: var(--ink-soft); }
.up { color: var(--teal-text); font-weight: 700; }
.d-bar { height: 12px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.d-bar > span { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.d-bar--gold > span { background: var(--gold); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: .8rem; padding: .62rem 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 700; }
.list .meta { font-size: .84rem; color: var(--ink-soft); }
.d-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; padding: .16rem .55rem; border-radius: 999px; background: var(--sand); color: var(--ink); white-space: nowrap; }
.d-chip--teal { background: var(--aqua-soft); color: var(--teal-dark); }
.d-chip--gold { background: var(--gold-soft); color: #5C4415; }
.d-chip--navy { background: var(--tint-navy); color: var(--navy); }
.d-chip--line { background: #fff; border: 1.5px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); padding: .55rem .6rem; border-bottom: 1.5px solid var(--line); }
.tbl td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .who { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.tbl .who small { display: block; font-weight: 400; color: var(--ink-soft); }
.st { font-size: .76rem; font-weight: 700; padding: .14rem .55rem; border-radius: 999px; white-space: nowrap; }
.st--sent { background: var(--sand); }
.st--accepted { background: var(--aqua-soft); color: var(--teal-dark); }
.st--delivered { background: var(--teal); color: #fff; }
.st--approval { background: var(--gold-soft); color: #5C4415; border: 1.5px dashed var(--gold); }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 700; font-size: .9rem; padding: .42rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold); }
.input, select.input, textarea.input { font: inherit; width: 100%; box-sizing: border-box; padding: .62rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.input:focus { outline: 3px solid var(--aqua); outline-offset: 1px; border-color: var(--teal); }
label.lbl { display: block; font-weight: 700; font-size: .9rem; margin: 0 0 .35rem; }
.d-field { margin-bottom: .9rem; }
.d-toggle { position: relative; width: 46px; height: 26px; flex: none; border-radius: 999px; border: 0; background: #C9CDD3; cursor: pointer; transition: background .2s; padding: 0; }
.d-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .2s; }
.d-toggle[aria-checked="true"] { background: var(--teal); }
.d-toggle[aria-checked="true"]::after { left: 23px; }
.d-toggle:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
.d-rule { display: flex; gap: 1rem; align-items: flex-start; }
.d-rule .grow { flex: 1; }
.d-rule h3 { font-size: 1rem; margin: 0 0 .25rem; }
.d-rule p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.d-rule .d-flow { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .5rem 0 .3rem; font-size: .85rem; }
.d-rule .d-flow .arrow-s { color: var(--ink-soft); }
.d-stepper { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.2rem; flex-wrap: wrap; }
.d-stepper li { display: flex; align-items: center; gap: .45rem; font-size: .86rem; font-weight: 700; color: var(--ink-soft); padding: .35rem .8rem .35rem .4rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); }
.d-stepper li .n { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--sand); color: var(--ink); font-size: .78rem; }
.d-stepper li.is-done .n { background: var(--teal); color: #fff; }
.d-stepper li.is-on { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }
.d-stepper li.is-on .n { background: var(--gold); color: var(--navy); }
.d-pick { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.d-pick button.d-opt { font: inherit; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: .85rem; cursor: pointer; color: var(--ink); display: flex; gap: .65rem; align-items: center; }
.d-pick button.d-opt:hover { border-color: var(--gold); }
.d-pick button.d-opt[aria-pressed="true"] { border-color: var(--teal); background: var(--aqua-soft); }
.d-opt .t { font-weight: 700; display: block; }
.d-opt .m { font-size: .8rem; color: var(--ink-soft); display: block; }
.gift-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.gcard { background: #fff; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; text-align: left; font: inherit; color: var(--ink); padding: 0; }
.gcard:hover { border-color: var(--gold); }
.gcard[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px var(--aqua-soft); }
.gcard .art { display: block; width: 100%; aspect-ratio: 4/3; height: auto; }
.gcard .body { padding: .7rem .85rem .9rem; display: grid; gap: .25rem; }
.gcard .name { font-weight: 800; }
.gcard .sup { font-size: .8rem; color: var(--ink-soft); }
.gcard .row { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin-top: .2rem; }
.gcard .price { font-weight: 800; }
.note-card { background: #fff; border-radius: 16px; border: 1.5px solid var(--line); padding: 1.2rem 1.3rem; font-family: var(--hand); font-size: 1.55rem; line-height: 1.25; min-height: 140px; white-space: pre-wrap; box-shadow: var(--shadow); }
.note-card .from { display: block; margin-top: .6rem; font-size: 1.3rem; color: var(--ink-soft); }
.wizard-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1.3rem; flex-wrap: wrap; }
.d-summary { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; font-size: .95rem; }
.d-summary dt { color: var(--ink-soft); font-weight: 700; }
.d-summary dd { margin: 0; }
.callout-s { background: var(--aqua-soft); border-radius: 14px; padding: .8rem 1rem; font-size: .9rem; }
.callout-s--gold { background: var(--gold-soft); }
.muted { color: var(--ink-soft); }
.small-print { font-size: .8rem; color: var(--ink-soft); }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); fill: var(--ink-soft); font-size: 11px; }
.legend-s { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--ink-soft); margin-top: .5rem; }
.legend-s i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 80px; gap: .6rem; align-items: center; font-size: .9rem; margin: .5rem 0; }
.hbar .v { text-align: right; font-weight: 700; }
.int-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.int { border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem .9rem; background: #fff; display: grid; gap: .35rem; }
.int .t { font-weight: 800; }
.int .m { font-size: .82rem; color: var(--ink-soft); }
.plans-s { display: grid; gap: .9rem; grid-template-columns: repeat(4, minmax(0,1fr)); }
.plan-s { border: 2px solid var(--line); border-radius: 16px; padding: 1rem; background: #fff; display: grid; gap: .3rem; align-content: start; }
.plan-s.is-current { border-color: var(--teal); box-shadow: 0 0 0 3px var(--aqua-soft); }
.plan-s .amt { font-size: 1.5rem; font-weight: 800; }
.plan-s ul { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .86rem; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .9rem; opacity: 0; transition: all .25s; z-index: 60; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.d-empty { padding: 1.4rem; text-align: center; color: var(--ink-soft); }
/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login__art { background: var(--sand); padding: 3rem; display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; }
.login__art h2 { font-size: 2.1rem; margin: 0; max-width: 18ch; }
.login__art .art-wrap { border-radius: var(--radius); overflow: hidden; max-width: 460px; box-shadow: var(--shadow); }
.login__art .art { display: block; width: 100%; height: auto; aspect-ratio: 4/3; }
.login__form { display: flex; align-items: center; justify-content: center; padding: 2.5rem; }
.login__box { width: 100%; max-width: 400px; }
.login__box h1 { font-size: 1.7rem; margin: .8rem 0 .3rem; }
.sso { display: grid; gap: .6rem; margin: 1.1rem 0; }
.sso button { font: inherit; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .7rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.sso button:hover { background: var(--sand); }
.or { display: flex; align-items: center; gap: .8rem; color: var(--ink-soft); font-size: .85rem; margin: .4rem 0 1rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-note { background: var(--gold-soft); border: 1.5px dashed var(--gold); border-radius: 14px; padding: .7rem .9rem; font-size: .88rem; margin-bottom: 1rem; }
@media (max-width: 1180px) { .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .plans-s { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 980px) { .app-shell { grid-template-columns: 74px 1fr; } .side nav a span, .side__brand span, .side__foot .hide-s, .side__cta { display: none; } .side__brand img { width: 46px; } .side nav a { justify-content: center; } .g-21, .g-3, .g-2 { grid-template-columns: 1fr; } .main { padding: 1.2rem 1.1rem 4rem; } .login { grid-template-columns: 1fr; } .login__art { display: none; } }
@media (max-width: 640px) { .g-4, .plans-s { grid-template-columns: 1fr; } .tbl .hide-m { display: none; } }
.login__art .tag { align-self: flex-start; }
