:root {
    --primary: #5b7cff;
    --primary-2: #7b61ff;
    --primary-3: #38c9ff;
    --ink: #111827;
    --text: #202939;
    --muted: #667085;
    --muted-2: #98a2b3;
    --line: #e6ebf2;
    --bg: #f3f5f7;
    --card: #ffffff;
    --soft: #eef4ff;
    --soft-2: #f2eeff;
    --soft-3: #eaf9ff;
    --success: #18b67a;
    --warning: #ffb340;
    --danger: #ff5d72;
    --shadow: 0 10px 30px rgba(17, 24, 39, .07);
    --shadow-lg: 0 24px 60px rgba(17, 24, 39, .12);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(91,124,255,.10), transparent 22%),
        radial-gradient(circle at top right, rgba(56,201,255,.10), transparent 22%),
        linear-gradient(180deg, #f7f8fa 0%, #f2f4f7 100%);
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247,248,250,.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(230,235,242,.9);
}
.topbar-inner,
.app-shell,
.detail-shell,
.checkin-shell,
.auth-shell,
.landing-shell,
.feature-section,
.disclosure-card,
.site-footer {
    width: min(100%, 440px);
    margin: 0 auto;
}
.topbar-inner {
    min-height: 68px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 18px rgba(91,124,255,.28);
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy b { font-size: 20px; line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.brand-copy small { color: var(--muted-2); text-transform: uppercase; font-size: 10px; letter-spacing: .18em; }
.desktop-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.desktop-nav a {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.desktop-nav a.active,
.desktop-nav a:hover { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.topbar-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(91,124,255,.22);
}

.toast-wrap {
    position: fixed;
    left: 50%; top: 82px;
    transform: translateX(-50%);
    z-index: 70;
    width: min(100% - 24px, 420px);
    display: grid;
    gap: 8px;
}
.toast {
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: opacity .35s ease, transform .35s ease;
}
.toast-success { background: #eaf8f2; color: #0e7a50; }
.toast-warning { background: #fff7e6; color: #9a6b00; }
.toast-danger { background: #fff0f2; color: #c61c49; }

.app-main {
    min-height: 100vh;
    padding: 18px 0 110px;
}
.kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
}
.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.page-head h1,
.landing-copy h1,
.auth-copy h1,
.coupang-hero h1,
.checkin-stage h1,
.profile-card h1 {
    margin: 0;
    color: var(--ink);
    letter-spacing: -.05em;
}
.page-head h1 { font-size: 28px; line-height: 1.1; }
.pill-link,
.point-chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #d8e2f5;
    background: rgba(255,255,255,.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    box-shadow: var(--shadow);
}
.point-chip { background: linear-gradient(135deg, #edf2ff, #f7f4ff); }

.app-shell,
.detail-shell,
.checkin-shell,
.auth-shell,
.landing-shell,
.feature-section,
.disclosure-card,
.site-footer {
    padding-left: 16px;
    padding-right: 16px;
}
.app-shell,
.detail-shell,
.checkin-shell,
.landing-shell,
.feature-section,
.disclosure-card,
.auth-shell { padding-top: 8px; }

.status-grid,
.quick-actions,
.benefit-columns,
.shop-grid,
.coupon-grid { display: grid; gap: 12px; }
.status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.status-grid .point-card { grid-column: 1 / -1; }
.status-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-actions,
.benefit-columns,
.shop-grid,
.coupon-grid { grid-template-columns: 1fr; }

.point-card,
.mini-stat,
.quick-card,
.home-panel,
.notice-strip,
.shop-card,
.route-card,
.benefit-card-large,
.benefit-columns article,
.coupon-card,
.profile-card,
.auth-card,
.disclosure-card,
.partner-disclosure,
.info-box,
.bonus-banner,
.guide-steps article,
.checkin-stage,
.site-footer,
.preview-row,
.balance-tile,
.feature-grid article,
.timeline-list > div,
.activity-list > div {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.point-card {
    padding: 18px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #19254d 0%, #364ec9 55%, #5d8cff 100%);
    border: 0;
    box-shadow: 0 20px 40px rgba(34, 56, 140, .24);
}
.point-card::before {
    content: "";
    position: absolute;
    width: 140px; height: 140px;
    right: -42px; top: -46px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.4), rgba(255,255,255,0));
}
.point-card span,
.point-card p { color: rgba(255,255,255,.84); }
.point-card span { display: block; font-size: 12px; font-weight: 800; }
.point-card strong { display: block; margin: 10px 0 4px; font-size: 34px; color: #fff; letter-spacing: -.06em; }
.point-card p { margin: 0; font-size: 13px; }
.shine::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.16) 42%, transparent 58%);
    transform: translateX(-120%);
    animation: shine 3.8s ease-in-out infinite;
}
@keyframes shine { 0%, 68% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.mini-stat,
.quick-card,
.home-panel,
.coupon-card,
.benefit-columns article,
.route-card,
.info-box,
.partner-disclosure,
.notice-strip,
.profile-card,
.auth-card,
.disclosure-card,
.bonus-banner,
.benefit-card-large,
.shop-card,
.checkin-stage { padding: 16px; }
.mini-stat span,
.shop-meta span,
.route-card p,
.checkin-copy,
.auth-copy p:not(.kicker),
.lead,
.plain-list,
.form-note,
.feature-grid p,
.disclosure-card p,
.preview-caption,
.phone-frame small { color: var(--muted); }
.mini-stat span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
}
.mini-stat strong {
    display: block;
    color: var(--ink);
    font-size: 24px;
    letter-spacing: -.05em;
}
.mini-stat p { margin: 4px 0 0; font-size: 12px; }
.mini-stat:nth-child(2) { background: linear-gradient(180deg, #fff, #f8fbff); }
.mini-stat:nth-child(3) { background: linear-gradient(180deg, #fff, #faf8ff); }

.quick-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.quick-card:active { transform: scale(.985); }
.checkin-card { background: linear-gradient(180deg, #ffffff, #f7fbff); border-color: #dce7ff; }
.quick-actions a.quick-card { background: linear-gradient(180deg, #ffffff, #faf8ff); border-color: #e3defa; }
.quick-actions .btn { min-width: 98px; }

.quick-card h2,
.panel-title h2,
.route-card h2,
.info-section h2,
.benefit-card-large h2,
.coupon-card h2,
.shop-meta strong { margin: 0; color: var(--ink); letter-spacing: -.03em; }
.quick-card h2 { font-size: 20px; margin-top: 10px; }
.quick-card p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.soft-icon {
    width: 34px; height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecf3ff, #f3efff);
    color: var(--primary);
    font-weight: 900;
}
.soft-icon.arrow { background: linear-gradient(135deg, #eef9ff, #edf2ff); }
.route-soft-logo {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, #f8faff);
    border: 1px solid #eef2f8;
}
.route-soft-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.card-arrow {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #f7f9fc;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid var(--line);
}
.home-panel { margin-top: 14px; }
.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.panel-title h2 { font-size: 21px; }
.benefit-list,
.timeline-list,
.activity-list { display: grid; gap: 10px; }
.benefit-list a,
.timeline-list > div,
.activity-list > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: #f8fafc;
    border: 1px solid #edf1f6;
    border-radius: 18px;
    box-shadow: none;
}
.benefit-list a b,
.timeline-list b,
.activity-list b { margin-left: auto; color: var(--primary); font-size: 12px; font-weight: 900; }
.benefit-list a span,
.timeline-list p,
.activity-list p { font-size: 13px; }
.notice-strip {
    margin-top: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(180deg, #fff, #fafcff);
}
.notice-strip span {
    width: 24px; height: 24px; border-radius: 50%;
    background: #edf2ff; color: var(--primary);
    font-weight: 900;
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
}
.notice-strip p { margin: 1px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

.shop-tabs {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.shop-tabs button {
    border: 0;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.shop-tabs button.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; }
.shop-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
}
.shop-logo {
    width: 72px; height: 72px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 900;
    border: 1px solid var(--line);
    background: #f7f9fc;
}
.plain-logo { color: #ff5f0f; background: linear-gradient(180deg, #fff, #f8faff); }
.image-logo {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, #f8faff);
}
.shop-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.muted-logo { color: var(--muted-2); }
.shop-meta strong { font-size: 18px; display: block; margin-bottom: 4px; }
.shop-meta span { font-size: 13px; }
.active-shop { border-color: #dbe6ff; background: linear-gradient(180deg, #fff, #f8fbff); }
.disabled-shop { opacity: .75; }
.route-card { margin-top: 14px; display: grid; gap: 14px; }
.route-card h2 { font-size: 24px; margin-top: 4px; margin-bottom: 8px; }
.route-card p { margin: 0; font-size: 13px; line-height: 1.65; }

.btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 16px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    box-shadow: 0 12px 26px rgba(91,124,255,.22);
}
.btn-ghost {
    background: #fff;
    color: var(--primary);
    border: 1px solid #dbe4f7;
}
.full { width: 100%; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
.coupang-hero,
.benefit-card-large,
.profile-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.coupang-hero h1 { font-size: 28px; }
.detail-rate { margin: 8px 0 0; font-size: 14px; color: var(--primary); font-weight: 900; }
.brand-bubble {
    width: 74px; height: 74px; border-radius: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 28px rgba(17,24,39,.06);
    background: linear-gradient(180deg, #fff, #f8faff);
    border: 1px solid #edf1f7;
    overflow: hidden;
}
.image-bubble img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.guide-steps { display: grid; gap: 10px; margin-top: 14px; }
.guide-steps article { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.guide-steps span {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #edf2ff; color: var(--primary);
    font-size: 13px; font-weight: 900; flex: 0 0 auto;
}
.guide-steps p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.bonus-banner {
    margin-top: 14px;
    background: linear-gradient(135deg, #eef3ff, #f7f4ff);
    border-color: #dae4ff;
}
.bonus-banner span { display: block; font-size: 12px; font-weight: 800; color: var(--muted); }
.bonus-banner strong { display: block; margin-top: 6px; color: var(--ink); font-size: 19px; letter-spacing: -.03em; }
.bonus-banner p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.info-section { margin-top: 14px; }
.info-section h2 { font-size: 20px; margin-bottom: 10px; }
.info-box { padding: 14px 16px; }
.plain-list.notice-list-extended li {
    line-height: 1.72;
}
.plain-list.notice-list-extended .accent-item {
    list-style: none;
    margin-left: -18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(91,124,255,.10), rgba(139,92,246,.08));
    border: 1px solid rgba(91,124,255,.12);
    color: var(--ink);
}
.plain-list.notice-list-extended .accent-item strong {
    color: var(--primary);
    font-weight: 900;
}

.plain-list,
.info-box ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    font-size: 13px;
    line-height: 1.65;
}
.partner-disclosure { margin-top: 14px; }
.partner-disclosure strong { display: block; margin-bottom: 8px; font-size: 16px; color: var(--ink); }
.partner-disclosure p { margin: 0 0 8px; line-height: 1.6; font-size: 14px; }
.partner-disclosure small { color: var(--muted); line-height: 1.65; display: block; }
.sticky-action {
    position: sticky;
    bottom: 92px;
    margin-top: 16px;
    padding-top: 6px;
}

.checkin-stage { text-align: center; }
.flame-orb {
    width: 92px; height: 92px;
    margin: 0 auto 14px;
    border-radius: 28px;
    background: linear-gradient(135deg, #eff4ff, #f4efff);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 42px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.checkin-stage h1 { font-size: 34px; }
.checkin-copy { margin: 10px auto 20px; max-width: 300px; font-size: 14px; line-height: 1.65; }
.streak-dots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}
.streak-dots div {
    padding: 10px 8px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #edf1f6;
    display: grid;
    gap: 8px;
    justify-items: center;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 800;
}
.streak-dots b {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #e6ebf2; color: white;
}
.streak-dots .done { color: var(--primary); border-color: #d9e4ff; background: linear-gradient(180deg, #fff, #f7fbff); }
.streak-dots .done b { background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.checkin-form { max-width: 100%; }

.benefit-card-large {
    background: linear-gradient(135deg, #eef3ff, #f8f5ff);
    border-color: #dbe4ff;
}
.benefit-card-large h2 { font-size: 22px; margin-top: 10px; }
.benefit-card-large p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; }
.benefit-card-large strong { font-size: 30px; color: var(--primary); letter-spacing: -.05em; }
.benefit-columns article h3 { margin: 0 0 6px; font-size: 16px; }
.benefit-columns article p { margin: 0; font-size: 13px; color: var(--primary); font-weight: 900; }
.small-text { font-size: 12px; }

.coupon-grid { gap: 12px; }
.coupon-visual {
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef4ff, #f4f0ff);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.coupon-visual span { font-size: 38px; }
.coupon-visual em {
    position: absolute; top: 10px; right: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: var(--primary);
    font-size: 11px; font-style: normal; font-weight: 900;
}
.coupon-card h2 { font-size: 18px; margin: 14px 0 6px; }
.coupon-card p { margin: 0 0 14px; font-size: 13px; }
.coupon-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.coupon-bottom strong { color: var(--primary); font-size: 15px; }
.coupon-bottom button {
    min-height: 36px; padding: 0 12px;
    border-radius: 12px; border: 0;
    background: var(--ink); color: white; font-weight: 800;
}

.profile-card { align-items: center; }
.avatar {
    width: 54px; height: 54px; border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 900;
    box-shadow: 0 14px 26px rgba(91,124,255,.22);
}
.profile-card h1 { font-size: 24px; }
.profile-card span { font-size: 13px; color: var(--muted); }

.auth-shell,
.landing-shell { display: grid; gap: 18px; }
.auth-copy,
.landing-copy { padding-top: 8px; }
.auth-copy h1,
.landing-copy h1 { font-size: 32px; line-height: 1.15; }
.auth-copy p:not(.kicker),
.lead { margin: 12px 0 0; font-size: 14px; line-height: 1.7; }
.auth-card { margin-top: 4px; }
.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 5px;
    background: #f3f5f8;
    border-radius: 16px;
    margin-bottom: 16px;
}
.auth-tabs a {
    min-height: 38px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 13px; font-weight: 800;
}
.auth-tabs a.active { background: white; color: var(--primary); box-shadow: var(--shadow); }
.form-stack { display: grid; gap: 12px; }
.form-stack label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; color: var(--ink); }
.form-stack input {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid #dbe2ec;
    background: #fff;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
}
.form-stack input:focus { border-color: #c5d6ff; box-shadow: 0 0 0 4px rgba(91,124,255,.10); }

.landing-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.landing-preview { padding-top: 4px; }
.phone-frame {
    background: linear-gradient(180deg, #1d243b, #202d5e);
    border-radius: 32px;
    padding: 16px;
    box-shadow: 0 30px 70px rgba(27, 35, 69, .24);
}
.phone-status {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
    color: rgba(255,255,255,.7);
    font-size: 12px; font-weight: 700;
}
.phone-status i { width: 88px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.1); }
.mini-page-title { margin-bottom: 12px; color: white; font-size: 22px; font-weight: 900; letter-spacing: -.05em; }
.balance-tile { padding: 16px; background: linear-gradient(135deg, #5b7cff, #7b61ff); border-color: transparent; box-shadow: none; }
.balance-tile span,
.balance-tile p,
.balance-tile strong { color: white; }
.balance-tile strong { display: block; margin: 6px 0 3px; font-size: 28px; letter-spacing: -.05em; }
.preview-row {
    margin-top: 10px;
    padding: 12px 14px;
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.08);
    color: white;
}
.preview-row b { display: block; font-size: 14px; }
.preview-row small { font-size: 12px; }
.dot-icon {
    width: 28px; height: 28px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.16); color: white; font-weight: 900;
}
.dot-icon.alt { background: rgba(56,201,255,.2); }
.preview-progress {
    height: 8px; border-radius: 999px; margin-top: 14px;
    background: rgba(255,255,255,.12); overflow: hidden;
}
.preview-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38c9ff, #7b61ff); }
.preview-caption { margin: 10px 0 0; font-size: 12px; color: rgba(255,255,255,.72); }

.section-head h2 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.04em; }
.feature-grid { margin-top: 14px; }
.feature-grid article { padding: 16px; }
.feature-icon {
    width: 34px; height: 34px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eef4ff, #f3eeff);
    color: var(--primary); font-size: 12px; font-weight: 900;
}
.feature-grid h3 { margin: 12px 0 8px; font-size: 18px; letter-spacing: -.03em; }
.feature-grid p { margin: 0; font-size: 13px; line-height: 1.65; }
.disclosure-card { margin-top: 18px; margin-bottom: 24px; }
.disclosure-card strong { display: block; margin-bottom: 8px; font-size: 16px; color: var(--ink); }
.disclosure-card p { margin: 0; font-size: 13px; line-height: 1.65; }

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 13px;
}
th { color: var(--muted); font-weight: 800; }

.bottom-nav {
    position: fixed;
    left: 50%; bottom: 10px; transform: translateX(-50%);
    z-index: 55;
    width: min(100% - 16px, 430px);
    padding: 8px;
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(224,231,242,.95);
    box-shadow: 0 24px 50px rgba(17,24,39,.12);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.bottom-nav a {
    min-height: 54px;
    border-radius: 18px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
    transition: transform .16s ease, background .16s ease, color .16s ease;
}
.bottom-nav a span { font-size: 18px; line-height: 1; }
.bottom-nav a.active {
    color: var(--primary);
    background: linear-gradient(180deg, #eef4ff, #f6f3ff);
}
.bottom-nav a:active { transform: scale(.96); }

.site-footer {
    padding-top: 18px;
    padding-bottom: 34px;
    color: var(--muted);
    font-size: 12px;
    display: grid;
    gap: 6px;
}
.site-footer a { color: var(--primary); font-weight: 800; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.pop-burst {
    position: fixed;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-3));
    pointer-events: none;
    z-index: 999;
    animation: burst .65s ease forwards;
}
@keyframes burst {
    to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); }
}

body.is-app .desktop-nav { display: none; }

@media (max-width: 767px) {
    .desktop-nav { display: none; }
}

@media (min-width: 768px) {
    .app-main { padding-top: 24px; }
    .topbar-inner,
    .app-shell,
    .detail-shell,
    .checkin-shell,
    .auth-shell,
    .landing-shell,
    .feature-section,
    .disclosure-card,
    .site-footer { width: 440px; }
    .landing-actions { grid-template-columns: repeat(2, 1fr); }
    .auth-shell,
    .landing-shell { gap: 22px; }
}

/* ===== v6 refinements ===== */
.app-main {
    padding: 16px 0 84px;
}

.app-shell,
.detail-shell,
.checkin-shell,
.auth-shell,
.landing-shell,
.feature-section {
    display: grid;
    gap: 14px;
}

.app-shell > *,
.detail-shell > *,
.checkin-shell > *,
.auth-shell > *,
.landing-shell > *,
.feature-section > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.page-head {
    margin-bottom: 0;
}

.status-grid,
.quick-actions,
.benefit-columns,
.shop-grid,
.coupon-grid,
.benefit-list,
.timeline-list,
.activity-list,
.guide-steps,
.feature-grid {
    gap: 14px;
}

.header-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.header-stat-item {
    min-height: 34px;
    padding: 0 10px 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.95);
    border: 1px solid #dce4f1;
    box-shadow: var(--shadow);
}
.header-stat-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0ff, #efebff);
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
}
.header-stat-icon.check {
    background: linear-gradient(135deg, #eef5ff, #f2eeff);
}
.header-stat-item b {
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.point-card,
.mini-stat,
.quick-card,
.home-panel,
.notice-strip,
.shop-card,
.route-card,
.benefit-card-large,
.benefit-columns article,
.coupon-card,
.profile-card,
.auth-card,
.disclosure-card,
.partner-disclosure,
.info-box,
.bonus-banner,
.guide-steps article,
.checkin-stage {
    border-radius: 22px;
}

.mini-stat,
.quick-card,
.home-panel,
.coupon-card,
.benefit-columns article,
.route-card,
.info-box,
.partner-disclosure,
.notice-strip,
.profile-card,
.auth-card,
.disclosure-card,
.bonus-banner,
.benefit-card-large,
.shop-card,
.checkin-stage {
    padding: 18px;
}

.quick-card h2,
.panel-title h2,
.route-card h2,
.info-section h2,
.benefit-card-large h2,
.coupon-card h2,
.shop-meta strong,
.page-head h1,
.profile-card h1,
.checkin-stage h1 {
    letter-spacing: -.045em;
}

.quick-actions .btn {
    min-width: 108px;
}

.pill-link {
    align-self: center;
}

.timeline-list > div,
.activity-list > div,
.benefit-list a {
    border-radius: 16px;
}

.recent-checkin-list > div {
    justify-content: space-between;
    padding: 15px 16px;
}
.recent-checkin-list p,
.recent-checkin-list b {
    margin: 0;
}
.recent-checkin-list p {
    color: var(--ink);
    font-weight: 700;
}
.recent-checkin-list b {
    color: var(--primary);
    font-size: 13px;
}

.bottom-nav {
    left: 0;
    right: 0;
    transform: none;
    bottom: 0;
    width: 100%;
    max-width: none;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 -10px 30px rgba(17,24,39,.08);
}
.body-inner,
.bottom-nav-inner { width: min(100%, 440px); margin: 0 auto; }
.bottom-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bottom-nav .nav-item {
    min-height: 58px;
    border-radius: 0;
    gap: 4px;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 2px;
}
.bottom-nav .nav-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.bottom-nav .nav-item b {
    font-weight: 900;
    color: inherit;
}
.bottom-nav .nav-item.active {
    background: linear-gradient(180deg, #eef4ff, #f5f1ff);
    color: var(--primary);
}
.bottom-nav .nav-item.active b {
    color: var(--ink);
}
.nav-benefit {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
    color: inherit;
}
.nav-item.active .nav-benefit {
    color: var(--primary);
}

@media (min-width: 768px) {
    .bottom-nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 440px;
        border-left: 1px solid rgba(224,231,242,.95);
        border-right: 1px solid rgba(224,231,242,.95);
    }
}


/* ===== v7 app polish ===== */
body {
    background:
        radial-gradient(circle at 0% 0%, rgba(91,124,255,.09), transparent 26%),
        radial-gradient(circle at 100% 0%, rgba(56,201,255,.07), transparent 26%),
        #f3f5f7;
    line-height: 1.45;
}

.app-main {
    padding-top: 14px;
}

.app-shell,
.detail-shell,
.checkin-shell,
.auth-shell,
.landing-shell,
.feature-section {
    gap: 16px;
}

.page-head {
    margin-bottom: 0;
    align-items: center;
}

.page-head h1 {
    font-size: 26px;
    line-height: 1.08;
}

.page-sub {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.kicker {
    margin-bottom: 7px;
    font-size: 10.5px;
}

.status-grid,
.quick-actions,
.benefit-columns,
.shop-grid,
.coupon-grid,
.benefit-list,
.timeline-list,
.activity-list,
.guide-steps {
    gap: 13px;
}

.point-card {
    padding: 20px;
    min-height: 128px;
    display: grid;
    align-content: center;
}

.point-card span {
    font-size: 12px;
}

.point-card strong {
    font-size: 32px;
    line-height: 1.05;
    margin: 9px 0 6px;
}

.point-card p {
    font-size: 12.5px;
    line-height: 1.45;
}

.mini-stat {
    min-height: 108px;
    display: grid;
    align-content: center;
}

.mini-stat span {
    margin-bottom: 7px;
    font-size: 11.5px;
}

.mini-stat strong {
    font-size: 23px;
    line-height: 1.08;
}

.mini-stat p {
    font-size: 12px;
    line-height: 1.45;
}

.quick-card {
    min-height: 116px;
    padding: 18px;
}

.quick-card h2 {
    margin-top: 10px;
    font-size: 19px;
    line-height: 1.2;
}

.quick-card p {
    font-size: 12.8px;
    line-height: 1.5;
}

.home-panel {
    padding: 18px;
}

.today-panel {
    background: linear-gradient(180deg, #fff, #fbfcff);
}

.panel-title {
    margin-bottom: 14px;
}

.panel-title h2 {
    font-size: 20px;
    line-height: 1.2;
}

.benefit-list a,
.timeline-list > div,
.activity-list > div {
    min-height: 46px;
    padding: 13px 15px;
}

.benefit-list a span,
.timeline-list p,
.activity-list p {
    font-size: 12.8px;
    line-height: 1.45;
}

.notice-strip {
    margin-top: 0;
}

.checkin-stage h1 {
    font-size: 31px;
    line-height: 1.12;
}

.checkin-copy {
    font-size: 13px;
    line-height: 1.55;
}

.benefit-card-large {
    align-items: center;
    min-height: 156px;
}

.benefit-card-large h2 {
    font-size: 20px;
    line-height: 1.25;
}

.benefit-card-large p {
    font-size: 12.8px;
    line-height: 1.55;
}

.benefit-card-large strong {
    white-space: nowrap;
    word-break: keep-all;
    min-width: 58px;
    flex: 0 0 auto;
    text-align: center;
    font-size: 30px;
    line-height: 1;
}

.route-tip-card {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #fbfcff);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.tip-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.tip-title span {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff8d8;
    font-size: 15px;
}

.tip-title h2 {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: -.035em;
}

.route-tip-card ol {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.route-tip-card li {
    padding-left: 4px;
}

.route-tip-card strong {
    display: block;
    color: var(--ink);
    font-size: 13.5px;
    line-height: 1.45;
}

.route-tip-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12.8px;
    line-height: 1.65;
}

/* 하단 nav: 활성 배경 제거, 아이콘/글씨만 강조 */
.bottom-nav {
    background: #fff;
    border-top: 1px solid #e5e9f1;
}

.bottom-nav .nav-item,
.bottom-nav .nav-item.active {
    background: transparent !important;
}

.bottom-nav .nav-item {
    color: #9aa5b5;
}

.bottom-nav .nav-item img {
    width: 23px;
    height: 23px;
}

.bottom-nav .nav-item b {
    font-size: 11.5px;
    line-height: 1;
    font-weight: 900;
    color: #9aa5b5;
}

.bottom-nav .nav-item.active {
    color: var(--primary);
}

.bottom-nav .nav-item.active b {
    color: var(--primary) !important;
    font-weight: 950;
}

.nav-benefit {
    color: #9aa5b5;
}

.nav-item.active .nav-benefit {
    color: var(--primary);
}

.recent-checkin-list > div {
    min-height: 50px;
}

@media (max-width: 380px) {
    .topbar-inner,
    .app-shell,
    .detail-shell,
    .checkin-shell,
    .auth-shell,
    .landing-shell,
    .feature-section,
    .disclosure-card,
    .site-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .point-card strong {
        font-size: 30px;
    }

    .benefit-card-large strong {
        min-width: 50px;
        font-size: 27px;
    }
}


/* ===== v8: PNG 아이콘을 mask로 사용해서 CSS 색상으로 채우기 ===== */
.bottom-nav .nav-item,
.bottom-nav .nav-item.active {
    background: transparent !important;
}
.bottom-nav .nav-item {
    color: #9aa5b5;
}
.bottom-nav .nav-mask-icon {
    width: 23px;
    height: 23px;
    display: block;
    background: currentColor;
    -webkit-mask-image: var(--nav-icon);
    mask-image: var(--nav-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.bottom-nav .nav-item.active {
    color: var(--primary) !important;
}
.bottom-nav .nav-item b {
    color: #9aa5b5 !important;
    font-weight: 900;
}
.bottom-nav .nav-item.active b {
    color: var(--primary) !important;
    font-weight: 950;
}
.nav-benefit {
    color: #9aa5b5;
}
.nav-item.active .nav-benefit {
    color: var(--primary) !important;
}

/* ===== v9: auth home + my page polish ===== */
.page-index .desktop-nav,
.page-login .desktop-nav,
.page-register .desktop-nav {
    display: none !important;
}

.auth-simple-shell,
.auth-home-shell {
    padding-top: 24px;
    gap: 18px;
}

.auth-simple-shell .auth-card,
.auth-home-shell .auth-card {
    margin-top: 0;
}

.auth-bottom-copy {
    padding: 4px 4px 0;
}

.auth-bottom-copy h1 {
    margin: 0;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: -.055em;
}

.auth-bottom-copy .lead {
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.72;
    color: var(--muted);
}

.auth-home-card {
    order: 1;
}

.auth-home-shell .auth-bottom-copy,
.auth-simple-shell .auth-bottom-copy {
    order: 2;
}

.profile-card {
    justify-content: flex-start;
    text-align: left;
}

.profile-info {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.profile-info .kicker,
.profile-info h1,
.profile-info span {
    text-align: left;
}

.profile-info h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-info span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-card .pill-link {
    margin-left: auto;
}

.clean-activity-list > div {
    justify-content: space-between;
    padding: 15px 16px;
}

.clean-activity-list p,
.clean-activity-list b {
    margin: 0;
}

.clean-activity-list p {
    color: var(--ink);
    font-weight: 700;
}

.clean-activity-list b {
    color: var(--primary);
    font-size: 13px;
    white-space: nowrap;
}

.clean-activity-list > div span {
    display: none !important;
}

@media (max-width: 380px) {
    .auth-bottom-copy h1 {
        font-size: 26px;
    }
}

/* ===== v9: clean login home / my page alignment / activity cleanup ===== */
.public-home-shell {
    width: min(100%, 440px);
    margin: 0 auto;
    padding: 22px 16px 46px;
    display: grid;
    gap: 18px;
}
.public-login-card {
    padding: 18px;
}
.public-intro-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 2px;
}
.public-intro-card h1 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.055em;
}
.public-intro-card p:not(.kicker) {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.72;
    word-break: keep-all;
}

.auth-shell {
    min-height: auto;
}

.profile-card {
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 14px !important;
}
.profile-card .avatar {
    flex: 0 0 auto;
}
.profile-info {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}
.profile-info .kicker {
    margin-bottom: 6px;
}
.profile-info h1 {
    text-align: left;
    line-height: 1.15;
    word-break: break-word;
}
.profile-info span {
    display: block;
    margin-top: 5px;
    text-align: left;
    word-break: break-all;
}
.profile-card .pill-link {
    margin-left: auto;
    flex: 0 0 auto;
}

.my-activity-list > div,
.activity-list.my-activity-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 50px;
    padding: 14px 16px;
}
.my-activity-list p {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}
.my-activity-list b {
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 950;
}
.my-activity-list span {
    display: none !important;
}

.page-index .app-main,
.page-login .app-main,
.page-register .app-main {
    padding-bottom: 40px;
}

@media (max-width: 380px) {
    .public-intro-card h1 {
        font-size: 27px;
    }
    .profile-card {
        gap: 12px !important;
    }
    .profile-card .pill-link {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ===== v10: 출석 페이지 마감 정리 ===== */
.checkin-shell {
    gap: 14px;
}

.back-icon-link {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.82);
    border: 1px solid #e4eaf4;
    box-shadow: 0 10px 24px rgba(17,24,39,.06);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.back-icon-link:active {
    transform: scale(.96);
}
.back-icon-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.checkin-stage-v10 {
    position: relative;
    padding: 22px 18px 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% -12%, rgba(91,124,255,.16), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}
.checkin-stage-v10::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(91,124,255,.08), transparent 36%, rgba(123,97,255,.08));
    opacity: .75;
}
.checkin-stage-v10 > * {
    position: relative;
    z-index: 1;
}
.checkin-orb {
    width: 76px;
    height: 76px;
    margin: 0 auto 15px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5b7cff, #7b61ff);
    box-shadow: 0 18px 34px rgba(91,124,255,.24);
}
.checkin-orb span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.22);
    color: #fff;
    font-size: 22px;
    font-weight: 950;
}
.checkin-stage-v10 .kicker {
    margin-bottom: 8px;
}
.checkin-stage-v10 h1 {
    font-size: 30px;
    line-height: 1.08;
}
.checkin-stage-v10 .checkin-copy {
    margin: 10px auto 18px;
    max-width: 320px;
    color: #667085;
    font-size: 13px;
    line-height: 1.58;
}

.streak-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin: 0 0 18px;
}
.streak-step {
    min-height: 92px;
    padding: 12px 8px 10px;
    border-radius: 20px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    background: #f7f9fc;
    border: 1px solid #edf1f6;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.streak-step em {
    font-style: normal;
    color: #a2adbd;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .12em;
}
.streak-step strong {
    color: #98a2b3;
    font-size: 17px;
    line-height: 1.1;
    letter-spacing: -.035em;
}
.streak-step span {
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf1f6;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 900;
}
.streak-step.done {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5ff 100%);
    border-color: #cfdcff;
    box-shadow: 0 12px 24px rgba(91,124,255,.10);
}
.streak-step.done em,
.streak-step.done strong {
    color: var(--primary);
}
.streak-step.done span {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
}
.streak-step.next {
    background: linear-gradient(180deg, #fff 0%, #faf8ff 100%);
    border-color: #e3dcff;
}
.streak-step.next em,
.streak-step.next strong {
    color: #7b61ff;
}
.streak-step.next span {
    background: #f0ecff;
    color: #7b61ff;
}

.checkin-stage-v10 .btn-primary {
    min-height: 46px;
    border-radius: 16px;
}

/* 기존 출석 점 UI는 v10에서 사용하지 않음 */
.streak-dots {
    display: none;
}

@media (max-width: 380px) {
    .checkin-stage-v10 {
        padding: 20px 16px 16px;
    }
    .streak-board {
        gap: 7px;
    }
    .streak-step {
        min-height: 86px;
        border-radius: 18px;
    }
    .streak-step strong {
        font-size: 16px;
    }
}


/* ===== v11: 출석 페이지 아이콘/뒤로가기 자연스럽게 정리 ===== */
.checkin-shell {
    gap: 10px !important;
}

.back-icon-link {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: .72;
    margin: 0 0 -2px 2px;
}
.back-icon-link:hover,
.back-icon-link:active {
    background: rgba(17,24,39,.04) !important;
    box-shadow: none !important;
}
.back-icon-link img {
    width: 18px !important;
    height: 18px !important;
}

.checkin-stage-v10 {
    padding-top: 20px !important;
}

.checkin-orb {
    width: 72px !important;
    height: 72px !important;
    margin-bottom: 14px !important;
    border-radius: 25px !important;
    position: relative !important;
    background: linear-gradient(135deg, #f3f6ff, #f6f1ff) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 32px rgba(91,124,255,.12) !important;
}
.checkin-orb::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 24px rgba(91,124,255,.22);
}
.checkin-orb .checkin-orb-mask {
    position: relative;
    z-index: 1;
    width: 23px;
    height: 23px;
    display: block;
    background: #fff;
    -webkit-mask-image: url("../icons/출석_선택.png");
    mask-image: url("../icons/출석_선택.png");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.attendance-soft-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #edf3ff, #f5f1ff) !important;
    position: relative;
}
.attendance-soft-icon::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    background: var(--primary);
    -webkit-mask-image: url("../icons/출석_선택.png");
    mask-image: url("../icons/출석_선택.png");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.streak-board {
    gap: 8px !important;
    margin-bottom: 18px !important;
    padding: 7px;
    border-radius: 22px;
    background: rgba(246,248,252,.82);
    border: 1px solid #edf1f7;
}
.streak-step {
    min-height: 74px !important;
    padding: 11px 6px 10px !important;
    border-radius: 17px !important;
    gap: 6px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
}
.streak-step strong {
    font-size: 18px !important;
    color: #9aa5b5 !important;
}
.streak-step span {
    min-height: 22px !important;
    padding: 0 9px !important;
    background: #e8edf5 !important;
    color: #98a2b3 !important;
    font-size: 10px !important;
}
.streak-step.done {
    background: #fff !important;
    border-color: #cfdbff !important;
    box-shadow: 0 10px 22px rgba(91,124,255,.08) !important;
}
.streak-step.done strong {
    color: var(--primary) !important;
}
.streak-step.done span {
    background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
    color: #fff !important;
}
.streak-step.next {
    background: #fff !important;
    border-color: #e1d9ff !important;
}
.streak-step.next strong {
    color: var(--primary-2) !important;
}
.streak-step.next span {
    background: #f0ebff !important;
    color: var(--primary-2) !important;
}

.checkin-stage-v10 .btn[disabled] {
    opacity: .78;
}


/* ===== v12: 출석 페이지만 최종 정리 ===== */
.checkin-shell {
    gap: 14px !important;
}

.checkin-stage-v12 {
    position: relative;
    padding: 50px 18px 18px !important;
    overflow: hidden;
}
.checkin-stage-v12::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -70px;
    top: -72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91,124,255,.10), transparent 70%);
    pointer-events: none;
}

.checkin-back-inline {
    position: absolute;
    left: 16px;
    top: 15px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: .58;
    transition: opacity .16s ease, transform .16s ease;
}
.checkin-back-inline:active {
    transform: translateX(-2px);
    opacity: .9;
}
.checkin-back-inline img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.checkin-orb-v12 {
    width: 78px;
    height: 78px;
    margin: 0 auto 14px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 70% 18%, rgba(255,255,255,.95), rgba(255,255,255,.18) 44%, transparent 56%),
        linear-gradient(135deg, #edf3ff 0%, #f3efff 100%);
    border: 1px solid rgba(219,228,255,.9);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.92),
        0 16px 34px rgba(91,124,255,.13);
}
.checkin-orb-v12 img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(91,124,255,.20));
}

.checkin-stage-v12 .kicker {
    margin-bottom: 8px;
}
.checkin-stage-v12 h1 {
    font-size: 30px;
    line-height: 1.08;
}
.checkin-stage-v12 .checkin-copy {
    margin: 10px auto 18px;
    max-width: 320px;
    color: #667085;
    font-size: 13px;
    line-height: 1.58;
}

.streak-board-v12 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}
.streak-board-v12 .streak-step {
    min-height: 84px !important;
    padding: 13px 8px 11px !important;
    border-radius: 22px !important;
    background: rgba(248,250,252,.86) !important;
    border: 1px solid #e7edf7 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82) !important;
}
.streak-board-v12 .streak-step em {
    color: #a4afbf;
    font-size: 9px;
    letter-spacing: .13em;
}
.streak-board-v12 .streak-step strong {
    font-size: 18px;
    color: #98a2b3;
}
.streak-board-v12 .streak-step span {
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    background: #edf1f6;
    color: #98a2b3;
}
.streak-board-v12 .streak-step.done {
    background: linear-gradient(180deg, #ffffff, #f4f7ff) !important;
    border-color: #cddaff !important;
}
.streak-board-v12 .streak-step.done em,
.streak-board-v12 .streak-step.done strong {
    color: var(--primary);
}
.streak-board-v12 .streak-step.done span {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
}
.streak-board-v12 .streak-step.next {
    background: linear-gradient(180deg, #ffffff, #faf8ff) !important;
    border-color: #ded6ff !important;
}
.streak-board-v12 .streak-step.next em,
.streak-board-v12 .streak-step.next strong {
    color: #7b61ff;
}
.streak-board-v12 .streak-step.next span {
    background: #f0ecff;
    color: #7b61ff;
}

.attendance-soft-icon-img {
    position: relative;
    background: linear-gradient(135deg, #eef4ff, #f5f1ff) !important;
}
.attendance-soft-icon-img img {
    width: 19px;
    height: 19px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(91,124,255,.16));
}

@media (max-width: 380px) {
    .checkin-stage-v12 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .streak-board-v12 {
        gap: 7px !important;
    }
    .streak-board-v12 .streak-step {
        min-height: 78px !important;
        border-radius: 19px !important;
    }
}

/* ===== v13: 출석 페이지 카드 제거 + 완료 아이콘 키컬러 처리 ===== */
:root {
    --attendance-mask: url("../icons/출석_선택.png");
}

.checkin-shell-v13 {
    gap: 18px !important;
    padding-top: 4px !important;
}

.checkin-back-plain {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: .62;
    transform: translateX(-4px);
    transition: opacity .16s ease, transform .16s ease;
}
.checkin-back-plain:active {
    opacity: 1;
    transform: translateX(-7px);
}
.checkin-back-plain img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.checkin-stage-v13 {
    padding: 2px 0 4px !important;
    text-align: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.checkin-stage-v13::before,
.checkin-stage-v13::after {
    display: none !important;
}

.checkin-orb-v13 {
    width: 82px;
    height: 82px;
    margin: 0 auto 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 68% 20%, rgba(255,255,255,.96), rgba(255,255,255,.22) 42%, transparent 58%),
        linear-gradient(135deg, #f0f5ff 0%, #f5f1ff 100%);
    border: 1px solid rgba(218, 227, 255, .95);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 16px 32px rgba(91,124,255,.12);
    position: relative;
}
.checkin-orb-v13::before {
    content: "";
    width: 38px;
    height: 38px;
    display: block;
    background: #aab5c7;
    -webkit-mask-image: var(--attendance-mask);
    mask-image: var(--attendance-mask);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: background .18s ease, transform .18s ease;
}
.checkin-orb-v13.is-complete::before {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    transform: scale(1.04);
}
.checkin-orb-v13.is-complete {
    background:
        radial-gradient(circle at 68% 20%, rgba(255,255,255,.98), rgba(255,255,255,.24) 42%, transparent 58%),
        linear-gradient(135deg, #eef4ff 0%, #f4efff 100%);
    border-color: #d3ddff;
}

.checkin-stage-v13 .kicker {
    margin-bottom: 8px !important;
}
.checkin-stage-v13 h1 {
    font-size: 31px !important;
    line-height: 1.08 !important;
}
.checkin-stage-v13 .checkin-copy {
    margin: 10px auto 22px !important;
    max-width: 340px;
    font-size: 13px;
    line-height: 1.58;
    color: #667085;
}
/* v35: 출석 보너스 강조 - 과한 보색 제거, 딥 라벤더/네이비 톤 */
.checkin-copy-emphasis {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.checkin-copy-emphasis .copy-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(91, 124, 255, .07);
    color: #5f6fb8;
    border: 1px solid rgba(91, 124, 255, .13);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}
.checkin-copy-emphasis .copy-main,
.checkin-copy-emphasis .copy-sub {
    margin: 0;
    text-align: center;
}
.checkin-copy-emphasis .copy-main {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 950;
    color: var(--ink);
    letter-spacing: -.045em;
}
.checkin-copy-emphasis .copy-sub {
    font-size: 15px;
    line-height: 1.48;
    color: #536071;
    max-width: 330px;
}
.checkin-copy-emphasis .copy-day,
.checkin-copy-emphasis .copy-rate,
.checkin-copy-emphasis .copy-sub strong {
    color: #2f3a8f;
    font-weight: 950;
    background: transparent !important;
    padding: 0;
    border-radius: 0;
    box-decoration-break: initial;
    -webkit-box-decoration-break: initial;
    text-shadow: none;
}
.checkin-copy-emphasis .copy-day {
    position: relative;
}
.checkin-copy-emphasis .copy-day::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 6px;
    border-radius: 999px;
    background: rgba(91, 124, 255, .16);
    z-index: -1;
}
.checkin-copy-emphasis .copy-rate {
    font-size: 1.1em;
    letter-spacing: -.03em;
}

.streak-board-v13 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}
.streak-board-v13 .streak-step {
    min-height: 88px !important;
    padding: 13px 8px 11px !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.60) !important;
    border: 1px solid #e6ecf5 !important;
    box-shadow: 0 8px 22px rgba(17,24,39,.035) !important;
}
.streak-board-v13 .streak-step em {
    color: #a7b0bf;
    font-size: 9px;
    letter-spacing: .13em;
}
.streak-board-v13 .streak-step strong {
    font-size: 18px;
    color: #98a2b3;
}
.streak-board-v13 .streak-step span {
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    background: #eef2f7;
    color: #98a2b3;
}
.streak-board-v13 .streak-step.done {
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(246,248,255,.92)) !important;
    border-color: #cddaff !important;
}
.streak-board-v13 .streak-step.done em,
.streak-board-v13 .streak-step.done strong {
    color: var(--primary);
}
.streak-board-v13 .streak-step.done span {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
}
.streak-board-v13 .streak-step.next {
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,248,255,.92)) !important;
    border-color: #ded6ff !important;
}
.streak-board-v13 .streak-step.next em,
.streak-board-v13 .streak-step.next strong {
    color: var(--primary-2);
}
.streak-board-v13 .streak-step.next span {
    background: #f0ecff;
    color: var(--primary-2);
}

.checkin-stage-v13 .btn[disabled] {
    opacity: .82;
}

.attendance-soft-icon-img {
    position: relative;
    background: linear-gradient(135deg, #eef4ff, #f5f1ff) !important;
}
.attendance-soft-icon-img::before {
    content: "";
    width: 20px;
    height: 20px;
    display: block;
    background: #aab5c7;
    -webkit-mask-image: var(--attendance-mask);
    mask-image: var(--attendance-mask);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.attendance-soft-icon-img.is-complete::before {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.attendance-soft-icon-img img {
    display: none !important;
}

@media (max-width: 380px) {
    .streak-board-v13 {
        gap: 8px !important;
    }
    .streak-board-v13 .streak-step {
        min-height: 82px !important;
        border-radius: 19px !important;
    }
}


/* ===== v14: 모든 뒤로가기 버튼 통일 + 혜택 아이콘 크기 개선 ===== */
.global-back-plain,
.back-link {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
    opacity: .62 !important;
    transform: translateX(-4px);
    transition: opacity .16s ease, transform .16s ease;
}
.global-back-plain:active,
.back-link:active {
    opacity: 1 !important;
    transform: translateX(-7px);
}
.global-back-plain img,
.back-link img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    display: block;
}

.benefit-card-large .soft-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 16px !important;
    font-size: 23px !important;
    line-height: 1 !important;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 10px 24px rgba(91,124,255,.10);
}
.benefit-card-large {
    align-items: center !important;
}
.benefit-card-large > div {
    min-width: 0;
}
.benefit-card-large > strong {
    white-space: nowrap;
    flex-shrink: 0;
}


/* ===== v15: home route card arrow polish ===== */
.quick-actions a.quick-card {
    position: relative;
}
.card-arrow {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border: 0;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(91,124,255,.24);
    transform: translateZ(0);
}
.quick-actions a.quick-card:active .card-arrow {
    transform: scale(.94);
}
@media (max-width: 420px) {
    .card-arrow {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 15px;
    }
}


/* ===== v16: route arrow exact center fix ===== */
.card-arrow {
    position: relative !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}
.card-arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    border-top: 2.5px solid currentColor;
    border-right: 2.5px solid currentColor;
    transform: translate(-58%, -50%) rotate(45deg);
    border-radius: 1px;
}
@media (max-width: 420px) {
    .card-arrow::before {
        width: 8px;
        height: 8px;
        border-top-width: 2.4px;
        border-right-width: 2.4px;
    }
}


/* ===== v17: app-fit toast + restore route arrow design, exact center ===== */
.toast-wrap {
    top: 76px !important;
    width: min(100% - 32px, 390px) !important;
}
.toast {
    position: relative;
    min-height: 48px;
    padding: 13px 16px 13px 48px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.96) !important;
    color: var(--ink) !important;
    border: 1px solid #dfe7fb !important;
    box-shadow: 0 18px 40px rgba(91,124,255,.16) !important;
    backdrop-filter: blur(14px);
    line-height: 1.45;
}
.toast::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 9px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 7px 16px rgba(91,124,255,.22);
}
.toast::after {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}
.toast-warning {
    border-color: #e5ddff !important;
    background: rgba(250,248,255,.96) !important;
    color: #5b4ac7 !important;
}
.toast-warning::after { content: "!"; }
.toast-danger {
    border-color: #ffd8e1 !important;
    background: rgba(255,247,249,.96) !important;
    color: #c82b52 !important;
}
.toast-danger::before { background: linear-gradient(135deg, #ff6b8b, #ff4d73); }
.toast-danger::after { content: "!"; }

.card-arrow {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 16px !important;
    display: inline-grid !important;
    place-items: center !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 12px 24px rgba(91,124,255,.24) !important;
    position: relative !important;
    overflow: hidden !important;
    text-indent: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
}
.card-arrow::before {
    content: "›" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    transform: translate(-50%, -55%) !important;
    color: #fff !important;
    font-size: 31px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.quick-actions a.quick-card:active .card-arrow {
    transform: scale(.94) !important;
}
@media (max-width: 420px) {
    .card-arrow {
        width: 40px !important;
        height: 40px !important;
        flex-basis: 40px !important;
        border-radius: 15px !important;
    }
    .card-arrow::before {
        font-size: 30px !important;
        transform: translate(-50%, -55%) !important;
    }
}

/* ===== v18: no toast icon + restore v14 route arrow design centered ===== */
.toast-wrap {
    top: 76px !important;
    width: min(100% - 32px, 390px) !important;
}
.toast {
    position: relative !important;
    min-height: auto !important;
    padding: 13px 16px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,247,255,.98)) !important;
    color: var(--ink) !important;
    border: 1px solid #dfe7fb !important;
    box-shadow: 0 18px 40px rgba(91,124,255,.14) !important;
    backdrop-filter: blur(14px);
    line-height: 1.45 !important;
}
.toast::before,
.toast::after {
    content: none !important;
    display: none !important;
}
.toast-success {
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(241,245,255,.98)) !important;
    color: #364ec9 !important;
    border-color: #d8e2ff !important;
}
.toast-warning {
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,244,255,.98)) !important;
    color: #6246d9 !important;
    border-color: #e4dcff !important;
}
.toast-danger {
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,246,249,.98)) !important;
    color: #d23864 !important;
    border-color: #ffd7e2 !important;
}

.card-arrow {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f7f9fc !important;
    color: var(--primary) !important;
    border: 1px solid var(--line) !important;
    box-shadow: 0 10px 24px rgba(17,24,39,.06) !important;
    position: relative !important;
    overflow: hidden !important;
    text-indent: -9999px !important;
    font-size: 0 !important;
    line-height: 0 !important;
}
.card-arrow::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 8px !important;
    height: 8px !important;
    border-top: 2.2px solid currentColor !important;
    border-right: 2.2px solid currentColor !important;
    border-left: 0 !important;
    border-bottom: 0 !important;
    border-radius: 1px !important;
    transform: translate(-62%, -50%) rotate(45deg) !important;
    color: var(--primary) !important;
    background: transparent !important;
}
.quick-actions a.quick-card:active .card-arrow {
    transform: scale(.94) !important;
}
@media (max-width: 420px) {
    .card-arrow {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }
    .card-arrow::before {
        width: 8px !important;
        height: 8px !important;
        transform: translate(-62%, -50%) rotate(45deg) !important;
    }
}


/* ===== v21: 혜택/마이 메뉴 복구 + PostgreSQL 배포 캐시 정리 ===== */
.bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.bottom-nav .nav-item {
    min-width: 0 !important;
}
.bottom-nav .nav-item b {
    white-space: nowrap;
}
.nav-benefit {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    color: #9aa5b5;
    font-size: 18px !important;
    line-height: 1 !important;
}
.nav-item.active .nav-benefit {
    color: var(--primary) !important;
}
@media (max-width: 360px) {
    .bottom-nav .nav-item b {
        font-size: 10.5px !important;
    }
}


/* ===== v22: Kakao login integration ===== */
.auth-divider {
    position: relative;
    margin: 16px 0 12px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}
.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--line);
}
.auth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 10px;
    background: #fff;
}
.kakao-login-btn {
    min-height: 48px;
    width: 100%;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fee500;
    color: #191919;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(25,25,25,.08);
    transition: transform .16s ease, box-shadow .16s ease;
}
.kakao-login-btn span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(25,25,25,.92);
    color: #fee500;
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
}
.kakao-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(25,25,25,.10);
}
.kakao-login-btn:active { transform: scale(.985); }


/* ===== v23: Kakao official image button ===== */
.kakao-login-image-btn {
    width: 183px !important;
    min-height: 45px !important;
    height: 45px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    background: transparent !important;
    color: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
    line-height: 0 !important;
}
.kakao-login-image-btn img {
    width: 183px !important;
    height: 45px !important;
    display: block !important;
    object-fit: contain !important;
}
.kakao-login-image-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 24px rgba(25,25,25,.08) !important;
}
.kakao-login-image-btn:active { transform: scale(.985) !important; }


/* ===== v24: 첫 화면 로그인/회원가입 카드에도 카카오 이미지 버튼 고정 ===== */
.public-login-card .auth-divider {
    margin-top: 16px !important;
    margin-bottom: 12px !important;
}
.public-login-card .kakao-login-image-btn {
    flex: 0 0 auto !important;
    width: 183px !important;
    height: 45px !important;
}
.public-login-card .kakao-login-image-btn img {
    width: 183px !important;
    height: 45px !important;
}

/* ===== v28: auth ID/password polish ===== */
.auth-divider span {
    background: transparent !important;
    padding: 0 8px !important;
}
.form-help {
    display: block;
    margin-top: -2px;
    color: #8a94a6;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.45;
}
.form-error {
    display: block;
    margin-top: -2px;
    color: #e53935;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}
.auth-help-links {
    margin-top: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
}
.auth-help-links a {
    color: #7a8495;
}
.auth-help-links span {
    width: 1px;
    height: 11px;
    background: #d9dee8;
}

/* ===== v29: auth validation polish ===== */
.auth-divider,
.auth-divider span {
    background: transparent !important;
    box-shadow: none !important;
}
.auth-divider span::before,
.auth-divider span::after {
    display: none !important;
}
.form-error {
    color: #e3342f !important;
}

/* ===== v30: 마이페이지 적립내역 카드 + 영수증형 적립내역 페이지 ===== */
.delay-half { transition-delay: .08s; }

.receipt-entry-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding: 18px 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,247,255,.98));
    border: 1px solid #dde6f5;
    border-radius: 26px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.receipt-entry-card::after {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    right: 102px;
    width: 1px;
    border-right: 2px dashed #dfe7f6;
    opacity: .9;
}
.receipt-entry-copy {
    min-width: 0;
    position: relative;
    z-index: 1;
}
.receipt-entry-copy h2 {
    margin: 4px 0 6px;
    font-size: 23px;
    line-height: 1.06;
    letter-spacing: -.04em;
    color: var(--ink);
}
.receipt-entry-copy span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    word-break: keep-all;
}
.receipt-entry-side {
    min-width: 84px;
    padding-left: 8px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.receipt-entry-side strong {
    display: block;
    color: var(--primary);
    font-size: 21px;
    line-height: 1;
    letter-spacing: -.03em;
}
.receipt-entry-side em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(91,124,255,.14), rgba(123,97,255,.16));
    color: var(--primary);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.receipt-shell {
    width: min(100%, 440px);
    margin: 0 auto;
    padding: 18px 16px 124px;
}
.receipt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-top: 10px;
}
.receipt-header h1 {
    margin: 4px 0 8px;
    color: var(--ink);
    font-size: 33px;
    line-height: 1.02;
    letter-spacing: -.06em;
}
.receipt-sub {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    word-break: keep-all;
}
.receipt-header-total {
    flex: 0 0 auto;
    min-width: 76px;
    padding: 12px 13px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(91,124,255,.12), rgba(123,97,255,.14));
    border: 1px solid #d8e1f3;
    text-align: center;
    color: var(--primary);
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    box-shadow: var(--shadow);
}
.receipt-tabs {
    margin-top: 18px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    border-radius: 18px;
    background: rgba(255,255,255,.76);
    border: 1px solid #e4eaf4;
}
.receipt-tabs button {
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #9aa4b8;
    font-size: 16px;
    font-weight: 800;
}
.receipt-tabs button.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 20px rgba(17,24,39,.08);
}
.receipt-black-card {
    margin-top: 18px;
    padding: 20px 20px 16px;
    background: #090b11;
    border-radius: 28px;
    box-shadow: 0 24px 56px rgba(8,11,17,.24);
    color: #fff;
}
.receipt-black-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.receipt-black-top p {
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.receipt-black-top strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -.03em;
}
.receipt-black-top b {
    color: #8fff4a;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.04em;
}
.receipt-black-list {
    display: grid;
    gap: 10px;
    padding-top: 14px;
}
.receipt-black-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,.92);
    font-size: 16px;
}
.receipt-black-row span {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
}
.receipt-black-row b {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
}
.receipt-black-row b.plus { color: #8fff4a; }
.receipt-black-row b.minus { color: #ffb5c4; }
.receipt-black-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,.7);
    font-size: 13px;
}
.receipt-paper {
    margin-top: 16px;
    padding: 18px 18px 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,252,255,.98));
    border: 1px solid #dde6f5;
    border-radius: 28px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.receipt-paper::before,
.receipt-paper::after {
    content: "";
    position: absolute;
    top: 88px;
    width: 20px;
    height: 20px;
    background: var(--bg);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px #e0e7f3;
}
.receipt-paper::before { left: -10px; }
.receipt-paper::after { right: -10px; }
.receipt-paper-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #d9e3f2;
}
.receipt-paper-head h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.04;
    letter-spacing: -.04em;
}
.receipt-paper-chip {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(91,124,255,.10);
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
}
.receipt-ledger {
    display: grid;
    gap: 0;
}
.receipt-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px dashed #e1e8f4;
}
.receipt-line:last-child { border-bottom: 0; }
.receipt-line-left {
    min-width: 0;
    flex: 1 1 auto;
}
.receipt-line-left strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.3;
}
.receipt-line-left p {
    margin: 6px 0 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    word-break: keep-all;
}
.receipt-line-left span {
    color: #a1abc0;
    font-size: 11px;
    letter-spacing: .08em;
}
.receipt-line-right {
    flex: 0 0 auto;
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
    letter-spacing: -.03em;
}
.receipt-line-right.is-plus { color: var(--primary); }
.receipt-line-right.is-minus { color: #ff627b; }
.receipt-empty {
    padding: 30px 0 18px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.page-point_history .bottom-nav .nav-item:last-child,
.page-my .bottom-nav .nav-item:last-child {
    color: var(--primary);
}

@media (max-width: 380px) {
    .receipt-entry-card {
        padding: 16px;
    }
    .receipt-entry-card::after {
        right: 92px;
    }
    .receipt-entry-copy h2 {
        font-size: 21px;
    }
    .receipt-entry-side {
        min-width: 76px;
    }
    .receipt-header h1 {
        font-size: 29px;
    }
    .receipt-tabs button {
        font-size: 15px;
    }
    .receipt-black-card,
    .receipt-paper {
        border-radius: 24px;
    }
}


/* ===== v31: 실제 DB 기반 영수증형 적립 내역 ===== */
.receipt-shell-v31 {
    padding-top: 18px;
}

.receipt-v31-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-top: 10px;
    margin-bottom: 16px;
}
.receipt-v31-head h1 {
    margin: 3px 0 8px;
    color: var(--ink);
    font-size: 32px;
    line-height: 1.04;
    letter-spacing: -.06em;
}
.receipt-v31-head p:not(.kicker) {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.62;
    word-break: keep-all;
}
.receipt-v31-head > strong {
    flex: 0 0 auto;
    min-width: 76px;
    padding: 12px 13px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(91,124,255,.12), rgba(123,97,255,.14));
    border: 1px solid #d8e1f3;
    text-align: center;
    color: var(--primary);
    font-weight: 950;
    font-size: 20px;
    line-height: 1;
    box-shadow: var(--shadow);
}

.receipt-v31-tabs {
    margin-bottom: 16px;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    border-radius: 19px;
    background: rgba(255,255,255,.72);
    border: 1px solid #e1e8f3;
}
.receipt-v31-tabs button {
    height: 44px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #9ca6b8;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -.02em;
}
.receipt-v31-tabs button.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 20px rgba(17,24,39,.08);
}

.receipt-ticket {
    position: relative;
    padding: 20px 18px 22px;
    background:
        radial-gradient(circle at 18px 18px, rgba(91,124,255,.06), transparent 16px),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,253,255,.98));
    border: 1px solid #dfe7f3;
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(17,24,39,.08);
    overflow: visible;
}
.receipt-ticket::before,
.receipt-ticket::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    height: 12px;
    background:
        radial-gradient(circle at 6px 6px, var(--bg) 0 5px, transparent 5.5px) 0 0 / 18px 12px repeat-x;
    pointer-events: none;
}
.receipt-ticket::before {
    top: -6px;
}
.receipt-ticket::after {
    bottom: -6px;
    transform: rotate(180deg);
}
.receipt-ticket-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 15px;
}
.receipt-ticket-top span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.receipt-ticket-top b {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
}

.receipt-ticket-summary {
    display: grid;
    grid-template-columns: 1.15fr .92fr .92fr;
    gap: 8px;
    padding: 12px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(91,124,255,.08), rgba(123,97,255,.08));
    border: 1px solid rgba(91,124,255,.12);
}
.receipt-ticket-summary div {
    min-width: 0;
}
.receipt-ticket-summary em {
    display: block;
    margin-bottom: 7px;
    color: #7b8497;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 850;
    letter-spacing: -.01em;
}
.receipt-ticket-summary strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
    line-height: 1;
    letter-spacing: -.04em;
    white-space: nowrap;
}
.receipt-ticket-summary div:first-child strong {
    color: var(--primary);
    font-size: 22px;
}

.receipt-ticket-dashed {
    position: relative;
    margin: 18px -18px 0;
    border-top: 1px dashed #d6dfec;
}
.receipt-ticket-dashed::before,
.receipt-ticket-dashed::after {
    content: "";
    position: absolute;
    top: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px #e0e7f2;
}
.receipt-ticket-dashed::before { left: -10px; }
.receipt-ticket-dashed::after { right: -10px; }

.receipt-real-list {
    display: grid;
}
.receipt-real-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px dashed #e1e8f2;
}
.receipt-real-row:last-child {
    border-bottom: 0;
}
.receipt-row-main {
    flex: 1 1 auto;
    min-width: 0;
}
.receipt-row-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.receipt-row-title strong {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -.025em;
}
.receipt-row-title span {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}
.receipt-row-title span.done {
    color: var(--primary);
    background: rgba(91,124,255,.12);
}
.receipt-row-title span.waiting {
    color: #b87500;
    background: rgba(255,179,64,.16);
}
.receipt-row-title span.used {
    color: #ef476f;
    background: rgba(239,71,111,.10);
}
.receipt-row-main p {
    margin: 7px 0 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.52;
    word-break: keep-all;
}
.receipt-row-main time {
    color: #a4adbf;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
}
.receipt-row-point {
    flex: 0 0 auto;
    min-width: 66px;
    text-align: right;
    font-size: 18px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.035em;
}
.receipt-row-point.plus {
    color: var(--primary);
}
.receipt-row-point.minus {
    color: #ef476f;
}
.receipt-row-point.zero {
    color: #a5afc0;
}

.receipt-ticket-bottom {
    margin: 4px -2px 0;
    padding-top: 16px;
    border-top: 1px dashed #dbe4f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.receipt-ticket-bottom span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f5f7fb;
    color: #7b8497;
    font-size: 11px;
    font-weight: 850;
}
.receipt-empty-v31 {
    padding: 34px 0 26px;
    text-align: center;
}
.receipt-empty-v31 strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
}
.receipt-empty-v31 p {
    margin: 9px auto 0;
    max-width: 270px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    word-break: keep-all;
}

@media (max-width: 380px) {
    .receipt-v31-head h1 {
        font-size: 29px;
    }
    .receipt-ticket {
        padding-left: 16px;
        padding-right: 16px;
    }
    .receipt-ticket-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .receipt-ticket-summary div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .receipt-ticket-summary em {
        margin-bottom: 0;
    }
    .receipt-ticket-dashed {
        margin-left: -16px;
        margin-right: -16px;
    }
}


/* ===== v32: 적립내역 탭 제거, 전체 내역 단일 표시 ===== */
.receipt-v32-label {
    margin: 0 0 16px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    border: 1px solid #e2e9f4;
    box-shadow: 0 10px 24px rgba(17,24,39,.045);
}
.receipt-v32-label span {
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.02em;
}
.receipt-v32-label b {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    text-align: right;
    line-height: 1.35;
}
@media (max-width: 380px) {
    .receipt-v32-label {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .receipt-v32-label b {
        text-align: left;
    }
}

/* ===== v36: friend invite home card + page ===== */
.friend-home-card {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(120px, .9fr);
    gap: 14px;
    padding: 20px 18px;
    border-radius: 28px;
    border: 1px solid #e1e7f4;
    background: linear-gradient(180deg, #ffffff, #fafbff);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
}
.friend-home-card:active { transform: scale(.988); }
.friend-home-copy h2 {
    margin: 8px 0 10px;
    font-size: 27px;
    line-height: 1.08;
    letter-spacing: -.05em;
    color: var(--ink);
}
.friend-home-copy > p:last-of-type {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    word-break: keep-all;
}
.friend-home-chips {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.friend-home-chips span,
.friends-chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f4f7ff;
    border: 1px solid #e0e7f8;
    color: #4a5fcf;
    font-size: 12px;
    font-weight: 800;
}
.friend-home-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    padding: 4px 0 2px;
}
.friend-home-side > div {
    padding: 12px 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7f9ff, #ffffff);
    border: 1px solid #e3e8f6;
}
.friend-home-side strong {
    display: block;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--ink);
}
.friend-home-side small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
}
.friend-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.friends-shell {
    padding-bottom: 130px;
}
.friends-head {
    margin-top: 10px;
}
.friends-head h1 {
    margin: 6px 0 8px;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -.06em;
    color: var(--ink);
}
.friends-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}
.friends-tabs {
    margin-top: 18px;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    border: 1px solid #e1e8f3;
}
.friends-tabs button {
    height: 46px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #9ba6b8;
    font-size: 15px;
    font-weight: 850;
}
.friends-tabs button span {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    border-radius: 999px;
    background: #ffe8ed;
    color: #ff6b7d;
    font-size: 12px;
    font-weight: 900;
}
.friends-tabs button.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 20px rgba(17,24,39,.08);
}
.friends-panel {
    margin-top: 16px;
}
.friends-hero-card {
    padding: 24px 22px;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    border: 1px solid #e0e7f5;
    box-shadow: var(--shadow);
}
.friends-banner {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f6f8fe;
    border: 1px solid #e5eaf7;
    color: #63708a;
    font-size: 12px;
    font-weight: 850;
}
.friends-hero-card h2 {
    margin: 16px 0 12px;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -.07em;
    color: var(--ink);
}
.friends-hero-copy {
    margin: 0;
    color: #4f596f;
    font-size: 15px;
    line-height: 1.7;
}
.friends-hero-copy strong,
.friends-guide-block h3 {
    color: var(--ink);
}
.friends-chip-row {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.friends-guide-block {
    margin-top: 16px;
    padding: 22px 20px;
    border-radius: 28px;
    background: rgba(255,255,255,.76);
    border: 1px solid #e0e6f2;
    box-shadow: var(--shadow);
}
.friends-guide-block h3 {
    margin: 8px 0 0;
    font-size: 35px;
    line-height: 1.18;
    letter-spacing: -.06em;
}
.friends-info-card {
    margin-top: 18px;
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: #f8f9fc;
    border: 1px solid #ebeff7;
}
.friends-info-card strong {
    display: block;
    color: var(--ink);
    font-size: 17px;
}
.friends-info-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    word-break: keep-all;
}
.friends-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #fafbff);
    border: 1px solid #dfe7f4;
    box-shadow: var(--shadow);
}
.friends-summary-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.friends-summary-card strong {
    display: block;
    margin-top: 10px;
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.04em;
}
.friends-summary-card > span {
    flex: 0 0 auto;
    min-width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(91,124,255,.12), rgba(123,97,255,.14));
    color: var(--primary);
    font-size: 18px;
    font-weight: 900;
}
.friends-list-title {
    margin-top: 18px;
}
.friends-list,
.friends-empty-stack {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}
.friend-row-card,
.friend-slot-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #fbfbff);
    border: 1px solid #e3e8f4;
    box-shadow: var(--shadow);
}
.friend-slot-card {
    flex-direction: column;
    align-items: flex-start;
    border-style: dashed;
    background: rgba(255,255,255,.68);
}
.friend-slot-card.active {
    border-style: solid;
    background: linear-gradient(180deg, #f7fbff, #ffffff);
}
.friend-slot-card strong,
.friend-copy strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.3;
}
.friend-slot-card span,
.friend-copy p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.friend-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(91,124,255,.14), rgba(123,97,255,.18));
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
}
.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.friend-copy {
    min-width: 0;
    flex: 1 1 auto;
}
.friend-row-card > b {
    flex: 0 0 auto;
    color: #6eb527;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -.04em;
}
.friend-share-btn {
    cursor: pointer;
}

@media (max-width: 380px) {
    .friend-home-card {
        grid-template-columns: 1fr;
    }
    .friend-home-copy h2 {
        font-size: 24px;
    }
    .friend-home-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .friend-home-link {
        grid-column: 1 / -1;
    }
    .friends-hero-card h2 {
        font-size: 34px;
    }
    .friends-guide-block h3 {
        font-size: 30px;
    }
}

/* ===== v40 friend invite redesign ===== */
.friend-invite-home {
    margin-top: 18px;
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 28px;
    border: 1px solid #dde5f2;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(249,250,255,.92));
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow);
}
.friend-invite-home:active { transform: scale(.99); }
.friend-invite-home__head,
.friend-invite-home__body { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.friend-home-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eef2ff, #f4f0ff);
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.friend-invite-home__badge {
    flex: 0 0 auto;
    min-width: 74px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(91,124,255,.12), rgba(123,97,255,.14));
    color: var(--primary-2);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.03em;
}
.friend-invite-home__icon {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef2ff, #f4f0ff);
    color: var(--primary-2);
    font-size: 26px;
}
.friend-invite-home__copy { flex: 1 1 auto; min-width: 0; }
.friend-invite-home__copy strong {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.friend-invite-home__copy h2 {
    margin: 4px 0 6px;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: -.05em;
}
.friend-invite-home__copy h2 em,
.friends-hero-clean__copy h2 em {
    color: var(--primary-2);
    font-style: normal;
}
.friend-invite-home__copy p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.65;
    word-break: keep-all;
}
.friend-invite-home__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}
.friend-invite-home__stats div,
.friend-slot-panel,
.friend-action-card,
.friend-flow-grid article,
.friends-hero-clean,
.clean-note,
.clean-total-card {
    border-radius: 22px;
    border: 1px solid #e2e8f3;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
}
.friend-invite-home__stats div {
    padding: 13px 12px;
    text-align: left;
    background: linear-gradient(180deg, #fff, #fafbff);
}
.friend-invite-home__stats small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.friend-invite-home__stats b {
    display: block;
    margin-top: 7px;
    color: var(--ink);
    font-size: 18px;
    letter-spacing: -.04em;
}

.friends-shell { padding-bottom: 110px; }
.friends-simple-head { margin-top: 12px; }
.friends-simple-head h1 {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -.05em;
}
.friends-simple-sub {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}
.friends-simple-tabs {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    padding: 4px;
    gap: 4px;
    border-radius: 20px;
    background: rgba(255,255,255,.76);
    border: 1px solid #e0e6f1;
}
.friends-simple-tabs button {
    border: 0;
    height: 46px;
    border-radius: 16px;
    background: transparent;
    color: #98a4b8;
    font-size: 15px;
    font-weight: 850;
}
.friends-simple-tabs button.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(17,24,39,.06);
}
.friends-simple-tabs button span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 50%;
    background: #f5efff;
    color: var(--primary-2);
    font-size: 11px;
    font-weight: 900;
}
.friends-hero-clean,
.clean-note,
.clean-total-card { margin-top: 16px; padding: 20px; }
.friends-hero-clean {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.friends-hero-clean__copy { flex: 1 1 auto; min-width: 0; }
.friends-hero-clean__copy h2 {
    margin: 10px 0 8px;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.16;
    letter-spacing: -.05em;
}
.friends-hero-clean__copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}
.friends-hero-clean__badge {
    flex: 0 0 auto;
    min-width: 86px;
    padding: 14px 12px;
    border-radius: 22px;
    background: linear-gradient(135deg, #eef2ff, #f5f1ff);
    text-align: center;
}
.friends-hero-clean__badge b {
    display: block;
    color: var(--primary-2);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -.05em;
}
.friends-hero-clean__badge small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}
.friend-action-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}
.friend-action-card {
    padding: 16px 14px;
    text-align: left;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}
button.friend-action-card {
    width: 100%;
    border: 0;
    font: inherit;
    color: inherit;
}
.friend-action-card:active { transform: scale(.985); }
.friend-action-card span,
.friend-flow-grid article b {
    display: inline-block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.friend-action-card strong,
.friend-flow-grid article strong,
.clean-note strong,
.clean-total-card strong,
.friend-slot-panel strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
}
.friend-action-card strong { font-size: 17px; line-height: 1.2; letter-spacing: -.03em; }
.friend-action-card p,
.friend-flow-grid article p,
.clean-note li,
.clean-total-card p,
.friend-slot-panel p,
.friend-slot-panel small {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}
.friend-flow-grid {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}
.friend-flow-grid article { padding: 18px; }
.clean-note ul { margin: 10px 0 0; padding-left: 18px; }
.clean-note li + li { margin-top: 8px; }
.clean-total-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.clean-total-card strong {
    margin-top: 8px;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.04em;
}
.clean-total-card__meta {
    flex: 0 0 auto;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f4f7ff, #faf7ff);
    text-align: center;
}
.clean-total-card__meta span {
    display: block;
    color: var(--primary-2);
    font-size: 16px;
    font-weight: 900;
}
.clean-total-card__meta small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}
.friend-slot-grid {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}
.friend-slot-panel {
    padding: 18px;
    text-align: left;
}
button.friend-slot-panel {
    width: 100%;
    border: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.friend-slot-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.friend-slot-panel .friends-clean-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
}
.friend-slot-panel__top b {
    color: var(--primary-2);
    font-size: 22px;
    line-height: 1;
    letter-spacing: -.04em;
}
.friend-slot-panel small {
    display: block;
}
.friend-slot-panel.is-empty {
    border-style: dashed;
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,255,.86));
}
.friend-slot-panel__empty-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef2ff, #f4f0ff);
    color: var(--primary-2);
    font-size: 26px;
    font-weight: 700;
}
.invite-copy-btn.is-copied,
.invite-share-btn.is-shared {
    background: linear-gradient(135deg, rgba(91,124,255,.16), rgba(123,97,255,.18)) !important;
    border-color: #cfd7ff !important;
}

@media (max-width: 430px) {
    .friend-invite-home__body {
        align-items: flex-start;
    }
    .friend-invite-home__copy h2 { font-size: 24px; }
    .friend-invite-home__stats,
    .friend-action-grid { grid-template-columns: 1fr; }
    .friends-hero-clean {
        flex-direction: column;
        align-items: stretch;
    }
    .friends-hero-clean__copy h2 { font-size: 26px; }
    .friends-hero-clean__badge {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .friends-hero-clean__badge small { margin-top: 0; }
}


/* ===== v41 friend invite app-style cleanup ===== */
.friend-invite-home {
    gap: 12px;
    padding: 18px 18px 16px;
}
.friend-invite-home__body {
    align-items: center;
}
.friend-invite-home__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 18px;
    font-size: 30px;
    font-weight: 500;
    background: linear-gradient(135deg, var(--soft), var(--soft-2));
    color: var(--primary-2);
}
.friend-invite-home__copy strong {
    font-size: 12px;
    color: var(--muted);
}
.friend-invite-home__copy h2 {
    margin: 3px 0 5px;
    font-size: 20px;
    line-height: 1.28;
}
.friend-invite-home__copy p {
    font-size: 12px;
    line-height: 1.55;
}
.friend-invite-home__arrow {
    flex: 0 0 auto;
    margin-left: 2px;
}

.friends-simple-head h1 {
    font-size: 24px;
}
.friends-simple-sub {
    font-size: 13px;
    line-height: 1.55;
}
.friends-simple-tabs button {
    font-size: 14px;
}
.friends-hero-v41 {
    padding: 18px;
    gap: 16px;
}
.friends-hero-v41__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.friends-hero-v41__body {
    display: flex;
    align-items: center;
    gap: 14px;
}
.friends-hero-v41__icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--soft), var(--soft-2));
    color: var(--primary-2);
    font-size: 32px;
    font-weight: 500;
}
.friends-hero-clean__copy strong {
    font-size: 12px;
    color: var(--muted);
}
.friends-hero-clean__copy h2 {
    margin: 4px 0 6px;
    font-size: 26px;
    line-height: 1.22;
}
.friends-hero-clean__copy p {
    font-size: 12.5px;
    line-height: 1.6;
}
.friends-hero-clean__badge {
    min-width: 82px;
    padding: 12px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(91,124,255,.10), rgba(123,97,255,.12));
}
.friends-hero-clean__badge b {
    font-size: 21px;
}
.friends-hero-clean__badge small {
    font-size: 10px;
}

.friend-flow-list {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}
.friend-flow-list article,
.friend-guide-note,
.compact-slot-card,
.invite-sheet__summary div {
    border-radius: 20px;
    border: 1px solid #e2e8f3;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
}
.friend-flow-list article {
    padding: 15px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.friend-flow-list article span {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--soft), var(--soft-2));
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}
.friend-flow-list article strong {
    display: block;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -.02em;
}
.friend-flow-list article p {
    margin: 5px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.55;
}
.friend-guide-note {
    margin-top: 16px;
    padding: 18px;
}
.friend-guide-note strong {
    font-size: 16px;
}
.friend-guide-note ul {
    margin-top: 10px;
}
.friend-guide-note li {
    font-size: 12.5px;
}

.clean-total-card {
    margin-top: 16px;
    padding: 18px;
}
.clean-total-card p {
    font-size: 12px;
}
.clean-total-card strong {
    font-size: 26px;
}
.clean-total-card__meta {
    padding: 11px 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--soft), var(--soft-2));
}
.clean-total-card__meta span {
    font-size: 15px;
    color: var(--primary-2);
}
.clean-total-card__meta small {
    font-size: 10px;
}

.compact-slot-grid {
    margin-top: 14px;
    gap: 10px;
}
.compact-slot-card {
    padding: 14px 16px;
}
.compact-slot-card .friend-slot-panel__row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}
.compact-slot-card .friends-clean-avatar,
.compact-slot-card .friend-slot-panel__empty-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
}
.compact-slot-card .friends-clean-avatar {
    font-size: 18px;
}
.compact-slot-card .friend-slot-panel__empty-mark {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--soft), var(--soft-2));
    color: var(--primary-2);
    font-size: 24px;
    font-weight: 500;
}
.compact-slot-card .friend-slot-panel__info {
    flex: 1 1 auto;
    min-width: 0;
}
.compact-slot-card .friend-slot-panel__info strong {
    margin-top: 0;
    font-size: 16px;
    line-height: 1.2;
}
.compact-slot-card .friend-slot-panel__info p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.45;
}
.compact-slot-card .friend-slot-panel__top b,
.compact-slot-card .friend-slot-panel__row > b {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--primary-2);
    font-size: 18px;
    line-height: 1;
    letter-spacing: -.03em;
}
button.compact-slot-card {
    width: 100%;
    border: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
button.compact-slot-card .card-arrow {
    flex: 0 0 36px;
    margin-left: auto;
}
button.compact-slot-card:active {
    transform: scale(.985);
}

body.sheet-open {
    overflow: hidden;
}
.invite-sheet-dim {
    position: fixed;
    inset: 0;
    z-index: 88;
    background: rgba(15, 23, 42, .46);
    opacity: 0;
    transition: opacity .22s ease;
}
.invite-sheet-dim.is-visible {
    opacity: 1;
}
.invite-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 89;
    width: min(100%, 440px);
    padding: 12px 20px 28px;
    border-radius: 28px 28px 0 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -20px 50px rgba(17,24,39,.16);
    transform: translate(-50%, 100%);
    transition: transform .22s ease;
}
.invite-sheet.is-visible {
    transform: translate(-50%, 0);
}
.invite-sheet__handle {
    width: 52px;
    height: 5px;
    border-radius: 999px;
    margin: 2px auto 16px;
    background: #d9dfeb;
}
.invite-sheet__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--soft), var(--soft-2));
    color: var(--primary-2);
    font-size: 32px;
    font-weight: 500;
}
.invite-sheet h2 {
    margin: 0;
    text-align: center;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -.04em;
    color: var(--ink);
}
.invite-sheet__lead {
    margin: 10px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.invite-sheet__summary {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}
.invite-sheet__summary div {
    padding: 14px 12px;
    text-align: center;
}
.invite-sheet__summary small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}
.invite-sheet__summary b {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    font-size: 18px;
    letter-spacing: -.03em;
}
.invite-sheet__link-label {
    margin: 16px 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.invite-sheet__link-box {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #e2e8f3;
    background: linear-gradient(180deg, #fff, #fafbff);
    color: var(--ink);
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
}
.invite-sheet__primary {
    margin-top: 16px;
}
.invite-sheet__primary.is-copied {
    background: linear-gradient(135deg, var(--primary-2), var(--primary)) !important;
}
.invite-sheet__close {
    width: 100%;
    margin-top: 10px;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 430px) {
    .friend-invite-home__copy h2 {
        font-size: 18px;
    }
    .friend-invite-home__copy p {
        font-size: 11.5px;
    }
    .friend-invite-home__body {
        align-items: flex-start;
    }
    .friends-hero-v41__body {
        align-items: flex-start;
    }
    .friends-hero-clean__copy h2 {
        font-size: 23px;
    }
    .invite-sheet {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* ===== v42 friend invite media refresh ===== */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.asset-attribution { pointer-events: none; }
.friend-invite-home {
    padding: 18px;
}
.friend-invite-home__body {
    gap: 14px;
}
.friend-invite-home__icon.is-image,
.invite-sheet__icon--image {
    background: linear-gradient(135deg, rgba(91,124,255,.10), rgba(123,97,255,.16));
}
.friend-invite-home__icon.is-image img,
.invite-sheet__icon--image img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}
.friend-invite-home__copy strong {
    display: block;
    margin-bottom: 2px;
}
.friend-invite-home__copy h2 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.24;
    letter-spacing: -.03em;
}
.friend-invite-home__copy p {
    margin: 0;
    font-size: 12px;
    line-height: 1.58;
}
.friend-invite-home__arrow {
    align-self: center;
}

.friends-guide-hero-clean {
    margin-top: 18px;
    padding: 10px 2px 0;
}
.friends-guide-hero-clean strong {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.friends-guide-hero-clean h2 {
    margin: 6px 0 8px;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.16;
    letter-spacing: -.05em;
}
.friends-guide-hero-clean h2 em {
    color: var(--primary-2);
    font-style: normal;
}
.friends-guide-hero-clean p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}
.friend-video-card {
    margin-top: 16px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #e3e8f5;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,255,.96));
    box-shadow: var(--shadow);
}
.friend-video-card video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #eef2ff;
}
.friend-flow-list {
    margin-top: 18px;
}
.compact-slot-grid {
    margin-top: 14px;
}
.compact-slot-card {
    padding: 12px 16px;
    min-height: 82px;
}
.compact-slot-card .friend-slot-panel__row {
    min-height: 0;
}
.compact-slot-card .friend-slot-panel__empty-mark {
    font-size: 22px;
}
.compact-slot-card__inline-copy {
    display: flex;
    align-items: center;
    gap: 8px;
}
.compact-slot-card__inline-copy strong,
.compact-slot-card__inline-copy p {
    margin: 0 !important;
    white-space: nowrap;
}
.compact-slot-card__inline-copy p {
    font-size: 12px;
    color: var(--muted);
}
.invite-sheet__icon--image img {
    width: 36px;
    height: 36px;
}
.invite-sheet__summary {
    grid-template-columns: repeat(2, minmax(0,1fr));
}
.invite-sheet__summary div {
    background: linear-gradient(180deg, #fff, #fbfcff);
}
.invite-sheet__link-box {
    font-size: 11.5px;
}
@media (max-width: 430px) {
    .friend-invite-home__copy h2 {
        font-size: 16px;
    }
    .friends-guide-hero-clean h2 {
        font-size: 28px;
    }
    .compact-slot-card {
        min-height: 76px;
    }
    .compact-slot-card__inline-copy {
        gap: 6px;
    }
    .compact-slot-card__inline-copy p {
        font-size: 11px;
    }
}


/* ===== v43 friend video size fix ===== */
.friend-video-card {
    margin-top: 18px !important;
    padding: 28px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 230px !important;
    border-radius: 28px !important;
    background: #fff !important;
    border: 1px solid #e3e8f5 !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden !important;
}
.friend-video-card video {
    width: min(62%, 230px) !important;
    max-width: 230px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
}
@media (max-width: 430px) {
    .friend-video-card {
        min-height: 210px !important;
        padding: 24px 16px !important;
    }
    .friend-video-card video {
        width: min(66%, 210px) !important;
        max-width: 210px !important;
    }
}


/* ===== v44 friends page white canvas + slower video feel ===== */
body.page-friends {
    background: #ffffff;
}
body.page-friends .topbar {
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(230,235,242,.95);
}
body.page-friends .app-main {
    background: #ffffff;
}
body.page-friends .friends-shell {
    padding-top: 12px;
}
body.page-friends .friends-simple-head,
body.page-friends .friends-simple-tabs,
body.page-friends .friends-guide-hero-clean,
body.page-friends .friend-flow-list,
body.page-friends .friend-guide-note,
body.page-friends .friends-total-card,
body.page-friends .friend-slot-grid {
    position: relative;
    z-index: 1;
}
body.page-friends .friends-simple-tabs {
    background: #f8faff;
    border: 1px solid #e5ebf5;
    box-shadow: 0 10px 28px rgba(17,24,39,.05);
}
body.page-friends .friends-simple-tabs button.active {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(17,24,39,.06);
}
body.page-friends .friend-video-card {
    background: #ffffff !important;
    border-color: #e4eaf4 !important;
    box-shadow: 0 14px 34px rgba(17,24,39,.06) !important;
}
body.page-friends .friend-video-card video {
    background: #ffffff !important;
}
body.page-friends .friend-flow-list article,
body.page-friends .friend-guide-note,
body.page-friends .compact-slot-card,
body.page-friends .invite-sheet__summary div,
body.page-friends .clean-total-card {
    background: #ffffff;
    border-color: #e4eaf4;
    box-shadow: 0 12px 30px rgba(17,24,39,.05);
}
body.page-friends .friend-flow-list article {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}
body.page-friends .friend-guide-note {
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}


/* ===== v45 friends guide blend + centered hero ===== */
body.page-friends,
body.page-friends .app-main {
    background: #ffffff !important;
}
body.page-friends .detail-shell.friends-shell {
    background: #ffffff;
}
body.page-friends .friends-shell {
    padding-top: 10px;
}
.friends-guide-hero-clean--center {
    text-align: center;
    padding-top: 12px;
}
.friends-guide-hero-clean--center strong {
    display: block;
    text-align: center;
}
.friends-guide-hero-clean--center h2 {
    margin: 8px auto 0;
    text-align: center;
}
.friends-guide-hero-clean--center h2 em {
    color: var(--primary-2);
}
.friend-video-card--blend {
    margin-top: 18px !important;
    padding: 0 !important;
    min-height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}
.friend-video-card--blend video {
    display: block;
    width: min(68%, 250px) !important;
    max-width: 250px !important;
    margin: 0 auto !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
@media (max-width: 430px) {
    .friends-guide-hero-clean--center h2 {
        font-size: 27px;
        line-height: 1.18;
    }
    .friend-video-card--blend video {
        width: min(72%, 220px) !important;
        max-width: 220px !important;
    }
}


/* ===== v46 friends page seamless video ===== */
html body.page-friends,
html body.page-friends .app-main,
html body.page-friends .detail-shell.friends-shell,
html body.page-friends .friends-panel[data-friend-panel="guide"],
html body.page-friends .friends-guide-hero-clean--center {
    background: #ffffff !important;
}
html body.page-friends .topbar {
    background: rgba(255,255,255,.92) !important;
}
html body.page-friends .friends-guide-hero-clean--center {
    padding-bottom: 4px;
}
html body.page-friends .friends-guide-hero-clean--center h2 {
    margin-bottom: 0;
}
html body.page-friends .friend-video-card--blend {
    display: block !important;
    width: 100% !important;
    margin: 14px auto 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: visible !important;
}
html body.page-friends .friend-video-card--blend video {
    display: block !important;
    width: min(70%, 235px) !important;
    max-width: 235px !important;
    margin: 0 auto !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    outline: 0 !important;
}
@media (max-width: 430px) {
    html body.page-friends .friend-video-card--blend video {
        width: min(72%, 225px) !important;
        max-width: 225px !important;
    }
}

/* ===== v48: subpage centered header row ===== */
.subpage-header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    margin: 2px 0 18px;
}
.subpage-header .global-back-plain,
.subpage-header .checkin-back-plain {
    margin: 0 !important;
    justify-self: start;
}
.subpage-title {
    margin: 0;
    text-align: center;
    color: var(--ink);
    font-size: 29px;
    line-height: 1.1;
    letter-spacing: -.06em;
    font-weight: 950;
}
.subpage-header__spacer {
    width: 34px;
    height: 34px;
    display: block;
}

body.page-friends .friends-shell,
body.page-coupang .detail-shell,
body.page-point_history .receipt-shell-v31 {
    padding-top: 10px;
}

body.page-friends .friends-simple-tabs {
    margin-top: 2px;
}

body.page-friends .friends-guide-hero-clean--center {
    padding-top: 16px;
}

.coupang-hero--compact {
    margin-top: 2px;
    margin-bottom: 16px;
    align-items: center;
}
.coupang-hero--compact .detail-rate {
    margin: 0;
}
.coupang-hero--compact .brand-bubble {
    margin-left: auto;
}

.receipt-shell-v31 .receipt-v32-label {
    margin-top: 4px;
}

@media (max-width: 430px) {
    .subpage-title {
        font-size: 25px;
    }
    .subpage-header {
        margin-bottom: 16px;
    }
}


/* ===== v49: remove title English labels + subpage header spacing ===== */
.kicker {
    display: none !important;
}

.subpage-header {
    margin-bottom: 28px !important;
    padding-bottom: 8px !important;
}

.subpage-title {
    padding-bottom: 2px;
}

/* 친구/쿠팡/적립내역 등 헤더형 서브페이지 간격 통일 */
body.page-friends .subpage-header,
body.page-coupang .subpage-header,
body.page-point_history .subpage-header {
    margin-bottom: 30px !important;
}

/* 친구 초대 탭이 제목에 너무 붙지 않게 */
body.page-friends .friends-simple-tabs {
    margin-top: 0 !important;
}

/* 혹시 템플릿에 남은 영어 라벨이 있어도 시각적으로 제거 */
.receipt-ticket-top span {
    text-transform: none;
}


/* ===== v50: coupang hero tidy + remove bonus panel ===== */
.coupang-hero--refined {
    margin-top: 4px;
    margin-bottom: 18px;
}

.coupang-hero__brandline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 6px 2px 2px;
}

.coupang-badge-bubble {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(20, 34, 72, 0.06);
    border: 1px solid rgba(95, 117, 255, 0.08);
    flex: 0 0 68px;
}

.coupang-badge-bubble img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.coupang-hero__meta {
    min-width: 0;
}

.coupang-hero--refined .detail-rate {
    margin: 0;
    color: var(--primary);
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.coupang-hero__caption {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .coupang-hero__brandline {
        gap: 12px;
        align-items: center;
    }
    .coupang-badge-bubble {
        width: 62px;
        height: 62px;
        border-radius: 18px;
        flex-basis: 62px;
    }
    .coupang-badge-bubble img {
        width: 40px;
        height: 40px;
    }
    .coupang-hero--refined .detail-rate {
        font-size: 18px;
    }
    .coupang-hero__caption {
        font-size: 12.5px;
    }
}


/* ===== v51: auth landing cleanup + email recovery ===== */
.intro-card-compact h1 {
    font-size: 28px;
    line-height: 1.2;
}
.intro-card-compact p {
    display: none;
}
.recovery-card-shell {
    padding: 18px;
}
.auth-tabs-recovery {
    margin-bottom: 18px;
}
.recovery-header {
    margin-bottom: 16px;
}
.recovery-header h1 {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.04em;
    color: var(--ink);
}
.recovery-header p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.62;
    color: var(--muted);
    word-break: keep-all;
}
.recovery-reset-link {
    margin-top: -2px;
}
.recovery-result-card {
    display: grid;
    gap: 12px;
}
.recovery-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(91, 124, 255, 0.10);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}
.recovery-result-card h2 {
    margin: 0;
    font-size: 18px;
    color: var(--ink);
}
.recovery-username {
    margin: 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: #f5f7ff;
    border: 1px solid #e2e9ff;
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
}
.recovery-copy {
    margin: -2px 0 2px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
@media (max-width: 520px) {
    .intro-card-compact h1 {
        font-size: 26px;
    }
    .recovery-header h1 {
        font-size: 20px;
    }
}


/* ===== v53: invite bottom sheet high-five icon + no raw link ===== */
.invite-sheet__icon--highfive {
    width: 86px !important;
    height: 86px !important;
    margin: 2px auto 16px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.invite-sheet__icon--highfive img {
    width: 78px !important;
    height: 78px !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 10px 18px rgba(91, 124, 255, .10));
}

.invite-sheet__lead {
    margin-bottom: 16px !important;
}

.invite-sheet__link-label,
.invite-sheet__link-box {
    display: none !important;
}

.invite-sheet__primary {
    margin-top: 18px !important;
}

.invite-sheet__close {
    min-height: 48px !important;
    margin-top: 10px !important;
    padding: 0 18px !important;
    border: 1px solid #dfe6f2 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: #7a8495 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 22px rgba(17, 24, 39, .04) !important;
}

.invite-sheet__close:active {
    transform: scale(.985);
}

@media (max-width: 430px) {
    .invite-sheet__icon--highfive {
        width: 82px !important;
        height: 82px !important;
    }
    .invite-sheet__icon--highfive img {
        width: 74px !important;
        height: 74px !important;
    }
}

/* ===== v54 notification intro ===== */
body.page-index .topbar {
    display: none;
}
body.page-index .app-main {
    padding: 0 0 max(32px, env(safe-area-inset-bottom));
}
.permission-shell {
    width: min(100%, 440px);
    min-height: 100vh;
    margin: 0 auto;
    padding: calc(46px + env(safe-area-inset-top)) 22px 28px;
    display: flex;
    flex-direction: column;
}
.permission-brand {
    margin-top: 94px;
    font-size: 44px;
    line-height: .95;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -.06em;
    color: var(--ink);
}
.permission-shell h1 {
    margin: 28px 0 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.42;
    letter-spacing: -.04em;
}
.permission-lead {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}
.permission-card {
    margin-top: 36px;
    padding: 6px 0;
}
.permission-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.permission-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid #e4e9f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #212938;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .05);
    flex: 0 0 auto;
}
.permission-icon svg {
    width: 32px;
    height: 32px;
}
.permission-copy {
    padding-top: 3px;
}
.permission-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.permission-title-row strong {
    color: var(--ink);
    font-size: 16px;
    letter-spacing: -.03em;
}
.permission-title-row span {
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #edf2ff, #f4efff);
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.permission-copy p {
    margin: 0;
    color: var(--muted-2);
    font-size: 14px;
    line-height: 1.62;
}
.permission-note {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid #e5e9f1;
    color: #a0a9b8;
    font-size: 13px;
    line-height: 1.7;
}
.permission-confirm {
    margin-top: auto;
    min-height: 58px;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(91,124,255,.24);
}
@media (max-width: 380px) {
    .permission-shell {
        padding-left: 18px;
        padding-right: 18px;
    }
    .permission-brand {
        font-size: 40px;
    }
    .permission-shell h1 {
        font-size: 20px;
    }
}


/* ===== v55 permission intro forced ===== */
body.page-index .topbar,
body.page-intro .topbar {
    display: none !important;
}

body.page-index,
body.page-intro {
    background: #ffffff !important;
}

body.page-index .app-main,
body.page-intro .app-main {
    padding: 0 0 max(32px, env(safe-area-inset-bottom)) !important;
    background: #ffffff !important;
}

.permission-shell {
    width: min(100%, 440px);
    min-height: 100vh;
    margin: 0 auto;
    padding: calc(46px + env(safe-area-inset-top)) 22px 28px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.permission-brand {
    margin-top: 78px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 38px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.permission-logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: 27px;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(91,124,255,.22);
}

.permission-shell h1 {
    margin: 32px 0 0;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.42;
    letter-spacing: -0.045em;
}

.permission-lead {
    display: none;
}

.permission-card {
    margin-top: 46px;
    padding: 0;
}

.permission-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.permission-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid #e4e9f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #212938;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .05);
    flex: 0 0 auto;
}

.permission-icon svg {
    width: 32px;
    height: 32px;
}

.permission-copy {
    padding-top: 3px;
}

.permission-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.permission-title-row strong {
    color: var(--ink);
    font-size: 18px;
    letter-spacing: -0.03em;
}

.permission-title-row span {
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #edf2ff, #f4efff);
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.permission-copy p {
    margin: 0;
    color: var(--muted-2);
    font-size: 14px;
    line-height: 1.62;
}

.permission-note {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid #e5e9f1;
    color: #a0a9b8;
    font-size: 13px;
    line-height: 1.7;
}

.permission-confirm {
    margin-top: auto;
    min-height: 58px;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(91,124,255,.24);
}

@media (max-width: 380px) {
    .permission-shell {
        padding-left: 18px;
        padding-right: 18px;
    }
    .permission-brand {
        font-size: 34px;
    }
    .permission-logo-mark {
        width: 42px;
        height: 42px;
        font-size: 25px;
    }
    .permission-shell h1 {
        font-size: 21px;
    }
}

/* ===== v56: my page settings + help ===== */
.my-page-shell {
    gap: 12px;
}

.my-unified-card,
.my-settings-card,
.my-help-card,
.legal-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.my-unified-card {
    overflow: hidden;
}

.my-profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
}

.my-profile-row .profile-info {
    min-width: 0;
    flex: 1;
}

.my-profile-row h1 {
    margin: 0;
    color: var(--ink);
    font-size: 23px;
    line-height: 1.18;
    letter-spacing: -.045em;
}

.my-profile-row span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-receipt-row {
    margin: 0 10px 10px;
    padding: 15px 16px;
    min-height: 86px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #f9fbff 0%, #f4f2ff 100%);
    border: 1px solid #e0e7ff;
}

.my-receipt-row h2 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    letter-spacing: -.045em;
}

.my-receipt-row p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.my-receipt-side {
    flex: 0 0 auto;
    min-width: 78px;
    padding-left: 16px;
    border-left: 1px dashed #ccd7f2;
    display: grid;
    justify-items: center;
    gap: 7px;
}

.my-receipt-side strong {
    color: var(--primary);
    font-size: 20px;
    line-height: 1;
    letter-spacing: -.04em;
}

.my-receipt-side span {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #edf2ff, #f4efff);
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.my-settings-card,
.my-help-card {
    padding: 16px;
}

.my-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.my-section-head span {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.my-section-head.only-title {
    margin-bottom: 6px;
}

.toggle-row {
    position: relative;
    min-height: 64px;
    padding: 10px 62px 10px 0;
    display: flex;
    align-items: center;
    border-top: 1px solid #eef2f7;
    cursor: pointer;
}

.toggle-row:first-of-type {
    border-top: 0;
}

.toggle-row strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -.02em;
    font-weight: 700;
}

.toggle-row p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.5;
    word-break: keep-all;
}

.toggle-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-row i {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 30px;
    border-radius: 999px;
    background: #afb3bd;
    transition: background .2s ease, box-shadow .2s ease;
}

.toggle-row i::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(17, 24, 39, .16);
    transition: transform .2s ease;
}

.toggle-row input:checked + i {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 8px 16px rgba(91,124,255,.16);
}

.toggle-row input:checked + i::before {
    transform: translateX(20px);
}

.help-row {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #eef2f7;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.015em;
}

.my-section-head + .help-row {
    border-top: 0;
}

.help-row b {
    color: #b8bfcb;
    font-size: 20px;
    line-height: 1;
    font-weight: 500;
    transform: translateY(-1px);
}

.legal-shell {
    padding-top: 10px;
}

.legal-card {
    padding: 20px;
    display: grid;
    gap: 14px;
}

.legal-card h2 {
    margin: 8px 0 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -.04em;
}

.legal-card p,
.legal-card li {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.78;
    word-break: keep-all;
}

.legal-card p {
    margin: 0;
}

.legal-card ol,
.legal-card ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
}

.legal-note {
    padding: 13px 14px;
    border-radius: 16px;
    background: #f6f8ff;
    border: 1px solid #e2e9ff;
    color: #5f6f8c !important;
}

.legal-date {
    margin-top: 6px !important;
    color: var(--muted-2) !important;
    font-size: 12px !important;
}

.support-box {
    padding: 15px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff, #f5f2ff);
    border: 1px solid #e0e7ff;
    display: grid;
    gap: 6px;
}

.support-box span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.support-box strong {
    color: var(--primary);
    font-size: 17px;
    letter-spacing: -.02em;
}

@media (max-width: 430px) {
    .my-profile-row {
        padding: 16px;
    }
    .my-profile-row h1 {
        font-size: 21px;
    }
    .my-receipt-row {
        padding: 14px;
    }
    .toggle-row strong,
    .help-row {
        font-size: 17px;
    }
}

/* ===== v60: dashboard gap + streak 유지 정책 ===== */
body.page-dashboard .notice-strip {
    display: none !important;
}
body.page-dashboard .app-shell {
    gap: 12px;
}
body.page-dashboard .app-main {
    padding-bottom: 84px !important;
}
body.page-dashboard .today-panel {
    margin-bottom: 0 !important;
}
.streak-board-v13 .streak-step.wait {
    opacity: .74;
}

/* ===== v61 admin CMS ===== */
body.page-admin .topbar,
body.page-admin_user_detail .topbar,
body.page-admin_login .topbar {
    display: none !important;
}
body.page-admin,
body.page-admin_user_detail,
body.page-admin_login {
    background: #f3f5f9;
}
body.page-admin .app-main,
body.page-admin_user_detail .app-main {
    max-width: none;
    width: 100%;
    padding: 24px;
    padding-bottom: 48px;
}
.admin-page {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}
.admin-hero-v61,
.admin-card-v61,
.admin-stats-v61 article {
    background: rgba(255,255,255,.94);
    border: 1px solid #e3e8f2;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(20, 32, 56, .07);
}
.admin-hero-v61 {
    min-height: 150px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #fff 0%, #f5f8ff 52%, #f8f4ff 100%);
}
.admin-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #5b7cff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
}
.admin-hero-v61 h1 {
    margin: 12px 0 8px;
    color: #172033;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -.05em;
}
.admin-hero-v61 p {
    margin: 0;
    color: #687386;
    font-size: 14px;
    line-height: 1.6;
}
.admin-logout-btn,
.admin-mini-btn,
.admin-back-v61 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dfe7f4;
    color: #5b7cff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.admin-back-v61 {
    margin-bottom: 8px;
    color: #6b7280;
}
.admin-stats-v61 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.admin-stats-v61 article {
    padding: 18px;
}
.admin-stats-v61 span {
    display: block;
    margin-bottom: 10px;
    color: #8792a5;
    font-size: 12px;
    font-weight: 800;
}
.admin-stats-v61 strong {
    display: block;
    color: #172033;
    font-size: 25px;
    line-height: 1;
    letter-spacing: -.04em;
}
.admin-stats-v61 p {
    margin: 8px 0 0;
    color: #9aa4b5;
    font-size: 12px;
}
.admin-card-v61 {
    padding: 22px;
}
.admin-card-head-v61 {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.admin-card-head-v61 h2 {
    margin: 0;
    color: #172033;
    font-size: 21px;
    letter-spacing: -.04em;
}
.admin-card-head-v61 p {
    margin: 7px 0 0;
    color: #7d8797;
    font-size: 13px;
    line-height: 1.5;
}
.admin-search-v61 {
    display: flex;
    gap: 8px;
}
.admin-search-v61 input,
.admin-form-v61 input,
.admin-form-v61 textarea,
.admin-form-v61 select,
.admin-edit-box-v61 input,
.admin-edit-box-v61 textarea,
.admin-edit-box-v61 select,
.admin-inline-form-v61 select,
.admin-inline-stack-v61 select,
.admin-inline-stack-v61 textarea,
.admin-row-edit-form-v61 input {
    width: 100%;
    border: 1px solid #dfe7f4;
    background: #f8fafc;
    border-radius: 14px;
    padding: 11px 12px;
    color: #172033;
    font: inherit;
    font-size: 13px;
    outline: none;
}
.admin-search-v61 input {
    width: 260px;
    background: #fff;
}
.admin-search-v61 button,
.admin-form-v61 button,
.admin-edit-box-v61 button,
.admin-inline-form-v61 button,
.admin-inline-stack-v61 button,
.admin-row-edit-form-v61 button {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #5b7cff, #7b61ff);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    min-height: 42px;
    padding: 0 16px;
    cursor: pointer;
    white-space: nowrap;
}
.admin-table-wrap-v61 {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e9edf5;
    border-radius: 18px;
    background: #fff;
}
.admin-table-v61 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 820px;
}
.admin-table-v61 th,
.admin-table-v61 td {
    padding: 13px 14px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
    color: #273244;
}
.admin-table-v61 th {
    background: #f8fafc;
    color: #7c8799;
    font-size: 12px;
    font-weight: 900;
}
.admin-table-v61 tr:last-child td {
    border-bottom: 0;
}
.admin-table-v61 strong {
    display: block;
    color: #172033;
    font-size: 13px;
}
.admin-table-v61 small {
    display: block;
    margin-top: 4px;
    color: #8792a5;
    font-size: 11px;
}
.admin-table-v61.compact th,
.admin-table-v61.compact td {
    padding: 11px 12px;
}
.admin-inline-form-v61 {
    display: flex;
    gap: 6px;
    align-items: center;
}
.admin-inline-form-v61 select { min-width: 120px; }
.admin-inline-form-v61 button { min-height: 36px; padding: 0 11px; }
.admin-text-danger,
.admin-delete-line-v61 {
    border: 0;
    background: transparent;
    color: #ef4444;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.admin-delete-line-v61 {
    margin: 8px 0 14px;
    padding: 0;
}
.admin-two-col-v61 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}
.admin-two-col-v61.no-margin { margin: 0; }
.admin-form-v61,
.admin-edit-box-v61,
.admin-inline-stack-v61 {
    display: grid;
    gap: 10px;
}
.admin-form-grid-v61 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.admin-check-v61 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #465166;
    font-size: 13px;
    font-weight: 700;
}
.admin-check-v61 input { width: auto; }
.admin-list-v61 {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}
.admin-edit-box-v61 {
    padding: 14px;
    border: 1px solid #edf1f7;
    border-radius: 18px;
    background: #fbfcff;
}
.admin-row-actions-v61 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.admin-row-actions-v61 label {
    color: #647084;
    font-size: 12px;
    font-weight: 800;
}
.admin-empty-v61 {
    margin: 0;
    padding: 16px;
    color: #8a95a6;
    font-size: 13px;
    border-radius: 16px;
    background: #f8fafc;
}
.admin-message-cell {
    max-width: 320px;
    line-height: 1.55;
    white-space: pre-wrap;
}
.admin-user-v61 .push-form {
    grid-template-columns: 220px 1fr auto;
    align-items: start;
    margin-bottom: 14px;
}
.admin-row-edit-form-v61 {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 100px 110px 120px auto;
    gap: 8px;
    align-items: center;
}
.admin-row-edit-form-v61 span {
    color: #8a95a6;
    font-size: 12px;
}
.support-card-v61 .support-form-v61 {
    margin: 14px 0 18px;
    display: grid;
    gap: 12px;
}
.support-form-v61 label {
    display: grid;
    gap: 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}
.support-form-v61 select,
.support-form-v61 textarea {
    border: 1px solid #dfe7f4;
    background: #f8fafc;
    border-radius: 16px;
    padding: 13px 14px;
    font: inherit;
    color: #172033;
}
@media (max-width: 980px) {
    body.page-admin .app-main,
    body.page-admin_user_detail .app-main { padding: 14px; }
    .admin-hero-v61 { flex-direction: column; align-items: flex-start; padding: 22px; }
    .admin-stats-v61 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-two-col-v61 { grid-template-columns: 1fr; }
    .admin-card-head-v61 { flex-direction: column; }
    .admin-search-v61 { width: 100%; }
    .admin-search-v61 input { width: 100%; }
    .admin-user-v61 .push-form { grid-template-columns: 1fr; }
    .admin-row-edit-form-v61 { grid-template-columns: 1fr; }
}

/* ===== v62: account, cashback, chatbot, mobile admin ===== */
.help-row em {
    margin-left: auto;
    color: var(--primary);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}
.account-shell-v62,
.cashback-shell-v62 {
    padding-top: 10px;
}
.account-card-v62,
.cashback-balance-card-v62,
.cashback-card-v62 {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.account-card-v62 {
    padding: 24px 20px;
    display: grid;
    gap: 14px;
}
.account-icon-v62 {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 950;
    font-size: 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 14px 28px rgba(91,124,255,.2);
}
.account-card-v62 h2,
.cashback-card-v62 h2 {
    margin: 0;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: -.045em;
}
.account-card-v62 p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    word-break: keep-all;
}
.account-form-v62,
.cashback-form-v62 {
    display: grid;
    gap: 12px;
}
.account-form-v62 label {
    display: grid;
    gap: 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}
.account-form-v62 input,
.account-form-v62 select,
.cashback-form-v62 input {
    width: 100%;
    border: 1px solid #dfe7f4;
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px 14px;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    outline: none;
}
.account-warning-v62,
.cashback-note-v62 {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f5f7fb;
    color: #7d8797;
    font-size: 12px;
    line-height: 1.55;
}
.cashback-balance-card-v62 {
    padding: 20px;
    display: grid;
    gap: 8px;
    background: linear-gradient(135deg, #fff, #f5f7ff 58%, #f8f4ff);
}
.cashback-balance-card-v62 span {
    color: #7d8797;
    font-size: 12px;
    font-weight: 800;
}
.cashback-balance-card-v62 strong {
    color: var(--ink);
    font-size: 32px;
    line-height: 1;
    letter-spacing: -.05em;
}
.cashback-balance-card-v62 p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
}
.cashback-balance-card-v62 a {
    justify-self: start;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dde6f8;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
}
.cashback-card-v62 {
    padding: 18px;
    display: grid;
    gap: 14px;
}
.cashback-form-v62 {
    grid-template-columns: 1fr auto;
}
.cashback-form-v62 button {
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.cashback-list-v62 {
    display: grid;
    gap: 10px;
}
.cashback-list-v62 article {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
    padding: 14px;
    border: 1px solid #edf1f7;
    border-radius: 18px;
    background: #fbfcff;
}
.cashback-list-v62 strong { color: var(--ink); font-size: 16px; }
.cashback-list-v62 span,
.cashback-list-v62 small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.cashback-list-v62 em {
    align-self: start;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
}
.cashback-list-v62 em.status-paid { background: #e9fbf4; color: #12a36f; }
.cashback-list-v62 em.status-rejected,
.cashback-list-v62 em.status-cancelled { background: #fff1f3; color: #e94b64; }
.empty-soft-v62 {
    margin: 0;
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
}
.support-chat-shell-v62 {
    min-height: calc(100vh - 70px);
    width: min(100%, 440px);
    margin: 0 auto;
    padding: 12px 18px 96px;
    display: grid;
    gap: 14px;
}
.chat-top-v62 {
    display: grid;
    grid-template-columns: 38px 48px 1fr 38px;
    align-items: center;
    gap: 10px;
    padding: 8px 0 10px;
}
.chat-back-v62,
.chat-close-v62 {
    color: #6b7280;
    font-size: 38px;
    line-height: 1;
    text-align: center;
}
.chat-close-v62 { font-size: 42px; }
.chat-avatar-v62,
.chat-big-logo-v62,
.chat-mini-logo-v62 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 950;
}
.chat-avatar-v62 { width: 48px; height: 48px; border-radius: 17px; font-size: 27px; }
.chat-top-v62 strong { color: var(--ink); font-size: 22px; letter-spacing: -.04em; }
.chat-notice-v62 {
    padding: 15px 16px;
    border-radius: 16px;
    background: #f5f6f8;
    color: #6f7785;
    font-size: 14px;
    font-weight: 700;
}
.chat-body-v62 {
    display: grid;
    gap: 18px;
}
.chat-center-v62 {
    padding: 34px 0 18px;
    text-align: center;
}
.chat-big-logo-v62 { width: 84px; height: 84px; border-radius: 30px; margin: 0 auto 20px; font-size: 42px; }
.chat-center-v62 h1 { margin: 0; color: var(--ink); font-size: 24px; letter-spacing: -.05em; }
.chat-center-v62 p { margin: 12px 0 0; color: var(--muted-2); font-size: 14px; }
.chat-message-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.chat-message-row.me { justify-content: flex-end; }
.chat-mini-logo-v62 { width: 38px; height: 38px; border-radius: 14px; flex: 0 0 auto; }
.chat-message-row span { display: block; margin: 0 0 6px; color: var(--muted-2); font-size: 12px; font-weight: 700; }
.chat-message-row p {
    max-width: 310px;
    margin: 0;
    padding: 15px 17px;
    border-radius: 20px;
    background: #f1f3f6;
    color: #2b3443;
    font-size: 15px;
    line-height: 1.55;
    word-break: keep-all;
}
.chat-message-row.me p {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
}
.chat-quick-v62 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.chat-quick-v62 form { margin: 0; }
.chat-quick-v62 button {
    border: 1px solid #e5e9f0;
    background: #fff;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: #3c4452;
    font-size: 13px;
    font-weight: 700;
}
.chat-input-v62 {
    position: fixed;
    left: 50%;
    bottom: calc(78px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 416px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e6ebf2;
    border-radius: 22px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 14px 32px rgba(17,24,39,.08);
    z-index: 30;
}
.chat-input-v62 input {
    border: 0;
    background: transparent;
    padding: 0 10px;
    outline: 0;
    font: inherit;
    font-size: 14px;
}
.chat-input-v62 button {
    border: 0;
    border-radius: 16px;
    padding: 0 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.admin-account-box-v62 {
    margin-bottom: 14px;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid #e9edf5;
    background: #fbfcff;
}
.admin-account-box-v62 strong { display: block; color: #172033; margin-bottom: 6px; }
.admin-account-box-v62 p { margin: 0; color: #647084; font-size: 13px; }
.push-form-v62 { grid-template-columns: 220px 1fr auto; align-items: start; }
.cashback-status-form-v62 textarea { min-width: 180px; }
@media (max-width: 760px) {
    body.page-admin .app-main,
    body.page-admin_user_detail .app-main {
        padding: 10px;
        padding-bottom: 92px;
    }
    .admin-page { gap: 12px; }
    .admin-hero-v61,
    .admin-card-v61,
    .admin-stats-v61 article { border-radius: 18px; }
    .admin-hero-v61 { min-height: auto; padding: 18px; }
    .admin-hero-v61 h1 { font-size: 26px; }
    .admin-stats-v61 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .admin-stats-v61 article { padding: 14px; }
    .admin-stats-v61 strong { font-size: 21px; }
    .admin-card-v61 { padding: 16px; }
    .admin-card-head-v61 h2 { font-size: 18px; }
    .admin-form-grid-v61,
    .push-form-v62 { grid-template-columns: 1fr; }
    .admin-mobile-cards-v62 { border: 0; background: transparent; overflow: visible; }
    .admin-mobile-cards-v62 table,
    .admin-mobile-cards-v62 thead,
    .admin-mobile-cards-v62 tbody,
    .admin-mobile-cards-v62 tr,
    .admin-mobile-cards-v62 th,
    .admin-mobile-cards-v62 td { display: block; min-width: 0; width: 100%; }
    .admin-mobile-cards-v62 thead { display: none; }
    .admin-mobile-cards-v62 tr {
        margin-bottom: 10px;
        padding: 14px;
        border: 1px solid #e9edf5;
        border-radius: 18px;
        background: #fff;
    }
    .admin-mobile-cards-v62 td {
        padding: 8px 0;
        border: 0;
        display: grid;
        grid-template-columns: 92px 1fr;
        gap: 8px;
        font-size: 13px;
    }
    .admin-mobile-cards-v62 td::before {
        content: attr(data-label);
        color: #8a95a6;
        font-size: 11px;
        font-weight: 900;
    }
    .cashback-status-form-v62 textarea { min-width: 0; }
    .admin-inline-stack-v61 { width: 100%; }
    .support-chat-shell-v62 { padding-left: 14px; padding-right: 14px; }
    .chat-top-v62 { grid-template-columns: 34px 44px 1fr 34px; }
    .chat-avatar-v62 { width: 44px; height: 44px; }
    .chat-message-row p { max-width: 280px; font-size: 14px; }
    .cashback-form-v62 { grid-template-columns: 1fr; }
}

/* ===== v63: chatbot select-first + admin 1:1 chat fix ===== */
body.page-admin .bottom-nav,
body.page-admin_user_detail .bottom-nav,
body.page-admin_chat .bottom-nav,
body.page-admin_login .bottom-nav {
    display: none !important;
}
body.page-admin_chat .topbar { display: none !important; }
body.page-admin_chat { background: #f3f5f9; }
body.page-admin_chat .app-main {
    max-width: none;
    width: 100%;
    padding: 24px;
    padding-bottom: 48px;
}
.support-chat-shell-v63 {
    width: min(100%, 440px);
    min-height: calc(100vh - 70px);
    margin: 0 auto;
    padding: 10px 18px calc(96px + env(safe-area-inset-bottom));
    display: grid;
    gap: 14px;
}
.chat-top-v63 {
    display: grid;
    grid-template-columns: 38px 48px 1fr 38px;
    align-items: center;
    gap: 10px;
    padding: 6px 0 8px;
}
.chat-back-v63,
.chat-close-v63 {
    color: #6b7280;
    font-size: 38px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}
.chat-close-v63 { font-size: 42px; }
.chat-avatar-v63,
.chat-big-logo-v63,
.chat-mini-logo-v63 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 950;
    box-shadow: 0 12px 28px rgba(91,124,255,.18);
}
.chat-avatar-v63 { width: 48px; height: 48px; border-radius: 17px; font-size: 27px; }
.chat-top-v63 strong { color: var(--ink); font-size: 22px; letter-spacing: -.04em; }
.chat-body-v63 { display: grid; gap: 16px; }
.chat-center-v63 { padding: 30px 0 14px; text-align: center; }
.chat-big-logo-v63 { width: 78px; height: 78px; border-radius: 28px; margin: 0 auto 18px; font-size: 40px; }
.chat-center-v63 h1 { margin: 0; color: var(--ink); font-size: 24px; letter-spacing: -.05em; }
.chat-center-v63 p { margin: 12px 0 0; color: var(--muted-2); font-size: 14px; }
.chat-feed-v63 { display: grid; gap: 15px; }
.chat-message-row-v63 {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.chat-message-row-v63.me { justify-content: flex-end; }
.chat-mini-logo-v63 {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    flex: 0 0 auto;
    font-size: 20px;
}
.chat-message-row-v63 span {
    display: block;
    margin: 0 0 6px;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
}
.chat-message-row-v63 p {
    max-width: 310px;
    margin: 0;
    padding: 15px 17px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e7ecf5;
    color: #273244;
    box-shadow: 0 12px 30px rgba(20, 32, 56, .08);
    font-size: 15px;
    line-height: 1.55;
    word-break: keep-all;
}
.chat-message-row-v63.me p {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 30px rgba(91,124,255,.22);
}
.chat-select-box-v63 {
    margin-top: 6px;
    padding: 13px 15px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff, #f5f3ff);
    border: 1px solid #e3e9fb;
    display: grid;
    gap: 4px;
}
.chat-select-box-v63 span {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 900;
}
.chat-select-box-v63 strong {
    color: #59657a;
    font-size: 14px;
    letter-spacing: -.02em;
}
.chat-select-box-v63.selected {
    border-color: #cfd8ff;
    box-shadow: 0 10px 22px rgba(91,124,255,.09);
}
.chat-select-box-v63.selected strong { color: var(--primary); }
.chat-quick-v63 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.chat-quick-v63 button {
    border: 1px solid #e3e8f2;
    background: #fff;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: #3c4452;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(20, 32, 56, .04);
}
.chat-quick-v63 button.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 24px rgba(91,124,255,.20);
}
.chat-input-v63 {
    position: sticky;
    bottom: calc(80px + env(safe-area-inset-bottom));
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e6ebf2;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 32px rgba(17,24,39,.10);
    z-index: 30;
}
.chat-input-v63.is-hidden { display: none; }
.chat-input-v63 input {
    border: 0;
    background: transparent;
    padding: 0 10px;
    outline: 0;
    font: inherit;
    font-size: 14px;
    min-width: 0;
}
.chat-input-v63 button {
    border: 0;
    border-radius: 16px;
    min-height: 36px;
    padding: 0 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.admin-chat-preview-v63 {
    display: block;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-chat-card-v63 { display: grid; gap: 16px; }
.admin-chat-feed-v63 {
    height: min(58vh, 560px);
    overflow-y: auto;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #e9edf5;
    background: linear-gradient(180deg, #f8fafc, #fff);
    display: grid;
    align-content: start;
    gap: 12px;
}
.admin-chat-bubble-v63 {
    width: min(78%, 640px);
    padding: 13px 15px;
    border-radius: 18px;
    border: 1px solid #e3e8f2;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 32, 56, .05);
}
.admin-chat-bubble-v63.from-admin {
    justify-self: end;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border-color: #d8e1ff;
}
.admin-chat-bubble-v63 span {
    display: block;
    margin-bottom: 6px;
    color: #8490a3;
    font-size: 11px;
    font-weight: 800;
}
.admin-chat-bubble-v63 p {
    margin: 0;
    color: #172033;
    font-size: 14px;
    line-height: 1.6;
    word-break: keep-all;
}
.admin-chat-form-v63 {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 10px;
    align-items: stretch;
}
.admin-chat-form-v63 select,
.admin-chat-form-v63 textarea {
    width: 100%;
    border: 1px solid #dfe7f4;
    background: #f8fafc;
    border-radius: 14px;
    padding: 11px 12px;
    color: #172033;
    font: inherit;
    font-size: 13px;
    outline: none;
}
.admin-chat-form-v63 button,
.admin-chat-open-v63 {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #5b7cff, #7b61ff);
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    min-height: 42px;
    padding: 0 16px;
    cursor: pointer;
    white-space: nowrap;
}
@media (max-width: 760px) {
    body.page-admin_chat .app-main {
        padding: 10px;
        padding-bottom: 28px;
    }
    .admin-chat-form-v63 { grid-template-columns: 1fr; }
    .admin-chat-feed-v63 { height: 55vh; padding: 12px; }
    .admin-chat-bubble-v63 { width: 92%; }
    .admin-chat-preview-v63 { max-width: none; white-space: normal; }
    .support-chat-shell-v63 { padding-left: 14px; padding-right: 14px; }
    .chat-top-v63 { grid-template-columns: 34px 44px 1fr 34px; }
    .chat-avatar-v63 { width: 44px; height: 44px; }
    .chat-message-row-v63 p { max-width: 280px; font-size: 14px; }
    .chat-input-v63 { bottom: calc(74px + env(safe-area-inset-bottom)); }
}

/* ===== v64: chatbot composer fixed to bottom nav ===== */
.support-chat-shell-v64 {
    width: min(100%, 440px);
    min-height: calc(100vh - 70px);
    margin: 0 auto;
    padding: 10px 18px calc(156px + env(safe-area-inset-bottom));
    display: grid;
    gap: 14px;
}
.chat-top-v64 {
    display: grid;
    grid-template-columns: 38px 48px 1fr 38px;
    align-items: center;
    gap: 10px;
    padding: 6px 0 8px;
}
.chat-back-v64,
.chat-close-v64 {
    color: #6b7280;
    font-size: 38px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}
.chat-close-v64 { font-size: 42px; }
.chat-avatar-v64,
.chat-big-logo-v64,
.chat-mini-logo-v64 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 950;
    box-shadow: 0 12px 28px rgba(91,124,255,.18);
}
.chat-avatar-v64 { width: 48px; height: 48px; border-radius: 17px; font-size: 27px; }
.chat-top-v64 strong { color: var(--ink); font-size: 22px; letter-spacing: -.04em; }
.chat-body-v64 { display: grid; gap: 16px; }
.chat-center-v64 { padding: 30px 0 14px; text-align: center; }
.chat-big-logo-v64 { width: 78px; height: 78px; border-radius: 28px; margin: 0 auto 18px; font-size: 40px; }
.chat-center-v64 h1 { margin: 0; color: var(--ink); font-size: 24px; letter-spacing: -.05em; }
.chat-center-v64 p { margin: 12px 0 0; color: var(--muted-2); font-size: 14px; }
.chat-feed-v64 { display: grid; gap: 15px; }
.chat-message-row-v64 {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.chat-message-row-v64.me { justify-content: flex-end; }
.chat-mini-logo-v64 {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    flex: 0 0 auto;
    font-size: 20px;
}
.chat-message-row-v64 span {
    display: block;
    margin: 0 0 6px;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
}
.chat-message-row-v64 p {
    max-width: 310px;
    margin: 0;
    padding: 15px 17px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e7ecf5;
    color: #273244;
    box-shadow: 0 14px 34px rgba(20, 32, 56, .10);
    font-size: 15px;
    line-height: 1.55;
    word-break: keep-all;
}
.chat-message-row-v64.me p {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 30px rgba(91,124,255,.22);
}
.chat-select-box-v64 {
    margin-top: 6px;
    padding: 13px 15px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff, #f5f3ff);
    border: 1px solid #e3e9fb;
    display: grid;
    gap: 4px;
}
.chat-select-box-v64 span {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 900;
}
.chat-select-box-v64 strong {
    color: #59657a;
    font-size: 14px;
    letter-spacing: -.02em;
}
.chat-quick-v64 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.chat-quick-v64 button {
    border: 1px solid #e3e8f2;
    background: #fff;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: #3c4452;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(20, 32, 56, .04);
}
.chat-quick-v64 button:active {
    transform: scale(.96);
}
.chat-select-box-v64.is-hidden,
.chat-quick-v64.is-hidden,
.chat-input-v64.is-hidden {
    display: none !important;
}
.chat-input-v64 {
    position: fixed;
    left: 50%;
    bottom: calc(74px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(calc(100% - 32px), 408px);
    display: grid;
    gap: 7px;
    padding: 8px;
    border: 1px solid #e6ebf2;
    border-radius: 22px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 14px 32px rgba(17,24,39,.11);
    z-index: 54;
}
.chat-category-select-v64 {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff, #f5f3ff);
    border: 1px solid #e7ebfb;
}
.chat-category-select-v64 span {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
.chat-category-select-v64 select {
    width: 100%;
    border: 0;
    background: transparent;
    color: #465169;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    outline: none;
}
.chat-input-line-v64 {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    min-height: 38px;
}
.chat-input-line-v64 input {
    border: 0;
    background: transparent;
    padding: 0 10px;
    outline: 0;
    font: inherit;
    font-size: 14px;
    min-width: 0;
}
.chat-input-line-v64 button {
    border: 0;
    border-radius: 16px;
    min-height: 36px;
    padding: 0 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
@media (max-width: 380px) {
    .support-chat-shell-v64 { padding-left: 14px; padding-right: 14px; }
    .chat-top-v64 { grid-template-columns: 34px 44px 1fr 34px; }
    .chat-avatar-v64 { width: 44px; height: 44px; }
    .chat-message-row-v64 p { max-width: 280px; font-size: 14px; }
    .chat-input-v64 { width: min(calc(100% - 24px), 408px); }
}


/* ===== v65: category select sends chat bubble ===== */
.chat-category-select-v64 select { cursor: pointer; }


/* ===== v66: support chat composer polish ===== */
.chat-input-v64 {
    bottom: calc(74px + env(safe-area-inset-bottom));
    width: min(calc(100% - 42px), 396px);
    padding: 0;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.chat-category-select-v64 {
    min-height: 40px;
    padding: 0 14px;
    grid-template-columns: auto 1fr;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(219,226,240,.95);
    box-shadow: 0 10px 28px rgba(17, 24, 39, .07);
    backdrop-filter: blur(12px);
}

.chat-category-select-v64 span {
    color: #98a2b3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.chat-category-select-v64 select {
    color: #2f3a4f;
    font-size: 13px;
    font-weight: 800;
    min-height: 38px;
    padding-right: 4px;
}

.chat-input-line-v64 {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px;
    min-height: 50px;
    padding: 5px 5px 5px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(219,226,240,.95);
    box-shadow: 0 16px 38px rgba(17,24,39,.10);
    backdrop-filter: blur(12px);
}

.chat-input-line-v64 input {
    height: 40px;
    padding: 0 6px;
    color: #202938;
    font-size: 13.5px;
    font-weight: 500;
}

.chat-input-line-v64 input::placeholder {
    color: #a0a9b8;
    font-weight: 500;
}

.chat-input-line-v64 button {
    min-width: 56px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(91,124,255,.20);
}

@media (max-width: 380px) {
    .chat-input-v64 {
        width: min(calc(100% - 28px), 396px);
    }
    .chat-category-select-v64 {
        min-height: 38px;
    }
    .chat-input-line-v64 {
        min-height: 48px;
    }
    .chat-input-line-v64 button {
        min-width: 52px;
        min-height: 38px;
    }
}


/* ===== v67: cashback withdrawal rules + modal ===== */
.cashback-min-alert-v67 {
    padding: 13px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f3f6ff, #f7f3ff);
    border: 1px solid #e2e8ff;
    color: #58637a;
    font-size: 13px;
    line-height: 1.5;
    word-break: keep-all;
}
.cashback-min-alert-v67 strong {
    color: var(--primary);
    font-weight: 900;
}
.cashback-form-v62.cashback-form-v67 {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch;
    gap: 10px;
}
.cashback-form-v67 input {
    min-height: 52px;
}
.cashback-form-v67 button {
    min-width: 92px;
    min-height: 52px;
    border-radius: 18px;
    padding: 0 18px;
    font-size: 14px;
    box-shadow: 0 14px 24px rgba(91,124,255,.18);
}
.cashback-modal-v67[hidden] { display: none !important; }
.cashback-modal-v67 {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.cashback-modal-dim-v67 {
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,.46);
    backdrop-filter: blur(3px);
}
.cashback-modal-sheet-v67 {
    position: relative;
    width: min(100%, 440px);
    margin: 0 auto;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -24px 60px rgba(17,24,39,.18);
    display: grid;
    justify-items: center;
    gap: 12px;
    animation: cashbackSheetUp .22s ease both;
}
@keyframes cashbackSheetUp { from { transform: translateY(16px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.cashback-modal-x-v67 {
    position: absolute;
    right: 16px;
    top: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #6b7280;
    font-size: 22px;
    line-height: 1;
}
.cashback-modal-icon-v67 {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-top: 4px;
}
.cashback-modal-sheet-v67 h2 {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -.045em;
    text-align: center;
}
.cashback-modal-sheet-v67 p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.65;
    text-align: center;
    word-break: keep-all;
}
.cashback-account-preview-v67 {
    width: 100%;
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: #f7f9fd;
    border: 1px solid #e8edf5;
}
.cashback-account-preview-v67 span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #8a95a6;
    font-size: 12px;
    font-weight: 800;
}
.cashback-account-preview-v67 strong {
    color: #263143;
    font-size: 13px;
    text-align: right;
    overflow-wrap: anywhere;
}
.cashback-modal-actions-v67 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}
.cashback-modal-actions-v67 button {
    min-height: 52px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 900;
}
.cashback-modal-actions-v67 .btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 14px 28px rgba(91,124,255,.2);
}
.cashback-modal-actions-v67 .btn-ghost {
    border: 1px solid #e1e7f1;
    color: #667085;
    background: #fff;
}
.flaticon-credit-v67 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 380px) {
    .cashback-form-v62.cashback-form-v67 {
        grid-template-columns: minmax(0, 1fr) 86px !important;
        gap: 8px;
    }
    .cashback-form-v67 button {
        min-width: 86px;
        padding: 0 12px;
        font-size: 13px;
    }
    .cashback-modal-sheet-v67 {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* ===== v68: cashback modal validation polish ===== */
.cashback-min-alert-v67 {
    font-weight: 700;
    color: #4f5b73;
}
.cashback-form-v67 input[type="text"] {
    appearance: none;
    -webkit-appearance: none;
}
.cashback-modal-icon-v67 {
    width: 86px;
    height: 86px;
}
.cashback-modal-sheet-v67 h2 {
    font-size: 23px;
}
.cashback-modal-sheet-v67 p {
    font-size: 13.5px;
}
.cashback-modal-actions-v67 .btn-primary[hidden] {
    display: none !important;
}
@media (max-width: 420px) {
    .cashback-form-v62.cashback-form-v67 {
        grid-template-columns: minmax(0, 1fr) 96px !important;
    }
    .cashback-form-v67 button {
        min-width: 96px;
        min-height: 52px;
        border-radius: 18px;
        white-space: nowrap;
    }
}


/* ===== v69: cashback modal/input fix ===== */
.cashback-account-preview-v67[hidden],
.cashback-modal-icon-v67[hidden],
.cashback-modal-actions-v67 .btn-primary[hidden] {
    display: none !important;
}
.cashback-modal-actions-v67.is-blocked {
    grid-template-columns: 1fr;
    justify-items: center;
}
.cashback-modal-actions-v67.is-blocked .btn-ghost,
.cashback-modal-actions-v67 .btn-primary[hidden] + .btn-ghost {
    width: min(100%, 196px);
    justify-self: center;
}
.cashback-modal-sheet-v67.is-blocked .cashback-account-preview-v67 {
    display: none !important;
}
.cashback-form-v67 input[type="text"] {
    -moz-appearance: textfield;
}
.cashback-form-v67 input[type="text"]::-webkit-outer-spin-button,
.cashback-form-v67 input[type="text"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* ===== v70: Booster Wing rebrand ===== */
.brand-mark-image,
.permission-logo-mark-image,
.auth-logo-mark,
.chat-logo-img-wrap {
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}
.brand-mark-image img,
.permission-logo-mark-image img,
.auth-logo-mark img,
.chat-logo-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.brand-mark-image {
    width: 42px;
    height: 42px;
    border-radius: 0;
}
.boosterwing-brand-copy b {
    font-size: 20px;
    letter-spacing: -.05em;
    white-space: nowrap;
}
.brand-copy small {
    display: none !important;
}
body.page-login .topbar,
body.page-register .topbar {
    display: none !important;
}
.boosterwing-auth-shell {
    padding-top: 54px;
}
.auth-brand-hero {
    width: min(100%, 408px);
    margin: 0 auto 18px;
    display: grid;
    justify-items: center;
    text-align: center;
}
.auth-logo-mark {
    width: 74px;
    height: 64px;
    margin-bottom: 12px;
}
.auth-brand-hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: 23px;
    line-height: 1.24;
    letter-spacing: -.055em;
}
.auth-brand-hero p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -.025em;
}
.permission-logo-mark-image {
    width: 48px;
    height: 42px;
    border-radius: 0;
}
.chat-avatar-v64.chat-logo-img-wrap {
    width: 48px;
    height: 42px;
    border-radius: 0;
}
.chat-big-logo-v64.chat-logo-img-wrap {
    width: 82px;
    height: 72px;
    border-radius: 0;
}
.chat-mini-logo-v64.chat-logo-img-wrap {
    width: 42px;
    height: 38px;
    border-radius: 0;
}
@media (max-width: 380px) {
    .boosterwing-brand-copy b { font-size: 18px; }
    .brand-mark-image { width: 38px; height: 38px; }
    .auth-brand-hero h1 { font-size: 21px; }
}

/* ===== v71: Boosterwing logo size refinement ===== */
.permission-brand.permission-brand-wordmark {
    margin-top: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.permission-wordmark-image {
    width: min(100%, 248px);
    height: auto;
    display: block;
}
.auth-wordmark-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 14px;
}
.auth-wordmark-image {
    width: min(100%, 260px);
    height: auto;
    display: block;
}
.boosterwing-auth-shell {
    padding-top: 42px;
}
.auth-brand-hero {
    margin-bottom: 20px;
}
.auth-logo-mark {
    display: none !important;
}
.brand {
    gap: 10px;
}
.brand-mark-image {
    width: 54px;
    height: 54px;
}
.boosterwing-brand-copy b {
    font-size: 18px;
}
.topbar-inner {
    min-height: 72px;
}
.chat-avatar-v64.chat-logo-img-wrap {
    width: 62px;
    height: 50px;
}
.chat-big-logo-v64.chat-logo-img-wrap {
    width: 112px;
    height: 90px;
}
.chat-mini-logo-v64.chat-logo-img-wrap {
    width: 56px;
    height: 46px;
}
@media (max-width: 380px) {
    .permission-brand.permission-brand-wordmark {
        margin-top: 54px;
    }
    .permission-wordmark-image {
        width: min(100%, 220px);
    }
    .auth-wordmark-image {
        width: min(100%, 228px);
    }
    .brand-mark-image {
        width: 50px;
        height: 50px;
    }
    .chat-avatar-v64.chat-logo-img-wrap {
        width: 56px;
        height: 46px;
    }
    .chat-big-logo-v64.chat-logo-img-wrap {
        width: 96px;
        height: 80px;
    }
    .chat-mini-logo-v64.chat-logo-img-wrap {
        width: 50px;
        height: 42px;
    }
}

/* ===== v72: Boosterwing logo fine tune ===== */
.permission-brand.permission-brand-wordmark {
    justify-content: flex-start;
    margin-top: 72px;
}
.permission-wordmark-image {
    width: min(100%, 228px);
}
.auth-wordmark-image {
    width: min(100%, 236px);
}
.brand-mark-image {
    width: 62px;
    height: 62px;
}
.boosterwing-brand-copy b {
    font-size: 19px;
}
.topbar-inner {
    min-height: 74px;
}
.chat-top-v64 {
    grid-template-columns: 40px 72px 1fr 40px;
    gap: 8px;
}
.chat-avatar-v64.chat-logo-img-wrap {
    width: 72px;
    height: 58px;
}
.chat-big-logo-v64.chat-logo-img-wrap {
    width: 138px;
    height: 112px;
    margin-bottom: 20px;
}
.chat-mini-logo-v64.chat-logo-img-wrap {
    width: 38px;
    height: 30px;
}
@media (max-width: 380px) {
    .permission-brand.permission-brand-wordmark {
        margin-top: 64px;
    }
    .permission-wordmark-image {
        width: min(100%, 208px);
    }
    .auth-wordmark-image {
        width: min(100%, 216px);
    }
    .brand-mark-image {
        width: 58px;
        height: 58px;
    }
    .chat-top-v64 {
        grid-template-columns: 34px 64px 1fr 34px;
    }
    .chat-avatar-v64.chat-logo-img-wrap {
        width: 64px;
        height: 52px;
    }
    .chat-big-logo-v64.chat-logo-img-wrap {
        width: 122px;
        height: 98px;
    }
    .chat-mini-logo-v64.chat-logo-img-wrap {
        width: 34px;
        height: 28px;
    }
}
