.primary-button, .secondary-button, .ghost-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border: 1px solid transparent; border-radius: 13px; cursor: pointer; font-weight: 800; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.primary-button { color: #fff; background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); box-shadow: 0 12px 24px rgba(23,104,242,.22); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(23,104,242,.3); }
.secondary-button { border-color: #b9cdf2; color: var(--ink); background: #fff; }
.secondary-button:hover { border-color: var(--primary-500); color: var(--primary-600); }
.ghost-button { color: var(--primary-600); background: var(--primary-50); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin: 3px 0 0; font-size: clamp(25px, 3vw, 36px); }
.section-heading p { max-width: 520px; margin: 0; color: var(--ink-soft); }
.surface-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-card); }
.status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border-radius: 20px; color: var(--primary-600); background: var(--primary-100); font-size: 12px; font-weight: 800; }
.status-pill.is-success { color: #087a50; background: #ddf8ed; }
.status-pill.is-locked { color: #6e7d98; background: #edf2f9; }
.progress-track { height: 9px; overflow: hidden; border-radius: 10px; background: #e7edf7; }
.progress-track > span { display: block; width: var(--progress, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--primary-500)); transition: width .35s var(--ease); }
.progress-ring { position: relative; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; background: conic-gradient(var(--primary-600) var(--ring, 0%), #e9eef8 0); }
.progress-ring::before { position: absolute; width: 88px; height: 88px; border-radius: 50%; background: #fff; content: ""; }
.progress-ring span { position: relative; display: grid; text-align: center; font-size: 12px; }
.progress-ring strong { font-size: 25px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card { display: flex; align-items: center; gap: 14px; min-height: 94px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.stat-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--primary-600); background: var(--primary-100); font-size: 22px; }
.stat-card span { display: grid; color: var(--ink-soft); font-size: 13px; }
.stat-card strong { color: var(--ink); font-size: 22px; }
.stars { color: var(--yellow); letter-spacing: 2px; white-space: nowrap; }
.empty-state { width: min(calc(100% - 40px), 700px); margin: 80px auto; padding: 50px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.header-login { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 16px; border: 1px solid #b9cdf2; border-radius: 12px; color: var(--primary-600); background: #fff; font-size: 13px; font-weight: 900; }
.install-guide { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(8,25,62,.52); backdrop-filter: blur(8px); }
.install-guide-card { position: relative; width: min(100%, 440px); padding: 34px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-float); }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--primary-50); cursor: pointer; }
.install-guide-card > .icon-button { position: absolute; top: 16px; left: 16px; }
.badge-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px; color: #fff; background: linear-gradient(145deg, var(--primary-500), var(--purple)); font-size: 25px; box-shadow: 0 10px 25px rgba(47,125,244,.2); }
.profile-form { display: grid; gap: 16px; }
.profile-form label { display: grid; gap: 7px; font-weight: 800; }
.profile-form input, .profile-form select { width: 100%; min-height: 50px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; }

.child-header-logout{display:inline-flex}
.child-header-logout button{border:0;background:transparent;color:var(--muted);font:inherit;cursor:pointer;padding:.45rem}
.child-header-logout button:hover{color:var(--text)}
