@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --brand-50: #eef6fc;
    --brand-100: #d6e9f8;
    --brand-200: #aed3f0;
    --brand-300: #7ab8e6;
    --brand-400: #4fa6d9;
    --brand-500: #2b8fdc;
    --brand-600: #1a72c4;
    --brand-700: #155aa0;
    --brand-800: #134a82;

    --bg: #ffffff;
    --bg-soft: #f7f9fc;
    --bg-softer: #eef2f8;
    --surface: #ffffff;
    --border: #e3e9f2;
    --border-strong: #cdd6e4;

    --text: #0f1b2d;
    --text-soft: #475569;
    --text-muted: #6b7a90;

    --success: #16a34a;
    --success-bg: #e9f7ef;
    --success-border: #b7e4c7;
    --error: #dc2626;
    --error-bg: #fdecec;
    --error-border: #f6c9c9;
    --warn: #b45309;
    --warn-bg: #fdf3e7;
    --warn-border: #f5dca8;
    --gold: #c98a16;

    --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
    --shadow-md: 0 6px 20px rgba(15, 27, 45, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 27, 45, 0.14);
    --shadow-brand: 0 16px 40px rgba(26, 114, 196, 0.22);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-pill: 999px;

    --maxw: 1140px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: clip;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--brand-600);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}

a:hover {
    color: var(--brand-700);
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}

p {
    margin: 0;
}

img {
    max-width: 100%;
}

code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    background: var(--brand-50);
    color: var(--brand-700);
    padding: 1px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.wrap-narrow {
    max-width: 580px;
}

.wrap-mid {
    max-width: 880px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-600);
}

.muted {
    color: var(--text-muted);
}

.center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.a {
    color: var(--brand-600);
    text-decoration: underline;
}

.a_white {
    color: var(--text);
}

.a_no_underline {
    text-decoration: none;
}

.no_margin {
    margin: 0;
}

.mini_text {
    font-size: 0.75rem;
}

.p_italic {
    font-style: italic;
}

.light_grey_text {
    color: var(--text-muted);
}

.green_gradient_text {
    color: var(--success);
    font-weight: 600;
}

.premium_text_gold {
    color: var(--gold);
    font-weight: 700;
}

.svg_table_icon {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-left: 6px;
    color: var(--text-muted);
    vertical-align: middle;
}

.select2-container {
    width: 100% !important;
}

body > .select2-container {
    width: auto !important;
}

/* select2 hides the original <select> with width:1px, but a min-width from our
   own rules would still win and push the page wider than the viewport. */
select.select2-hidden-accessible {
    min-width: 0 !important;
    max-width: 1px !important;
}

.select2-container--default .select2-selection--single {
    height: 50px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    padding-left: 14px;
    color: var(--text);
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-muted);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 8px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 4px var(--brand-50);
}

.select2-dropdown {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.select2-search--dropdown {
    padding: 10px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 9px 11px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-soft);
    outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px var(--brand-50);
    background: #fff;
}

.select2-results__options {
    padding: 6px;
}

.select2-container--default .select2-results__option {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--brand-50);
    color: var(--brand-700);
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--brand-100);
    color: var(--brand-800);
    font-weight: 600;
}

.select2-results__option {
    margin-bottom: 4px;
}

.select2-results__option:last-child {
    margin-bottom: 0;
}

.mt-sm {
    margin-top: 12px;
}

.mt-md {
    margin-top: 20px;
}

.full-width {
    width: 100%;
}

.icon {
    flex-shrink: 0;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 22px 0;
}

.section {
    padding: 88px 0;
}

.section-soft {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 800;
    margin: 16px 0 14px;
}

.section-head p {
    font-size: 1.08rem;
    color: var(--text-soft);
}

.section-head .profile-handle {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-600);
    margin: 2px 0 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1;
    padding: 13px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s var(--ease), background 0.15s var(--ease),
        box-shadow 0.2s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--brand-600);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    background: var(--brand-700);
    color: #fff;
}

.btn-ghost {
    background: #fff;
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    border-color: var(--brand-400);
    color: var(--brand-700);
}

.btn-soft {
    background: var(--brand-50);
    color: var(--brand-700);
}

.btn-soft:hover {
    background: var(--brand-100);
    color: var(--brand-800);
}

.btn-danger {
    background: var(--error);
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
    color: #fff;
}

.btn-danger-soft {
    background: var(--error-bg);
    color: #b91c1c;
    border-color: var(--error-border);
}

.btn-danger-soft:hover {
    background: #fbdcdc;
    color: #991b1b;
}

.btn-gold {
    background: linear-gradient(135deg, #f0b429, #c98a16);
    color: #3a2a06;
    box-shadow: 0 12px 30px rgba(201, 138, 22, 0.28);
}

.btn-gold:hover {
    color: #3a2a06;
    filter: brightness(1.04);
}

.btn-lg {
    padding: 16px 30px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 9px 16px;
    font-size: 0.88rem;
}

.btn-block {
    width: 100%;
}

.btn-oauth {
    width: 100%;
    background: #fff;
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.btn-oauth:hover {
    border-color: var(--brand-400);
    color: var(--text);
    background: var(--bg-soft);
}

.btn-oauth img {
    width: 19px;
    height: 19px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-row-center {
    justify-content: center;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.brand:hover {
    color: var(--text);
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a.nav-link {
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a.nav-link:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 16px 5px 5px;
    border-radius: 999px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.2s var(--ease), border-color 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-account-btn:hover {
    background: var(--brand-100);
    border-color: var(--brand-300);
    box-shadow: var(--shadow-brand);
}

.nav-account-btn:active {
    transform: translateY(1px);
}

.nav-account-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--brand-200);
    flex-shrink: 0;
    display: block;
}

.nav-account-avatar-fallback {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
    color: var(--text);
}

.adminbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #0f2742;
    border-bottom: 1px solid #0b1d33;
}

.adminbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.adminbar .brand {
    color: #fff;
    flex-shrink: 0;
}

.adminbar .brand:hover {
    color: #fff;
}

.adminbar-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9fd0ee;
    border: 1px solid rgba(159, 208, 238, 0.4);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    margin-left: 4px;
}

.adminbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    padding-left: 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.adminbar-links::-webkit-scrollbar {
    display: none;
}

.adminbar-links-dragging {
    cursor: grabbing;
    user-select: none;
}

.adminbar-links a {
    color: #cdd9ea;
    font-size: 0.92rem;
    font-weight: 500;
    flex-shrink: 0;
}

.adminbar-links a:hover {
    color: #fff;
}

.page {
    flex-grow: 1;
    padding: 56px 0 80px;
}

.page-tight {
    padding: 40px 0 64px;
}

.page-head {
    margin-bottom: 30px;
}

.page-head.center {
    text-align: center;
}

.page-head h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 800;
}

.page-head p {
    color: var(--text-soft);
    margin-top: 10px;
    font-size: 1.04rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-soft);
    margin-bottom: 22px;
}

.back-link:hover {
    color: var(--brand-700);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.card + .card {
    margin-top: 20px;
}

.card-lg {
    padding: 34px;
}

.card-head {
    margin-bottom: 20px;
}

.card-head h2,
.card-head h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.card-head p {
    color: var(--text-soft);
    margin-top: 6px;
    font-size: 0.95rem;
}

.stack > * + * {
    margin-top: 16px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    margin: 0 0 7px;
}

.field-label .opt {
    font-weight: 400;
    color: var(--text-muted);
}

.input,
.textarea,
.select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-soft);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 13px 14px;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}

.input::placeholder,
.textarea::placeholder {
    color: var(--text-muted);
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 4px var(--brand-50);
}

input.input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    min-height: 50px;
    text-align: left;
}

input.input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

.select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.textarea {
    resize: vertical;
    min-height: 132px;
    line-height: 1.5;
}

.textarea-code {
    font-family: var(--font-mono);
    font-size: 0.92rem;
}

.help {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 7px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    text-align: left;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand-600);
    flex-shrink: 0;
}

.checkbox-row label {
    font-size: 0.94rem;
    color: var(--text-soft);
}

.checkbox-row.perm-child {
    margin-left: 27px;
    position: relative;
}

.checkbox-row.perm-child::before {
    content: "";
    position: absolute;
    left: -18px;
    top: -8px;
    height: 19px;
    border-left: 1px solid var(--border);
}

.checkbox-row.perm-child::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 11px;
    width: 17px;
    border-top: 1px solid var(--border);
}

.checkbox-row.perm-child input[type="checkbox"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.checkbox-row.perm-child input[type="checkbox"]:disabled + label {
    opacity: 0.55;
    cursor: not-allowed;
}

.option-plus-star {
    color: #b45309;
    margin-left: 5px;
    font-size: 0.85em;
}

.link-button {
    appearance: none;
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-600);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.link-button:hover {
    color: var(--brand-700);
}

.link-button svg {
    transition: transform 0.2s var(--ease);
}

.link-button.open svg {
    transform: rotate(180deg);
}

.options {
    display: none;
    margin-top: 14px;
    padding: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: left;
}

.options.open {
    display: block;
}

.options .field-label {
    margin-top: 12px;
}

.options .field-label:first-child {
    margin-top: 0;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 0.92rem;
    margin-bottom: 18px;
    text-align: left;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text-soft);
}

.alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-error {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: #9b1c1c;
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: #15803d;
}

.alert-info {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-800);
}

.alert-warn {
    background: var(--warn-bg);
    border-color: var(--warn-border);
    color: var(--warn);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
}

.badge-blue {
    background: var(--brand-50);
    color: var(--brand-700);
}

.badge-green {
    background: var(--success-bg);
    color: #15803d;
}

.badge-red {
    background: var(--error-bg);
    color: #b91c1c;
}

.badge-gold {
    background: #fbf0d6;
    color: #92670f;
}

.badge-grey {
    background: var(--bg-softer);
    color: var(--text-soft);
}

.gold-text {
    color: var(--gold);
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.table th {
    text-align: left;
    background: var(--bg-soft);
    color: var(--text-soft);
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover {
    background: var(--bg-soft);
}

.copy-field {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.copy-field .input {
    font-family: var(--font-mono);
    font-size: 0.94rem;
}

.qr-box {
    display: inline-flex;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.qr-box img {
    display: block;
    width: 190px;
    height: 190px;
}

.result-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.92rem;
    color: var(--text-soft);
    text-align: left;
}

.kv {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.kv:last-child {
    border-bottom: 0;
}

.kv-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.kv-value {
    font-weight: 500;
    word-break: break-word;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 92px;
    background:
        radial-gradient(900px 460px at 12% -8%, var(--brand-50), transparent 60%),
        radial-gradient(760px 420px at 105% 8%, #eaf3fb, transparent 55%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: start;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 22px 0 0;
}

.hero h1 .grad {
    background: linear-gradient(120deg, var(--brand-500), var(--brand-700));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.18rem;
    color: var(--text-soft);
    margin: 22px 0 0;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-trust svg {
    color: var(--brand-500);
    flex-shrink: 0;
}

.tool {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 10px;
}

.tool-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: var(--bg-softer);
    border-radius: var(--radius-lg);
    padding: 6px;
}

.tool-tab {
    appearance: none;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-soft);
    padding: 11px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s var(--ease);
}

.tool-tab.active {
    background: #fff;
    color: var(--brand-700);
    box-shadow: var(--shadow-sm);
}

.tool-body {
    padding: 22px 20px 18px;
}

.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
}

.tool-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 14px;
}

.tool-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.tool-fieldset:disabled {
    opacity: 0.45;
}

.tool-locked-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--error);
    margin: -4px 0 12px;
}

.tool-locked-note svg {
    flex-shrink: 0;
}

.tool-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.tool-submit {
    margin-top: 16px;
}

.tool-foot {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 14px 4px 6px;
}

.tool-guest-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-muted);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    margin: 16px 4px 10px;
}

.tool-guest-note svg {
    flex-shrink: 0;
    color: var(--brand-500);
    margin-top: 1px;
}

.app-home-page .page {
    padding: 28px 0 32px;
}

.app-home-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.app-home-logo img {
    max-width: 110px;
    height: auto;
}

.app-home-note {
    font-size: 0.72rem;
    margin-bottom: 16px;
}

.tool .alert {
    margin: 0 10px 12px;
}

.proof {
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}

.proof p {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.proof-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 48px;
    margin-top: 20px;
}

.proof-stat {
    text-align: center;
}

.proof-stat b {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.proof-stat span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.trusted {
    padding: 34px 0 48px;
    border-top: 1px solid var(--border);
}

.trusted-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.trusted-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trusted-track::-webkit-scrollbar {
    display: none;
}

.trusted-track.is-marquee {
    justify-content: flex-start;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trusted-logo {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.trusted-logo img {
    height: 64px;
    width: auto;
    display: block;
    filter: grayscale(1) opacity(0.65);
    transition: filter 0.2s var(--ease), opacity 0.2s var(--ease);
}

.trusted-logo:hover img,
.trusted-logo:focus-visible img {
    filter: none;
    opacity: 1;
}

.trusted-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-soft);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.trusted-logo:hover .trusted-name,
.trusted-logo:focus-visible .trusted-name {
    opacity: 1;
    transform: none;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-200);
}

.feature-ico {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-50);
    color: var(--brand-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature p {
    color: var(--text-soft);
    font-size: 0.98rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.92rem;
    color: var(--text-soft);
    padding: 5px 0;
}

.feature-list svg {
    color: var(--brand-500);
    flex-shrink: 0;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-weight: 600;
    font-size: 0.94rem;
}

.feature-link svg {
    transition: transform 0.15s var(--ease);
}

.feature-link:hover svg {
    transform: translateX(3px);
}

.audience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.aud-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px 32px;
    background: var(--surface);
}

.aud-card.b2b {
    background: linear-gradient(180deg, #0f2742, #0b1d33);
    border-color: #0b1d33;
    color: #e6eef8;
}

.aud-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--brand-50);
    color: var(--brand-700);
    margin-bottom: 18px;
}

.aud-card.b2b .aud-tag {
    background: rgba(79, 166, 217, 0.18);
    color: #9fd0ee;
}

.aud-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.aud-card.b2b h3 {
    color: #fff;
}

.aud-card > p {
    color: var(--text-soft);
    margin-bottom: 18px;
}

.aud-card.b2b > p {
    color: #b8c8de;
}

.aud-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aud-points li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 8px 0;
    font-size: 0.98rem;
    color: var(--text-soft);
}

.aud-card.b2b .aud-points li {
    color: #cdd9ea;
}

.aud-points svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--brand-500);
}

.aud-card.b2b .aud-points svg {
    color: #6fc0ea;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: var(--brand-600);
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-soft);
    font-size: 0.96rem;
}

/* Link-in-bio showcase */
.profile-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.profile-showcase-text h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.profile-showcase-text .feature-list {
    margin: 0 0 26px;
}

.profile-showcase-text .feature-list li {
    align-items: flex-start;
    font-size: 0.98rem;
    padding: 7px 0;
}

.profile-showcase-text .feature-list svg {
    margin-top: 4px;
}

.phone {
    display: flex;
    justify-content: center;
}

.phone-bezel {
    width: 272px;
    padding: 14px 9px 9px;
    border-radius: 44px;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    border-radius: 32px;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    padding: 26px 18px 24px;
    text-align: center;
}

.phone-brand {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.phone-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a72c4, #7ec3f2);
    color: #fff;
    font-weight: 800;
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.phone-name {
    font-weight: 800;
    font-size: 1.02rem;
    color: #0f1b2d;
    line-height: 1.3;
}

.phone-handle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.phone-bio {
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.phone-link {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 9px 12px;
    margin-bottom: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #0f1b2d;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.phone-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.phone-icons span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

/* Upgrade plans (Plus & Pro) */
.plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.plan-card-pro {
    border: 2px solid #a06b0f;
    box-shadow: 0 6px 28px rgba(160, 107, 15, 0.18);
}

.plan-card-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--brand-50);
    color: var(--brand-700);
    margin-bottom: 16px;
}

.plan-card-pro .plan-card-badge {
    background: #fdf3dc;
    color: var(--gold);
}

.plan-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.plan-card-desc {
    color: var(--text-soft);
    font-size: 0.98rem;
    margin-bottom: 18px;
}

.plan-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.plan-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.95rem;
    color: var(--text-soft);
}

.plan-card-list svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--brand-500);
}

.plan-card-pro .plan-card-list svg {
    color: var(--gold);
}

.plan-card .btn {
    margin-top: auto;
}

.cta {
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.cta p {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 560px;
    margin: 0 auto 30px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 64px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin: 16px 0 18px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.footer-col a {
    display: block;
    color: var(--text-soft);
    font-size: 0.95rem;
    padding: 6px 0;
}

.footer-col a:hover {
    color: var(--brand-700);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
}

.footer-social a:hover {
    border-color: var(--brand-400);
    color: var(--brand-600);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-bottom .legal a {
    color: var(--text-muted);
    margin-left: 18px;
}

.footer-bottom .legal a:hover {
    color: var(--brand-700);
}

.account-masonry {
    columns: 2;
    column-gap: 20px;
}

.account-masonry .card {
    break-inside: avoid;
    display: block;
    margin-bottom: 20px;
}

.account-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 540px) {
    .account-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .account-hero > div:last-child {
        width: 100%;
    }
}

.account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    text-transform: uppercase;
}

.account-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.account-hero-info {
    flex: 1;
    min-width: 0;
}

.account-hero-info h2 {
    font-size: 1.3rem;
    font-weight: 800;
}

.account-hero-info p {
    color: var(--text-soft);
    font-size: 0.92rem;
    margin-top: 4px;
    word-break: break-word;
}

.menu {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 2px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: none;
    color: var(--text);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.96rem;
    text-align: left;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    transition: color 0.15s var(--ease);
}

.menu-item:last-child {
    border-bottom: 0;
}

.menu-item:hover {
    color: var(--brand-700);
}

.menu-item .chev {
    color: var(--text-muted);
    flex-shrink: 0;
}

.menu-label {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.menu-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.15s var(--ease);
}

.menu-item:hover .menu-icon {
    color: var(--brand-700);
}

.menu-item.danger .menu-icon {
    color: var(--error);
}

.menu-item.danger {
    color: var(--error);
}

.menu-item.danger:hover {
    color: #b91c1c;
}

.menu-item.gold {
    color: var(--gold);
}

.menu-form {
    margin: 0;
}

.menu-form .menu-item {
    border-bottom: 1px solid var(--border);
}

.menu-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.menu-avatar-fallback {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.menu.menu-delegate-locked>* {
    opacity: 0.45;
    pointer-events: none;
}

.menu.menu-delegate-locked>*:hover {
    color: var(--text);
}

.menu.menu-delegate-locked>.menu-allowed {
    opacity: 1;
    pointer-events: auto;
}

.menu.menu-delegate-locked>.menu-allowed:hover {
    color: var(--brand-700);
}

.links-editor {
    text-align: left;
}

.link-edit-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    padding: 16px;
    margin-bottom: 14px;
}

.link-edit-card input.input {
    margin-bottom: 10px;
}

.link-edit-card.dragging {
    position: fixed;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    background: #fff;
    opacity: 0.97;
    pointer-events: none;
}

.link-section-block.dragging {
    position: fixed;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    background: var(--bg-softer);
    opacity: 0.97;
    pointer-events: none;
}

.drag_placeholder {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-softer);
    margin-bottom: 14px;
}

.drag_handle {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    padding-bottom: 12px;
}

.drag_handle_grip {
    cursor: grab;
    font-size: 1.15rem;
    line-height: 1;
    touch-action: none;
    color: var(--text-muted);
}

.drag_handle_label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
}

.links-container.reorder_mode .link-edit-card {
    cursor: grab;
}

.links-container.reorder_mode .link-edit-card > *:not(.drag_handle) {
    display: none;
}

.links-container.reorder_mode .drag_handle {
    padding-bottom: 0;
}

.select2-icon-img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.link-section-block {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-softer);
    padding: 14px;
    margin-bottom: 14px;
}

.link-section-block-ungrouped {
    border-style: dashed;
}

.link-section-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.link-section-grip {
    cursor: grab;
    font-size: 1.15rem;
    line-height: 1;
    touch-action: none;
    color: var(--text-muted);
    flex-shrink: 0;
}

.link-section-title-input {
    flex: 1;
    font-weight: 600;
    min-width: 0;
}

.link-section-label {
    flex: 1;
    font-weight: 600;
    color: var(--text-soft);
    font-size: 0.95rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.section_drag_placeholder {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-softer);
    margin-bottom: 14px;
    min-height: 56px;
}

.prose {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.prose h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 32px 0 12px;
}

.prose h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 24px 0 10px;
}

.prose p {
    color: var(--text-soft);
    margin-bottom: 14px;
}

.prose ul,
.prose ol {
    color: var(--text-soft);
    padding-left: 22px;
    margin-bottom: 14px;
}

.prose li {
    margin-bottom: 7px;
}

.prose a {
    text-decoration: underline;
}

.mini-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.state-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.state-icon.ok {
    background: var(--success-bg);
    color: var(--success);
}

.state-icon.err {
    background: var(--error-bg);
    color: var(--error);
}

.state-icon.info {
    background: var(--brand-50);
    color: var(--brand-600);
}

.state-icon.warn {
    background: var(--warn-bg);
    color: var(--warn);
}

.profile {
    --p-bg: var(--bg-soft);
    --p-surface: #ffffff;
    --p-surface-2: var(--bg-soft);
    --p-border: var(--border);
    --p-text: var(--text);
    --p-text-soft: var(--text-soft);
    --p-accent: var(--brand-600);
    --p-accent-text: #ffffff;
    --p-icon-filter: none;
    flex-grow: 1;
    background: radial-gradient(ellipse 120% 45% at 50% -5%, color-mix(in srgb, var(--p-accent) 22%, var(--p-bg)), var(--p-bg) 60%);
    padding: 40px 0 64px;
}

.profile-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--p-surface);
    border: 2px solid var(--p-accent);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 38px 30px 32px;
    text-align: center;
}

.profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--p-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-accent) 18%, transparent), var(--shadow-sm);
    margin: 0 auto 18px;
    display: block;
}

.profile-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--p-text);
}

.profile-verified {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.profile-handle {
    color: var(--p-text-soft);
    font-size: 0.95rem;
    margin-top: 2px;
}

.profile-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--p-text-soft);
    font-size: 0.95rem;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-flag {
    width: 20px;
    height: auto;
    border-radius: 3px;
    vertical-align: middle;
}

.profile-bio {
    color: var(--p-text);
}

.profile-school {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--p-text-soft);
    font-size: 0.88rem;
}

.profile-school img {
    width: 15px;
    height: 15px;
    opacity: 0.7;
    filter: var(--p-icon-filter);
}

.profile-media {
    margin-top: 24px;
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.profile-media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.profile-music {
    margin-top: 24px;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.profile-music iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.profile-countdown {
    margin-top: 24px;
    text-align: center;
}

.profile-countdown-title {
    margin: 0 0 10px;
    color: var(--p-text);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.profile-countdown-timer {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.profile-countdown-timer .cd-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 4.2ch;
    padding: 10px 6px 8px;
    background: var(--p-surface-2);
    border: 1px solid var(--p-border);
    border-radius: var(--radius-md);
}

.profile-countdown-timer .cd-seg-d {
    min-width: 5.2ch;
}

.profile-countdown-timer .cd-num {
    color: var(--p-text);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.profile-countdown-timer .cd-unit {
    color: var(--p-text-soft);
    font-family: var(--font);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-countdown-done {
    margin: 12px 0 0;
    color: var(--p-accent);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 420px) {
    .profile-countdown-timer .cd-num {
        font-size: 1.3rem;
    }

    .profile-countdown-timer .cd-seg {
        min-width: 3.6ch;
        padding: 8px 4px 6px;
    }

    .profile-countdown-timer .cd-seg-d {
        min-width: 4.4ch;
    }

    .profile-countdown-timer .cd-unit {
        font-size: 0.55rem;
    }
}

.profile-links {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--p-surface-2);
    border: 1px solid var(--p-border);
    border-radius: var(--radius-md);
    color: var(--p-text);
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.profile-link:hover {
    transform: translateY(-2px);
    border-color: var(--p-accent);
    color: var(--p-text);
    box-shadow: var(--shadow-sm);
}

.profile-link img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: var(--p-icon-filter);
}

.profile-link span {
    text-align: left;
    word-break: break-word;
}

.profile-links-section {
    margin-top: 24px;
}

.profile-links-section-title {
    margin: 0 0 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    color: var(--p-text);
    opacity: 0.75;
    word-break: break-word;
}

/* div. qualifier keeps this above the per-theme .profile.design-X .profile-links margins */
.profile div.profile-links-section .profile-links {
    margin-top: 0;
}

.profile-icon-links {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.profile-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--p-surface-2);
    border: 1px solid var(--p-border);
    border-radius: 50%;
    color: var(--p-text);
    transition: transform 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.profile-icon-link:hover {
    transform: translateY(-2px);
    border-color: var(--p-accent);
    box-shadow: var(--shadow-sm);
}

.profile-icon-link img {
    width: 24px;
    height: 24px;
    filter: var(--p-icon-filter);
}

.profile-note {
    margin-top: 20px;
    font-size: 0.84rem;
    color: var(--p-text-soft);
    font-style: italic;
}

.profile-foot {
    text-align: center;
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile.design-glass {
    position: relative;
}

.profile.design-glass::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 65% at 15% 20%, color-mix(in srgb, var(--p-accent) 45%, transparent), transparent 60%),
        radial-gradient(ellipse 65% 55% at 85% 75%, color-mix(in srgb, var(--p-accent) 30%, transparent), transparent 55%),
        radial-gradient(ellipse 50% 40% at 52% 55%, color-mix(in srgb, var(--p-accent) 15%, transparent), transparent 70%),
        var(--p-bg);
    pointer-events: none;
    z-index: -1;
}

.profile.design-glass .profile-card,
.profile.design-glass .profile-link,
.profile.design-glass .profile-icon-link {
    background: color-mix(in srgb, var(--p-surface) 14%, transparent);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid color-mix(in srgb, var(--p-accent) 38%, rgba(255, 255, 255, 0.5));
    box-shadow: 0 8px 40px rgba(15, 27, 45, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.profile.design-glass .profile-countdown-timer .cd-seg {
    background: color-mix(in srgb, var(--p-surface) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--p-accent) 38%, rgba(255, 255, 255, 0.5));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.profile.design-metallic .profile-card,
.profile.design-metallic .profile-link,
.profile.design-metallic .profile-icon-link {
    background-image: linear-gradient(150deg, color-mix(in srgb, var(--p-accent) 28%, rgba(24, 30, 44, 0.88)), color-mix(in srgb, var(--p-accent) 12%, rgba(10, 14, 24, 0.94))), url("brushed_metal.png");
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay, normal;
    border: 1px solid color-mix(in srgb, var(--p-accent) 50%, rgba(120, 140, 170, 0.35));
    box-shadow: 0 6px 24px rgba(8, 12, 20, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.profile.design-metallic .profile-countdown-timer .cd-seg {
    background-image: linear-gradient(150deg, color-mix(in srgb, var(--p-accent) 28%, rgba(24, 30, 44, 0.88)), color-mix(in srgb, var(--p-accent) 12%, rgba(10, 14, 24, 0.94))), url("brushed_metal.png");
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay, normal;
    border: 1px solid color-mix(in srgb, var(--p-accent) 50%, rgba(120, 140, 170, 0.35));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.profile.design-metallic .profile-countdown-timer .cd-num,
.profile.design-metallic .profile-countdown-title,
.profile.design-metallic .profile-countdown-done {
    color: #f3f6fb;
}

.profile.design-metallic .profile-countdown-timer .cd-unit {
    color: #ccd6e6;
}

.profile.design-metallic .profile-name,
.profile.design-metallic .profile-link span {
    color: #f3f6fb;
}

.profile.design-metallic .profile-handle,
.profile.design-metallic .profile-bio,
.profile.design-metallic .profile-meta,
.profile.design-metallic .profile-school,
.profile.design-metallic .profile-note {
    color: #ccd6e6;
}

.profile.design-metallic .profile-links-section-title {
    color: #ccd6e6;
    opacity: 1;
}

.profile.design-metallic .profile-link img,
.profile.design-metallic .profile-icon-link img,
.profile.design-metallic .profile-school img {
    filter: invert(100%) brightness(1.4);
}

.profile.design-metallic .profile-avatar {
    border-color: color-mix(in srgb, var(--p-accent) 55%, rgba(180, 195, 220, 0.5));
}

.profile.design-metallic .metallic-hover {
    position: relative;
    overflow: hidden;
}

.profile.design-metallic .metallic-hover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), color-mix(in srgb, var(--p-accent) 14%, rgba(173, 196, 230, 0.09)), transparent 40%);
    pointer-events: none;
}

.profile.design-custom .profile-link,
.profile.design-custom .profile-icon-link {
    background: var(--p-button, var(--p-surface-2));
    border-color: var(--p-border);
}

.profile.design-custom .profile-countdown-timer .cd-seg {
    background: color-mix(in srgb, var(--p-text) 7%, var(--p-surface));
    border-color: color-mix(in srgb, var(--p-text) 16%, transparent);
}

.profile.design-custom .profile-card {
    border-radius: var(--p-card-radius, var(--radius-xl));
}

.profile.design-custom .profile-link {
    color: var(--p-button-text, var(--p-text));
    border-radius: var(--p-button-radius, var(--radius-md));
}

.profile.design-custom .profile-icon-link {
    border-radius: var(--p-icon-button-radius, 50%);
}

.profile.design-custom .profile-link img,
.profile.design-custom .profile-icon-link img {
    filter: var(--p-button-icon-filter, var(--p-icon-filter));
}

.profile.design-custom .profile-link:hover img,
.profile.design-custom .profile-icon-link:hover img {
    filter: var(--p-button-icon-filter-hover, var(--p-icon-filter));
}

.profile.design-custom .profile-link:hover {
    background: var(--p-button-hover, var(--p-button, var(--p-surface-2)));
    color: var(--p-button-text-hover, var(--p-button-text, var(--p-text)));
}

.profile.design-custom .profile-icon-link:hover {
    background: var(--p-button-hover, var(--p-button, var(--p-surface-2)));
}

.profile.design-custom.custom-hover-standard .profile-link:hover,
.profile.design-custom.custom-hover-standard .profile-icon-link:hover,
.profile.design-custom.custom-hover-glow .profile-link:hover,
.profile.design-custom.custom-hover-glow .profile-icon-link:hover {
    border-color: var(--p-accent);
}

.profile.design-custom.custom-hover-glow .profile-link:hover,
.profile.design-custom.custom-hover-glow .profile-icon-link:hover {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-accent) 30%, transparent), var(--shadow-sm);
}

.profile.design-custom.custom-always-button-border .profile-link,
.profile.design-custom.custom-always-button-border .profile-icon-link {
    border-color: var(--p-accent);
}

.profile.design-custom.custom-no-card-border .profile-card {
    border: none;
}

.profile.design-custom.custom-no-button-border .profile-link,
.profile.design-custom.custom-no-button-border .profile-icon-link {
    border: none;
}

.profile.design-custom.custom-no-gradient {
    background: var(--p-bg);
}

.nav-brand-group {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.event-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--event-accent) 14%, #fff);
    border: 1px solid color-mix(in srgb, var(--event-accent) 32%, #fff);
    transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
}

.event-pill:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.event-pill-emoji {
    font-size: 1.15rem;
    line-height: 1;
}

.hero-has-event {
    padding-top: 26px;
}

#tool {
    scroll-margin-top: 70px;
}

.event-strip {
    scroll-margin-top: 70px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin: 0 0 32px;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--event-accent) 10%, #fff);
    border: 2px solid var(--event-accent);
}

.event-strip-emoji {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.event-strip-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.event-strip-text strong {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--event-accent-dark, var(--text));
}

.event-strip-text span {
    font-size: 0.92rem;
    color: var(--text-soft);
}

.event-mascot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    z-index: 60;
    cursor: pointer;
    filter: drop-shadow(0 8px 14px rgba(15, 27, 45, 0.28));
    transition: transform 0.2s var(--ease);
    animation: event-float 3.2s ease-in-out infinite;
}

.event-mascot:hover {
    transform: translateY(-4px) scale(1.06);
}

.event-mascot-svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes event-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

.event-confetti {
    position: fixed;
    font-size: 1.3rem;
    pointer-events: none;
    z-index: 70;
    will-change: transform, opacity;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

/* Two rows below ~1020px: the two free plans pair up, then the two paid plans
   (DOM order), instead of four cramped columns or a ragged auto-fit wrap. */
@media (max-width: 1020px) {
    .pricing-plans {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pricing-plan {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pricing-plan.featured {
    border: 2px solid var(--gold);
    box-shadow: 0 6px 24px rgba(201, 138, 22, 0.14);
}

.pricing-plan.featured.pricing-plan-pro {
    border-color: #a06b0f;
    box-shadow: 0 6px 28px rgba(160, 107, 15, 0.22);
}

.pricing-plan-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.pricing-plan.featured .pricing-plan-label {
    color: var(--gold);
}

.pricing-plan-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
}

.pricing-plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    margin: 8px 0 4px;
}

.pricing-plan-price-sub {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.pricing-plan .btn {
    margin-top: auto;
    padding-top: 12px;
}

.pricing-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    min-width: 520px;
}

.pricing-table thead th {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    border-bottom: 2px solid var(--border);
    background: var(--bg-soft);
    white-space: nowrap;
}

.pricing-table thead th:first-child {
    text-align: left;
    width: 44%;
}

.pricing-table thead th.col-premium {
    background: #fdf8ec;
    color: var(--gold);
}

.pricing-table thead th.col-pro {
    background: #f7f0df;
    color: #a06b0f;
}

.pricing-table .section-row td {
    padding: 10px 18px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    background: var(--bg-softer);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pricing-table td {
    padding: 11px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table td:not(:first-child) {
    text-align: center;
}

.pricing-table td.col-premium {
    background: #fffdf5;
}

.pricing-table td.col-pro {
    background: #fbf8ef;
}

.pt-check {
    color: var(--success);
    display: inline-block;
}

.pt-dash {
    color: var(--border-strong);
    display: inline-block;
}

.pricing-table td .pt-note {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

@media (max-width: 600px) {
    .trusted-track {
        gap: 32px;
    }
    .trusted-logo img {
        height: 34px;
    }
    .event-pill {
        width: 34px;
        height: 34px;
    }
    .event-pill-emoji {
        font-size: 1.05rem;
    }
    .event-mascot {
        width: 52px;
        height: 52px;
        bottom: 18px;
        right: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .event-mascot {
        animation: none;
    }
}

@media (max-width: 940px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-col-tool {
        max-width: 520px;
    }
    .features,
    .steps {
        grid-template-columns: 1fr 1fr;
    }
    .audience {
        grid-template-columns: 1fr;
    }
    .profile-showcase,
    .plan-grid {
        grid-template-columns: 1fr;
    }
    .profile-showcase {
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }
    .adminbar-links {
        gap: 14px;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .nav.open .nav-links {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 18px;
        box-shadow: var(--shadow-md);
    }
    .nav.open .nav-links a.nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }
    .nav.open .nav-links .nav-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 12px;
    }
    .nav.open .nav-links .nav-account-btn {
        justify-content: center;
    }
    .section {
        padding: 64px 0;
    }
    .features,
    .steps,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    .card,
    .card-lg {
        padding: 22px;
    }
    .account-masonry {
        columns: 1;
    }
    .pricing-plans {
        grid-template-columns: 1fr;
    }
    .pricing-plan.featured {
        order: -1;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding: 0 18px;
    }
    .hero-cta .btn,
    .cta-actions .btn,
    .btn-responsive {
        width: 100%;
    }
}

/* Profile analytics */
.analytics-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.analytics-range {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-softer);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    flex-wrap: wrap;
}

.analytics-range a,
.analytics-range-locked {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    white-space: nowrap;
}

.analytics-range-locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.analytics-range a.active {
    background: var(--surface);
    color: var(--brand-700);
    box-shadow: var(--shadow-sm);
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.analytics-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.analytics-stat-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.analytics-stat-value {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 6px;
}

.analytics-stat-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    min-height: 22px;
    flex-wrap: wrap;
}

.stat-delta {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.stat-delta.up { color: var(--success); background: var(--success-bg); }
.stat-delta.down { color: var(--error); background: var(--error-bg); }
.stat-delta.new { color: var(--brand-700); background: var(--brand-50); }
.stat-delta.flat { color: var(--text-muted); background: var(--bg-softer); }

.analytics-alltime {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.analytics-alltime b {
    color: var(--text);
    font-weight: 700;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.analytics-grid > .card {
    margin: 0;
}

.analytics-chart-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 260px;
    margin-top: 8px;
}

.analytics-bar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.analytics-bar-row {
    display: grid;
    grid-template-columns: minmax(96px, 1.4fr) minmax(60px, 2fr) auto;
    align-items: center;
    gap: 12px;
}

.analytics-bar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-bar-label-wide {
    font-weight: 500;
}

.analytics-flag {
    width: 20px;
    height: auto;
    border-radius: 3px;
    flex-shrink: 0;
}

.analytics-bar-track {
    height: 9px;
    background: var(--bg-softer);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.analytics-bar-fill {
    display: block;
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
}

.analytics-bar-fill-green {
    background: linear-gradient(90deg, #34d399, #059669);
}

.analytics-bar-value {
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.analytics-bar-sub {
    color: var(--text-muted);
    font-weight: 500;
}

.analytics-legend {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
}

.analytics-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-softer);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}

.analytics-toggle button {
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
}

.analytics-toggle button.active {
    background: var(--surface);
    color: var(--brand-700);
    box-shadow: var(--shadow-sm);
}

.analytics-donuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 12px;
}

.analytics-stats > .analytics-stat,
.analytics-grid > .card,
.analytics-donuts > .analytics-donut {
    min-width: 0;
}

.analytics-donut {
    position: relative;
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
}

.analytics-donut-title {
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
}

.analytics-donut-empty {
    position: absolute;
    inset: 0 0 34px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.analytics-lockable {
    position: relative;
    overflow: hidden;
}

.analytics-lock-content {
    filter: blur(7px);
    opacity: 0.65;
    pointer-events: none;
    user-select: none;
}

.analytics-lock {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-lg);
}

.analytics-lock-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.analytics-lock-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: var(--brand-600);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.analytics-lock-link:hover {
    background: var(--brand-700);
    color: #fff;
}

@media (max-width: 900px) {
    .analytics-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .analytics-head {
        align-items: flex-start;
    }
    .analytics-range {
        width: 100%;
    }
    .analytics-range a,
    .analytics-range-locked {
        flex: 1 1 auto;
        text-align: center;
        padding: 6px 10px;
    }
    .analytics-chart-wrap {
        height: 220px;
    }
    .analytics-bar-row {
        grid-template-columns: minmax(80px, 1.2fr) 2fr auto;
        gap: 8px;
    }
    .analytics-stat-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 460px) {
    .analytics-stats {
        grid-template-columns: 1fr;
    }
    .analytics-donut {
        max-width: 220px;
    }
}

/* Mobile app page */
.wrap-app {
    max-width: 1060px;
}

.app-page .page {
    padding: 44px 0 16px;
}

.app-hero {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
}

.app-hero-text h1 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 18px 0 0;
}

.app-hero-text h1 .grad {
    background: linear-gradient(120deg, var(--brand-500), var(--brand-700));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-hero-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

.app-hero-blob {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 26%, var(--brand-100), transparent 58%),
        radial-gradient(circle at 74% 74%, #eaf3fb, transparent 55%),
        linear-gradient(135deg, var(--brand-50), #f4f8fd);
    animation: app-blob-float 7s ease-in-out infinite;
}

.app-icon-frame {
    position: relative;
    width: 168px;
    height: 168px;
    border-radius: 38px;
    background: #fff;
    padding: 9px;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-strong);
}

.app-icon-frame img {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    display: block;
}

.app-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
    white-space: nowrap;
    animation: app-float 4.4s ease-in-out infinite;
}

.app-chip svg {
    color: var(--brand-500);
    flex-shrink: 0;
}

.app-chip-links {
    top: 14px;
    right: 4%;
}

.app-chip-notif {
    bottom: 20px;
    left: 3%;
    animation-delay: 1.4s;
}

@keyframes app-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes app-blob-float {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.04) translateY(-8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-hero-blob,
    .app-chip {
        animation: none;
    }
}

.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.store-row-center {
    justify-content: center;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px 10px 18px;
    border-radius: var(--radius-md);
    background: #0f1420;
    color: #fff;
    text-decoration: none;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), filter 0.15s var(--ease);
}

.store-btn:hover,
.store-btn:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.08);
}

.store-btn:active {
    transform: translateY(0);
}

.store-logo {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.store-btn-top {
    font-size: 0.66rem;
    font-weight: 500;
    color: #c6cfe0;
    letter-spacing: 0.02em;
}

.store-btn-name {
    font-size: 1.06rem;
    font-weight: 700;
}

.app-cta-card {
    text-align: center;
    padding: 52px 32px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(620px 280px at 18% 0%, var(--brand-50), transparent 60%),
        radial-gradient(560px 240px at 92% 100%, #eaf3fb, transparent 55%),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.app-cta-card h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 800;
    margin: 14px 0 0;
}

.app-cta-card p {
    color: var(--text-soft);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 12px auto 0;
}

.app-cta-card .store-row {
    justify-content: center;
}

@media (max-width: 940px) {
    .app-hero {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .app-hero-media {
        order: -1;
        min-height: 320px;
    }
    .app-hero-text {
        text-align: center;
    }
    .app-hero-text .store-row,
    .app-hero-text .hero-trust {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .app-hero-media {
        min-height: 300px;
    }
    .app-hero-blob {
        width: 250px;
        height: 250px;
    }
    .app-icon-frame {
        width: 128px;
        height: 128px;
        border-radius: 30px;
    }
    .app-icon-frame img {
        border-radius: 24px;
    }
    .app-cta-card {
        padding: 40px 22px;
    }
}
