:root {
    --bg: #fffaf6;
    --bg-soft: #fff2f8;
    --bg-soft-2: #f6f0ff;
    --surface: #ffffff;
    --surface-2: #fff8fc;
    --text: #3f3550;
    --muted: #7a6f8d;
    --accent: #8f79d9;
    --accent-dark: #705bbb;
    --accent-soft: #efe8ff;
    --pink: #f7d8e8;
    --pink-dark: #d88bb0;
    --border: #eadff2;
    --shadow: 0 8px 24px rgba(143, 121, 217, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top, #fff8fc 0%, #fffaf6 45%, #fffaf6 100%);
    color: var(--text);
    margin: 0;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background: rgba(255, 248, 252, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 16px 22px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-brand {
    margin-bottom: 12px;
}

.site-brand__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.site-brand__link:hover {
    text-decoration: none;
}

.site-brand__logo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 2px solid #f1e4a6;
}

.site-brand__name {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.01em;
}

.main-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background: var(--accent-soft);
    border-color: #d8c9f5;
    text-decoration: none;
}

.content {
    max-width: 1020px;
    margin: 0 auto;
    padding: 34px 20px 56px;
}

.site-footer {
    text-align: center;
    padding: 24px;
    background: transparent;
    color: var(--muted);
    font-size: 0.95rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: var(--pink-dark);
    margin-bottom: 10px;
    font-weight: bold;
}

.landing-hero,
.hero {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-soft-2) 100%);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 38px 26px;
    box-shadow: var(--shadow);
}

.landing-hero {
    text-align: center;
    margin-bottom: 28px;
}

.landing-hero__logo-wrap {
    margin-bottom: 18px;
}

.landing-hero__logo {
    width: 165px;
    max-width: 100%;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(143, 121, 217, 0.16);
    border: 3px solid #f2e7a8;
    background: white;
}

.landing-hero__title,
.hero h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 2.15rem;
    line-height: 1.18;
    color: var(--text);
}

.landing-hero__text,
.hero-text {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.04rem;
    line-height: 1.7;
    color: var(--text);
}

.hero-actions,
.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 11px 18px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    border: none;
    box-shadow: 0 6px 16px rgba(143, 121, 217, 0.2);
    transition: transform 0.15s ease, background 0.2s ease;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    background: var(--accent-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-secondary:hover {
    background: #fbf6ff;
    color: var(--text);
}

.info-card,
.feature-card,
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.landing-card,
.feature-grid,
.content-section {
    margin-top: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.section-header h3 {
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.card h4,
.feature-card h3,
.info-card h3 {
    margin-top: 0;
    color: var(--text);
}

.card p,
.info-card p,
.feature-card p {
    line-height: 1.65;
    color: var(--text);
}

.meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 14px 0;
    color: var(--accent-dark);
}

.product-page .hero {
    margin-bottom: 20px;
}

.product-description {
    line-height: 1.7;
    font-size: 1rem;
}

.lead-form {
    margin-top: 20px;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--text);
}

.form-row input {
    width: 100%;
    max-width: 500px;
    padding: 11px 13px;
    border: 1px solid #d9cbe9;
    border-radius: 14px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fff;
    color: var(--text);
}

.form-row input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(143, 121, 217, 0.12);
}

.errorlist {
    color: #b34d71;
    margin: 6px 0 0;
    padding-left: 18px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

@media (max-width: 700px) {

    .landing-hero__title,
    .hero h2 {
        font-size: 1.75rem;
    }

    .content {
        padding: 24px 16px 42px;
    }

    .site-header {
        padding: 14px 16px;
    }

    .main-nav {
        gap: 10px;
    }
}

.logout-form {
    display: inline;
    margin: 0;
}

.nav-button {
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.nav-button:hover {
    background: var(--accent-soft);
    border-color: #d8c9f5;
}

.profile-status {
    margin: 1rem 0;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    margin-right: 6px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-approved {
    background-color: #1e7e34;
    color: #fff;
}

.badge-pending {
    background-color: #b08900;
    color: #fff;
}

.badge-group {
    background-color: #333;
    color: #fff;
}



/* new profile styling */

.transactions-table td small {
    display: block;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.profile-card {
    max-width: 1100px;
    margin: 0 auto 2rem;
}

.profile-messages {
    margin-bottom: 1rem;
}

.profile-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.user-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-approved {
    background: #1f8f3a;
    color: #fff;
}

.badge-pending {
    background: #c58b16;
    color: #fff;
}

.badge-group {
    background: #2f2f39;
    color: #fff;
}

.admin-link {
    margin-bottom: 1.5rem;
}

.section-card {
    background: #fff;
    border: 1px solid #e6e2eb;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(31, 24, 46, 0.05);
}

.section-header {
    margin-bottom: 1rem;
}

.section-header h3 {
    margin: 0;
}

.wallet-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.wallet-stat {
    background: #f7f5fa;
    border: 1px solid #ece7f2;
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.wallet-stat-wide {
    grid-column: 1 / -1;
}

.wallet-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6a6378;
    margin-bottom: 0.35rem;
}

.wallet-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #2d2740;
}

.wallet-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    word-break: break-all;
}

.inline-action-form {
    margin-top: 0.5rem;
}

.styled-form p {
    margin-bottom: 0.9rem;
}

.styled-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.styled-form input,
.styled-form select,
.styled-form textarea {
    width: 100%;
    max-width: 420px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d8d2e3;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}

.table-wrap {
    overflow-x: auto;
}

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

.transactions-table th,
.transactions-table td {
    padding: 0.9rem 0.75rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #ece7f2;
}

.transactions-table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6a6378;
}

.tx-direction {
    font-weight: 700;
}

.tx-in {
    color: #1f8f3a;
}

.tx-out {
    color: #c0392b;
}

.tx-error-row td {
    background: #fff7f7;
    color: #a12a2a;
}

.empty-state {
    color: #6a6378;
    margin: 0;
}

@media (max-width: 760px) {
    .wallet-summary-grid {
        grid-template-columns: 1fr;
    }

    .wallet-stat-wide {
        grid-column: auto;
    }
}


/* checklist */

.teaser-card {
    max-width: 980px;
    margin: 0 auto 2rem;
}

.teaser-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.teaser-panel {
    background: #f7f5fa;
    border: 1px solid #ece7f2;
    border-radius: 14px;
    padding: 1.15rem 1.2rem;
}

.teaser-panel h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.teaser-list {
    margin: 0;
    padding-left: 1.15rem;
}

.teaser-list li+li {
    margin-top: 0.45rem;
}

.teaser-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-secondary {
    background: #fff;
    color: #6d4fb3;
    border: 1px solid #d8d2e3;
}

.teaser-note {
    margin-top: 1rem;
    color: #6a6378;
    font-size: 0.95rem;
}

@media (max-width: 760px) {
    .teaser-grid {
        grid-template-columns: 1fr;
    }
}


/* product list */

.product-card {
    max-width: 1100px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.product-item {
    position: relative;
    background: #f7f5fa;
    border: 1px solid #ece7f2;
    border-radius: 14px;
    padding: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 24, 46, 0.08);
}

.product-item h3 {
    margin-top: 0;
}

.price {
    margin: 0.5rem 0 1rem;
}

.locked {
    opacity: 0.85;
}

.locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6d4fb3;
    text-align: center;
}

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

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}


/* rory */
.rory-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.rory-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.rory-hero h1 {
    margin-bottom: 0.35rem;
}

.rory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rory-card {
    background: #fff;
    border: 1px solid #d9dee5;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rory-card--full {
    margin-top: 1rem;
}

.rory-alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #d9dee5;
}

.rory-alert--success {
    background: #eefaf2;
}

.rory-alert--error {
    background: #fff1f1;
}

.rory-alert--warning {
    background: #fff8e8;
}

.rory-batch {
    border-top: 1px solid #e6e9ee;
    padding-top: 1rem;
    margin-top: 1rem;
}

.rory-batch__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rory-events {
    display: grid;
    gap: 0.85rem;
}

.rory-event {
    border: 1px solid #e1e6ec;
    border-radius: 8px;
    padding: 0.85rem;
    background: #fafbfc;
}

.rory-event__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rory-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #cfd7e3;
    font-size: 0.85rem;
}

.rory-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.92rem;
    margin-top: 0.5rem;
}

.rory-chain {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #cfd7e3;
}

.rory-muted {
    color: #666;
    font-size: 0.92rem;
}


/* new rory update */
/* Rory dashboard */

.rory-dashboard {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.rory-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rory-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #667085;
}

.rory-hero h1 {
    margin: 0 0 0.4rem;
    font-size: 2rem;
    line-height: 1.15;
}

.rory-subtitle {
    margin: 0;
    color: #667085;
}

.rory-hero-actions {
    min-width: 220px;
}

.rory-stat-card {
    border: 1px solid #d0d7de;
    border-radius: 14px;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.rory-stat-label {
    display: block;
    font-size: 0.82rem;
    color: #667085;
    margin-bottom: 0.25rem;
}

.rory-stat-value {
    display: block;
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.rory-stat-subvalue {
    display: block;
    font-size: 0.9rem;
    color: #667085;
}

.rory-alert-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rory-alert {
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #f8fafc;
}

.rory-alert--success {
    background: #ecfdf3;
    border-color: #abefc6;
}

.rory-alert--error {
    background: #fef3f2;
    border-color: #fecdca;
}

.rory-alert--warning {
    background: #fffaeb;
    border-color: #fedf89;
}

.rory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rory-card {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 16px;
    padding: 1.15rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.rory-card--full {
    padding: 1.15rem;
}

.rory-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}

.rory-card__header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.rory-detail-list {
    display: grid;
    gap: 0.85rem;
}

.rory-detail-row {
    display: grid;
    gap: 0.2rem;
}

.rory-detail-label {
    font-size: 0.82rem;
    color: #667085;
}

.rory-detail-value {
    font-size: 0.95rem;
    color: #111827;
}

.rory-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    word-break: break-all;
}

.rory-form p {
    margin-bottom: 0.9rem;
}

.rory-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.rory-form input,
.rory-form select,
.rory-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.8rem;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #fff;
}

.rory-form textarea {
    min-height: 110px;
}

.rory-button,
.rory-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid #111827;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.rory-link-button {
    background: transparent;
    color: #111827;
    border-color: #cfd8e3;
}

.rory-batch-list {
    display: grid;
    gap: 1rem;
}

.rory-batch {
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 1rem;
    background: #fcfcfd;
}

.rory-batch__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rory-batch__header h3 {
    margin: 0 0 0.25rem;
}

.rory-batch__meta,
.rory-batch__timestamp {
    margin: 0;
    color: #667085;
    font-size: 0.92rem;
}

.rory-event-list {
    display: grid;
    gap: 0.85rem;
}

.rory-event {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 0.9rem;
    background: #ffffff;
}

.rory-event__header {
    margin-bottom: 0.45rem;
}

.rory-event__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.rory-event__title-wrap h4 {
    margin: 0;
    font-size: 1rem;
}

.rory-event__notes {
    margin: 0.35rem 0 0.7rem;
    color: #344054;
}

.rory-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #f2f4f7;
    border: 1px solid #d0d7de;
    font-size: 0.82rem;
    color: #344054;
}

.rory-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #667085;
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
}

.rory-chain-box {
    border-top: 1px dashed #d0d7de;
    padding-top: 0.8rem;
    display: grid;
    gap: 0.7rem;
}

.rory-chain-row {
    display: grid;
    gap: 0.2rem;
}

.rory-chain-label {
    font-size: 0.8rem;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rory-chain-value {
    color: #111827;
    font-size: 0.95rem;
}

.rory-chain-actions {
    margin-top: 0.1rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.rory-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.rory-status--confirmed {
    background: #ecfdf3;
    color: #027a48;
}

.rory-status--broadcast {
    background: #fffaeb;
    color: #b54708;
}

.rory-status--created {
    background: #eff8ff;
    color: #175cd3;
}

.rory-status--failed,
.rory-status--unknown {
    background: #fef3f2;
    color: #b42318;
}

.rory-empty {
    color: #667085;
}

@media (max-width: 980px) {
    .rory-grid {
        grid-template-columns: 1fr;
    }

    .rory-hero {
        flex-direction: column;
    }

    .rory-hero-actions {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .rory-batch__header {
        flex-direction: column;
    }
}

.rory-batch__meta {
    margin: 0.15rem 0;
}

.rory-event__title-wrap .rory-status,
.rory-event__title-wrap .rory-badge {
    margin-top: 0.15rem;
}