:root {
    --yp-primary: #0BA5EC;
    --yp-secondary: #0B65EC;
    --yp-accent: #F38744;
    --yp-cta: #AA0303;
    --yp-headline: #090753;
    --yp-dark: #101828;
    --yp-body: rgba(16, 24, 40, 0.6);
    --yp-light: #F9FAFB;
    --yp-white: #FFFFFF;
    --yp-font: "Inter", system-ui, -apple-system, sans-serif;
    /* Global UI density via root rem (≈85% of 16px) — no CSS zoom */
    --yp-ui-scale: 0.85;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    height: 100%;
    font-size: calc(16px * var(--yp-ui-scale));
}

html,
body {
    margin: 0;
}

body {
    min-height: 100%;
    min-height: 100dvh;
    font-family: var(--yp-font);
    color: var(--yp-dark);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(11, 165, 236, 0.16), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(170, 3, 3, 0.08), transparent 50%),
        linear-gradient(180deg, var(--yp-white) 0%, var(--yp-light) 100%);
    line-height: 1.5;
}

a {
    color: var(--yp-primary);
    text-decoration: none;
}

a:hover {
    color: var(--yp-secondary);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
}

.brand-logo img {
    display: block;
    height: 40px;
    width: auto;
}

.site-main {
    width: min(720px, calc(100% - 2.5rem));
    margin: 4rem auto 6rem;
}

.site-main h1 {
    margin: 0 0 0.75rem;
    color: var(--yp-headline);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.site-main h1 .accent {
    color: var(--yp-primary);
}

.site-main p {
    margin: 0;
    color: var(--yp-body);
    font-size: 1.05rem;
    max-width: 36rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.75rem;
    padding: 0.8rem 1.4rem;
    border: 0;
    border-radius: 8px;
    background: var(--yp-cta);
    color: var(--yp-white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.btn:hover {
    background: #8f0202;
    color: var(--yp-white);
}

.page-landing {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--yp-white);
}

.home-main {
    width: 100%;
    margin: 0;
    max-width: none;
}

.home-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.home-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.1rem, 3.5vw, 2.5rem);
}

.home-nav-brand img {
    display: block;
    height: 1.85rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.home-nav-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.home-nav-links > a:not(.btn) {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 550;
}

.home-nav-links > a:not(.btn):hover {
    color: #fff;
}

.home-nav-cta {
    margin-top: 0;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
}

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    color: var(--yp-white);
    background:
        radial-gradient(900px 520px at 12% 0%, rgba(11, 165, 236, 0.38), transparent 55%),
        radial-gradient(780px 480px at 92% 88%, rgba(170, 3, 3, 0.28), transparent 52%),
        linear-gradient(160deg, #07053f 0%, var(--yp-headline) 46%, #0b1f5c 100%);
}

.home-hero-atmosphere {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 18% 28%, rgba(11, 165, 236, 0.28), transparent 30%),
        radial-gradient(circle at 78% 68%, rgba(243, 135, 68, 0.16), transparent 28%);
    background-size: 28px 28px, 28px 28px, auto, auto;
    mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 80%);
    pointer-events: none;
}

.home-hero-grid {
    position: absolute;
    inset: -15%;
    opacity: 0.35;
    background:
        repeating-linear-gradient(
            -18deg,
            transparent 0,
            transparent 14px,
            rgba(255, 255, 255, 0.03) 14px,
            rgba(255, 255, 255, 0.03) 15px
        );
    pointer-events: none;
    animation: home-grid-drift 28s linear infinite;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 2.4rem));
    margin: 0 auto;
    padding: 6.5rem 0 3.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
}

.home-hero-copy {
    max-width: 34rem;
    animation: home-rise 0.7s ease both;
}

.home-hero-logo {
    display: block;
    width: min(15.5rem, 72vw);
    height: auto;
    margin: 0 0 1.35rem;
    filter: brightness(0) invert(1);
}

.home-hero-title {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.home-hero-lead {
    margin: 0;
    max-width: 30rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.55;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.home-hero-actions .btn {
    margin-top: 0;
}

.home-hero-btn-ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.home-hero-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.home-hero-stage {
    position: relative;
    justify-self: end;
    width: min(100%, 22.5rem);
    animation: home-rise 0.85s ease 0.12s both;
}

.home-stage {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--yp-dark);
    box-shadow: 0 24px 60px rgba(4, 8, 30, 0.35);
    overflow: hidden;
}

.home-stage-top {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.85rem;
    background: #f3f5f8;
    border-bottom: 1px solid #e8ebf0;
}

.home-stage-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #d0d5dd;
}

.home-stage-url {
    margin-left: 0.45rem;
    font-size: 0.72rem;
    font-weight: 550;
    color: var(--yp-body);
    letter-spacing: 0.01em;
}

.home-stage-body {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.05rem 1.1rem;
}

.home-stage-merchant {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.home-stage-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.55rem;
    background: linear-gradient(135deg, var(--yp-primary), var(--yp-secondary));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-stage-merchant strong,
.home-stage-merchant span {
    display: block;
}

.home-stage-merchant strong {
    font-size: 0.9rem;
    color: var(--yp-headline);
}

.home-stage-merchant span {
    font-size: 0.78rem;
    color: var(--yp-body);
}

.home-stage-amount {
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    background: #f7f9fc;
}

.home-stage-amount span {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.home-stage-amount strong {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    color: var(--yp-headline);
}

.home-stage-amount small {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--yp-body);
}

.home-stage-method {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.65rem;
    font-size: 0.88rem;
    font-weight: 550;
    color: var(--yp-dark);
}

.home-stage-method > i:first-child {
    color: var(--yp-secondary);
}

.home-stage-method.is-active {
    border-color: rgba(11, 101, 236, 0.45);
    background: rgba(11, 165, 236, 0.08);
}

.home-stage-check {
    color: var(--yp-secondary);
    font-size: 0.8rem;
}

.home-stage-pay {
    margin-top: 0.15rem;
    padding: 0.75rem 1rem;
    border-radius: 0.55rem;
    background: var(--yp-cta);
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 650;
}

.home-section {
    padding: 3.25rem 0;
}

.home-section-inner {
    width: min(1120px, calc(100% - 2.4rem));
    margin: 0 auto;
}

.home-section-head {
    max-width: 36rem;
    margin-bottom: 1.75rem;
}

.home-section-head h2 {
    margin: 0 0 0.45rem;
    color: var(--yp-headline);
    font-size: clamp(1.45rem, 2.8vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.home-section-head p {
    margin: 0;
    color: var(--yp-body);
    font-size: 1rem;
    line-height: 1.5;
}

.home-products {
    background: var(--yp-white);
}

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

.home-product {
    padding: 1.15rem 1.15rem 1.25rem;
    border-top: 2px solid var(--yp-primary);
}

.home-product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(11, 165, 236, 0.1);
    color: var(--yp-secondary);
    font-size: 0.95rem;
}

.home-product h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--yp-headline);
}

.home-product p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--yp-body);
}

.home-steps {
    background: #f7f9fc;
}

.home-step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-step {
    display: grid;
    gap: 0.65rem;
    padding: 0.25rem 0;
}

.home-step-num {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--yp-primary);
}

.home-step h3 {
    margin: 0 0 0.3rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--yp-headline);
}

.home-step p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--yp-body);
}

.home-trust {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
}

.home-trust-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.1rem 0;
    border-top: 1px solid #eef1f5;
    border-bottom: 1px solid #eef1f5;
}

.home-trust-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.home-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.15rem;
}

.home-trust-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--yp-headline);
}

.home-trust-list i {
    color: var(--yp-secondary);
    font-size: 0.85rem;
}

.home-cta-band {
    padding: 2.75rem 0 3rem;
    background:
        radial-gradient(700px 280px at 0% 0%, rgba(11, 165, 236, 0.12), transparent 55%),
        linear-gradient(180deg, #f9fafb 0%, #fff 100%);
}

.home-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 1.75rem;
}

.home-cta-inner h2 {
    margin: 0 0 0.3rem;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--yp-headline);
}

.home-cta-inner p {
    margin: 0;
    max-width: 28rem;
    color: var(--yp-body);
    font-size: 0.95rem;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.home-cta-actions .btn {
    margin-top: 0;
}

.home-cta-ghost {
    background: transparent;
}

.home-footer {
    padding: 1.25rem 0 1.75rem;
    border-top: 1px solid #eef1f5;
}

.home-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-footer-brand img {
    display: block;
    height: 1.5rem;
    width: auto;
}

.home-footer p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--yp-body);
}

@keyframes home-rise {
    from {
        opacity: 0;
        transform: translateY(0.85rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-grid-drift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(28px, 18px, 0);
    }
}

@media (max-width: 900px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 5.75rem;
        padding-bottom: 3rem;
    }

    .home-hero-stage {
        justify-self: start;
        width: min(100%, 22rem);
    }

    .home-product-list,
    .home-step-list {
        grid-template-columns: 1fr;
    }

    .home-nav-links > a:not(.btn):not(.home-nav-cta) {
        display: none;
    }
}

@media (max-width: 560px) {
    .home-hero-actions,
    .home-cta-actions {
        width: 100%;
    }

    .home-hero-actions .btn,
    .home-cta-actions .btn {
        flex: 1 1 auto;
    }

    .home-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-copy,
    .home-hero-stage,
    .home-hero-grid {
        animation: none;
    }
}

.page-auth {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--yp-white);
}

.auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
    padding: 0;
}

.auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    color: var(--yp-white);
    background:
        radial-gradient(900px 500px at 10% 0%, rgba(11, 165, 236, 0.35), transparent 55%),
        radial-gradient(700px 480px at 90% 100%, rgba(170, 3, 3, 0.28), transparent 50%),
        linear-gradient(160deg, #07053f 0%, var(--yp-headline) 48%, #0b1f5c 100%);
}

.auth-brand-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 20% 30%, rgba(11, 165, 236, 0.25), transparent 28%),
        radial-gradient(circle at 80% 70%, rgba(243, 135, 68, 0.18), transparent 26%);
    background-size: 28px 28px, 28px 28px, auto, auto;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 85%);
}

.auth-brand-pattern::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        repeating-linear-gradient(
            -18deg,
            transparent 0,
            transparent 14px,
            rgba(255, 255, 255, 0.035) 14px,
            rgba(255, 255, 255, 0.035) 15px
        );
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 22rem;
}

.auth-brand-logo {
    display: block;
    height: 42px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: brightness(0) invert(1);
}

.auth-brand-tagline {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.92);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background:
        radial-gradient(700px 320px at 100% 0%, rgba(11, 165, 236, 0.08), transparent 55%),
        var(--yp-light);
}

.auth-card {
    width: min(460px, 100%);
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.auth-logo {
    display: none;
    height: 36px;
    width: auto;
    margin: 0 auto 1.25rem;
}

.auth-card h1 {
    margin: 0 0 0.35rem;
    color: var(--yp-headline);
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-lead,
.muted {
    color: var(--yp-body);
    margin: 0 0 1.25rem;
}

.auth-channel-target {
    color: var(--yp-headline);
    font-weight: 650;
    word-break: break-word;
}

@media (max-width: 860px) {
    .auth-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .auth-brand {
        min-height: 10rem;
        padding: 1.5rem;
        align-items: center;
    }

    .auth-brand-tagline {
        display: none;
    }

    .auth-brand-logo {
        height: 34px;
        margin-bottom: 0;
    }

    .auth-panel {
        padding: 1.5rem 1.15rem 2rem;
        align-items: flex-start;
    }

    .auth-logo {
        display: block;
    }
}

.auth-form {
    display: grid;
    gap: 0.9rem;
}

.auth-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--yp-dark);
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--yp-headline);
}

.auth-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23667085' d='M1.4.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.2rem;
}

.field-optional {
    font-weight: 500;
    color: #98a2b3;
    font-size: 0.78rem;
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 2.6rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

.password-toggle-icon {
    display: block;
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1;
}

.password-toggle .is-hide {
    display: none;
}

.password-toggle[aria-pressed="true"] .is-show {
    display: none;
}

.password-toggle[aria-pressed="true"] .is-hide {
    display: block;
}

.password-toggle:hover {
    color: var(--yp-secondary);
    background: rgba(11, 165, 236, 0.08);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--yp-primary);
    outline-offset: 1px;
}

.password-toggle[aria-pressed="true"] {
    color: var(--yp-primary);
}

.auth-form input::placeholder,
.otp-box::placeholder {
    color: #98a2b3;
    opacity: 1;
}

.checkbox {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400 !important;
}

.remember-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.15rem 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: var(--yp-white);
    cursor: pointer;
    font-weight: 400 !important;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.remember-row:hover {
    border-color: #cdd5df;
    background: #fcfcfd;
}

.remember-row:has(input:focus-visible) {
    border-color: var(--yp-primary);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.18);
}

.remember-row:has(input:checked) {
    border-color: var(--yp-primary);
    background:
        linear-gradient(135deg, rgba(11, 165, 236, 0.1) 0%, rgba(11, 101, 236, 0.08) 100%);
    box-shadow: inset 0 0 0 1px rgba(11, 165, 236, 0.12);
}

.remember-row:has(input:checked):hover {
    border-color: var(--yp-secondary);
    background:
        linear-gradient(135deg, rgba(11, 165, 236, 0.14) 0%, rgba(11, 101, 236, 0.1) 100%);
}

.remember-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.remember-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--yp-dark);
    line-height: 1.25;
    transition: color 0.15s ease;
}

.remember-row:has(input:checked) .remember-title {
    color: var(--yp-headline);
}

.remember-hint {
    font-size: 0.78rem;
    color: var(--yp-body);
    line-height: 1.3;
    transition: color 0.15s ease;
}

.remember-row:has(input:checked) .remember-hint {
    color: var(--yp-secondary);
}

.remember-switch {
    position: relative;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 1.4rem;
}

.remember-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.remember-track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #d0d5dd;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    pointer-events: none;
}

.remember-track::after {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--yp-white);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.remember-switch input:checked + .remember-track {
    background: linear-gradient(90deg, var(--yp-primary) 0%, var(--yp-secondary) 100%);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.2);
}

.remember-switch input:checked + .remember-track::after {
    transform: translateX(1.1rem);
    box-shadow: 0 1px 3px rgba(11, 101, 236, 0.35);
}

.remember-switch input:focus-visible + .remember-track {
    outline: 2px solid var(--yp-primary);
    outline-offset: 2px;
}

.btn-block {
    width: 100%;
}

.turnstile-wrap {
    display: flex;
    justify-content: flex-start;
    min-height: 65px;
}

.btn-secondary {
    background: var(--yp-headline);
}

.btn-secondary:hover {
    background: #07053f;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d0d5dd;
    color: var(--yp-headline);
}

.btn-outline:hover {
    background: rgba(9, 7, 83, 0.04);
    border-color: var(--yp-headline);
    color: var(--yp-headline);
}

.alert {
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.alert-error {
    background: #fef3f2;
    color: #b42318;
}

.alert-success {
    background: #ecfdf3;
    color: #027a48;
}

.otp-field {
    display: grid;
    gap: 0.5rem;
}

.otp-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--yp-dark);
}

.otp-boxes {
    display: flex;
    justify-content: space-between;
    gap: 0.45rem;
}

.otp-box {
    width: 2.75rem;
    height: 3.1rem;
    padding: 0;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: var(--yp-headline);
    font-family: var(--yp-font);
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    caret-color: var(--yp-primary);
}

.otp-box:focus {
    outline: none;
    border-color: var(--yp-primary);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.18);
}

.otp-boxes-masked .otp-box {
    font-size: 1.6rem;
    letter-spacing: 0;
    /* Mask without type=password so browsers/password managers don't prefills */
    -webkit-text-security: disc;
    text-security: disc;
}

@media (max-width: 420px) {
    .otp-box {
        width: 2.35rem;
        height: 2.75rem;
        font-size: 1.15rem;
    }

    .otp-boxes-masked .otp-box {
        font-size: 1.35rem;
    }
}

.channel-list {
    border: 0;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.channel-option {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid #e6e9ec;
    border-radius: 8px;
}

.totp-setup .qr {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0;
}

.secret {
    display: block;
    word-break: break-all;
    background: var(--yp-light);
    padding: 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.link-btn {
    background: none;
    border: 0;
    color: var(--yp-primary);
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.auth-resend {
    margin-top: 1rem;
    text-align: center;
}

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

/* —— Admin shell (sidebar + frame) —— */
body.page-admin {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #f4f6f9;
}

.admin-shell {
    --admin-sidebar-width: 15rem;
    display: grid;
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    overflow: visible;
    transition: grid-template-columns 0.2s ease;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: start;
    width: var(--admin-sidebar-width);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    background:
        radial-gradient(520px 280px at 0% 0%, rgba(11, 165, 236, 0.32), transparent 58%),
        radial-gradient(460px 300px at 100% 100%, rgba(170, 3, 3, 0.22), transparent 55%),
        linear-gradient(165deg, #07053f 0%, var(--yp-headline) 48%, #0b1f5c 100%);
    transition: width 0.2s ease;
}

/* Subtle Yagout red honeycomb — brand texture behind nav */
.admin-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23AA0303'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 1.75rem 3.0625rem;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 70%, #000 20%, transparent 78%);
    mask-image: radial-gradient(ellipse 120% 90% at 50% 70%, #000 20%, transparent 78%);
}

.admin-sidebar-top,
.admin-sidebar-nav,
.admin-sidebar-bottom {
    position: relative;
    z-index: 1;
}

.admin-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 0.5rem;
    height: 3.4rem;
    padding: 0 0.75rem 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.admin-sidebar-logo-full {
    display: block;
    height: 1.75rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.admin-sidebar-logo-mark {
    display: none;
    height: 1.65rem;
    width: 1.65rem;
    object-fit: contain;
    filter: none;
}

.admin-sidebar-collapse,
.admin-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-sidebar-collapse:hover,
.admin-sidebar-close:hover {
    border-color: rgba(11, 165, 236, 0.55);
    background: rgba(11, 165, 236, 0.22);
    color: #fff;
}

.admin-sidebar-collapse {
    display: none;
}

.admin-sidebar-collapse i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-height: 0;
    padding: 0.85rem 0.75rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

.admin-sidebar-nav::-webkit-scrollbar {
    width: 0.4rem;
}

.admin-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

/* Collapsed labels are portaled here so they are not clipped by the scrolling nav. */
.admin-sidebar-flyout {
    position: fixed;
    z-index: 80;
    width: max-content;
    max-width: 14rem;
    margin: 0;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0a1748;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(7, 5, 63, 0.32);
    pointer-events: none;
    transform: translateY(-50%);
}

.admin-sidebar-flyout[hidden] {
    display: none !important;
}

.admin-sidebar-flyout::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 0.35rem solid transparent;
    border-right-color: #0a1748;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.admin-nav-link i {
    width: 1.05rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-nav-link:hover i {
    color: #fff;
}

.admin-nav-link.is-active {
    background: linear-gradient(90deg, rgba(11, 165, 236, 0.28), rgba(11, 101, 236, 0.16));
    border-color: rgba(11, 165, 236, 0.35);
    color: #fff;
}

.admin-nav-link.is-active i {
    color: #7dd3fc;
}

.admin-sidebar-bottom {
    flex-shrink: 0;
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.12);
}

.admin-user {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    margin: 0;
    padding: 0.55rem 0.55rem 0.55rem 0.45rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.admin-user:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.admin-user:focus-visible {
    outline: 2px solid rgba(11, 165, 236, 0.7);
    outline-offset: 2px;
}

.admin-user-avatar,
.admin-account-avatar,
.settings-avatar,
.access-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    line-height: 1;
    overflow: visible;
    background: transparent !important;
    border: 0 !important;
    color: inherit;
}

.admin-user-avatar i,
.admin-account-avatar i,
.settings-avatar i,
.access-avatar i {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
    width: 1em;
    height: 1em;
    margin: 0;
    padding: 0;
}

.admin-user-avatar {
    width: 2.1rem;
    height: 2.1rem;
    color: rgba(255, 255, 255, 0.92);
}

.admin-user-avatar i {
    font-size: 2.1rem;
}

.admin-user-meta {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
    flex: 1;
}

.admin-user-meta strong,
.admin-user-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-meta strong {
    font-size: 0.85rem;
    color: #fff;
}

.admin-user-meta span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.admin-user-chevron {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
}

.admin-user:hover .admin-user-chevron {
    color: rgba(255, 255, 255, 0.85);
}

.admin-frame {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f4f6f9;
}

.admin-menu-toggle {
    position: fixed;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    margin: 0;
    padding: 0;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    color: var(--yp-headline);
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
    cursor: pointer;
}

.admin-menu-toggle:hover {
    border-color: rgba(11, 165, 236, 0.45);
    color: var(--yp-secondary);
    background: rgba(11, 165, 236, 0.06);
}

.admin-main {
    width: min(1100px, calc(100% - 2rem));
    margin: 1.25rem auto 2.5rem;
    flex: 1;
    transition: width 0.2s ease;
}

.admin-page-head {
    margin: 0 0 1.15rem;
    padding-top: 0.15rem;
}

.admin-page-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-page-head-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-page-head-actions .btn,
.admin-page-head-row > .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-page-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yp-secondary);
}

.admin-page-head h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--yp-headline);
}

.admin-page-head + .auth-lead {
    margin-top: -0.55rem;
}

.admin-sidebar-backdrop,
.admin-sidebar-close {
    display: none;
}

.admin-sidebar-backdrop[hidden] {
    display: none !important;
    pointer-events: none;
}

@media (max-width: 959px) {
    .admin-shell {
        display: block;
        height: 100%;
        overflow: hidden;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 50;
        width: min(17rem, 86vw);
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: 0 12px 40px rgba(7, 5, 63, 0.35);
        pointer-events: none;
        visibility: hidden;
    }

    .admin-sidebar-open .admin-sidebar {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
    }

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 45;
        background: #f4f6f9;
        pointer-events: none;
    }

    .admin-sidebar-open .admin-sidebar-backdrop {
        display: block;
        pointer-events: auto;
    }

    .admin-sidebar-open .admin-frame {
        visibility: hidden;
    }

    .admin-sidebar-collapse {
        display: none !important;
    }

    .admin-sidebar-close {
        display: inline-flex;
    }

    .admin-sidebar-logo-mark {
        display: none !important;
    }

    .admin-sidebar-logo-full {
        display: block !important;
    }

    .admin-main {
        padding-top: 2.6rem;
    }
}

@media (min-width: 960px) {
    .admin-menu-toggle {
        display: none;
    }

    .admin-sidebar-collapse {
        display: inline-flex;
    }

    .admin-shell.admin-sidebar-collapsed,
    html.admin-sidebar-collapsed .admin-shell {
        --admin-sidebar-width: 4.35rem;
    }

    .admin-shell.admin-sidebar-collapsed .admin-sidebar-top,
    html.admin-sidebar-collapsed .admin-sidebar-top {
        flex-direction: column;
        justify-content: center;
        gap: 0.45rem;
        height: auto;
        min-height: 5.4rem;
        padding: 0.7rem 0.45rem;
    }

    .admin-shell.admin-sidebar-collapsed .admin-sidebar-logo,
    html.admin-sidebar-collapsed .admin-sidebar-logo {
        flex: 0;
    }

    .admin-shell.admin-sidebar-collapsed .admin-sidebar-logo-full,
    html.admin-sidebar-collapsed .admin-sidebar-logo-full {
        display: none;
    }

    .admin-shell.admin-sidebar-collapsed .admin-sidebar-logo-mark,
    html.admin-sidebar-collapsed .admin-sidebar-logo-mark {
        display: block;
    }

    .admin-shell.admin-sidebar-collapsed .admin-sidebar-collapse i,
    html.admin-sidebar-collapsed .admin-sidebar-collapse i {
        transform: rotate(180deg);
    }

    .admin-shell.admin-sidebar-collapsed .admin-sidebar,
    html.admin-sidebar-collapsed .admin-sidebar {
        overflow: visible;
    }

    .admin-shell.admin-sidebar-collapsed .admin-sidebar-nav,
    html.admin-sidebar-collapsed .admin-sidebar-nav {
        align-items: center;
        padding: 0.7rem 0.45rem;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .admin-shell.admin-sidebar-collapsed .admin-nav-link,
    html.admin-sidebar-collapsed .admin-nav-link {
        position: relative;
        justify-content: center;
        width: 2.55rem;
        height: 2.55rem;
        padding: 0;
        gap: 0;
    }

    .admin-shell.admin-sidebar-collapsed .admin-nav-link:hover,
    .admin-shell.admin-sidebar-collapsed .admin-nav-link:focus-visible,
    html.admin-sidebar-collapsed .admin-nav-link:hover,
    html.admin-sidebar-collapsed .admin-nav-link:focus-visible {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

    .admin-shell.admin-sidebar-collapsed .admin-nav-link:hover i,
    .admin-shell.admin-sidebar-collapsed .admin-nav-link:focus-visible i,
    html.admin-sidebar-collapsed .admin-nav-link:hover i,
    html.admin-sidebar-collapsed .admin-nav-link:focus-visible i {
        color: #7dd3fc;
    }

    .admin-shell.admin-sidebar-collapsed .admin-nav-link span,
    html.admin-sidebar-collapsed .admin-nav-link span {
        position: absolute;
        left: calc(100% + 0.55rem);
        top: 50%;
        transform: translateY(-50%) translateX(-0.2rem);
        width: max-content;
        height: auto;
        margin: 0;
        padding: 0.4rem 0.7rem;
        overflow: visible;
        clip: auto;
        white-space: nowrap;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: #0a1748;
        color: #fff;
        font-size: 0.8rem;
        font-weight: 500;
        letter-spacing: 0.01em;
        box-shadow: 0 10px 24px rgba(7, 5, 63, 0.32);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 80;
        transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    }

    .admin-shell.admin-sidebar-collapsed .admin-nav-link span::before,
    html.admin-sidebar-collapsed .admin-nav-link span::before {
        content: "";
        position: absolute;
        right: 100%;
        top: 50%;
        transform: translateY(-50%);
        border: 0.35rem solid transparent;
        border-right-color: #0a1748;
    }

    .admin-shell.admin-sidebar-collapsed .admin-nav-link:hover span,
    .admin-shell.admin-sidebar-collapsed .admin-nav-link:focus-visible span,
    html.admin-sidebar-collapsed .admin-nav-link:hover span,
    html.admin-sidebar-collapsed .admin-nav-link:focus-visible span {
        opacity: 0;
        visibility: hidden;
    }

    .admin-shell.admin-sidebar-collapsed .admin-nav-link i,
    html.admin-sidebar-collapsed .admin-nav-link i {
        width: auto;
        font-size: 1rem;
    }

    .admin-shell.admin-sidebar-collapsed .admin-sidebar-bottom,
    html.admin-sidebar-collapsed .admin-sidebar-bottom {
        position: relative;
        padding: 0.55rem 0.45rem;
        overflow: visible;
    }

    .admin-shell.admin-sidebar-collapsed .admin-user,
    html.admin-sidebar-collapsed .admin-user {
        position: relative;
        justify-content: center;
        padding: 0.4rem;
    }

    .admin-shell.admin-sidebar-collapsed .admin-user:hover,
    .admin-shell.admin-sidebar-collapsed .admin-user:focus-visible,
    html.admin-sidebar-collapsed .admin-user:hover,
    html.admin-sidebar-collapsed .admin-user:focus-visible {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.14);
    }

    .admin-shell.admin-sidebar-collapsed .admin-user-meta,
    html.admin-sidebar-collapsed .admin-user-meta {
        position: absolute;
        left: calc(100% + 0.55rem);
        top: 50%;
        transform: translateY(-50%) translateX(-0.2rem);
        display: grid;
        gap: 0.05rem;
        width: max-content;
        max-width: 12rem;
        margin: 0;
        padding: 0.45rem 0.7rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: #0a1748;
        box-shadow: 0 10px 24px rgba(7, 5, 63, 0.32);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 80;
        transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    }

    .admin-shell.admin-sidebar-collapsed .admin-user-meta::before,
    html.admin-sidebar-collapsed .admin-user-meta::before {
        content: "";
        position: absolute;
        right: 100%;
        top: 50%;
        transform: translateY(-50%);
        border: 0.35rem solid transparent;
        border-right-color: #0a1748;
    }

    .admin-shell.admin-sidebar-collapsed .admin-user:hover .admin-user-meta,
    .admin-shell.admin-sidebar-collapsed .admin-user:focus-visible .admin-user-meta,
    html.admin-sidebar-collapsed .admin-user:hover .admin-user-meta,
    html.admin-sidebar-collapsed .admin-user:focus-visible .admin-user-meta {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
    }

    .admin-shell.admin-sidebar-collapsed .admin-user-chevron,
    html.admin-sidebar-collapsed .admin-user-chevron {
        display: none;
    }

    .admin-shell.admin-sidebar-collapsed .admin-main,
    html.admin-sidebar-collapsed .admin-main {
        width: min(1600px, calc(100% - 2rem));
    }
}

/* Dashboard */
.dash-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background:
        radial-gradient(500px 180px at 100% 0%, rgba(11, 165, 236, 0.12), transparent 60%),
        #fff;
}

.dash-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--yp-secondary);
}

.dash-hero-copy h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--yp-headline);
}

.dash-lead {
    margin: 0;
    max-width: 34rem;
    font-size: 0.92rem;
    color: var(--yp-body);
}

.dash-hero-actions .btn {
    margin-top: 0;
}

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

.dash-card {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.dash-card.is-muted {
    background: #f8fafc;
}

.dash-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(11, 165, 236, 0.12);
    color: var(--yp-secondary);
    font-size: 0.9rem;
}

.dash-card h3 {
    margin: 0;
    font-size: 0.98rem;
    color: var(--yp-headline);
}

.dash-card p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--yp-body);
    line-height: 1.45;
}

.dash-card a {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.dash-soon {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #98a2b3;
}

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

    .dash-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

.session-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.session-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #e6e9ec;
}

.badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: var(--yp-secondary);
    font-size: 0.75rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

/* Account modal */
.admin-account-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.admin-account-modal[hidden] {
    display: none !important;
}

.admin-account-backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(16, 24, 40, 0.45);
    cursor: pointer;
}

.admin-account-sheet {
    position: relative;
    z-index: 1;
    width: min(22rem, 100%);
    margin: 0.75rem;
    padding: 0.85rem 0.75rem 0.75rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(7, 5, 63, 0.22);
    display: grid;
    gap: 0.65rem;
}

.admin-account-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.25rem 0.35rem 0.65rem;
    border-bottom: 1px solid #eef1f5;
}

.admin-account-avatar {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--yp-secondary);
}

.admin-account-avatar i {
    font-size: 2.5rem;
}

.admin-account-meta {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
    flex: 1;
}

.admin-account-meta strong,
.admin-account-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-account-meta strong {
    font-size: 0.95rem;
    color: var(--yp-headline);
}

.admin-account-meta span {
    font-size: 0.8rem;
    color: var(--yp-body);
}

.admin-account-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    color: var(--yp-body);
    cursor: pointer;
    flex-shrink: 0;
}

.admin-account-close:hover {
    border-color: rgba(11, 165, 236, 0.4);
    color: var(--yp-secondary);
}

.admin-account-nav {
    display: grid;
    gap: 0.15rem;
}

.admin-account-nav a,
.admin-account-footer button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.7rem 0.65rem;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: var(--yp-headline);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}

.admin-account-nav a i,
.admin-account-footer button i {
    width: 1.05rem;
    text-align: center;
    color: var(--yp-body);
}

.admin-account-nav a:hover,
.admin-account-footer form:not(.admin-account-signout) button:hover {
    background: #f4f6f9;
}

.admin-account-nav a:hover i,
.admin-account-footer form:not(.admin-account-signout) button:hover i {
    color: var(--yp-secondary);
}

.admin-account-footer {
    margin: 0;
    padding-top: 0.35rem;
    border-top: 1px solid #eef1f5;
    display: grid;
    gap: 0.1rem;
}

.admin-account-signout {
    margin: 0;
}

.admin-account-signout button {
    color: #b42318;
}

.admin-account-signout button i {
    color: #b42318;
}

.admin-account-signout button:hover {
    background: #fef3f2;
}

body.admin-account-open {
    overflow: hidden;
}

@media (min-width: 640px) {
    .admin-account-modal {
        align-items: center;
    }

    .admin-account-sheet {
        margin: 1rem;
    }
}

/* Settings */
.settings-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 0.85rem;
    padding: 1.25rem 1.2rem;
    border-radius: 14px;
    color: #fff;
    background:
        radial-gradient(420px 180px at 0% 0%, rgba(11, 165, 236, 0.35), transparent 60%),
        radial-gradient(360px 160px at 100% 100%, rgba(170, 3, 3, 0.18), transparent 55%),
        linear-gradient(145deg, #07053f 0%, var(--yp-headline) 52%, #0b1f5c 100%);
}

.settings-hero-glow {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.settings-hero-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.settings-avatar {
    width: 3.25rem;
    height: 3.25rem;
    color: rgba(255, 255, 255, 0.95);
}

.settings-avatar i {
    font-size: 3.25rem;
}

.settings-hero-copy {
    min-width: 0;
}

.settings-hero-copy h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #fff;
}

.settings-hero-copy p {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.settings-panel {
    margin-bottom: 0.85rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.settings-panel-head {
    padding: 0.95rem 1.1rem 0.75rem;
    border-bottom: 1px solid #eef1f5;
}

.settings-panel-head h2 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.settings-panel-head p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--yp-body);
}

.settings-rows {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
}

.settings-rows li,
.settings-link-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.8rem 1.1rem;
}

.settings-rows li + li {
    border-top: 1px solid #f2f4f7;
}

.settings-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    background: #f4f6f9;
    color: var(--yp-secondary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.settings-row-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.settings-row-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.settings-row-copy strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--yp-headline);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-row-hint {
    font-size: 0.78rem;
    color: var(--yp-body);
    white-space: normal;
}

.settings-link-row {
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.settings-link-row:hover {
    background: #f8fafc;
}

.settings-link-row:hover .settings-row-chevron {
    color: var(--yp-secondary);
    transform: translateX(2px);
}

.settings-row-chevron {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: #98a2b3;
    transition: color 0.15s ease, transform 0.15s ease;
}

.settings-form {
    max-width: 26rem;
    padding: 1.15rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.settings-form .btn-block {
    margin-top: 0.25rem;
}

.settings-back,
.settings-back-wrap {
    display: inline-block;
    margin-top: 0.85rem;
    text-align: center;
}

.settings-back-wrap {
    display: block;
}

@media (min-width: 720px) {
    .settings-hero,
    .settings-panel {
        max-width: 34rem;
    }
}

.idle-modal {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.idle-modal[hidden] {
    display: none !important;
}

.idle-modal-card {
    width: min(400px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
}

.idle-modal-card h2 {
    margin: 0 0 0.5rem;
    color: var(--yp-headline);
}

.idle-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.method-stack {
    display: grid;
    gap: 0.85rem;
}

.method-list {
    display: grid;
    gap: 0.65rem;
}

.method-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: var(--yp-white);
}

.method-list-item.is-active {
    border-color: rgba(11, 165, 236, 0.4);
    background: rgba(11, 165, 236, 0.04);
}

.method-list-link {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.method-list-link:hover {
    border-color: var(--yp-primary);
    background: rgba(11, 165, 236, 0.05);
    color: inherit;
}

.method-list-main {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.method-list-title {
    font-size: 0.95rem;
    color: var(--yp-headline);
}

.method-list-meta {
    font-size: 0.8rem;
    color: var(--yp-body);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.method-list-side {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.method-list-action {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--yp-primary);
}

.auth-back {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--yp-secondary);
}

.auth-back:hover {
    color: var(--yp-primary);
}

.auth-back-home {
    display: block;
    margin: 1rem 0 0;
    text-align: center;
}

.method-card {
    border: 1px solid #e6e9ec;
    border-radius: 10px;
    padding: 1rem;
    background: #fff;
}

.method-card.is-active {
    border-color: rgba(11, 165, 236, 0.45);
}

.method-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.method-meta {
    margin: 0.45rem 0 0.75rem;
}

.method-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge-default {
    background: #fef3c7;
    color: #92400e;
}

.badge-muted {
    background: #f2f4f7;
    color: #667085;
}

.other-methods {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e6e9ec;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.alt-methods {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid #e6e9ec;
}

.alt-methods-head {
    display: grid;
    gap: 0.1rem;
    margin-bottom: 0.7rem;
}

.alt-methods-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--yp-headline);
}

.alt-methods-hint {
    font-size: 0.78rem;
    color: var(--yp-body);
}

.alt-methods-list {
    display: grid;
    gap: 0.55rem;
}

.alt-method-form {
    margin: 0;
}

.alt-method-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: var(--yp-white);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.alt-method-item:hover {
    border-color: var(--yp-primary);
    background: rgba(11, 165, 236, 0.05);
}

.alt-method-item:focus-visible {
    outline: 2px solid var(--yp-primary);
    outline-offset: 2px;
}

.alt-method-main {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.alt-method-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--yp-headline);
}

.alt-method-meta {
    font-size: 0.78rem;
    color: var(--yp-body);
}

.alt-method-action {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--yp-primary);
}

.security-intro {
    margin: -0.35rem 0 1rem;
    max-width: 36rem;
}

.security-intro p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--yp-body);
}

.security-panel {
    max-width: 34rem;
}

.security-panel + .security-panel {
    margin-top: 0.85rem;
}

.security-method-list {
    padding: 0.75rem 0.85rem 0.9rem;
}

.security-method-link,
.security-method-list .method-list-item {
    gap: 0.75rem;
}

.security-method-list .method-list-item.is-default {
    border-color: rgba(11, 165, 236, 0.45);
    background:
        linear-gradient(90deg, rgba(11, 165, 236, 0.1), rgba(11, 101, 236, 0.04) 65%, transparent),
        #f7fbff;
    box-shadow: inset 3px 0 0 var(--yp-primary);
}

.security-method-list .settings-row-icon {
    flex-shrink: 0;
}

.security-method-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.security-empty {
    margin: 0;
    padding: 0.35rem 0.15rem 0.15rem;
    font-size: 0.85rem;
    color: var(--yp-body);
}

.security-back {
    display: inline-block;
    margin: -0.2rem 0 0.85rem;
}

.security-activate-panel {
    max-width: 34rem;
}

.security-activate-body {
    padding: 1rem 1.1rem 1.1rem;
}

.security-activate-steps {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--yp-body);
}

.security-activate-steps li + li {
    margin-top: 0.35rem;
}

.security-activate-sent {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: var(--yp-body);
}

.security-sessions-link {
    max-width: 34rem;
    margin-top: 0.85rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
}

.sessions-panel {
    max-width: 34rem;
}

.sessions-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.sessions-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sessions-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.9rem 1.1rem;
    border-top: 1px solid #f2f4f7;
}

.sessions-row.is-current {
    background: linear-gradient(90deg, rgba(11, 165, 236, 0.05), transparent 72%);
}

.sessions-row-copy {
    min-width: 0;
    flex: 1;
}

.sessions-row-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.sessions-row-title strong {
    font-size: 0.92rem;
    color: var(--yp-headline);
}

.sessions-row-copy p {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--yp-body);
}

.sessions-empty {
    padding: 1rem 1.1rem;
    font-size: 0.9rem;
    color: var(--yp-body);
}

.mt-1 {
    margin-top: 1rem;
}

button.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.link-btn.danger {
    color: #b42318;
}

/* Access & roles */
body.page-access .admin-main {
    width: calc(100% - 2rem);
    max-width: none;
}

.access-workspace {
    display: grid;
    gap: 0.85rem;
}

.access-toolbar {
    display: grid;
    grid-template-columns: minmax(14rem, 1.6fr) repeat(3, minmax(9rem, 0.7fr)) auto;
    gap: 0.65rem;
    align-items: end;
    padding: 0.9rem 1rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
}

.access-search {
    display: grid;
    gap: 0.35rem;
    margin: 0;
}

.access-search-field {
    position: relative;
    display: block;
}

.access-search-field i {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 0.85rem;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}

.access-search-field input {
    width: 100%;
    padding: 0.7rem 0.8rem 0.7rem 2.25rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.access-filter {
    display: grid;
    gap: 0.3rem;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--yp-body);
}

.access-filter select {
    width: 100%;
    padding: 0.65rem 2rem 0.65rem 0.7rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--yp-headline);
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23667085' d='M1.4.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.access-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 0.1rem;
}

.access-toolbar-actions .btn {
    margin-top: 0;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    text-decoration: none;
}

.access-table-card {
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.access-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem 0.8rem;
    border-bottom: 1px solid #eef1f5;
}

.access-table-head h2 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--yp-headline);
}

.access-table-head p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--yp-body);
}

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

.access-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 52rem;
}

.access-table th,
.access-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: middle;
    border-top: 1px solid #f2f4f7;
    font-size: 0.88rem;
    color: var(--yp-headline);
}

.access-table th {
    border-top: 0;
    background: #f8fafc;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.access-table tbody tr:hover {
    background: #fafbfc;
}

.access-table tr.is-inactive {
    opacity: 0.72;
}

.access-person {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.access-person strong {
    display: block;
    font-size: 0.92rem;
}

.access-person span {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.75rem;
    color: var(--yp-body);
}

.access-status-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.access-actions-cell {
    text-align: right;
    white-space: nowrap;
}

.access-actions-cell .btn-table,
a.btn.btn-table {
    margin-top: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.access-reset-section-head {
    margin-bottom: 0.85rem;
}

.access-reset-section-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--yp-ink, #101828);
}

.access-reset-entry {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    max-width: 28rem;
    margin-top: 1.25rem;
    padding: 0.95rem 1.05rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #fbfcfd 0%, #f7f9fb 100%);
    box-sizing: border-box;
}

.access-reset-entry-copy {
    min-width: 12rem;
    flex: 1 1 14rem;
}

.access-reset-entry-copy h2 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--yp-ink, #101828);
}

.access-reset-entry-copy p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--yp-body);
}

.access-reset-entry .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.access-reset-entry .btn i {
    margin-right: 0.35rem;
}

.access-reset-page {
    display: grid;
    gap: 1rem;
    max-width: 28rem;
}

.access-reset-subject {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.85rem;
    background: #fff;
}

.access-reset-contacts {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid #eef1f5;
}

.access-reset-contacts > div {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
}

.access-reset-contacts dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.access-reset-contacts dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--yp-ink, #101828);
    word-break: break-word;
}

.access-reset-notice {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.95rem 1.05rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.75rem;
    background: #fafbfc;
}

.access-reset-notice > i {
    margin-top: 0.15rem;
    color: var(--yp-body);
}

.access-reset-notice strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.92rem;
    color: var(--yp-ink, #101828);
}

.access-reset-notice p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--yp-body);
}

.access-reset-body {
    display: grid;
    gap: 1rem;
    padding: 1.05rem 1.1rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.85rem;
    background: #fff;
}

.access-reset-copy h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--yp-ink, #101828);
}

.access-reset-copy > p {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--yp-body);
}

.access-reset-effects {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.access-reset-effects li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--yp-ink, #101828);
}

.access-reset-effects i {
    width: 1rem;
    margin-top: 0.12rem;
    text-align: center;
    color: #0b65ec;
}

.access-reset-form {
    display: grid;
    gap: 1rem;
}

.access-reset-channels {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 0.55rem;
}

.access-reset-channels legend {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.access-reset-channel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.7rem;
    background: #fbfcfd;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.access-reset-channel:hover {
    border-color: #c9d5e8;
    background: #fff;
}

.access-reset-channel:has(input:checked) {
    border-color: #0b65ec;
    background: #f3f8ff;
    box-shadow: 0 0 0 1px rgba(11, 101, 236, 0.12);
}

.access-reset-channel input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.access-reset-channel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.55rem;
    background: #eef3fb;
    color: #0b65ec;
    font-size: 0.95rem;
}

.access-reset-channel:has(input:checked) .access-reset-channel-icon {
    background: #0b65ec;
    color: #fff;
}

.access-reset-channel-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.access-reset-channel-copy strong {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--yp-ink, #101828);
}

.access-reset-channel-copy span {
    font-size: 0.82rem;
    color: var(--yp-body);
    overflow: hidden;
    text-overflow: ellipsis;
}

.access-reset-channel-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    color: transparent;
    background: #fff;
    font-size: 0.7rem;
}

.access-reset-channel:has(input:checked) .access-reset-channel-check {
    border-color: #0b65ec;
    background: #0b65ec;
    color: #fff;
}

.access-reset-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.access-reset-actions .btn i {
    margin-right: 0.35rem;
}

@supports not selector(:has(*)) {
    .access-reset-channel input {
        position: static;
        opacity: 1;
        pointer-events: auto;
        margin: 0;
    }

    .access-reset-channel-check {
        display: none;
    }
}

.access-empty {
    text-align: center !important;
    color: var(--yp-body);
    padding: 2rem 1rem !important;
}

.access-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid #eef1f5;
}

.access-page-status {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--yp-body);
}

.btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 960px) {
    .access-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .access-search {
        grid-column: 1 / -1;
    }

    .access-toolbar-actions {
        grid-column: 1 / -1;
    }
}

.monitoring-alert-form {
    grid-template-columns: minmax(8rem, 9.5rem) minmax(14rem, 1.4fr) auto;
    align-items: end;
}

.monitoring-alert-form .phone-field {
    margin-top: 0;
}

.monitoring-alert-form [data-alert-sms-field] .phone-field {
    display: flex;
    width: 100%;
}

@media (max-width: 960px) {
    .monitoring-alert-form {
        grid-template-columns: 1fr;
    }
}

.access-panel {
    max-width: 40rem;
}

.access-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.access-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.9rem 1.1rem;
    border-top: 1px solid #f2f4f7;
}

.access-row.is-inactive {
    opacity: 0.72;
}

.access-avatar {
    width: 2.4rem;
    height: 2.4rem;
    color: var(--yp-secondary);
}

.access-avatar i {
    font-size: 2.4rem;
}

.access-person .merchants-avatar,
span.merchants-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    margin-top: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--yp-secondary);
    line-height: 0;
    font-size: inherit;
}

.access-person .merchants-avatar svg,
span.merchants-avatar svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    flex: 0 0 auto;
}

.access-row-copy {
    min-width: 0;
    flex: 1;
}

.access-row-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.access-row-title strong {
    font-size: 0.92rem;
    color: var(--yp-headline);
}

.access-row-copy p {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: var(--yp-body);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.access-form {
    max-width: 28rem;
}

.phone-field {
    display: flex;
    align-items: stretch;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.phone-field:focus-within {
    border-color: var(--yp-primary);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.18);
}

.phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.75rem;
    border-right: 1px solid #e4e7ec;
    background: #f8fafc;
    color: var(--yp-headline);
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.phone-field input {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    letter-spacing: 0.08em;
}

.field-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #98a2b3;
}

.access-active-row {
    margin: 0.15rem 0;
}

.role-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
}

.role-card {
    display: grid;
    gap: 0.75rem;
    padding: 1.05rem 1.1rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
}

.role-card.is-full {
    background:
        linear-gradient(145deg, rgba(11, 165, 236, 0.08), transparent 55%),
        #fff;
    border-color: rgba(11, 165, 236, 0.28);
}

.role-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.role-card-top h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--yp-headline);
}

.role-card-top p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--yp-body);
    line-height: 1.35;
}

.role-card-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--yp-secondary);
}

.role-perm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.role-chip {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 0.72rem;
    font-weight: 600;
}

.role-card-actions {
    display: flex;
    gap: 0.85rem;
    padding-top: 0.35rem;
    border-top: 1px solid #f2f4f7;
}

.role-form {
    max-width: 34rem;
}

.role-form-wide {
    max-width: none;
    width: 100%;
}

.role-show-desc,
.role-show-full {
    margin: 0 0 1rem;
    color: var(--yp-body);
}

.role-show-heading {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.role-perm-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.role-perm-fieldset legend {
    margin: 0 0 0.55rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--yp-dark);
}

.role-matrix {
    display: grid;
    gap: 0.85rem;
}

.role-matrix-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.role-matrix-search {
    flex: 1 1 14rem;
    margin: 0;
}

.role-matrix-search input {
    width: 100%;
    margin: 0;
}

.role-matrix-toolbar-actions {
    display: flex;
    gap: 0.75rem;
}

.role-matrix-groups {
    display: grid;
    gap: 0.75rem;
}

.role-matrix-group {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.role-matrix-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
}

.role-matrix-group-head h3 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.role-matrix-group-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--yp-body);
    cursor: pointer;
}

.role-matrix-group-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.45rem;
    padding: 0.65rem;
}

.role-perm-grid {
    display: grid;
    gap: 0.45rem;
}

.role-perm-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    padding: 0.7rem 0.75rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.role-perm-item:has(input:checked),
.role-perm-item.is-checked {
    border-color: rgba(11, 165, 236, 0.45);
    background: rgba(11, 165, 236, 0.05);
}

.role-matrix[data-readonly] .role-perm-item {
    cursor: default;
}

.role-matrix[data-readonly] .role-perm-item:not(.is-checked) {
    opacity: 0.45;
}

.role-perm-item input {
    margin-top: 0.2rem;
}

.role-perm-item span {
    display: grid;
    gap: 0.1rem;
}

.role-perm-item strong {
    font-size: 0.88rem;
    color: var(--yp-headline);
}

.role-perm-item small {
    font-size: 0.72rem;
    color: var(--yp-body);
}

body.page-role-form .admin-main {
    width: calc(100% - 2rem);
    max-width: none;
}

body.page-merchants .admin-main {
    width: calc(100% - 2rem);
    max-width: none;
}

body.page-transactions .admin-main {
    width: calc(100% - 2rem);
    max-width: none;
}

body.page-wallet .admin-main {
    width: calc(100% - 2rem);
    max-width: none;
}

body.page-payouts .admin-main {
    width: calc(100% - 2rem);
    max-width: none;
}

.wallet-workspace {
    display: grid;
    gap: 0.85rem;
}

.wallet-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.85rem;
    padding: 0.2rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
}

.wallet-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--yp-body);
    text-decoration: none;
}

.wallet-subnav-link i {
    width: 0.95rem;
    text-align: center;
    font-size: 0.82em;
    opacity: 0.75;
}

.wallet-subnav-link:hover {
    background: #f5f6f8;
    color: var(--yp-headline);
}

.wallet-subnav-link:hover i {
    opacity: 1;
}

.wallet-subnav-link.is-active {
    background: #0a1748;
    color: #fff;
}

.wallet-subnav-link.is-active i {
    opacity: 1;
}

.wallet-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wallet-metric-scope {
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--yp-body);
    opacity: 0.75;
}

.wallet-toolbar {
    grid-template-columns: minmax(14rem, 1.6fr) repeat(2, minmax(9rem, 0.7fr)) auto;
}

.wallet-table {
    min-width: 56rem;
}

.wallet-col-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.wallet-amount-pos {
    color: #027a48;
}

.wallet-ccy {
    margin-left: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--yp-body);
}

.wallet-table tr.is-frozen td {
    background: #fff8f1;
}

.wallet-ledger-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wallet-ledger-toolbar {
    grid-template-columns: repeat(3, minmax(9rem, 0.8fr)) auto;
}

.wallet-ledger-table {
    min-width: 64rem;
}

.admin-page-sub {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: var(--yp-body);
}

.admin-page-eyebrow a {
    color: inherit;
    text-decoration: none;
}

.admin-page-eyebrow a:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .wallet-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wallet-ledger-metrics {
        grid-template-columns: 1fr;
    }
}

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

    .wallet-toolbar,
    .wallet-ledger-toolbar {
        grid-template-columns: 1fr;
    }
}

.payouts-workspace {
    display: grid;
    gap: 0.85rem;
}

.payouts-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.payouts-metric-sub {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--yp-body);
}

.payouts-toolbar {
    grid-template-columns: minmax(12rem, 1.3fr) minmax(12rem, 1.4fr) repeat(3, minmax(8rem, 0.7fr)) auto;
}

.payouts-merchant-filter select {
    max-width: 100%;
}

.wallet-fund-toolbar {
    grid-template-columns: minmax(12rem, 1.4fr) minmax(12rem, 1.4fr) minmax(8rem, 0.8fr) auto;
}

.wallet-fund-table {
    min-width: 56rem;
}

@media (max-width: 640px) {
    .wallet-fund-toolbar {
        grid-template-columns: 1fr;
    }
}

.payouts-table {
    min-width: 64rem;
}

@media (max-width: 960px) {
    .payouts-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .payouts-metrics {
        grid-template-columns: 1fr;
    }

    .payouts-toolbar {
        grid-template-columns: 1fr;
    }
}

.merchants-toolbar {
    grid-template-columns: minmax(14rem, 1.6fr) repeat(3, minmax(9rem, 0.7fr)) auto;
}

.merchants-table {
    min-width: 72rem;
}

.merchants-table tbody tr.is-clickable {
    cursor: pointer;
}

.merchants-table tbody tr.is-clickable:hover {
    background: #f4f8fc;
}

.merchants-name-link {
    color: inherit;
}

.merchants-name-link:hover {
    color: var(--yp-secondary);
}

.merchants-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem !important;
    letter-spacing: 0.02em;
}

.merchants-search-hint {
    margin: -0.25rem 0 0.35rem;
    font-size: 0.78rem;
}

.merchants-meta {
    font-size: 0.72rem !important;
    color: var(--yp-body);
}

.merchants-date {
    white-space: nowrap;
    color: var(--yp-body);
    font-size: 0.84rem;
}

.merchants-cols {
    position: relative;
    flex-shrink: 0;
}

.merchants-cols > .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.merchants-cols-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 20;
    min-width: 13.5rem;
    padding: 0.55rem 0.45rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.1);
}

.merchants-cols-hint {
    margin: 0 0.4rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.merchants-cols-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.45rem 0.5rem;
    border-radius: 7px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--yp-headline);
    cursor: pointer;
}

.merchants-cols-option:hover {
    background: #f8fafc;
}

.merchants-cols-option input {
    margin: 0;
}

.merchants-table [data-col][hidden] {
    display: none !important;
}

@media (max-width: 960px) {
    .merchants-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

/* Merchant detail */
body.page-merchant-detail .admin-main {
    width: calc(100% - 2rem);
    max-width: none;
}

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

.merchant-identity {
    display: grid;
    gap: 0.95rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
}

.merchant-identity-main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.merchant-identity-avatar,
.merchants-avatar.merchant-identity-avatar {
    width: 3rem;
    height: 3rem;
}

.merchant-identity-avatar svg,
.merchants-avatar.merchant-identity-avatar svg {
    width: 1.35rem;
    height: 1.35rem;
}

.merchant-identity-copy {
    min-width: 0;
    flex: 1;
}

.merchant-identity-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.75rem;
}

.merchant-identity-title strong {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--yp-headline);
}

.merchant-identity-title .merchants-id {
    margin-top: 0 !important;
    font-size: 0.8rem !important;
}

.merchant-identity-meta {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--yp-body);
}

.merchant-identity-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    min-width: 0;
}

.merchant-identity-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.merchant-glance {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0;
    padding-top: 0.85rem;
    border-top: 1px solid #eef1f5;
}

.merchant-glance > div {
    min-width: 0;
}

.merchant-glance dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.merchant-glance dd {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--yp-headline);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchant-glance-status dd {
    display: flex;
    align-items: center;
    min-height: 1.45rem;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}

.merchant-glance .muted {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--yp-body);
}

.merchant-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.3rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #f8fafc;
}

.merchant-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--yp-body);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.merchant-tab i {
    width: 0.95rem;
    text-align: center;
    font-size: 0.82em;
    opacity: 0.75;
}

.merchant-tab.is-active i,
.merchant-tab:hover i {
    opacity: 1;
}

.merchant-tab:hover {
    color: var(--yp-headline);
    background: rgba(255, 255, 255, 0.8);
}

.merchant-access-layout {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.merchant-access-sidebar {
    position: sticky;
    top: 0;
    align-self: stretch;
    padding: 0.85rem 0.65rem;
    border-right: 1px solid #e4e7ec;
    background: #f8fafc;
}

.merchant-access-sidebar-label {
    margin: 0 0 0.45rem;
    padding: 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #667085;
}

.merchant-access-side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.merchant-access-side-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--yp-body);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.merchant-access-side-link i {
    width: 1rem;
    text-align: center;
    opacity: 0.75;
}

.merchant-access-side-link:hover {
    color: var(--yp-headline);
    background: rgba(255, 255, 255, 0.85);
}

.merchant-access-side-link.is-active {
    color: var(--yp-headline);
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.merchant-access-side-link.is-active i {
    opacity: 1;
}

.merchant-access-main {
    min-width: 0;
    padding: 1rem 1.1rem 1.15rem;
}

.merchant-access-main .access-workspace {
    display: grid;
    gap: 0.85rem;
}

.merchant-access-main .access-table-card,
.merchant-access-main .role-grid {
    width: 100%;
    max-width: none;
}

.merchant-access-main .access-table-card {
    border-radius: 12px;
}

.merchant-access-head {
    margin-bottom: 0.15rem;
    align-items: flex-start;
}

.merchant-access-heading {
    margin: 0;
    font-size: 1.05rem;
    color: var(--yp-headline);
}

@media (max-width: 720px) {
    .merchant-access-layout {
        grid-template-columns: 1fr;
    }

    .merchant-access-sidebar {
        position: static;
        border-right: 0;
        border-bottom: 1px solid #e4e7ec;
        padding: 0.65rem;
    }

    .merchant-access-side-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .merchant-access-main {
        padding: 0.85rem;
    }
}

.merchant-section .merchant-access-layout {
    grid-column: 1 / -1;
}

.merchant-tab.is-active {
    color: var(--yp-headline);
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.merchant-section {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 960px) {
    .merchant-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .merchant-section .access-table-card,
    .merchant-section .merchant-access-layout,
    .merchant-section .merchant-visual,
    .merchant-section .merchant-wallet,
    .merchant-section .merchant-transactions,
    .merchant-section .merchant-fund-history,
    .merchant-section .merchant-txn-detail,
    .merchant-section .merchant-methods,
    .merchant-section .merchant-fees,
    .merchant-section .merchant-limits {
        grid-column: 1 / -1;
    }
}

.merchant-stack {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.merchant-visual {
    display: grid;
    gap: 0.85rem;
}

.merchant-visual-head {
    padding: 0;
    border: 0;
}

.merchant-visual-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.merchant-logo-body {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem 1.1rem;
}

.merchant-logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8.5rem;
    padding: 0.85rem;
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    background: #f8fafc;
}

.merchant-logo-preview.is-empty {
    color: var(--yp-body);
    font-size: 0.84rem;
}

.merchant-logo-preview.is-empty span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.merchant-logo-preview img {
    max-width: 100%;
    max-height: 7rem;
    object-fit: contain;
}

.merchant-logo-form {
    display: grid;
    gap: 0.65rem;
}

.merchant-logo-file input[type="file"] {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font: inherit;
    font-size: 0.84rem;
    background: #fff;
}

.merchant-logo-actions,
.merchant-logo-remove {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.merchant-logo-actions .btn,
.merchant-logo-remove .btn {
    margin-top: 0;
    padding: 0.5rem 0.9rem;
    font-size: 0.84rem;
}

@media (max-width: 720px) {
    .merchant-visual-grid {
        grid-template-columns: 1fr;
    }
}

/* Merchant wallet */
.merchant-wallet {
    display: grid;
    gap: 0.85rem;
}

.merchant-wallet-hero {
    padding: 1.1rem 1.15rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(11, 165, 236, 0.07), transparent 48%),
        #fff;
}

.merchant-wallet-hero.is-frozen {
    background:
        linear-gradient(145deg, rgba(170, 3, 3, 0.08), transparent 48%),
        #fff;
    border-color: rgba(170, 3, 3, 0.22);
}

.merchant-wallet-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.merchant-wallet-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.merchant-wallet-amount {
    margin: 0.25rem 0 0;
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    color: var(--yp-headline);
}

.merchant-wallet-amount span {
    font-size: 1.85rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.merchant-wallet-amount small {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--yp-body);
}

.merchant-wallet-sub {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--yp-body);
}

.merchant-wallet-hero-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

.merchant-wallet-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.merchant-wallet-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.95rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid #eef1f5;
}

.merchant-wallet-hero-meta > div {
    min-width: 0;
}

.merchant-wallet-hero-meta dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.merchant-wallet-hero-meta dd {
    margin: 0.2rem 0 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--yp-headline);
}

.merchant-wallet-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
}

.merchant-wallet-metric {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.85rem 0.9rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.merchant-wallet-metric-label {
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.merchant-wallet-metric strong {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--yp-headline);
}

.merchant-wallet-metric-unit {
    font-size: 0.72rem;
    color: var(--yp-body);
}

.merchant-wallet-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: start;
}

.merchant-wallet-split .merchant-panel {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .merchant-wallet-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .merchant-wallet-metrics,
    .merchant-wallet-split,
    .merchant-wallet-hero-meta {
        grid-template-columns: 1fr;
    }

    .merchant-wallet-hero-aside,
    .merchant-wallet-flags {
        align-items: flex-start;
        justify-content: flex-start;
    }
}

/* Merchant payment methods */
.merchant-methods-head {
    align-items: flex-start;
}

.merchant-methods-note {
    margin: 0;
    max-width: 16rem;
    font-size: 0.75rem;
    color: var(--yp-body);
    text-align: right;
}

.merchant-methods-note--inline {
    margin-top: 0.35rem;
    max-width: 28rem;
    text-align: left;
}

.merchant-methods-bulk {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
}

.merchant-methods-bulk .inline-form {
    margin: 0;
}

.merchant-methods-bulk .btn {
    margin-top: 0;
}

.merchant-methods-bulk.is-loading {
    opacity: 0.78;
    pointer-events: none;
}

.merchant-method-bulk-form.is-loading .btn {
    position: relative;
    padding-right: 2rem;
}

.merchant-method-bulk-form.is-loading .btn::after {
    content: "";
    position: absolute;
    right: 0.65rem;
    top: 50%;
    width: 0.75rem;
    height: 0.75rem;
    margin-top: -0.375rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: yp-spin 0.65s linear infinite;
}

.merchant-method-cell {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.merchant-method-cell strong {
    display: block;
    font-size: 0.9rem;
}

.merchant-method-cell .badge {
    margin-top: 0.25rem;
}

.merchant-method-logo {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.55rem;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e4e7ec;
    padding: 0.15rem;
    box-sizing: border-box;
}

.merchant-method-toggle-form {
    margin: 0;
    display: inline-flex;
    position: relative;
}

.merchant-method-toggle {
    position: relative;
    width: 2.7rem;
    height: 1.55rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d0d5dd;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.merchant-method-toggle.is-on {
    background: var(--yp-secondary);
}

.merchant-method-toggle:disabled {
    cursor: wait;
    opacity: 0.72;
}

.merchant-method-toggle-knob {
    position: absolute;
    top: 0.18rem;
    left: 0.18rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.18);
    transition: transform 0.15s ease;
}

.merchant-method-toggle.is-on .merchant-method-toggle-knob {
    transform: translateX(1.15rem);
}

.merchant-method-toggle-form.is-loading::after {
    content: "";
    position: absolute;
    right: -1.35rem;
    top: 50%;
    width: 0.85rem;
    height: 0.85rem;
    margin-top: -0.425rem;
    border: 2px solid rgba(11, 101, 236, 0.22);
    border-top-color: var(--yp-secondary);
    border-radius: 50%;
    animation: yp-spin 0.65s linear infinite;
}

.merchants-methods-table tr.is-toggling {
    background: rgba(11, 165, 236, 0.04);
}

.yp-toast-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 12000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    width: min(22rem, calc(100vw - 1.5rem));
    pointer-events: none;
}

.yp-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.55rem;
    align-items: flex-start;
    width: 100%;
    padding: 0.75rem 0.8rem;
    border-radius: 0.7rem;
    border: 1px solid #e4e7ec;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
    opacity: 0;
    transform: translateY(-0.45rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.yp-toast.is-in {
    opacity: 1;
    transform: translateY(0);
}

.yp-toast.is-leaving {
    opacity: 0;
    transform: translateY(-0.35rem);
}

.yp-toast--success {
    border-color: rgba(18, 183, 106, 0.28);
    background: linear-gradient(180deg, #f6fffb 0%, #fff 70%);
}

.yp-toast--error {
    border-color: rgba(170, 3, 3, 0.22);
    background: linear-gradient(180deg, #fff7f7 0%, #fff 70%);
}

.yp-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.05rem;
    font-size: 0.95rem;
}

.yp-toast--success .yp-toast-icon {
    color: #12b76a;
}

.yp-toast--error .yp-toast-icon {
    color: var(--yp-cta);
}

.yp-toast-copy {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.4;
    font-weight: 550;
    color: var(--yp-ink, #101828);
}

.yp-toast-close {
    margin: 0;
    padding: 0.1rem;
    border: 0;
    background: transparent;
    color: var(--yp-body);
    cursor: pointer;
    line-height: 1;
    font-size: 0.85rem;
}

.yp-toast-close:hover {
    color: var(--yp-dark);
}

@keyframes yp-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .merchant-method-toggle-form.is-loading::after,
    .yp-toast {
        animation: none;
        transition: none;
    }
}

.merchants-methods-table {
    min-width: 52rem;
}

@media (max-width: 900px) {
    .merchant-methods-note {
        text-align: left;
        max-width: none;
    }
}

.page-merchant-detail .merchant-panel.settings-panel,
.page-merchant-detail .merchant-panel.access-table-card {
    max-width: none;
    margin-bottom: 0;
}

.merchant-multiline {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

.merchants-methods-table,
.merchants-tiers-table {
    min-width: 40rem;
}

/* Merchant fees */
.merchant-fees {
    display: grid;
    gap: 0.85rem;
}

.merchant-fees-hero {
    padding: 1.1rem 1.15rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(11, 165, 236, 0.07), transparent 48%),
        #fff;
}

.merchant-fees-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.merchant-fees-kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--yp-body);
}

.merchant-fees-amount {
    margin: 0.2rem 0 0;
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    color: var(--yp-headline);
}

.merchant-fees-amount span {
    font-size: 1.85rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.merchant-fees-amount small {
    font-size: 0.84rem;
    font-weight: 650;
    color: var(--yp-body);
}

.merchant-fees-sub {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--yp-body);
}

.merchant-fees-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.merchant-fees-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.95rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid #eef1f5;
}

.merchant-fees-hero-meta dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.merchant-fees-hero-meta dd {
    margin: 0.2rem 0 0;
    font-size: 0.86rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--yp-headline);
}

.merchant-fees-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0.85rem;
    align-items: start;
}

.merchant-fees-split .merchant-panel {
    margin-bottom: 0;
}

.merchant-fees-tiers {
    list-style: none;
    margin: 0;
    padding: 0.2rem 0;
}

.merchant-fees-tiers li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.1rem;
}

.merchant-fees-tiers li + li {
    border-top: 1px solid #f2f4f7;
}

.merchant-fees-tiers li.is-active {
    background: rgba(11, 165, 236, 0.06);
}

.merchant-fees-tier-rate {
    flex: 0 0 4.4rem;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--yp-headline);
}

.merchant-fees-tier-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.merchant-fees-tier-copy strong {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--yp-headline);
}

.merchant-fees-tier-copy > span {
    font-size: 0.75rem;
    color: var(--yp-body);
}

.merchant-fees-tier-bar {
    display: block;
    height: 0.28rem;
    margin-top: 0.25rem;
    border-radius: 999px;
    background: #eef1f5;
    overflow: hidden;
}

.merchant-fees-tier-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--yp-secondary);
}

.merchant-fees-empty {
    margin: 0;
    padding: 0.95rem 1.1rem 1.1rem;
    font-size: 0.84rem;
    color: var(--yp-body);
}

.merchant-fees-quote-form {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: 0.65rem;
    padding: 0.9rem 1.1rem 1rem;
}

.merchant-fees-quote-form .access-filter:first-child {
    grid-column: 1 / -1;
}

.merchant-fees-quote-form input[type="number"] {
    width: 100%;
    padding: 0.65rem 0.7rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--yp-headline);
    background: #fff;
}

.merchant-fees-quote-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.merchant-fees-quote-actions .btn {
    margin-top: 0;
    padding: 0.5rem 0.9rem;
    font-size: 0.84rem;
}

.merchant-fees-quote-error {
    margin: 0;
    padding: 0 1.1rem 1rem;
    font-size: 0.82rem;
    color: var(--yp-cta);
}

.merchant-fees-quote {
    border-top: 1px solid #eef1f5;
}

.merchant-fees-quote-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
}

.merchant-fees-quote-hero span {
    display: block;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.merchant-fees-quote-hero strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--yp-headline);
}

.merchant-fees-quote-hero small {
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--yp-body);
}

.merchant-fees-quote-rows {
    list-style: none;
    margin: 0;
    padding: 0 0 0.35rem;
}

.merchant-fees-quote-rows li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 1.1rem;
    font-size: 0.84rem;
}

.merchant-fees-quote-rows li + li {
    border-top: 1px solid #f2f4f7;
}

.merchant-fees-quote-rows span {
    color: var(--yp-body);
}

.merchant-fees-quote-rows strong {
    font-variant-numeric: tabular-nums;
    color: var(--yp-headline);
}

.merchant-fees-quote-note {
    margin: 0;
    padding: 0.55rem 1.1rem 0.95rem;
    font-size: 0.75rem;
    color: var(--yp-body);
}

@media (max-width: 960px) {
    .merchant-fees-split,
    .merchant-fees-hero-meta,
    .merchant-fees-quote-form,
    .merchant-fees-quote-hero {
        grid-template-columns: 1fr;
    }

    .merchant-fees-flags {
        justify-content: flex-start;
    }
}

.merchant-limits {
    display: grid;
    gap: 0.85rem;
}

.merchant-limits-hero {
    padding: 1rem 1.1rem;
    border: 1px solid var(--yp-border);
    border-radius: 0.85rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96)),
        #fff;
}

.merchant-limits-hero.is-warning {
    border-color: #f6d7a8;
    background:
        linear-gradient(180deg, rgba(255, 251, 235, 0.95), rgba(255, 255, 255, 0.96)),
        #fff;
}

.merchant-limits-hero.is-critical {
    border-color: #f3b4b4;
    background:
        linear-gradient(180deg, rgba(254, 242, 242, 0.95), rgba(255, 255, 255, 0.96)),
        #fff;
}

.merchant-limits-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.merchant-limits-kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-muted);
}

.merchant-limits-amount {
    margin: 0.2rem 0 0;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.merchant-limits-amount span {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--yp-ink);
    line-height: 1.1;
}

.merchant-limits-amount small {
    font-size: 0.85rem;
    color: var(--yp-muted);
}

.merchant-limits-sub {
    margin: 0.35rem 0 0;
    color: var(--yp-body);
    font-size: 0.9rem;
}

.merchant-limits-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.merchant-limits-hero-meta {
    margin: 0.9rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.merchant-limits-hero-meta dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--yp-muted);
}

.merchant-limits-hero-meta dd {
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--yp-ink);
}

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

.merchant-limit-card {
    padding: 0.9rem 0.95rem;
    border: 1px solid var(--yp-border);
    border-radius: 0.8rem;
    background: #fff;
}

.merchant-limit-card.is-warning {
    border-color: #f0d2a0;
}

.merchant-limit-card.is-critical,
.merchant-limit-card.is-exceeded {
    border-color: #efb4b4;
}

.merchant-limit-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    align-items: flex-start;
}

.merchant-limit-card-top h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--yp-ink);
}

.merchant-limit-card-top p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--yp-muted);
    line-height: 1.35;
}

.merchant-limit-cap {
    margin: 0.75rem 0 0;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.merchant-limit-cap strong {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--yp-ink);
}

.merchant-limit-cap small {
    font-size: 0.78rem;
    color: var(--yp-muted);
}

.merchant-limit-bar {
    margin-top: 0.65rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #eef2f6;
    overflow: hidden;
}

.merchant-limit-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ba5ec, #0284c7);
}

.merchant-limit-card.is-warning .merchant-limit-bar span {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.merchant-limit-card.is-critical .merchant-limit-bar span,
.merchant-limit-card.is-exceeded .merchant-limit-bar span {
    background: linear-gradient(90deg, #f04438, #d92d20);
}

.merchant-limit-stats {
    margin: 0.75rem 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.7rem;
}

.merchant-limit-stats dt {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--yp-muted);
}

.merchant-limit-stats dd {
    margin: 0.15rem 0 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--yp-ink);
}

.merchant-limits-empty {
    margin: 0;
    padding: 1rem;
    border: 1px dashed var(--yp-border);
    border-radius: 0.8rem;
    color: var(--yp-muted);
    text-align: center;
}

.merchant-limits-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: start;
}

.merchant-limits-split .merchant-panel {
    margin: 0;
}

@media (max-width: 960px) {
    .merchant-limits-grid,
    .merchant-limits-split,
    .merchant-limits-hero-meta {
        grid-template-columns: 1fr;
    }

    .merchant-limits-flags {
        justify-content: flex-start;
    }
}

@media (min-width: 961px) and (max-width: 1200px) {
    .merchant-limits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.merchants-methods-table td strong {
    display: block;
    font-size: 0.9rem;
}

.merchants-methods-table td .merchants-meta {
    display: block;
    margin-top: 0.15rem;
}

.merchants-methods-table td .badge {
    margin-top: 0.3rem;
}

@media (max-width: 1100px) {
    .merchant-glance {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

@media (max-width: 640px) {
    .merchant-glance {
        grid-template-columns: 1fr;
    }

    .merchant-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .merchant-tab {
        flex: 0 0 auto;
    }
}

/* Merchant transactions tab */
.merchant-transactions {
    display: grid;
    gap: 0.85rem;
}

.merchant-txn-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.merchant-txn-metric {
    padding: 0.75rem 0.85rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
}

.merchant-txn-metric-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.merchant-txn-metric-value {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--yp-headline);
}

.merchant-txn-metric-value small {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--yp-body);
}

.merchant-txn-toolbar {
    margin: 0;
}

.merchant-txn-head-actions {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.merchant-txn-head-actions .merchants-cols {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.merchant-txn-head-actions > .btn,
.merchant-txn-head-actions .merchants-cols > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    height: 2.15rem;
    padding: 0 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
    vertical-align: middle;
}

.merchant-txn-custom-date.is-hidden {
    display: none !important;
}

.merchant-txn-table {
    min-width: 52rem;
}

.merchant-txn-table [data-col][hidden] {
    display: none !important;
}

.merchant-txn-amount {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
    .merchant-txn-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .merchant-txn-metrics {
        grid-template-columns: 1fr;
    }
}

/* Merchant top-up / withdrawal history */
.merchant-fund-history {
    display: grid;
    gap: 0.85rem;
}

.merchant-fund-table {
    min-width: 36rem;
}

.merchant-fund-table [data-col][hidden] {
    display: none !important;
}

.merchant-fund-in {
    color: #027a48;
    font-weight: 650;
}

.merchant-fund-out {
    color: #b42318;
    font-weight: 650;
}

/* Transaction detail */
.merchant-txn-detail {
    display: grid;
    gap: 0.85rem;
}

.merchant-section .merchant-txn-detail {
    grid-column: 1 / -1;
}

.merchant-txn-detail-hero .merchant-wallet-sub.merchants-id {
    word-break: break-all;
}

.merchant-txn-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: start;
}

.merchant-txn-detail-grid .merchant-panel,
.merchant-txn-detail-meta.merchant-panel {
    margin: 0;
    max-width: none;
}

.merchant-txn-detail-meta {
    grid-column: 1 / -1;
}

@media (max-width: 960px) {
    .merchant-txn-detail-grid {
        grid-template-columns: 1fr;
    }
}


/* Merchant dashboard */
.merchant-dash {
    display: grid;
    gap: 1.1rem;
}

.merchant-dash-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.merchant-dash-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--yp-secondary);
}

.merchant-dash-title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: var(--yp-headline);
    line-height: 1.2;
}

.merchant-dash-merchant {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
    color: var(--yp-body);
}

.merchant-dash-merchant i {
    color: var(--yp-secondary);
    font-size: 0.84rem;
}

.merchant-dash-merchant strong {
    color: var(--yp-headline);
    font-weight: 600;
}

.merchant-dash-merchant .merchants-id {
    margin-left: 0.15rem;
}

.merchant-dash-lead {
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
    color: var(--yp-body);
}

.merchant-dash-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.merchant-dash-balance {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 10.5rem;
    padding: 1.55rem 1.6rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background:
        radial-gradient(620px 240px at 100% 0%, rgba(11, 165, 236, 0.16), transparent 58%),
        radial-gradient(480px 180px at 0% 100%, rgba(9, 7, 83, 0.06), transparent 55%),
        #fff;
}

.merchant-dash-balance.is-frozen {
    background:
        radial-gradient(620px 240px at 100% 0%, rgba(170, 3, 3, 0.12), transparent 58%),
        #fff;
}

.merchant-dash-balance-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.merchant-dash-balance-amount {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.55rem 0 0;
    color: var(--yp-headline);
}

.merchant-dash-balance-amount span {
    font-size: 2.75rem;
    font-weight: 750;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    line-height: 1.02;
}

.merchant-dash-balance-amount small {
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--yp-body);
}

.merchant-dash-balance-sub {
    margin: 0.55rem 0 0;
    font-size: 0.9rem;
    color: var(--yp-body);
}

.merchant-dash-balance-aside {
    display: grid;
    gap: 0.75rem;
    justify-items: end;
    align-content: start;
}

.merchant-dash-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.merchant-dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
}

.merchant-dash-metric {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    min-height: 7.5rem;
    padding: 1.25rem 1.3rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
}

.merchant-dash-metric-label {
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.merchant-dash-metric strong {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--yp-headline);
    line-height: 1.1;
}

.merchant-dash-metric-unit {
    font-size: 0.84rem;
    color: var(--yp-body);
}

.merchant-dash-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
}

.merchant-dash-empty h2 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    color: var(--yp-headline);
}

.merchant-dash-empty p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--yp-body);
}

.merchant-dash-quick {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.merchant-dash-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 5.25rem;
    padding: 0.9rem 0.75rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    color: var(--yp-headline);
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.merchant-dash-quick-item:hover {
    border-color: rgba(11, 101, 236, 0.35);
    background: rgba(11, 165, 236, 0.06);
    color: var(--yp-secondary);
}

.merchant-dash-quick-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    background: rgba(11, 165, 236, 0.12);
    color: var(--yp-secondary);
    font-size: 0.92rem;
}

.merchant-dash-quick-item span {
    font-size: 0.84rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

@media (max-width: 960px) {
    .merchant-dash-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .merchant-dash-quick {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .merchant-dash-intro,
    .merchant-dash-balance,
    .merchant-dash-empty {
        flex-direction: column;
        align-items: flex-start;
    }

    .merchant-dash-balance-aside,
    .merchant-dash-flags {
        justify-items: start;
        justify-content: flex-start;
    }

    .merchant-dash-metrics {
        grid-template-columns: 1fr;
    }

    .merchant-dash-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .merchant-dash-balance {
        min-height: 0;
        padding: 1.25rem 1.2rem;
    }

    .merchant-dash-balance-amount span {
        font-size: 2.15rem;
    }

    .merchant-dash-metric {
        min-height: 0;
    }
}

/* Merchant portal wallet */
.mp-wallet {
    display: grid;
    gap: 1rem;
}

.mp-wallet-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.7fr);
    gap: 1.25rem;
    align-items: start;
    padding: 1.55rem 1.6rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background:
        radial-gradient(640px 260px at 100% 0%, rgba(11, 165, 236, 0.16), transparent 58%),
        radial-gradient(420px 180px at 0% 100%, rgba(9, 7, 83, 0.05), transparent 55%),
        #fff;
}

.mp-wallet-hero.is-frozen {
    background:
        radial-gradient(640px 260px at 100% 0%, rgba(170, 3, 3, 0.12), transparent 58%),
        #fff;
    border-color: rgba(170, 3, 3, 0.22);
}

.mp-wallet-kicker {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.mp-wallet-amount {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
    color: var(--yp-headline);
}

.mp-wallet-amount span {
    font-size: 2.7rem;
    font-weight: 750;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    line-height: 1.02;
}

.mp-wallet-amount small {
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--yp-body);
}

.mp-wallet-sub {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--yp-body);
}

.mp-wallet-hero-aside {
    display: grid;
    gap: 0.9rem;
    justify-items: end;
    align-content: start;
    text-align: right;
}

.mp-wallet-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.mp-wallet-meta {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    min-width: 11rem;
}

.mp-wallet-meta dt {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.mp-wallet-meta dd {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--yp-headline);
}

.mp-wallet-freeze {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: rgba(170, 3, 3, 0.06);
    color: #7a1a1a;
    font-size: 0.86rem;
}

.mp-wallet-freeze i {
    margin-top: 0.1rem;
}

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

.mp-wallet-stat {
    display: grid;
    gap: 0.3rem;
    align-content: start;
    min-height: 6.6rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
}

.mp-wallet-stat-label {
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.mp-wallet-stat strong {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--yp-headline);
    line-height: 1.1;
}

.mp-wallet-stat-unit {
    font-size: 0.82rem;
    color: var(--yp-body);
}

.mp-wallet-lifetime {
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.mp-wallet-lifetime-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.3rem 1rem;
    border-bottom: 1px solid #eef1f5;
    background:
        linear-gradient(180deg, rgba(11, 165, 236, 0.05), transparent);
}

.mp-wallet-lifetime-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.mp-wallet-lifetime-head p {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
    color: var(--yp-body);
}

.mp-wallet-lifetime-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.mp-wallet-life-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    min-height: 6.5rem;
    padding: 1.2rem 1.15rem;
    border-right: 1px solid #eef1f5;
}

.mp-wallet-life-card:last-child {
    border-right: 0;
}

.mp-wallet-life-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 11px;
    font-size: 0.9rem;
}

.mp-wallet-life-card.is-in .mp-wallet-life-icon {
    background: rgba(11, 165, 236, 0.12);
    color: var(--yp-secondary);
}

.mp-wallet-life-card.is-out .mp-wallet-life-icon {
    background: rgba(9, 7, 83, 0.08);
    color: var(--yp-headline);
}

.mp-wallet-life-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.mp-wallet-life-card strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
    color: var(--yp-headline);
    line-height: 1.15;
}

.mp-wallet-life-card strong small {
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--yp-body);
}

@media (max-width: 1100px) {
    .mp-wallet-lifetime-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mp-wallet-life-card {
        border-right: 0;
        border-bottom: 1px solid #eef1f5;
    }

    .mp-wallet-life-card:nth-child(3n) {
        border-right: 0;
    }
}

@media (max-width: 960px) {
    .mp-wallet-hero {
        grid-template-columns: 1fr;
    }

    .mp-wallet-hero-aside,
    .mp-wallet-flags {
        justify-items: start;
        justify-content: flex-start;
        text-align: left;
    }

    .mp-wallet-positions {
        grid-template-columns: 1fr 1fr;
    }

    .mp-wallet-lifetime-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .mp-wallet-positions,
    .mp-wallet-lifetime-grid {
        grid-template-columns: 1fr;
    }

    .mp-wallet-amount span {
        font-size: 2.15rem;
    }

    .mp-wallet-stat {
        min-height: 0;
    }
}

/* Merchant withdrawal request */
.mp-wd-req {
    display: grid;
    gap: 1rem;
}

.mp-wd-req-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background:
        radial-gradient(560px 220px at 100% 0%, rgba(11, 165, 236, 0.14), transparent 58%),
        radial-gradient(380px 160px at 0% 100%, rgba(9, 7, 83, 0.05), transparent 55%),
        #fff;
}

.mp-wd-req-kicker {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.mp-wd-req-amount {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0.4rem 0 0;
    color: var(--yp-headline);
}

.mp-wd-req-amount span {
    font-size: 2.4rem;
    font-weight: 750;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
}

.mp-wd-req-amount small {
    font-size: 0.98rem;
    font-weight: 650;
    color: var(--yp-body);
}

.mp-wd-req-sub {
    margin: 0.4rem 0 0;
    font-size: 0.86rem;
    color: var(--yp-body);
}

.mp-wd-req-hero-aside {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.mp-wd-req-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(170, 3, 3, 0.2);
    border-radius: 12px;
    background: rgba(170, 3, 3, 0.05);
    color: #7a1a1a;
}

.mp-wd-req-banner i {
    margin-top: 0.15rem;
    color: var(--yp-cta);
}

.mp-wd-req-banner strong {
    display: block;
    font-size: 0.92rem;
}

.mp-wd-req-banner p {
    margin: 0.2rem 0 0;
    font-size: 0.84rem;
}

.mp-wd-req-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
    gap: 0.95rem;
    align-items: start;
}

.mp-wd-req-form {
    padding: 1.35rem 1.4rem 1.45rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fff;
}

.mp-wd-req-form-head {
    margin-bottom: 1.15rem;
}

.mp-wd-req-form-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--yp-headline);
}

.mp-wd-req-form-head p {
    margin: 0.3rem 0 0;
    font-size: 0.88rem;
    color: var(--yp-body);
}

.mp-wd-req-amount-field {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.mp-wd-req-amount-field > label {
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.mp-wd-req-amount-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mp-wd-req-amount-input:focus-within {
    border-color: var(--yp-primary);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.15);
    background: #fff;
}

.mp-wd-req-ccy {
    display: inline-flex;
    align-items: center;
    padding: 0 0.95rem;
    border-right: 1px solid #e4e7ec;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--yp-headline);
    background: rgba(11, 165, 236, 0.06);
}

.mp-wd-req-amount-input input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.95rem 1rem;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--yp-headline);
    outline: none;
}

.mp-wd-req-amount-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--yp-body);
}

.mp-wd-req-max {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 650;
    color: var(--yp-secondary);
    cursor: pointer;
}

.mp-wd-req-max:hover {
    color: var(--yp-primary);
}

.mp-wd-req-notes {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1.15rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--yp-headline);
}

.mp-wd-req-notes em {
    font-style: normal;
    font-weight: 500;
    color: var(--yp-body);
}

.mp-wd-req-notes textarea {
    width: 100%;
    min-height: 5.5rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    resize: vertical;
    font: inherit;
    font-weight: 500;
    color: var(--yp-dark);
    background: #fff;
}

.mp-wd-req-notes input,
.mp-wd-req-notes select {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    font: inherit;
    font-weight: 500;
    color: var(--yp-dark);
    background: #fff;
}

.mp-wd-req-notes textarea:focus,
.mp-wd-req-notes input:focus,
.mp-wd-req-notes select:focus {
    outline: none;
    border-color: var(--yp-primary);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.15);
}

.mp-tu-accounts {
    display: grid;
    gap: 0.75rem;
}

.mp-tu-account-pick {
    margin-bottom: 1.15rem;
}

.mp-tu-account-card .mp-wd-req-verify-copy {
    gap: 0.15rem;
}

.mp-tu-account-meta {
    display: block;
    font-size: 0.78rem;
    color: var(--yp-body);
}

.mp-wd-req-bank.is-selected {
    box-shadow: 0 0 0 2px rgba(11, 165, 236, 0.55);
}

.mp-wd-req-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.mp-wd-req-side {
    display: grid;
    gap: 0.85rem;
}

.mp-wd-req-bank {
    padding: 1.2rem 1.25rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background:
        linear-gradient(160deg, rgba(9, 7, 83, 0.96) 0%, #0b1f5c 55%, #12307a 100%);
    color: #fff;
}

.mp-wd-req-bank.is-blocked {
    background:
        linear-gradient(160deg, #3f3f46 0%, #27272a 100%);
}

.mp-wd-req-bank-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.mp-wd-req-bank-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.mp-wd-req-bank-label {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.mp-wd-req-bank h2 {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
    font-weight: 650;
    color: #fff;
}

.mp-wd-req-bank-number {
    margin: 1rem 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.mp-wd-req-bank-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mp-wd-req-bank-meta dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.mp-wd-req-bank-meta dd {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

.mp-wd-req-bank-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.95rem;
}

.mp-wd-req-bank-empty {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.mp-wd-req-tips {
    padding: 1.05rem 1.15rem;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
}

.mp-wd-req-tips h3 {
    margin: 0 0 0.55rem;
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.mp-wd-req-tips ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.4rem;
    font-size: 0.84rem;
    color: var(--yp-body);
}

@media (max-width: 960px) {
    .mp-wd-req-layout {
        grid-template-columns: 1fr;
    }

    .mp-wd-req-hero {
        flex-direction: column;
    }

    .mp-wd-req-hero-aside {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .mp-wd-req-amount span {
        font-size: 1.9rem;
    }

    .mp-wd-req-amount-input input {
        font-size: 1.25rem;
    }

    .mp-wd-req-bank-meta {
        grid-template-columns: 1fr;
    }
}

.mp-wd-verify {
    display: grid;
    gap: 1.15rem;
}

.mp-wd-verify-steps {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.mp-wd-verify-step {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--yp-body);
}

.mp-wd-verify-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.mp-wd-verify-step.is-done {
    color: #027a48;
}

.mp-wd-verify-step.is-done .mp-wd-verify-step-num {
    border-color: transparent;
    background: #ecfdf3;
    color: #027a48;
}

.mp-wd-verify-step.is-current {
    color: var(--yp-headline);
}

.mp-wd-verify-step.is-current .mp-wd-verify-step-num {
    border-color: transparent;
    background: rgba(11, 165, 236, 0.14);
    color: var(--yp-secondary);
}

.mp-wd-verify-step-rule {
    width: 1.6rem;
    height: 1px;
    background: #d0d5dd;
}

.mp-wd-verify-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.9fr);
    gap: 1.15rem;
    align-items: start;
}

.mp-wd-verify-main {
    padding: 1.25rem 1.3rem 1.15rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fff;
}

.mp-wd-verify-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    margin-bottom: 1.15rem;
}

.mp-wd-verify-channel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: rgba(11, 165, 236, 0.12);
    color: var(--yp-secondary);
    font-size: 1.05rem;
}

.mp-wd-verify-head h2 {
    margin: 0.15rem 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--yp-headline);
}

.mp-wd-verify-lead {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--yp-body);
}

.mp-wd-verify-target {
    display: inline-block;
    margin-top: 0.15rem;
    color: var(--yp-headline);
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.mp-wd-verify-form {
    display: grid;
    gap: 1rem;
}

.mp-wd-verify-otp .otp-boxes {
    justify-content: flex-start;
    gap: 0.5rem;
}

.mp-wd-verify-otp .otp-box {
    width: 2.85rem;
    height: 3.2rem;
}

.mp-wd-verify-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.mp-wd-verify-alts {
    margin-top: 1.25rem;
    padding-top: 1.05rem;
    border-top: 1px solid #eef0f3;
}

.mp-wd-verify-alts-head {
    display: grid;
    gap: 0.1rem;
    margin-bottom: 0.65rem;
}

.mp-wd-verify-alts-head strong {
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.mp-wd-verify-alts-head span {
    font-size: 0.78rem;
    color: var(--yp-body);
}

.mp-wd-verify-alts-list {
    display: grid;
    gap: 0.5rem;
}

.mp-wd-verify-alts-list form {
    margin: 0;
}

.mp-wd-verify-alt {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mp-wd-verify-alt:hover {
    border-color: rgba(11, 101, 236, 0.4);
    background: rgba(11, 165, 236, 0.05);
}

.mp-wd-verify-alt:focus-visible {
    outline: 2px solid var(--yp-primary);
    outline-offset: 2px;
}

.mp-wd-verify-alt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    background: rgba(11, 165, 236, 0.1);
    color: var(--yp-secondary);
    font-size: 0.85rem;
}

.mp-wd-verify-alt-copy {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.mp-wd-verify-alt-copy strong {
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.mp-wd-verify-alt-copy span {
    font-size: 0.78rem;
    color: var(--yp-body);
}

.mp-wd-verify-alt-go {
    color: #98a2b3;
    font-size: 0.75rem;
}

.mp-wd-verify-cancel {
    margin: 1rem 0 0;
}

.mp-wd-verify-side {
    display: grid;
    gap: 0.85rem;
}

.mp-wd-verify-summary {
    padding: 1.15rem 1.2rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background:
        radial-gradient(420px 160px at 100% 0%, rgba(11, 165, 236, 0.14), transparent 60%),
        #fff;
}

.mp-wd-verify-amount {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0.35rem 0 0;
    color: var(--yp-headline);
}

.mp-wd-verify-amount span {
    font-size: 1.9rem;
    font-weight: 750;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.mp-wd-verify-amount small {
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--yp-body);
}

.mp-wd-verify-notes {
    margin: 0.65rem 0 0;
    padding-top: 0.65rem;
    border-top: 1px solid #eef0f3;
    font-size: 0.86rem;
    color: var(--yp-body);
    line-height: 1.4;
}

.mp-wd-verify-bank {
    margin: 0;
}

.mp-wd-verify-method-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--yp-headline);
}

.mp-wd-verify-method-chip i {
    color: var(--yp-secondary);
}

@media (max-width: 960px) {
    .mp-wd-verify-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .mp-wd-verify-otp .otp-box {
        width: 2.45rem;
        height: 2.9rem;
        font-size: 1.15rem;
    }

    .mp-wd-verify-amount span {
        font-size: 1.7rem;
    }
}

.mp-wd-req-verify {
    margin: 0 0 1.15rem;
    padding: 0;
    border: 0;
    min-width: 0;
}

.mp-wd-req-verify legend {
    padding: 0;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.mp-wd-req-verify-hint {
    margin: 0.35rem 0 0.7rem;
    font-size: 0.84rem;
    color: var(--yp-body);
}

.mp-wd-req-verify-list {
    display: grid;
    gap: 0.55rem;
}

.mp-wd-req-verify-option {
    display: block;
    margin: 0;
    cursor: pointer;
}

.mp-wd-req-verify-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mp-wd-req-verify-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 0.95rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mp-wd-req-verify-option input:checked + .mp-wd-req-verify-card {
    border-color: rgba(11, 101, 236, 0.45);
    background: rgba(11, 165, 236, 0.06);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.12);
}

.mp-wd-req-verify-option input:focus-visible + .mp-wd-req-verify-card {
    outline: 2px solid var(--yp-primary);
    outline-offset: 2px;
}

.mp-wd-req-verify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 10px;
    background: rgba(11, 165, 236, 0.12);
    color: var(--yp-secondary);
    font-size: 0.9rem;
}

.mp-wd-req-verify-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.mp-wd-req-verify-copy strong {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.mp-wd-req-verify-copy span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--yp-body);
}

.mp-wd-req-verify:disabled .mp-wd-req-verify-option {
    cursor: not-allowed;
    opacity: 0.65;
}

/* —— Error pages (404) —— */
.page-error {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(900px 480px at 8% -8%, rgba(11, 165, 236, 0.18), transparent 55%),
        radial-gradient(720px 420px at 100% 0%, rgba(170, 3, 3, 0.1), transparent 52%),
        linear-gradient(180deg, var(--yp-white) 0%, var(--yp-light) 100%);
}

.error-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    margin: 0;
    padding: 2rem 1.25rem;
}

.error-panel {
    width: min(28rem, 100%);
    text-align: center;
    animation: error-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.error-brand {
    display: inline-flex;
    margin-bottom: 1.75rem;
}

.error-brand img {
    display: block;
    height: 2.35rem;
    width: auto;
}

.error-code {
    margin: 0 0 0.65rem;
    font-size: clamp(4.5rem, 16vw, 6.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.06em;
    background: linear-gradient(125deg, var(--yp-headline) 0%, var(--yp-secondary) 48%, var(--yp-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: error-code-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.error-title {
    margin: 0 0 0.5rem;
    color: var(--yp-headline);
    font-size: clamp(1.35rem, 3.5vw, 1.7rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.error-lead {
    margin: 0 auto;
    max-width: 22rem;
    color: var(--yp-body);
    font-size: 0.98rem;
}

.error-path {
    display: block;
    margin-top: 0.55rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    background: rgba(9, 7, 83, 0.05);
    color: var(--yp-headline);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    word-break: break-all;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.error-actions .btn {
    margin-top: 0;
    min-width: 8.5rem;
}

@keyframes error-enter {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes error-code-in {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .error-panel,
    .error-code {
        animation: none;
    }
}

/* —— Payment Gateway sidebar —— */
.merchant-pg-layout {
    grid-template-columns: 14.5rem minmax(0, 1fr);
}

.merchant-pg-sidebar {
    position: sticky;
    top: 0.75rem;
    align-self: start;
    padding: 0.75rem 0.65rem;
    border-right: 1px solid #e4e7ec;
    background: #f8fafc;
}

.merchant-pg-sidebar-label {
    margin: 0 0.35rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yp-body);
}

.merchant-pg-side-nav {
    display: grid;
    gap: 0.2rem;
}

.merchant-pg-side-link {
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    padding: 0.55rem 0.55rem;
    border-radius: 8px;
    color: var(--yp-body);
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
}

.merchant-pg-side-link:hover {
    color: var(--yp-headline);
    background: rgba(255, 255, 255, 0.9);
}

.merchant-pg-side-link.is-active {
    color: var(--yp-headline);
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.merchant-pg-side-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 7px;
    background: rgba(11, 165, 236, 0.1);
    color: var(--yp-secondary);
    font-size: 0.78rem;
}

.merchant-pg-side-link.is-active .merchant-pg-side-icon {
    background: rgba(11, 165, 236, 0.16);
}

.merchant-pg-side-copy {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
}

.merchant-pg-side-copy strong {
    font-size: 0.84rem;
    font-weight: 650;
    color: inherit;
}

.merchant-pg-side-copy span {
    font-size: 0.7rem;
    color: var(--yp-body);
    line-height: 1.25;
}

@media (max-width: 720px) {
    .merchant-pg-layout {
        grid-template-columns: 1fr;
    }

    .merchant-pg-sidebar {
        position: static;
        border-right: 0;
        border-bottom: 1px solid #e4e7ec;
        padding: 0.65rem;
    }

    .merchant-pg-side-nav {
        grid-template-columns: 1fr 1fr;
    }
}

/* —— PG Credentials —— */
.pg-credentials-form {
    padding: 0 1rem 1rem;
    max-width: 28rem;
}

.pg-credentials-lead {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

.pg-credentials-actions {
    margin-top: 0.5rem;
}

.pg-credentials-clear {
    margin: 0 1rem 1rem;
}

.pg-credentials .settings-rows {
    margin: 0;
    padding: 0 1rem 1rem;
}

/* —— IP Whitelisting —— */
.ip-whitelist {
    display: grid;
    gap: 0.85rem;
}

.ip-whitelist-mode-control {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.ip-whitelist-mode-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--yp-headline);
}

.ip-whitelist-warning {
    margin: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(170, 3, 3, 0.22);
    border-radius: 10px;
    background: rgba(170, 3, 3, 0.06);
    color: var(--yp-headline);
    font-size: 0.84rem;
}

.ip-whitelist-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ip-whitelist-modal[hidden] {
    display: none !important;
}

.ip-whitelist-modal-backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(16, 24, 40, 0.45);
    cursor: pointer;
}

.ip-whitelist-modal-sheet {
    position: relative;
    z-index: 1;
    width: min(24rem, 100%);
    padding: 1rem 1rem 1.05rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(7, 5, 63, 0.22);
    display: grid;
    gap: 0.85rem;
}

.ip-whitelist-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #eef1f5;
}

.ip-whitelist-modal-head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--yp-headline);
}

.ip-whitelist-modal-head p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--yp-body);
}

.ip-whitelist-add-form {
    display: grid;
    gap: 0.85rem;
}

.ip-whitelist-add-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--yp-headline);
}

.ip-whitelist-add-form input[type="text"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--yp-headline);
    background: #fff;
}

.ip-whitelist-add-form input[type="text"]:focus {
    outline: none;
    border-color: var(--yp-primary);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.18);
}

.ip-whitelist-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.ip-whitelist-modal-actions .btn {
    margin: 0;
}

body.ip-whitelist-modal-open {
    overflow: hidden;
}

.ip-whitelist-table {
    min-width: 28rem;
}

.ip-whitelist-list-card.is-disabled {
    opacity: 0.55;
    background: #f8fafc;
    pointer-events: none;
    user-select: none;
}

.ip-whitelist-list-card.is-disabled .access-table tbody tr:hover {
    background: transparent;
}

.ip-whitelist-list-card.is-disabled .btn:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.ip-whitelist-ip {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.86rem;
}

/* —— Merchant checkout pages —— */
.mp-checkout-table {
    min-width: 44rem;
}

.mp-checkout-page-cell {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.mp-checkout-page-cell strong {
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.mp-checkout-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
    align-items: center;
}

.mp-checkout-actions .inline-form,
.access-actions-cell .inline-form {
    display: inline;
    margin: 0;
}

.mp-checkout-actions .btn-table {
    margin-top: 0;
}


.mp-checkout-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    gap: 1.25rem;
    align-items: start;
}

.mp-checkout-form-controls {
    display: grid;
    gap: 0.9rem;
}

.mp-co-panel {
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

.mp-co-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1.05rem;
    border-bottom: 1px solid #eef1f5;
    background: linear-gradient(180deg, #fcfcfd 0%, #fff 100%);
}

.mp-co-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: rgba(9, 7, 83, 0.08);
    color: var(--yp-headline);
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mp-co-panel-head h2 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.mp-co-panel-head p {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--yp-body);
}

.mp-co-panel-body {
    display: grid;
    gap: 1rem;
    padding: 1rem 1.05rem 1.1rem;
}

.mp-co-subsection {
    display: grid;
    gap: 0.5rem;
}

.mp-co-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #667085;
}

.mp-co-field {
    display: grid;
    gap: 0.35rem;
}

.mp-co-field input[type="text"],
.mp-co-field select,
.mp-co-field textarea,
.mp-checkout-form-controls select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-weight: 500;
    color: var(--yp-dark);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mp-co-field input[type="text"]:focus,
.mp-co-field select:focus,
.mp-co-field textarea:focus,
.mp-checkout-form-controls select:focus {
    outline: none;
    border-color: var(--yp-primary);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.16);
}

.mp-co-field textarea {
    resize: vertical;
    min-height: 4.5rem;
    line-height: 1.4;
}

.mp-checkout-theme-picker {
    margin: 0;
    padding: 0;
    border: 0;
}

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

.mp-checkout-theme-option {
    display: block;
    margin: 0;
    cursor: pointer;
}

.mp-checkout-theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mp-checkout-theme-card {
    display: grid;
    gap: 0.55rem;
    height: 100%;
    padding: 0.55rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mp-checkout-theme-option:hover .mp-checkout-theme-card {
    border-color: #c7cdd8;
}

.mp-checkout-theme-option:has(input:checked) .mp-checkout-theme-card {
    border-color: var(--yp-primary);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.14);
}

.mp-checkout-theme-swatch {
    display: block;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(16, 24, 40, 0.08);
    background: var(--swatch-bg);
    aspect-ratio: 16 / 10;
    padding: 0.55rem;
}

.mp-checkout-theme-option.is-dark .mp-checkout-theme-swatch {
    border-color: rgba(255, 255, 255, 0.12);
}

.mp-checkout-theme-mini {
    display: grid;
    gap: 0.35rem;
    width: 70%;
}

.mp-checkout-theme-mini-bar {
    height: 0.35rem;
    width: 42%;
    border-radius: 999px;
    background: var(--swatch-primary);
}

.mp-checkout-theme-mini-line {
    height: 0.28rem;
    width: 78%;
    border-radius: 999px;
    background: color-mix(in srgb, var(--swatch-text) 28%, transparent);
}

.mp-checkout-theme-mini-btn {
    height: 0.7rem;
    width: 58%;
    margin-top: 0.15rem;
    border-radius: 0.35rem;
    background: var(--swatch-button);
}

.mp-checkout-theme-meta {
    display: grid;
    gap: 0.12rem;
    padding: 0 0.15rem 0.1rem;
}

.mp-checkout-theme-meta strong {
    font-size: 0.86rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.mp-checkout-theme-meta span {
    font-size: 0.72rem;
    font-weight: 500;
    color: #667085;
    line-height: 1.3;
}

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

.mp-co-color {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    margin: 0;
    padding: 0.45rem 0.5rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fafbfc;
    cursor: pointer;
}

.mp-co-color-swatch {
    position: relative;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(16, 24, 40, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.mp-co-color-swatch input[type="color"] {
    position: absolute;
    inset: -20%;
    width: 140%;
    height: 140%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
}

.mp-co-color-meta {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
}

.mp-co-color-meta strong {
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.mp-co-color-meta span {
    font-size: 0.72rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #667085;
}

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

.mp-co-seg-option {
    display: block;
    margin: 0;
    cursor: pointer;
}

.mp-co-seg-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mp-co-seg-option > span {
    display: grid;
    gap: 0.1rem;
    justify-items: center;
    text-align: center;
    min-height: 3.1rem;
    padding: 0.55rem 0.4rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mp-co-seg-option > span strong {
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.mp-co-seg-option > span small {
    font-size: 0.68rem;
    font-weight: 500;
    color: #667085;
}

.mp-co-seg-option:hover > span {
    border-color: #c7cdd8;
}

.mp-co-seg-option:has(input:checked) > span {
    border-color: var(--yp-primary);
    background: rgba(11, 165, 236, 0.06);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.12);
}

.mp-co-radius-chip {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    padding: 0.45rem 0.85rem !important;
    border: 0 !important;
    background: #f2f4f7 !important;
    color: var(--yp-headline);
    font-size: 0.78rem;
    font-weight: 650;
    box-shadow: none !important;
}

.mp-co-radius-chip.radius-sm {
    border-radius: 0.25rem !important;
}

.mp-co-radius-chip.radius-md {
    border-radius: 0.55rem !important;
}

.mp-co-radius-chip.radius-lg {
    border-radius: 0.95rem !important;
}

.mp-co-seg-radius .mp-co-seg-option > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.35rem;
    background: transparent;
    border-style: dashed;
}

.mp-co-seg-radius .mp-co-seg-option:has(input:checked) > span {
    border-style: solid;
}

.mp-checkout-activate-check {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    margin: 0.15rem 0 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
}

.mp-checkout-activate-check input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
}

.mp-checkout-activate-check span {
    display: grid;
    gap: 0.15rem;
}

.mp-checkout-activate-check strong {
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.mp-checkout-activate-check small {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--yp-body);
    line-height: 1.35;
}

.mp-checkout-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    position: sticky;
    bottom: 0.75rem;
    z-index: 2;
    padding: 0.75rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.mp-checkout-form-actions .btn {
    margin-top: 0;
}

.mp-checkout-form-preview {
    position: sticky;
    top: 1rem;
    padding: 0.95rem;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(11, 165, 236, 0.08), transparent 55%),
        #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.mp-checkout-form-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.mp-checkout-form-preview-head h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--yp-headline);
}

.mp-checkout-form-preview-head .muted {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
}

.mp-co-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(2, 122, 72, 0.08);
    color: #027a48;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mp-co-live-pill i {
    font-size: 0.45rem;
}

.mp-co-device {
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2f6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mp-co-device-chrome {
    display: flex;
    gap: 0.35rem;
    padding: 0.55rem 0.7rem;
    background: #f8fafc;
    border-bottom: 1px solid #e4e7ec;
}

.mp-co-device-chrome span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #d0d5dd;
}

.mp-co-device-chrome span:nth-child(1) { background: #f97066; }
.mp-co-device-chrome span:nth-child(2) { background: #fdb022; }
.mp-co-device-chrome span:nth-child(3) { background: #32d583; }

.mp-co-device-screen {
    min-height: 18rem;
}

.mp-co-device-screen .yp-checkout-preview {
    min-height: 18rem;
}

.admin-checkout-readonly {
    display: grid;
    gap: 1rem;
}

.admin-checkout-readonly-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
}

.admin-checkout-readonly-meta strong {
    color: var(--yp-headline);
}

.admin-checkout-readonly-preview {
    max-width: 28rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    overflow: hidden;
}

/* Mock checkout preview shell */
.yp-checkout-preview {
    --co-primary: #0BA5EC;
    --co-bg: #FFFFFF;
    --co-text: #101828;
    --co-button: #AA0303;
    --co-font: "Inter", system-ui, -apple-system, sans-serif;
    --co-radius: 0.55rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    font-family: var(--co-font);
    color: var(--co-text);
    background: #e8eef5;
    min-height: 18rem;
}

.yp-checkout-preview.radius-sm { --co-radius: 0.28rem; }
.yp-checkout-preview.radius-md { --co-radius: 0.55rem; }
.yp-checkout-preview.radius-lg { --co-radius: 1.05rem; }

.yp-checkout-preview-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.yp-checkout-preview-shell {
    position: relative;
    z-index: 1;
    min-height: 18rem;
    display: grid;
    width: 100%;
}

/* Layouts */
.yp-checkout-preview.layout-centered .yp-checkout-preview-shell,
.yp-checkout-preview.layout-compact .yp-checkout-preview-shell {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 1rem;
}

.yp-checkout-preview.layout-centered .yp-checkout-preview-brand,
.yp-checkout-preview.layout-compact .yp-checkout-preview-brand {
    display: none;
}

.yp-checkout-preview.layout-centered .yp-checkout-preview-panel {
    width: min(100%, 22rem);
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1);
}

.yp-checkout-preview.layout-compact .yp-checkout-preview-panel {
    width: min(100%, 20rem);
    padding: 0.85rem 0.9rem 0.95rem;
    border-radius: 0.55rem;
    gap: 0.55rem;
}

.yp-checkout-preview.layout-compact .yp-checkout-preview-head h3 {
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.yp-checkout-preview.layout-compact .yp-checkout-preview-logo-wrap .yp-checkout-preview-logo,
.yp-checkout-preview.layout-compact .yp-checkout-preview-yp-logo {
    height: 1.35rem;
}

.yp-checkout-preview.layout-split .yp-checkout-preview-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.yp-checkout-preview.layout-split .yp-checkout-preview-logo-wrap {
    display: none;
}

.yp-checkout-preview.layout-split .yp-checkout-preview-panel {
    border-radius: 0;
    box-shadow: none;
}

.yp-checkout-preview-brand {
    display: flex;
    align-items: flex-end;
    padding: 1.15rem;
    color: #fff;
    background:
        radial-gradient(420px 220px at 10% 0%, color-mix(in srgb, var(--co-primary) 40%, transparent), transparent 55%),
        linear-gradient(160deg, #07053f 0%, #090753 48%, #0b1f5c 100%);
}

.yp-checkout-preview-brand-inner {
    display: grid;
    gap: 0.4rem;
    max-width: 14rem;
}

.yp-checkout-preview-brand img,
.yp-checkout-preview-logo,
.yp-checkout-preview-yp-logo {
    display: block;
    height: 1.6rem;
    width: auto;
    max-width: 7.5rem;
    object-fit: contain;
}

.yp-checkout-preview-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 1.6rem;
}

.yp-checkout-preview-powered {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: color-mix(in srgb, var(--co-text) 58%, transparent);
}

.yp-checkout-preview-powered img {
    display: block;
    height: 0.95rem;
    width: auto;
    max-width: 4.5rem;
    object-fit: contain;
    opacity: 0.92;
}

.yp-checkout-preview-brand-title {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.yp-checkout-preview-brand-sub {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    opacity: 0.78;
}

.yp-checkout-preview-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--co-primary) 18%, transparent);
    color: var(--co-primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.yp-checkout-preview-brand .yp-checkout-preview-mark {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.yp-checkout-preview-panel {
    display: grid;
    gap: 0.75rem;
    padding: 1.15rem 1.1rem 1.2rem;
    color: var(--co-text);
    background: var(--co-bg);
    min-width: 0;
}

.yp-checkout-preview-head h3 {
    margin: 0.45rem 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--co-text);
    word-break: break-word;
}

.yp-checkout-preview-head p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: color-mix(in srgb, var(--co-text) 68%, transparent);
    word-break: break-word;
}

.yp-checkout-preview-amount {
    margin: 0 0 0.55rem;
    font-size: 1.45rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--co-text);
    line-height: 1.15;
}

.yp-checkout-preview-amount .yp-checkout-preview-currency {
    font-size: 0.82rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--co-text) 58%, transparent);
}

.yp-checkout-continue-amount[hidden] {
    display: none !important;
}

.yp-checkout-continue-amount {
    margin-left: 0.45rem;
    padding-left: 0.45rem;
    border-left: 1px solid color-mix(in srgb, #fff 35%, transparent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.yp-checkout-preview-txn {
    display: grid;
    gap: 0;
    padding: 0.75rem 0.8rem 0.7rem;
    border-radius: var(--co-radius);
    background: color-mix(in srgb, var(--co-primary) 8%, var(--co-bg));
    border: 1px solid color-mix(in srgb, var(--co-primary) 18%, transparent);
}

.yp-checkout-preview-meta {
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.yp-checkout-preview-meta div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.65rem;
    font-size: 0.78rem;
}

.yp-checkout-preview-meta dt {
    flex: 0 0 auto;
    width: 5.5rem;
    max-width: 100%;
    margin: 0;
    font-weight: 500;
    color: color-mix(in srgb, var(--co-text) 58%, transparent);
}

.yp-checkout-preview-meta dd {
    flex: 1 1 10rem;
    margin: 0;
    min-width: 0;
    font-weight: 600;
    color: var(--co-text);
    overflow-wrap: break-word;
    line-height: 1.35;
}

.yp-checkout-preview-timer {
    margin: 0.55rem 0 0;
    padding-top: 0.55rem;
    border-top: 1px solid color-mix(in srgb, var(--co-text) 14%, transparent);
    font-size: 0.74rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--co-text) 62%, transparent);
}

.yp-checkout-preview-timer strong {
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    color: #b42318;
}

.yp-checkout-preview-methods {
    display: grid;
    gap: 0.45rem;
}

.yp-checkout-preview-methods-title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--co-text) 62%, transparent);
}

.yp-checkout-preview-methods-empty {
    margin: 0;
    padding: 0.7rem 0.75rem;
    border: 1px dashed color-mix(in srgb, var(--co-text) 18%, transparent);
    border-radius: var(--co-radius);
    font-size: 0.78rem;
    color: color-mix(in srgb, var(--co-text) 65%, transparent);
}

.yp-checkout-preview-method-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.yp-checkout-preview-method-list--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 420px) {
    .yp-checkout-preview-method-list--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.yp-checkout-preview-method {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.6rem;
    border: 1px solid color-mix(in srgb, var(--co-text) 14%, transparent);
    border-radius: var(--co-radius);
    background: color-mix(in srgb, var(--co-bg) 94%, var(--co-text));
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: not-allowed;
}

.yp-checkout-preview-method img {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    border-radius: 0.35rem;
    background: #fff;
}

.yp-checkout-preview-method-copy {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.yp-checkout-preview-method-copy strong {
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--co-text);
    line-height: 1.2;
}

.yp-checkout-preview-method-copy small {
    font-size: 0.68rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--co-text) 62%, transparent);
    line-height: 1.25;
}

.yp-checkout-preview-method-list--grid .yp-checkout-preview-method {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 4.6rem;
    padding: 0.55rem 0.35rem;
    gap: 0.35rem;
}

.yp-checkout-preview-method-list--grid .yp-checkout-preview-method-copy {
    justify-items: center;
}

.yp-checkout-preview-method-list--grid .yp-checkout-preview-method-copy strong {
    font-size: 0.72rem;
    line-height: 1.15;
}

.yp-checkout-preview-method-list--grid .yp-checkout-preview-method-copy small {
    display: none;
}

.mp-co-seg-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mp-co-hint {
    margin: -0.15rem 0 0.55rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #667085;
    line-height: 1.35;
}

.mp-co-loader-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.mp-co-loader-option {
    display: block;
    margin: 0;
    cursor: pointer;
}

.mp-co-loader-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mp-co-loader-card {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    min-height: 4.4rem;
    padding: 0.55rem 0.35rem 0.45rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mp-co-loader-card strong {
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.mp-co-loader-option:hover .mp-co-loader-card {
    border-color: #c7cdd8;
}

.mp-co-loader-option:has(input:checked) .mp-co-loader-card {
    border-color: var(--yp-primary);
    background: rgba(11, 165, 236, 0.06);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.12);
}

.mp-co-preview-tools {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.mp-co-loader-toggle {
    margin: 0;
    padding: 0.35rem 0.65rem;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: var(--yp-headline);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 650;
    cursor: pointer;
}

.mp-co-loader-toggle:hover {
    border-color: #98a2b3;
}

.mp-co-loader-toggle[aria-pressed="true"] {
    border-color: var(--yp-primary);
    background: rgba(11, 165, 236, 0.08);
    color: #026aa2;
}

.yp-loader {
    --ldr: #0BA5EC;
    --ldr-accent: #AA0303;
    position: relative;
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    flex: 0 0 auto;
}

.yp-loader .yp-ldr {
    display: none;
}

.yp-loader.type-ring .yp-ldr-ring,
.yp-loader.type-pulse .yp-ldr-pulse,
.yp-loader.type-orbit .yp-ldr-orbit,
.yp-loader.type-dual .yp-ldr-dual {
    display: block;
}

.yp-loader.type-dots .yp-ldr-dots,
.yp-loader.type-bars .yp-ldr-bars {
    display: flex;
}

.yp-ldr-ring,
.yp-ldr-dual,
.yp-ldr-pulse,
.yp-ldr-orbit {
    width: 1.45rem;
    height: 1.45rem;
}

.yp-loader.is-lg {
    width: 2.8rem;
    height: 2.8rem;
}

.yp-loader.is-lg .yp-ldr-ring,
.yp-loader.is-lg .yp-ldr-dual,
.yp-loader.is-lg .yp-ldr-pulse,
.yp-loader.is-lg .yp-ldr-orbit {
    width: 2.4rem;
    height: 2.4rem;
}

.yp-ldr-ring {
    border-radius: 50%;
    border: 2.5px solid var(--ldr-accent);
    border-top-color: var(--ldr);
    animation: yp-ldr-spin 0.7s linear infinite;
}

.yp-ldr-dual {
    border-radius: 50%;
    border: 2.5px solid transparent;
    border-top-color: var(--ldr);
    border-right-color: var(--ldr-accent);
    border-bottom-color: var(--ldr);
    animation: yp-ldr-spin 0.75s linear infinite;
}

.yp-ldr-dots,
.yp-ldr-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.22rem;
    height: 1.45rem;
}

.yp-loader.is-lg .yp-ldr-dots,
.yp-loader.is-lg .yp-ldr-bars {
    height: 2.4rem;
    gap: 0.32rem;
}

.yp-ldr-dots i,
.yp-ldr-bars i,
.yp-ldr-orbit i {
    display: block;
}

.yp-ldr-dots i {
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 50%;
    background: var(--ldr);
    animation: yp-ldr-bounce 0.9s ease-in-out infinite;
}

.yp-loader.is-lg .yp-ldr-dots i {
    width: 0.55rem;
    height: 0.55rem;
}

.yp-ldr-dots i:nth-child(2),
.yp-ldr-bars i:nth-child(2),
.yp-ldr-orbit i:nth-child(2) {
    background: var(--ldr-accent);
    animation-delay: 0.15s;
}

.yp-ldr-dots i:nth-child(3),
.yp-ldr-bars i:nth-child(3) {
    animation-delay: 0.3s;
}

.yp-ldr-bars i {
    width: 0.26rem;
    height: 100%;
    border-radius: 999px;
    background: var(--ldr);
    transform-origin: center bottom;
    animation: yp-ldr-bars 0.8s ease-in-out infinite;
}

.yp-loader.is-lg .yp-ldr-bars i {
    width: 0.38rem;
}

.yp-ldr-pulse {
    border-radius: 50%;
    background: var(--ldr);
    animation: yp-ldr-pulse 1.15s ease-out infinite;
}

.yp-ldr-orbit {
    position: relative;
    animation: yp-ldr-spin 1s linear infinite;
}

.yp-ldr-orbit i {
    position: absolute;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--ldr);
    left: 50%;
    margin-left: -0.2rem;
}

.yp-loader.is-lg .yp-ldr-orbit i {
    width: 0.62rem;
    height: 0.62rem;
    margin-left: -0.31rem;
}

.yp-ldr-orbit i:first-child {
    top: 0;
}

.yp-ldr-orbit i:last-child {
    bottom: 0;
}

.yp-checkout-preview-loader {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--co-bg) 78%, transparent);
    backdrop-filter: blur(3px);
}

.yp-checkout-preview.is-loader-open .yp-checkout-preview-loader {
    display: flex;
}

.yp-checkout-preview-loader-card {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    min-width: 9rem;
    padding: 1.15rem 1.35rem 1rem;
    border-radius: 0.9rem;
    background: var(--co-bg);
    color: var(--co-text);
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.16);
}

.yp-checkout-preview-loader-card p {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 650;
}

@keyframes yp-ldr-spin {
    to { transform: rotate(360deg); }
}

@keyframes yp-ldr-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
    40% { transform: translateY(-0.45rem); opacity: 1; }
}

@keyframes yp-ldr-bars {
    0%, 100% { transform: scaleY(0.35); }
    50% { transform: scaleY(1); }
}

@keyframes yp-ldr-pulse {
    0% { transform: scale(0.72); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ldr-accent) 55%, transparent); }
    70% { transform: scale(1); box-shadow: 0 0 0 0.55rem transparent; }
    100% { transform: scale(0.72); box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .yp-ldr-ring,
    .yp-ldr-dual,
    .yp-ldr-dots i,
    .yp-ldr-bars i,
    .yp-ldr-pulse,
    .yp-ldr-orbit {
        animation: none;
    }
}

.yp-checkout-preview-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    margin: 0.15rem 0 0;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: var(--co-radius);
    background: var(--co-button);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    cursor: not-allowed;
    opacity: 0.95;
}

.yp-checkout-preview-note {
    margin: 0;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.55;
}

/* —— Theme: Default (brand soft card) —— */
.yp-checkout-preview.theme-default {
    background:
        radial-gradient(500px 220px at 12% 0%, rgba(11, 165, 236, 0.18), transparent 55%),
        radial-gradient(420px 200px at 100% 100%, rgba(170, 3, 3, 0.08), transparent 50%),
        #e8eef5;
}

.yp-checkout-preview.theme-default .yp-checkout-preview-brand {
    background:
        radial-gradient(420px 220px at 10% 0%, rgba(11, 165, 236, 0.4), transparent 55%),
        linear-gradient(160deg, #07053f 0%, #090753 48%, #0b1f5c 100%);
}

.yp-checkout-preview.theme-default.layout-centered .yp-checkout-preview-panel {
    border: 1px solid rgba(11, 165, 236, 0.12);
}

/* —— Theme: Minimal (paper / hairline) —— */
.yp-checkout-preview.theme-minimal {
    background: #f4f4f5;
}

.yp-checkout-preview.theme-minimal .yp-checkout-preview-atmosphere {
    background-image:
        linear-gradient(rgba(24, 24, 27, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 24, 27, 0.04) 1px, transparent 1px);
    background-size: 18px 18px;
}

.yp-checkout-preview.theme-minimal.layout-centered .yp-checkout-preview-panel,
.yp-checkout-preview.theme-minimal.layout-compact .yp-checkout-preview-panel {
    box-shadow: none;
    border: 1px solid #e4e4e7;
    border-radius: 0.35rem;
}

.yp-checkout-preview.theme-minimal .yp-checkout-preview-brand {
    background: #18181b;
}

.yp-checkout-preview.theme-minimal .yp-checkout-preview-methods-title {
    letter-spacing: 0.08em;
}

.yp-checkout-preview.theme-minimal .yp-checkout-preview-txn {
    background: transparent;
    border: 1px solid #e4e4e7;
    border-radius: 0.25rem;
}

.yp-checkout-preview.theme-minimal .yp-checkout-preview-method {
    background: #fff;
    border-color: #e4e4e7;
    border-radius: 0.25rem;
}

.yp-checkout-preview.theme-minimal .yp-checkout-preview-pay {
    background: var(--co-button);
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
}

.yp-checkout-preview.theme-minimal .yp-checkout-preview-mark {
    border-radius: 0.2rem;
    background: #18181b;
    color: #fff;
}

/* —— Theme: Bold (electric split / loud CTA) —— */
.yp-checkout-preview.theme-bold {
    background:
        radial-gradient(520px 260px at 0% 0%, rgba(0, 87, 255, 0.22), transparent 55%),
        radial-gradient(420px 220px at 100% 100%, rgba(255, 45, 85, 0.14), transparent 50%),
        #dbe7ff;
}

.yp-checkout-preview.theme-bold .yp-checkout-preview-brand {
    background:
        radial-gradient(360px 200px at 80% 20%, rgba(255, 255, 255, 0.2), transparent 50%),
        linear-gradient(145deg, #0036c7 0%, #0057ff 48%, #3d7cff 100%);
}

.yp-checkout-preview.theme-bold.layout-centered .yp-checkout-preview-panel,
.yp-checkout-preview.theme-bold.layout-split .yp-checkout-preview-panel {
    box-shadow: 0 18px 40px rgba(4, 16, 51, 0.16);
}

.yp-checkout-preview.theme-bold .yp-checkout-preview-head h3 {
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.yp-checkout-preview.theme-bold .yp-checkout-preview-txn {
    background: #fff;
    border: 2px solid color-mix(in srgb, var(--co-primary) 35%, transparent);
}

.yp-checkout-preview.theme-bold .yp-checkout-preview-amount {
    font-size: 1.65rem;
    color: var(--co-primary);
}

.yp-checkout-preview.theme-bold .yp-checkout-preview-pay {
    padding: 0.9rem 1rem;
    font-size: 0.98rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--co-button) 35%, transparent);
}

.yp-checkout-preview.theme-bold .yp-checkout-preview-method {
    border-width: 2px;
    background: #fff;
}

/* —— Theme: Night (dark + cyan glow) —— */
.yp-checkout-preview.theme-night {
    background: #030712;
    color: #f8fafc;
}

.yp-checkout-preview.theme-night .yp-checkout-preview-atmosphere {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.16), transparent 28%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.14), transparent 30%),
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: auto, auto, 22px 22px, 22px 22px;
}

.yp-checkout-preview.theme-night .yp-checkout-preview-brand {
    background:
        radial-gradient(380px 220px at 20% 0%, rgba(34, 211, 238, 0.28), transparent 55%),
        linear-gradient(165deg, #020617 0%, #0f172a 55%, #111827 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.yp-checkout-preview.theme-night.layout-centered .yp-checkout-preview-panel,
.yp-checkout-preview.theme-night.layout-compact .yp-checkout-preview-panel {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

.yp-checkout-preview.theme-night.layout-split .yp-checkout-preview-panel {
    background: #0b1220;
}

.yp-checkout-preview.theme-night .yp-checkout-preview-txn {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.28);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.08);
}

.yp-checkout-preview.theme-night .yp-checkout-preview-timer strong {
    color: #fb7185;
}

.yp-checkout-preview.theme-night .yp-checkout-preview-method {
    background: rgba(2, 6, 23, 0.65);
    border-color: rgba(148, 163, 184, 0.22);
}

.yp-checkout-preview.theme-night .yp-checkout-preview-method img {
    background: #0f172a;
}

.yp-checkout-preview.theme-night .yp-checkout-preview-pay {
    color: #041016;
    font-weight: 750;
    box-shadow: 0 0 24px color-mix(in srgb, var(--co-button) 45%, transparent);
}

.yp-checkout-preview.theme-night .yp-checkout-preview-mark {
    background: rgba(34, 211, 238, 0.14);
    color: #22d3ee;
}

.yp-checkout-preview.theme-night .yp-checkout-preview-note,
.yp-checkout-preview.theme-night .yp-checkout-preview-powered {
    opacity: 0.55;
}

.mp-checkout-card-preview .yp-checkout-preview {
    min-height: 15rem;
    pointer-events: none;
}

.mp-checkout-card-preview .yp-checkout-preview-shell {
    min-height: 15rem;
}

.mp-checkout-card-preview .yp-checkout-preview.layout-centered .yp-checkout-preview-panel,
.mp-checkout-card-preview .yp-checkout-preview.layout-compact .yp-checkout-preview-panel {
    width: min(100%, 17.5rem);
}

.admin-checkout-readonly-preview {
    max-width: min(100%, 28rem);
}

@media (max-width: 1100px) {
    .mp-checkout-form-layout {
        grid-template-columns: 1fr;
    }

    .mp-checkout-form-preview {
        position: static;
        order: -1;
    }
}

@media (max-width: 960px) {
    .yp-checkout-preview.layout-split .yp-checkout-preview-shell {
        grid-template-columns: 1fr;
    }

    .yp-checkout-preview.layout-split .yp-checkout-preview-brand {
        min-height: 6.5rem;
        align-items: center;
        padding: 1rem 1.1rem;
    }

    .yp-checkout-preview.layout-split .yp-checkout-preview-brand-sub {
        display: none;
    }

    .yp-checkout-preview.layout-split .yp-checkout-preview-logo-wrap {
        display: none;
    }
}

@media (max-width: 720px) {
    .mp-checkout-grid {
        grid-template-columns: 1fr;
    }

    .yp-checkout-preview,
    .mp-co-device-screen .yp-checkout-preview,
    .mp-checkout-card-preview .yp-checkout-preview {
        min-height: 0;
    }

    .yp-checkout-preview-shell,
    .mp-checkout-card-preview .yp-checkout-preview-shell {
        min-height: 0;
    }

    .yp-checkout-preview.layout-centered .yp-checkout-preview-shell,
    .yp-checkout-preview.layout-compact .yp-checkout-preview-shell {
        padding: 0.75rem;
    }

    .yp-checkout-preview.layout-centered .yp-checkout-preview-panel,
    .yp-checkout-preview.layout-compact .yp-checkout-preview-panel,
    .mp-checkout-card-preview .yp-checkout-preview.layout-centered .yp-checkout-preview-panel,
    .mp-checkout-card-preview .yp-checkout-preview.layout-compact .yp-checkout-preview-panel {
        width: 100%;
    }

    .yp-checkout-preview-panel {
        padding: 1rem 0.95rem 1.05rem;
    }

    .yp-checkout-preview.theme-bold .yp-checkout-preview-head h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .mp-checkout-theme-grid,
    .mp-checkout-color-grid {
        grid-template-columns: 1fr;
    }

    .mp-co-seg {
        grid-template-columns: 1fr;
    }

    .mp-checkout-form-actions {
        position: static;
    }

    .admin-checkout-readonly-preview {
        max-width: 100%;
    }
}

/* —— API Keys —— */
.api-keys {
    display: grid;
    gap: 0.85rem;
}

.api-keys-table {
    width: 100%;
}

.api-keys-mask {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--yp-body);
}

.api-keys-status-form {
    margin: 0;
    display: inline-flex;
}

.api-keys-value-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.api-keys-value {
    display: block;
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.45rem 0.6rem;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--yp-headline);
    word-break: break-all;
}

.api-keys-value.is-masked {
    color: var(--yp-body);
}

.api-keys-reveal-sheet {
    width: min(32rem, 100%);
}

.api-keys-reveal-list {
    display: grid;
    gap: 0.75rem;
}

.api-keys-reveal-list label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--yp-headline);
}

.api-keys-reveal-warning {
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(170, 3, 3, 0.22);
    border-radius: 10px;
    background: rgba(170, 3, 3, 0.06);
    color: var(--yp-headline);
    font-size: 0.82rem;
    line-height: 1.4;
}


/* —— Webhooks —— */
.webhooks {
    display: grid;
    gap: 0.85rem;
}

.webhooks-table {
    min-width: 36rem;
}

.webhooks-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    word-break: break-all;
}

.webhooks-event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.webhooks-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.webhooks-modal-sheet {
    width: min(34rem, 100%);
}

.webhooks-form {
    display: grid;
    gap: 0.9rem;
}

.webhooks-form > label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--yp-headline);
}

.webhooks-form input[type="url"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--yp-headline);
    background: #fff;
}

.webhooks-form input[type="url"]:focus {
    outline: none;
    border-color: var(--yp-primary);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.18);
}

.webhooks-events {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.webhooks-events legend {
    padding: 0;
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.webhooks-events-grid {
    display: grid;
    gap: 0.45rem;
    max-height: 16rem;
    overflow: auto;
    padding-right: 0.15rem;
}

.webhooks-event-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.webhooks-event-option:has(input:checked) {
    border-color: rgba(11, 165, 236, 0.45);
    background: rgba(11, 165, 236, 0.05);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.1);
}

.webhooks-event-option input {
    margin-top: 0.15rem;
}

.webhooks-event-option strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.webhooks-event-option small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--yp-body);
    line-height: 1.35;
}

/* —— Merchant docs —— */
.merchant-docs-layout {
    align-items: start;
    /* overflow:hidden on .merchant-access-layout breaks position:sticky */
    overflow: visible;
}

.merchant-docs-sidebar {
    position: sticky;
    top: 0.75rem;
    align-self: start;
    min-width: 11.5rem;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    border-radius: 14px 0 0 14px;
}

.merchant-docs-main {
    padding-top: 0.85rem;
    min-height: 0;
}

.merchant-docs-article {
    display: grid;
    gap: 1.35rem;
    max-width: 52rem;
}

.merchant-docs-section {
    scroll-margin-top: 5rem;
}

.merchant-docs-section > h2 {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--yp-headline);
    letter-spacing: -0.01em;
}

.merchant-docs-section > h3 {
    margin: 1rem 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--yp-headline);
}

.merchant-docs-section > p,
.merchant-docs-section li {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--yp-body);
}

.merchant-docs-section > p {
    margin: 0 0 0.65rem;
}

.merchant-docs-section a {
    color: #0b5cab;
    font-weight: 600;
    text-decoration: none;
}

.merchant-docs-section a:hover {
    text-decoration: underline;
}

.merchant-docs-muted {
    color: #667085 !important;
    font-size: 0.82rem !important;
}

.merchant-docs-pill {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 0.35rem;
    background: #f2f4f7;
    font-size: 0.8rem;
    font-weight: 600;
}

.merchant-docs-steps,
.merchant-docs-checklist {
    margin: 0.35rem 0 0.75rem;
    padding-left: 1.2rem;
}

.merchant-docs-steps li,
.merchant-docs-checklist li {
    margin: 0.3rem 0;
}

.merchant-docs-callout {
    margin: 0.75rem 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.65rem;
    background: #f8fafc;
}

.merchant-docs-callout-success {
    border-color: rgba(18, 183, 106, 0.35);
    background: rgba(18, 183, 106, 0.06);
}

.merchant-docs-callout strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
    color: var(--yp-headline);
}

.merchant-docs-callout p,
.merchant-docs-callout li {
    margin: 0.25rem 0;
    font-size: 0.84rem;
    line-height: 1.45;
}

.merchant-docs-callout ul {
    margin: 0.35rem 0;
    padding-left: 1.1rem;
}

.merchant-docs-code {
    margin: 0.5rem 0 0.85rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.65rem;
    background: #0f172a;
    color: #e2e8f0;
    overflow-x: auto;
    font-size: 0.78rem;
    line-height: 1.5;
}

.merchant-docs-code code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: pre;
}

.merchant-docs-table {
    width: 100%;
    margin: 0.5rem 0 0.85rem;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.merchant-docs-table th,
.merchant-docs-table td {
    padding: 0.5rem 0.6rem;
    border: 1px solid #e4e7ec;
    text-align: left;
    vertical-align: top;
    line-height: 1.4;
}

.merchant-docs-table th {
    background: #f8fafc;
    font-weight: 650;
    color: var(--yp-headline);
}

.merchant-docs-table code {
    font-size: 0.78rem;
}

.merchant-docs-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.65rem 0 0.9rem;
}

.merchant-docs-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.65rem;
    background: #fff;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.merchant-docs-card:hover {
    border-color: rgba(11, 92, 171, 0.35);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.merchant-docs-card strong {
    font-size: 0.88rem;
    color: var(--yp-headline);
}

.merchant-docs-card span {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #667085;
}

.merchant-docs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0.4rem 0 0.75rem;
    padding: 0;
}

.merchant-docs-chips li code {
    display: inline-block;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
    background: #f2f4f7;
    font-size: 0.76rem;
    font-weight: 600;
}

.merchant-docs-postman {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1rem;
    margin: 0.65rem 0;
    padding: 0.85rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.75rem;
    background: #fff;
}

.merchant-docs-postman h3 {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
}

@media (max-width: 720px) {
    .merchant-docs-cards,
    .merchant-docs-postman {
        grid-template-columns: 1fr;
    }

    .merchant-docs-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        border-radius: 0;
    }
}

/* —— Live hosted checkout (interactive) —— */
.yp-checkout-live-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.yp-checkout-live {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Full-page live checkout — larger than the admin mock preview */
.yp-checkout-live .yp-checkout-preview-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

.yp-checkout-live.layout-centered .yp-checkout-preview-shell,
.yp-checkout-live.layout-compact .yp-checkout-preview-shell {
    padding: 1.75rem 1.25rem;
}

.yp-checkout-live .yp-checkout-preview-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.yp-checkout-live.layout-centered .yp-checkout-preview-panel {
    width: min(100%, 28rem);
    max-height: calc(100dvh - 3.5rem);
    padding: 1.65rem 1.5rem 1.1rem;
    gap: 1rem;
}

.yp-checkout-live.layout-compact .yp-checkout-preview-panel {
    width: min(100%, 26rem);
    max-height: calc(100dvh - 3.5rem);
    padding: 1.35rem 1.25rem 1rem;
    gap: 0.85rem;
}

.yp-checkout-live.layout-split .yp-checkout-preview-shell {
    height: 100dvh;
    min-height: 100dvh;
}

.yp-checkout-live.layout-split .yp-checkout-preview-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100dvh;
    padding: 2rem 1.75rem 1.25rem;
    gap: 1.1rem;
    max-width: 32rem;
    margin-inline: auto;
    width: 100%;
    min-height: 0;
}

.yp-checkout-live .yp-checkout-preview-head,
.yp-checkout-live .yp-checkout-preview-txn {
    flex-shrink: 0;
}

.yp-checkout-live .yp-checkout-preview-methods {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.15rem;
}

.yp-checkout-live .yp-checkout-preview-actions {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: grid;
    gap: 0;
    margin-top: auto;
    padding-top: 0.85rem;
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
    background: var(--co-bg);
    box-shadow: 0 -0.65rem 1rem -0.85rem rgba(16, 24, 40, 0.22);
}

.yp-checkout-live .yp-checkout-preview-actions .yp-checkout-preview-pay {
    margin-top: 0;
}

.yp-checkout-live .yp-checkout-preview-actions .yp-checkout-live-cancel {
    margin-top: 0.55rem;
}

.yp-checkout-live .yp-checkout-preview-actions .yp-checkout-preview-powered {
    margin-top: 0.65rem;
}

.yp-checkout-live .yp-checkout-preview-head h3 {
    font-size: 1.35rem;
    margin-top: 0.55rem;
}

.yp-checkout-live .yp-checkout-preview-head p {
    font-size: 0.92rem;
    line-height: 1.45;
}

.yp-checkout-live .yp-checkout-preview-amount {
    font-size: 1.85rem;
}

.yp-checkout-live .yp-checkout-preview-amount .yp-checkout-preview-currency {
    font-size: 0.95rem;
}

.yp-checkout-live .yp-checkout-preview-txn {
    padding: 0.95rem 1rem 0.9rem;
}

.yp-checkout-live .yp-checkout-preview-meta dt {
    font-size: 0.72rem;
}

.yp-checkout-live .yp-checkout-preview-meta dd {
    font-size: 0.9rem;
}

.yp-checkout-live .yp-checkout-preview-timer {
    font-size: 0.86rem;
}

.yp-checkout-live .yp-checkout-preview-methods-title {
    font-size: 0.92rem;
}

.yp-checkout-live .yp-checkout-preview-method {
    padding: 0.75rem 0.85rem;
    gap: 0.7rem;
}

.yp-checkout-live .yp-checkout-preview-method img {
    width: 2rem;
    height: 2rem;
}

.yp-checkout-live .yp-checkout-preview-method-copy strong {
    font-size: 0.92rem;
}

.yp-checkout-live .yp-checkout-preview-method-list--grid .yp-checkout-preview-method-copy strong {
    font-size: 0.78rem;
}

.yp-checkout-live .yp-checkout-preview-method-list--grid .yp-checkout-preview-method {
    min-height: 5rem;
    padding: 0.7rem 0.4rem;
}

.yp-checkout-live .yp-checkout-preview-pay {
    margin-top: 0.35rem;
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
}

.yp-checkout-live .yp-checkout-preview-logo-wrap .yp-checkout-preview-logo,
.yp-checkout-live .yp-checkout-preview-logo-wrap .yp-checkout-preview-yp-logo {
    height: 2.1rem;
}

@media (min-width: 960px) {
    .yp-checkout-live.layout-centered .yp-checkout-preview-shell,
    .yp-checkout-live.layout-compact .yp-checkout-preview-shell {
        padding: 2.5rem 1.5rem;
    }

    .yp-checkout-live.layout-centered .yp-checkout-preview-panel {
        width: min(100%, 32rem);
        max-height: calc(100dvh - 5rem);
        padding: 2rem 1.85rem 1.25rem;
        gap: 1.15rem;
        border-radius: 1.15rem;
    }

    .yp-checkout-live.layout-compact .yp-checkout-preview-panel {
        width: min(100%, 30rem);
        max-height: calc(100dvh - 5rem);
        padding: 1.75rem 1.6rem 1.15rem;
    }

    .yp-checkout-live.layout-split .yp-checkout-preview-shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    }

    .yp-checkout-live.layout-split .yp-checkout-preview-panel {
        max-width: 36rem;
        padding: 2.5rem 2.25rem 1.35rem;
    }

    .yp-checkout-live .yp-checkout-preview-head h3 {
        font-size: 1.5rem;
    }

    .yp-checkout-live .yp-checkout-preview-amount {
        font-size: 2.15rem;
    }
}

@media (min-width: 1280px) {
    .yp-checkout-live.layout-centered .yp-checkout-preview-panel {
        width: min(100%, 34rem);
    }

    .yp-checkout-live.layout-split .yp-checkout-preview-panel {
        max-width: 38rem;
    }
}

@media (max-width: 960px) {
    .yp-checkout-live.layout-split .yp-checkout-preview-shell {
        height: auto;
        min-height: 100dvh;
    }

    .yp-checkout-live.layout-split .yp-checkout-preview-panel {
        height: auto;
        max-height: none;
        min-height: min(32rem, calc(100dvh - 7rem));
    }
}

.yp-checkout-live .yp-checkout-preview-method:not([disabled]) {
    cursor: pointer;
}

.yp-checkout-live .yp-checkout-preview-method.is-selected {
    outline: 2px solid var(--co-primary);
    outline-offset: 2px;
}

.yp-checkout-live .yp-checkout-preview-method.is-unavailable {
    opacity: 0.55;
    cursor: not-allowed;
}

.yp-checkout-live .yp-checkout-preview-pay:not([disabled]),
.yp-checkout-live .yp-checkout-live-pay-enabled:not([disabled]) {
    cursor: pointer;
    opacity: 1;
}

.yp-checkout-live-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0.55rem 0 0;
    padding: 0.8rem 1.1rem;
    border: 1px solid color-mix(in srgb, var(--co-text) 18%, transparent);
    border-radius: var(--co-radius);
    background: transparent;
    color: var(--co-text);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.yp-checkout-live-cancel:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.yp-checkout-live-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    padding: 1rem;
}

.yp-checkout-live-modal.is-open {
    display: flex;
}

.yp-checkout-live-modal-card {
    width: min(100%, 26rem);
    background: var(--co-bg, #fff);
    color: var(--co-text, #101828);
    border-radius: var(--co-radius, 0.55rem);
    padding: 1.25rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
    font-family: var(--co-font);
}

.yp-checkout-live-modal-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.yp-checkout-live-modal-card > p {
    margin: 0 0 0.85rem;
    opacity: 0.75;
    font-size: 0.88rem;
}

.yp-checkout-live-error {
    color: #c0392b;
    font-size: 0.82rem;
    min-height: 1.2em;
    margin: 0 0 0.65rem !important;
}

.yp-checkout-live-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid color-mix(in srgb, var(--co-text) 18%, transparent);
    border-radius: calc(var(--co-radius, 0.55rem) * 0.7);
    padding: 0.65rem 0.75rem;
    margin-bottom: 1rem;
    background: color-mix(in srgb, var(--co-bg, #fff) 88%, var(--co-text) 4%);
}

.yp-checkout-live-phone span {
    opacity: 0.65;
    font-weight: 600;
}

.yp-checkout-live-phone input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font: inherit;
    color: inherit;
}

.yp-checkout-live-modal-actions {
    display: flex;
    gap: 0.6rem;
}

.yp-checkout-live-modal-actions button {
    flex: 1;
    margin: 0;
}

.yp-checkout-preview-loader.is-open,
.yp-checkout-preview-loader:not([hidden]) {
    display: flex;
}

.yp-checkout-status-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #e8eef5;
    color: #101828;
    font-family: "Inter", system-ui, sans-serif;
}

.yp-checkout-status-card {
    width: min(100%, 26rem);
    background: #fff;
    border-radius: 0.85rem;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 0.65rem 1.9rem rgba(15, 23, 42, 0.08);
}

.yp-checkout-status-card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.yp-checkout-status-card p {
    margin: 0 0 1.25rem;
    color: #667085;
}

.yp-checkout-status-btn {
    display: inline-block;
    text-decoration: none;
    background: var(--co-button, #aa0303);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 0.55rem;
    font-weight: 650;
}

/* —— Static QR public lander —— */
.yp-pay-lander.layout-centered .yp-checkout-preview-panel.yp-pay-lander-panel {
    width: min(100%, 26.5rem);
    gap: 1.15rem;
    padding: 1.75rem 1.55rem 1.35rem;
    border-radius: 1.1rem;
    box-shadow:
        0 0.15rem 0.35rem rgba(15, 23, 42, 0.04),
        0 1rem 2.4rem rgba(15, 23, 42, 0.08);
}

.yp-pay-lander-head {
    display: grid;
    gap: 0.85rem;
}

.yp-pay-lander-identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.yp-pay-lander-avatar {
    flex-shrink: 0;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #f2f4f7;
    border: 1px solid #e4e7ec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yp-pay-lander-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
    box-sizing: border-box;
}

.yp-pay-lander-avatar--mark {
    background: linear-gradient(145deg, color-mix(in srgb, var(--co-primary) 18%, #fff), #f8fafc);
    border-color: color-mix(in srgb, var(--co-primary) 22%, #e4e7ec);
    color: color-mix(in srgb, var(--co-primary) 75%, #101828);
    font-size: 0.95rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.yp-pay-lander-identity-copy {
    min-width: 0;
}

.yp-pay-lander-identity-copy h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--co-text);
    word-break: break-word;
}

.yp-pay-lander-identity-copy p {
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
    line-height: 1.35;
    color: color-mix(in srgb, var(--co-text) 68%, transparent);
    word-break: break-word;
}

.yp-pay-lander-description {
    margin: 0;
    padding: 0.8rem 0.9rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid #eef1f5;
    font-size: 0.9rem;
    line-height: 1.5;
    color: color-mix(in srgb, var(--co-text) 78%, transparent);
    white-space: pre-line;
}

.yp-pay-lander-form {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.yp-pay-lander-amount {
    margin: 0;
    padding: 1rem 1.05rem 1.05rem;
    border-radius: 0.9rem;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--co-primary) 10%, #fff) 0%, color-mix(in srgb, var(--co-primary) 4%, #fff) 100%);
    border: 1px solid color-mix(in srgb, var(--co-primary) 20%, #e4e7ec);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.yp-pay-lander-amount:focus-within {
    border-color: color-mix(in srgb, var(--co-primary) 55%, #d0d5dd);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--co-primary) 16%, transparent);
}

.yp-pay-amount-field {
    display: grid;
    gap: 0.55rem;
}

.yp-pay-amount-label {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--co-text) 58%, transparent);
}

.yp-pay-amount-control {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    min-width: 0;
}

.yp-pay-amount-control input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0;
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--co-text);
    font-variant-numeric: tabular-nums;
}

.yp-pay-amount-control input::placeholder {
    color: color-mix(in srgb, var(--co-text) 26%, transparent);
    font-weight: 650;
}

.yp-pay-amount-control input:focus {
    outline: none;
}

.yp-pay-amount-currency {
    flex-shrink: 0;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid color-mix(in srgb, var(--co-primary) 16%, #e4e7ec);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: color-mix(in srgb, var(--co-text) 70%, transparent);
}

.auth-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 5.5rem;
    resize: vertical;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    font: inherit;
    color: var(--yp-headline);
    background: #fff;
}

.auth-form textarea:focus {
    outline: none;
    border-color: var(--yp-primary);
    box-shadow: 0 0 0 3px rgba(11, 165, 236, 0.18);
}

.yp-pay-field {
    display: grid;
    gap: 0.4rem;
}

.yp-pay-field > span {
    font-size: 0.8rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--co-text) 78%, transparent);
}

.yp-pay-field em {
    font-style: normal;
    font-weight: 500;
    color: color-mix(in srgb, var(--co-text) 55%, transparent);
}

.yp-pay-field input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d5dd;
    border-radius: 0.65rem;
    padding: 0.8rem 0.9rem;
    font: inherit;
    color: var(--co-text, #101828);
    background: #fff;
}

.yp-pay-field input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--co-primary) 70%, #d0d5dd);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--co-primary) 16%, transparent);
}

.yp-pay-lander-cta {
    margin-top: 0.15rem;
    min-height: 2.85rem;
    font-size: 0.98rem;
}

.yp-pay-lander-foot {
    display: flex;
    justify-content: center;
    padding-top: 0.15rem;
    border-top: 1px solid #eef1f5;
}

.yp-pay-lander .yp-checkout-preview-powered {
    margin: 0.65rem 0 0;
}

@media (min-width: 900px) {
    .yp-pay-lander .yp-pay-lander-identity-copy h3 {
        font-size: 1.5rem;
    }

    .yp-pay-amount-control input {
        font-size: 2.35rem;
    }
}

/* —— Static QR receipt —— */
.yp-pay-receipt-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Inter", system-ui, sans-serif;
    color: #101828;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(11, 165, 236, 0.16), transparent 55%),
        radial-gradient(700px 380px at 90% 0%, rgba(170, 3, 3, 0.08), transparent 50%),
        #e8eef5;
}

.yp-pay-receipt-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

.yp-pay-receipt {
    width: min(100%, 26.5rem);
    background: #fff;
    border-radius: 1.1rem;
    padding: 1.45rem 1.45rem 1.2rem;
    box-shadow:
        0 0.15rem 0.35rem rgba(15, 23, 42, 0.04),
        0 1rem 2.4rem rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 1.1rem;
}

.yp-pay-receipt-top {
    display: grid;
    gap: 1rem;
}

.yp-pay-receipt-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.yp-pay-receipt-yp {
    display: block;
    height: 1.35rem;
    width: auto;
    max-width: 7rem;
    object-fit: contain;
}

.yp-pay-receipt-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #f2f4f7;
    color: #475467;
    border: 1px solid #e4e7ec;
}

.yp-pay-receipt-badge--ok {
    background: #ecfdf3;
    color: #067647;
    border-color: #abefc6;
}

.yp-pay-receipt-identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.yp-pay-receipt-avatar {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #f2f4f7;
    border: 1px solid #e4e7ec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yp-pay-receipt-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.3rem;
    box-sizing: border-box;
}

.yp-pay-receipt-avatar--mark {
    background: linear-gradient(145deg, rgba(11, 165, 236, 0.16), #f8fafc);
    border-color: rgba(11, 165, 236, 0.22);
    color: #0b4a6f;
    font-size: 0.9rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.yp-pay-receipt-identity-copy {
    min-width: 0;
}

.yp-pay-receipt-identity-copy h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.yp-pay-receipt-identity-copy p {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    color: #667085;
    word-break: break-word;
}

.yp-pay-receipt-hero {
    margin: 0;
    padding: 1.05rem 1.1rem 1.1rem;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, rgba(11, 165, 236, 0.1) 0%, rgba(11, 165, 236, 0.04) 100%);
    border: 1px solid rgba(11, 165, 236, 0.18);
    text-align: left;
}

.yp-pay-receipt-hero-label {
    margin: 0 0 0.4rem !important;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #667085 !important;
}

.yp-pay-receipt-hero-amount {
    margin: 0 !important;
    font-size: 2rem;
    font-weight: 750;
    letter-spacing: -0.04em;
    color: #101828 !important;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.yp-pay-receipt-hero-amount span {
    margin-left: 0.3rem;
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: #667085;
}

.yp-pay-receipt-hero-status {
    margin: 0.55rem 0 0 !important;
    font-size: 0.9rem;
    font-weight: 600;
    color: #667085 !important;
}

.yp-pay-receipt-hero-status--ok {
    color: #067647 !important;
}

.yp-pay-receipt-meta {
    margin: 0;
    display: grid;
    gap: 0;
    border: 1px solid #eef1f5;
    border-radius: 0.85rem;
    overflow: hidden;
}

.yp-pay-receipt-meta div {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.75rem 0.9rem;
}

.yp-pay-receipt-meta div + div {
    border-top: 1px solid #eef1f5;
}

.yp-pay-receipt-meta dt {
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #98a2b3;
}

.yp-pay-receipt-meta dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #101828;
    word-break: break-word;
}

.yp-pay-receipt-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84rem !important;
    letter-spacing: 0.01em;
}

.yp-pay-receipt-actions {
    display: grid;
    gap: 0.65rem;
}

.yp-pay-receipt-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 1.1rem;
    border-radius: 0.65rem;
    background: #aa0303;
    color: #fff !important;
    font-weight: 650;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s ease;
}

.yp-pay-receipt-download:hover,
.yp-pay-receipt-download:focus,
.yp-pay-receipt-download:active,
.yp-pay-receipt-download:visited {
    color: #fff !important;
    text-decoration: none;
    background: #8f0202;
}

.yp-pay-receipt-download:focus-visible {
    outline: 2px solid #0ba5ec;
    outline-offset: 2px;
}

.yp-pay-receipt-footnote {
    margin: 0 !important;
    text-align: center;
    font-size: 0.78rem;
    color: #98a2b3 !important;
}

.yp-pay-receipt-foot {
    display: flex;
    justify-content: center;
    padding-top: 0.15rem;
    border-top: 1px solid #eef1f5;
}

.yp-pay-receipt-foot .yp-checkout-preview-powered {
    margin: 0.65rem 0 0;
    color: #98a2b3;
}

/* Static QR payment breakdown */
.static-qr-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.static-qr-metric {
    position: relative;
    display: grid;
    gap: 0.35rem;
    align-content: start;
    min-width: 0;
    padding: 0.85rem 0.9rem 0.9rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.static-qr-metric::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.2rem;
    background: #d0d5dd;
}

.static-qr-metric-label {
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-body);
    line-height: 1.25;
}

.static-qr-metric-value {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.28rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--yp-headline);
    line-height: 1.15;
}

.static-qr-metric-value small {
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--yp-body);
}

.static-qr-metric--amount {
    background: linear-gradient(180deg, rgba(11, 165, 236, 0.06), #fff 70%);
    border-color: rgba(11, 165, 236, 0.22);
}

.static-qr-metric--amount::before {
    background: var(--yp-secondary, #0ba5ec);
}

.static-qr-metric--success::before {
    background: #12b76a;
}

.static-qr-metric--failed::before {
    background: #f04438;
}

.static-qr-metric--cancelled::before {
    background: #98a2b3;
}

.static-qr-metric--expired::before {
    background: #f79009;
}

.static-qr-metric--total::before {
    background: var(--yp-headline, #101828);
}

@media (max-width: 1100px) {
    .static-qr-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .static-qr-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .static-qr-metric--amount {
        grid-column: 1 / -1;
    }
}

/* Collect portal (Access-style workspace) */
.merchant-collect-layout {
    overflow: visible;
}

.page-merchant-collect .collect-form {
    max-width: 28rem;
}

.page-merchant-collect .collect-form.auth-form input[type="number"] {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--yp-headline);
}

.page-merchant-collect .collect-form.auth-form label {
    display: grid;
    gap: 0.35rem;
    margin: 0;
}

.page-merchant-collect .collect-form .phone-field {
    width: 100%;
}

.page-merchant-collect .collect-form .phone-field input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.page-merchant-collect .collect-form-lead {
    margin: 0 0 0.15rem;
    font-size: 0.86rem;
    color: var(--yp-body);
    line-height: 1.4;
}

.page-merchant-collect .collect-form .settings-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.page-merchant-collect .collect-role-add {
    max-width: 22rem;
}

.page-merchant-collect .collect-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.page-merchant-collect .collect-empty {
    display: grid;
    gap: 0.75rem;
    justify-items: start;
    padding: 0.35rem 0;
}

.page-merchant-collect .collect-role-chip,
.page-merchant-collect .collect-source-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.2;
    background: #f2f4f7;
    color: var(--yp-headline);
}

.page-merchant-collect .collect-source-chip--qr {
    background: rgba(11, 165, 236, 0.12);
    color: #026aa2;
}

.page-merchant-collect .collect-source-chip--sms {
    background: rgba(18, 183, 106, 0.12);
    color: #027a48;
}

.page-merchant-collect .collect-labels-table {
    min-width: 28rem;
}

.page-merchant-collect .collect-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 28rem) minmax(12rem, 16rem);
    gap: 0.85rem;
    align-items: start;
}

.page-merchant-collect .collect-settings-aside {
    display: grid;
    gap: 0.65rem;
}

.page-merchant-collect .collect-metrics {
    margin: 0;
}

.page-merchant-collect .collect-filter select {
    height: 2.15rem;
    min-width: 11rem;
    padding: 0 0.7rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--yp-headline);
}

.activity-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 0.75rem;
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.65rem;
    background: #fafbfc;
}

.activity-filters .activity-filters-end {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 0.75rem;
    margin-left: auto;
}

.activity-filters .activity-filter--entity {
    min-width: 11rem;
}

.activity-filters .activity-period {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.55rem;
    background: #fff;
}

.activity-filters .activity-period-btn {
    appearance: none;
    margin: 0;
    height: 1.95rem;
    padding: 0 0.7rem;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: #475467;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.activity-filters .activity-period-btn:hover {
    background: #f2f4f7;
    color: var(--yp-headline);
}

.activity-filters .activity-period-btn.is-active {
    background: var(--yp-headline, #101828);
    color: #fff;
}

.activity-filters .activity-filter {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    min-width: 8.5rem;
}

.activity-filters .activity-filter span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #667085;
}

.activity-filters .activity-filter select,
.activity-filters .activity-filter input[type="date"] {
    height: 2.15rem;
    min-width: 9.5rem;
    padding: 0 0.7rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--yp-headline);
    box-sizing: border-box;
}

.activity-filters .activity-filter-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
}

.activity-filters .activity-filter-actions.is-hidden {
    display: none !important;
}

.collect-analytics {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
    gap: 0.85rem 1rem;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.65rem;
    background: #fff;
}

.collect-analytics-hero {
    display: grid;
    gap: 0.2rem;
    align-content: start;
    padding-right: 0.85rem;
    border-right: 1px solid #eef0f3;
}

.collect-analytics-label,
.collect-analytics-methods-title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #667085;
}

.collect-analytics-total {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--yp-headline);
    font-variant-numeric: tabular-nums;
}

.collect-analytics-total small,
.collect-analytics-amount small {
    font-size: 0.75rem;
    font-weight: 600;
    color: #667085;
}

.collect-analytics-meta {
    font-size: 0.8rem;
    color: #667085;
}

.collect-analytics-methods {
    min-width: 0;
}

.collect-analytics-empty {
    margin: 0.35rem 0 0;
}

.collect-analytics-list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.collect-analytics-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f2f4f7;
}

.collect-analytics-row:last-child {
    border-bottom: 0;
}

.collect-analytics-method {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.collect-analytics-method strong {
    font-size: 0.88rem;
    color: var(--yp-headline);
}

.collect-analytics-amount {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--yp-headline);
}

@media (max-width: 720px) {
    .collect-analytics {
        grid-template-columns: 1fr;
    }

    .collect-analytics-hero {
        padding-right: 0;
        padding-bottom: 0.65rem;
        border-right: 0;
        border-bottom: 1px solid #eef0f3;
    }
}

.collect-source-chip--telebirr {
    background: #ecfdf3;
    color: #027a48;
}

@media (max-width: 900px) {
    .page-merchant-collect .collect-settings-grid {
        grid-template-columns: 1fr;
    }
}


