:root {
    --primary: #011C5F;
    --accent: #01C058;
    --ink: #011C5F;
    --ink2: #0A1633;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f7f8fb;
    --card: #fff;
    --green: #01C058;
    --red: #e5484d;
    --amber: #d97706;
    --shadow: 0 14px 40px rgba(1, 28, 95, .10);
    --radius: 18px
}

* {
    box-sizing: border-box
}

html {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink2);
    scroll-behavior: smooth
}

body {
    margin: 0
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select,
textarea {
    font: inherit
}

.app-shell {
    display: flex;
    min-height: 100vh
}

.flex {
    display: flex;
    gap: 10px;
}

.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 265px;
    background: linear-gradient(165deg, #011747, #011C5F 52%, #02266F);
    color: #fff;
    padding: 10px 17px;
    display: flex;
    flex-direction: column;
    z-index: 20;
    box-shadow: -10px 0 40px rgba(17, 24, 39, .08);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none
}

.sidebar::-webkit-scrollbar {
    display: none
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent), #00A94D 52%, #04317F);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(1, 192, 88, .28)
}

.brand span:last-child {
    display: flex;
    flex-direction: column
}

.brand b {
    font-size: 16px
}

.brand small {
    font-size: 10px;
    opacity: .65;
    margin-top: 2px
}

.sidebar nav {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 7px
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 13px;
    border-radius: 12px;
    color: #d8dce3;
    font-size: 14px;
    transition: .2s
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(255, 255, 255, .09);
    color: #fff;
    transform: translateX(-2px)
}

.sidebar nav a.active {
    box-shadow: inset -3px 0 0 var(--accent)
}

.nav-label {
    font-size: 10px;
    color: #8f98a7;
    margin: 18px 12px 5px
}

.sidebar-user {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding-top: 16px;
    display: flex;
    gap: 10px;
    align-items: center
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(1, 192, 88, .18);
    color: #8FF0BB;
    font-weight: 700
}

.sidebar-user>div {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column
}

.sidebar-user b {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.sidebar-user small {
    font-size: 9px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.sidebar-user button {
    border: 0;
    background: transparent;
    color: #c9ced6;
    cursor: pointer;
    font-size: 17px
}

.main {
    margin-right: 265px;
    flex: 1;
    min-width: 0
}

.topbar {
    height: 92px;
    display: flex;
    align-items: center;
    padding: 0 34px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, .8);
    position: sticky;
    top: 0;
    z-index: 10
}

.topbar h1 {
    font-size: 20px;
    margin: 0 0 5px
}

.topbar p {
    font-size: 11px;
    color: var(--muted);
    margin: 0
}

.top-docs {
    margin-right: auto;
    font-size: 12px;
    border: 1px solid var(--line);
    padding: 9px 13px;
    border-radius: 10px;
    background: #fff
}

.menu-btn {
    display: none
}

.page {
    padding: 28px 34px 60px;
    max-width: 1500px;
    margin: auto
}

.grid {
    display: grid;
    gap: 18px
}

.grid.cols-4 {
    grid-template-columns: repeat(4, 1fr)
}

.grid.cols-3 {
    grid-template-columns: repeat(3, 1fr)
}

.grid.cols-2 {
    grid-template-columns: repeat(2, 1fr)
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(17, 24, 39, .025)
}

.pad {
    padding: 22px
}

.stat {
    padding: 20px;
    position: relative;
    overflow: hidden
}

.stat:after {
    content: "";
    position: absolute;
    left: -30px;
    top: -38px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(1, 192, 88, .14), rgba(1, 28, 95, .04))
}

.stat .label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px
}

.stat .value {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.5px
}

.stat .hint {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 7px
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 26px 0 12px
}

.section-head h2 {
    font-size: 15px;
    margin: 0
}

.section-head a {
    font-size: 11px;
    color: var(--accent)
}

table {
    width: 100%;
    border-collapse: collapse
}

.table-wrap {
    overflow: auto
}

.table th {
    font-size: 10px;
    text-align: right;
    color: #8b93a1;
    font-weight: 600;
    padding: 13px 16px;
    background: #fbfbfc;
    border-bottom: 1px solid var(--line);
    white-space: nowrap
}

.table td {
    font-size: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f1f3;
    vertical-align: middle;
    text-align: right;
}

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

.api-key-domain-form {
    display: flex;
    gap: 6px;
    align-items: center;
    min-width: 220px
}

.api-key-domain-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #dde0e5;
    background: #fff;
    padding: 8px 10px;
    border-radius: 11px;
    outline: none;
    color: #0A1633
}

.api-key-domain-form input:focus {
    border-color: var(--primary)
}

.api-key-domain-form .btn {
    flex-shrink: 0
}

.badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700
}

.badge.paid,
.badge.active {
    background: #e8f8f2;
    color: #087a55
}

.badge.pending {
    background: #fff7e8;
    color: #b46100
}

.badge.receipt_review {
    background: #eef2ff;
    color: #4f46e5
}

.badge.expired,
.badge.failed,
.badge.disabled {
    background: #fff0f0;
    color: #bf3036
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    direction: ltr;
    text-align: left
}

.ltr {
    direction: ltr
}

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

.small {
    font-size: 11px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 15px;
    border-radius: 11px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: .18s
}

.btn:hover {
    transform: translateY(-1px)
}

.btn.primary {
    background: linear-gradient(270deg, var(--accent), #00A94D 28%, var(--ink));
    color: #fff;
    /* box-shadow: 0 9px 20px rgba(1, 192, 88, .16); */
    border: none;
}

.btn.secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--ink)
}

.btn.danger {
    background: #fff0f0;
    color: #c23339;
    border-color: #ffdede
}

.btn.sm {
    padding: 8px 11px;
    font-size: 11px
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px
}

.field {
    margin-bottom: 15px
}

.field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 7px;
    color: #4b5563
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #dde0e5;
    background: #fff;
    padding: 11px 12px;
    border-radius: 11px;
    outline: none;
    transition: .18s;
    color: #0A1633
}

.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
    border-color: #01C058;
    box-shadow: 0 0 0 3px rgba(1, 192, 88, .10)
}

.field .help {
    font-size: 9px;
    color: #9ca3af;
    margin-top: 6px;
    line-height: 1.8
}

.field-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    line-height: 1.7;
    user-select: none;
}

.field-check:hover input[type="checkbox"],
.field-check:hover input[type="radio"] {
    border-color: #8eb0e8;
    box-shadow: 0 0 0 3px rgba(1, 28, 95, .08)
}

.field-check input[type="checkbox"],
.field-check input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 1px 0 0;
    flex-shrink: 0;
    cursor: pointer;
    border: 1.5px solid #c9d2e3;
    background: #fff;
    outline: none;
    transition: .18s ease;
    box-shadow: inset 0 1px 2px rgba(1, 28, 95, .04);
    position: relative;
}

.field-check input[type="checkbox"] {
    border-radius: 6px
}

.field-check input[type="radio"] {
    border-radius: 50%
}

.field-check input[type="checkbox"]::after,
.field-check input[type="radio"]::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    opacity: 0;
    transform: scale(.6);
    transition: .16s ease
}

.field-check input[type="checkbox"]::after {
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg) scale(.6);
    margin-top: 3px
}

.field-check input[type="radio"]::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff
}

.field-check input[type="checkbox"]:checked,
.field-check input[type="radio"]:checked {
    border-color: transparent;
    background: linear-gradient(135deg, #011C5F 0%, #07378E 55%, #0a6b4a 100%);
    box-shadow: 0 4px 12px rgba(1, 28, 95, .22)
}

.field-check input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: rotate(45deg) scale(1)
}

.field-check input[type="radio"]:checked::after {
    opacity: 1;
    transform: scale(1)
}

.field-check input[type="checkbox"]:focus-visible,
.field-check input[type="radio"]:focus-visible {
    border-color: #07378E;
    box-shadow: 0 0 0 3px rgba(7, 55, 142, .2)
}

.field-check span {
    flex: 1;
    padding-top: 1px
}

.field-check.small {
    font-size: 12px;
    color: #4b5563
}

.mt {
    margin-top: 18px;
}

.alert {
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 12px;
    border: 1px solid
}

.alert.success {
    background: #ecfbf5;
    border-color: #c7f1df;
    color: #087a55
}

.alert.danger {
    background: #fff2f2;
    border-color: #ffd8d8;
    color: #ad2e32
}

.secret-box {
    border: 1px dashed #63D99A;
    background: #F2FFF8;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px
}

.secret-box code {
    display: block;
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
    background: #fff;
    padding: 10px;
    border-radius: 9px;
    border: 1px solid #D9F7E6;
    margin-top: 8px
}

.empty {
    padding: 45px;
    text-align: center;
    color: #8b93a1
}

.empty b {
    display: block;
    color: #4b5563;
    margin-bottom: 7px
}

.card-visual {
    position: relative;
    border-radius: 18px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(145deg, #01133F, #011C5F 58%, #04317F);
    min-height: 175px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.card-visual:before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(1, 192, 88, .22);
    left: -40px;
    top: -55px
}

.card-visual .bank {
    font-size: 11px;
    opacity: .75
}

.card-visual .number {
    font-family: ui-monospace, monospace;
    direction: ltr;
    text-align: left;
    font-size: 18px;
    letter-spacing: 2px;
    margin-top: 40px
}

.card-visual .holder {
    font-size: 11px;
    margin-top: 22px
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 13px
}

.code {
    direction: ltr;
    text-align: left;
    background: #0A1633;
    color: #e5e7eb;
    border-radius: 13px;
    padding: 16px;
    overflow: auto;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    line-height: 1.75;
    white-space: pre
}

.docs h2 {
    font-size: 17px;
    margin-top: 30px
}

.docs h3 {
    font-size: 14px;
    margin-top: 22px
}

.docs p,
.docs li {
    font-size: 12px;
    line-height: 2;
    color: #4b5563
}

.notice {
    border-right: 3px solid var(--accent);
    padding: 12px 14px;
    background: #F2FFF8;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.9
}

/* ============================================================
   Landing Page
============================================================ */

.public-shell {
    background: #fafbfd;
    overflow-x: hidden
}

.landing-main {
    position: relative
}

/* --- Navigation --- */

.public-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    max-width: 1200px;
    margin: auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
    border-radius: 10px;
    margin-top: 10px;
}

.public-nav.scrolled {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(1, 28, 95, .06), 0 8px 32px rgba(1, 28, 95, .06);
    padding-top: 12px;
    padding-bottom: 12px
}

.public-nav .brand img {
    display: block;
    height: auto;
    transition: transform .3s ease
}

.public-nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-right: auto;
    font-size: 13px;
    font-weight: 600
}

.public-nav-links a {
    color: #4b5563;
    position: relative;
    transition: color .2s ease
}

.public-nav-links a:hover {
    color: var(--ink)
}

.public-nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .25s ease
}

.public-nav-links a:hover::after {
    transform: scaleX(1)
}

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

.public-nav-login {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    transition: color .2s ease
}

.public-nav-login:hover {
    color: var(--ink)
}

.public-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 6px
}

.public-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease
}

.public-nav.open .public-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.public-nav.open .public-nav-toggle span:nth-child(2) {
    opacity: 0
}

.public-nav.open .public-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

/* --- Hero --- */

.hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 130px 28px 90px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 60px;
    align-items: center;
    min-height: 92vh
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0
}

.hero-bg-mesh {
    position: absolute;
    inset: -20% -10%;
    /* background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(1, 192, 88, .10), transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(1, 28, 95, .08), transparent 55%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(1, 192, 88, .04), transparent 50%) */
}

.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: heroOrbFloat 12s ease-in-out infinite
}

.hero-bg-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(1, 192, 88, .12);
    top: -80px;
    left: -100px
}

.hero-bg-orb-2 {
    width: 320px;
    height: 320px;
    background: rgba(1, 28, 95, .10);
    bottom: 60px;
    right: -60px;
    animation-delay: -6s
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(1, 28, 95, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(1, 28, 95, .03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 70%)
}

@keyframes heroOrbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    33% {
        transform: translate(20px, -15px) scale(1.05)
    }

    66% {
        transform: translate(-15px, 10px) scale(.95)
    }

}

.hero-content,
.hero-panel {
    position: relative;
    z-index: 1
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(1, 192, 88, .08);
    color: #01994A;
    border: 1px solid rgba(1, 192, 88, .18);
    border-radius: 999px;
    padding: 8px 16px 8px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -.2px
}

.hero-kicker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(1, 192, 88, .20);
    animation: heroPulse 2s ease-in-out infinite
}

@keyframes heroPulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(1, 192, 88, .20)
    }

    50% {
        box-shadow: 0 0 0 6px rgba(1, 192, 88, .08)
    }

}

.hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.22;
    margin: 22px 0 20px;
    letter-spacing: -1.8px;
    color: var(--ink2);
    font-weight: 900
}

.gradient-text {
    display: block;
    background: linear-gradient(135deg, var(--accent) 0%, #00A94D 40%, var(--ink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.hero-desc {
    font-size: 15px;
    color: #5c6578;
    line-height: 2.1;
    max-width: 540px;
    margin: 0
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px
}

.hero-btn-primary svg {
    transition: transform .2s ease
}

.hero-btn-primary:hover svg {
    transform: translateX(-3px)
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(1, 28, 95, .08)
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280
}

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

/* --- Hero Panel (Mock Payment) --- */

.hero-panel {
    border-radius: 24px;
    background: linear-gradient(160deg, #011747 0%, #011C5F 55%, #022a78 100%);
    padding: 28px;
    color: #fff;
    box-shadow:
        0 32px 80px rgba(1, 28, 95, .28),
        0 0 0 1px rgba(255, 255, 255, .06) inset;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-2deg);
    transition: transform .5s ease
}

.hero-panel:hover {
    transform: perspective(1000px) rotateY(0deg)
}

.hero-panel-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(1, 192, 88, .18);
    filter: blur(50px);
    top: -100px;
    left: -80px;
    pointer-events: none
}

.hero-panel-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px
}

.hero-panel-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, .10);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .08)
}

.hero-panel-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7)
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    animation: livePulse 1.8s ease-in-out infinite
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(74, 222, 128, .5)
    }

    50% {
        opacity: .7;
        box-shadow: 0 0 0 5px rgba(74, 222, 128, 0)
    }

}

.mock-amount {
    position: relative;
    text-align: center;
    padding: 22px 20px;
    background: rgba(255, 255, 255, .05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 14px
}

.mock-amount small {
    opacity: .55;
    font-size: 11px
}

.mock-amount b {
    display: block;
    font-size: 28px;
    font-weight: 800;
    margin-top: 8px;
    letter-spacing: -.5px
}

.mock-card {
    position: relative;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 20px;
    border-radius: 16px
}

.mock-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.mock-card-top small {
    opacity: .55;
    font-size: 10px
}

.mock-chip {
    width: 32px;
    height: 24px;
    border-radius: 5px;
    background: linear-gradient(135deg, #d4af37, #f5e6a3 50%, #c9a227);
    opacity: .85
}

.mock-card .num {
    direction: ltr;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 18px;
    letter-spacing: 2.5px;
    margin: 20px 0 8px;
    font-weight: 600
}

.mock-holder {
    opacity: .45;
    font-size: 10px
}

.mock-status {
    margin-top: 16px;
    background: rgba(1, 192, 88, .15);
    border: 1px solid rgba(1, 192, 88, .25);
    color: #86efac;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px
}

.mock-status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(1, 192, 88, .30);
    display: grid;
    place-items: center;
    font-size: 12px;
    flex-shrink: 0
}

/* --- Stats Bar --- */

.landing-stats {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 28px;
    position: relative;
    z-index: 5
}

.landing-stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid rgba(1, 28, 95, .08);
    border-radius: 20px;
    padding: 28px 20px;
    box-shadow:
        0 20px 60px rgba(1, 28, 95, .08),
        0 0 0 1px rgba(255, 255, 255, .8) inset
}

.landing-stat {
    text-align: center;
    padding: 8px 16px;
    position: relative
}

.landing-stat b {
    display: block;
    font-size: 30px;
    color: var(--ink);
    letter-spacing: -.8px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--ink), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.landing-stat>span:not(.landing-stat-divider) {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500
}

.landing-stat-divider {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, #e5e7eb, transparent)
}

/* --- Features --- */

.features {
    position: relative;
    padding: 100px 28px 90px;
    background: linear-gradient(180deg, #fafbfd 0%, #f3f5f9 100%)
}

.features-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(1, 192, 88, .05), transparent 60%);
    pointer-events: none
}

.features-inner {
    max-width: 1200px;
    margin: auto;
    position: relative
}

.section-header {
    text-align: center;
    margin-bottom: 48px
}

.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(1, 192, 88, .08);
    border: 1px solid rgba(1, 192, 88, .15);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px
}

.section-header h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    margin: 0 0 12px;
    letter-spacing: -.8px;
    font-weight: 900;
    color: var(--ink2)
}

.section-subtitle {
    font-size: 14px;
    color: #6b7280;
    line-height: 2;
    max-width: 560px;
    margin: 0 auto
}

.landing-features-grid {
    gap: 20px
}

.feature-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(1, 28, 95, .07);
    border-radius: 20px;
    padding: 28px 26px;
    overflow: hidden;
    transition:
        transform .35s cubic-bezier(.22, 1, .36, 1),
        box-shadow .35s ease,
        border-color .35s ease
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(1, 28, 95, .10);
    border-color: rgba(1, 192, 88, .20)
}

.feature-card-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--ink));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1)
}

.feature-card:hover .feature-card-accent {
    transform: scaleX(1)
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(1, 192, 88, .12), rgba(1, 28, 95, .06));
    display: grid;
    place-items: center;
    color: var(--accent);
    font-weight: 900;
    font-size: 15px;
    border: 1px solid rgba(1, 192, 88, .12)
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    display: block
}

.feature-icon-text {
    font-size: 14px;
    line-height: 1
}

.feature-card h3 {
    font-size: 15px;
    margin: 18px 0 10px;
    font-weight: 800;
    color: var(--ink2)
}

.feature-card p {
    font-size: 12px;
    line-height: 2;
    color: #6b7280;
    margin: 0
}

/* --- Pricing --- */

.landing-pricing {
    padding: 90px 28px 100px;
    background: #fff
}

.landing-pricing-inner {
    max-width: 720px;
    margin: auto
}

.pricing-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(1, 28, 95, .08);
    border-radius: 28px;
    padding: 44px 40px;
    box-shadow:
        0 32px 80px rgba(1, 28, 95, .08),
        0 0 0 1px rgba(255, 255, 255, .5) inset;
    overflow: hidden
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--ink))
}

.pricing-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 10px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #00A94D);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: -.2px
}

.pricing-fee {
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #eef1f5
}

.pricing-fee-value {
    display: block;
    font-size: 80px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -4px;
    background: linear-gradient(135deg, var(--accent) 0%, #00A94D 35%, var(--ink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.pricing-fee-value small {
    font-size: 40px;
    font-weight: 800
}

.pricing-fee-label {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500
}

.pricing-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px
}

.pricing-features li {
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.6;
    font-weight: 500
}

.pricing-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(1, 192, 88, .10);
    color: var(--accent);
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.pricing-actions {
    text-align: center;
    margin-top: 32px
}

.pricing-note {
    margin: 14px 0 0;
    font-size: 12px;
    color: #9ca3af
}

/* --- CTA --- */

.landing-cta {
    padding: 0 28px 100px
}

.landing-cta-inner {
    position: relative;
    max-width: 1000px;
    margin: auto;
    text-align: center;
    background: linear-gradient(135deg, #011747 0%, #011C5F 50%, #022a78 100%);
    color: #fff;
    border-radius: 28px;
    padding: 56px 40px;
    box-shadow: 0 32px 80px rgba(1, 28, 95, .22);
    overflow: hidden;
    margin-top: 70px;
}

.landing-cta-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.landing-cta-orbs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px)
}

.landing-cta-orbs span:nth-child(1) {
    width: 200px;
    height: 200px;
    background: rgba(1, 192, 88, .20);
    top: -60px;
    right: -40px
}

.landing-cta-orbs span:nth-child(2) {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, .06);
    bottom: -40px;
    left: 20%
}

.landing-cta-orbs span:nth-child(3) {
    width: 120px;
    height: 120px;
    background: rgba(1, 192, 88, .12);
    top: 40%;
    left: -30px
}

.landing-cta-inner h2 {
    position: relative;
    font-size: clamp(22px, 3.5vw, 32px);
    margin: 0 0 14px;
    letter-spacing: -.6px;
    font-weight: 900
}

.landing-cta-inner p {
    position: relative;
    font-size: 14px;
    line-height: 2.1;
    color: rgba(255, 255, 255, .75);
    max-width: 580px;
    margin: 0 auto 28px
}

.landing-cta-btn {
    position: relative
}

.landing-cta-btn svg {
    transition: transform .2s ease
}

.landing-cta-btn:hover svg {
    transform: translateX(-3px)
}

/* --- Footer --- */

.public-footer {
    background: #011747;
    color: rgba(255, 255, 255, .75);
    padding-top: 56px
}

.public-footer-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 28px 40px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 48px
}

.public-footer-brand img {
    display: block;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: .9
}

.public-footer-brand p {
    font-size: 13px;
    line-height: 2;
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, .55)
}

.public-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px
}

.public-footer-links b {
    display: block;
    font-size: 13px;
    color: #fff;
    margin-bottom: 14px;
    font-weight: 700
}

.public-footer-links a {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    padding: 5px 0;
    transition: color .2s ease
}

.public-footer-links a:hover {
    color: #fff
}

.public-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 20px 28px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .40)
}

/* --- Reveal Animations --- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .7s cubic-bezier(.22, 1, .36, 1),
        transform .7s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--reveal-delay, 0s)
}

.reveal.reveal-delay-1 {
    transition-delay: .12s
}

.reveal.reveal-delay-2 {
    transition-delay: .24s
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

.btn.lg {
    padding: 14px 28px;
    font-size: 14px;
    border-radius: 13px
}

.btn.primary.lg {
    box-shadow: 0 8px 24px rgba(1, 192, 88, .22)
}

.btn.primary.lg:hover {
    box-shadow: 0 12px 32px rgba(1, 192, 88, .30)
}

.cms-builder .cms-block-list {
    display: grid;
    gap: 10px
}

.cms-block-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fafbfc
}

.cms-block-item.active {
    border-color: var(--accent);
    background: #f4fff9
}

.cms-block-item.inactive {
    opacity: .65
}

.cms-block-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px
}

.cms-block-type {
    font-weight: 700;
    font-size: 12px
}

.cms-block-order {
    font-size: 10px;
    color: #9ca3af
}

.cms-block-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.cms-block-actions form.inline {
    display: inline
}

.cms-repeatable-row {
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px
}

.cms-icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
    margin-bottom: 10px
}

.cms-icon-option {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: .18s;
    color: var(--accent);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative
}

.cms-icon-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none
}

.cms-icon-option svg,
.cms-icon-option small {
    pointer-events: none
}

.cms-icon-option small {
    font-size: 9px;
    color: #6b7280;
    font-weight: 600;
    text-align: center;
    line-height: 1.4
}

.cms-icon-option svg {
    width: 22px;
    height: 22px;
    display: block
}

.cms-icon-option:hover {
    border-color: rgba(1, 192, 88, .35);
    background: #f8fffb
}

.cms-icon-option.active {
    border-color: var(--accent);
    background: #f0fff7;
    box-shadow: 0 0 0 3px rgba(1, 192, 88, .18);
    transform: translateY(-1px)
}

.cms-icon-custom-wrap.hidden {
    display: none
}

.cms-icon-svg-input {
    width: 100%;
    border: 1px solid #dde0e5;
    background: #fff;
    padding: 11px 12px;
    border-radius: 11px;
    outline: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    direction: ltr;
    text-align: left;
    resize: vertical;
    min-height: 88px
}

.cms-icon-svg-input:focus {
    border-color: #01C058;
    box-shadow: 0 0 0 3px rgba(1, 192, 88, .10)
}

.auth-wrap {
    min-height: calc(100vh - 88px);
    display: grid;
    place-items: center;
    padding: 30px
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 28px
}

.auth-card h1 {
    font-size: 22px;
    margin: 0 0 7px
}

.auth-card>p {
    font-size: 11px;
    color: #7a8391;
    margin-bottom: 24px
}

.auth-footer {
    text-align: center;
    font-size: 11px;
    color: #7a8391;
    margin-top: 18px
}

.payment-shell {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(1, 192, 88, .13), transparent 36%), #f7f8fb;
    display: grid;
    place-items: center;
    padding: 24px
}

.pay-card {
    width: 100%;
    max-width: 510px;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 25px;
    box-shadow: 0 30px 80px rgba(17, 24, 39, .11);
    overflow: hidden
}

.pay-head {
    background: linear-gradient(145deg, #011747, #011C5F);
    color: #fff;
    padding: 25px 27px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.pay-head small {
    font-size: 9px;
    color: #b7bdc7
}

.secure {
    font-size: 10px;
    background: rgba(255, 255, 255, .08);
    padding: 7px 9px;
    border-radius: 9px
}

.pay-body {
    padding: 26px
}

.merchant {
    text-align: center;
    font-size: 11px;
    color: #6b7280
}

.amount {
    text-align: center;
    margin: 13px 0 22px
}

.amount b {
    display: block;
    font-size: 34px;
    letter-spacing: -1px
}

.amount span {
    font-size: 10px;
    color: #8d95a2
}

.transfer-box {
    border: 1px solid #e7e9ed;
    border-radius: 17px;
    padding: 18px;
    background: #fbfbfc
}

.transfer-box label {
    display: block;
    font-size: 9px;
    color: #9299a5;
    margin-bottom: 7px
}

.transfer-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.transfer-value b {
    font-family: ui-monospace, monospace;
    direction: ltr;
    font-size: 17px;
    letter-spacing: 1px
}

.copy-btn {
    border: 0;
    background: #E9FFF3;
    color: #01994A;
    border-radius: 9px;
    padding: 7px 9px;
    font-size: 9px;
    cursor: pointer
}

.holder-line {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed #ddd;
    font-size: 10px
}

.pay-meta {
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
    font-size: 10px;
    color: #737b88
}

.timer {
    font-family: monospace;
    font-size: 14px;
    font-weight: 800;
    color: #011C5F
}

.pay-state {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f4f5f7;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 10px
}

.pay-state b {
    font-size: 11px
}

.pay-state.success {
    background: #eafaf3;
    color: #087a55
}

.pay-state.review {
    background: #eef2ff;
    color: #4f46e5
}

.pay-state.danger {
    background: #fff0f0;
    color: #b62f35
}

.receipt-box {
    margin-top: 16px;
    border-top: 1px solid #eceef1;
    padding-top: 16px
}

.receipt-box p {
    font-size: 10px;
    color: #777f8d;
    line-height: 1.8
}

.file {
    border: 1px dashed #d8dce2;
    border-radius: 12px;
    padding: 11px;
    width: 100%;
    font-size: 10px
}

.pay-footer {
    text-align: center;
    padding: 0 20px 22px;
    font-size: 9px;
    color: #a0a6b0
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
}

.detail {
    background: #fafbfc;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    padding: 13px
}

.detail label {
    font-size: 9px;
    color: #8c94a1;
    display: block;
    margin-bottom: 5px
}

.detail b {
    font-size: 12px
}

.admin-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.admin-tabs a {
    font-size: 11px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 9px 12px;
    border-radius: 10px
}

@media(max-width:1050px) {
    .grid.cols-4 {
        grid-template-columns: repeat(2, 1fr)
    }

    .grid.cols-3 {
        grid-template-columns: repeat(2, 1fr)
    }

    .sidebar {
        transform: translateX(110%);
        transition: .25s
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .main {
        margin-right: 0
    }

    .menu-btn {
        display: flex;
        border: 0;
        background: #f2f3f5;
        border-radius: 10px;
        padding: 8px 10px;
        margin-left: 12px
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 110px
    }

    .hero-panel {
        max-width: 520px;
        margin: 0 auto;
        transform: none
    }

    .hero-panel:hover {
        transform: none
    }

    .hero h1 {
        font-size: 40px
    }

    .landing-stats-inner {
        grid-template-columns: repeat(2, 1fr)
    }

    .landing-stat-divider {
        display: none
    }

    .pricing-features {
        grid-template-columns: 1fr
    }

    .public-footer-inner {
        grid-template-columns: 1fr
    }
}

@media(max-width:650px) {
    .page {
        padding: 20px 15px 50px
    }

    .topbar {
        padding: 0 15px;
        height: 76px
    }

    .top-docs {
        display: none
    }

    .grid.cols-4,
    .grid.cols-3,
    .grid.cols-2,
    .form-row {
        grid-template-columns: 1fr
    }

    .hero {
        margin-top: 0;
        gap: 32px;
        padding: 100px 20px 60px
    }

    .hero h1 {
        font-size: 30px;
        letter-spacing: -1px
    }

    .hero-desc {
        font-size: 14px
    }

    .hero-trust {
        gap: 14px
    }

    .hero-trust-item {
        font-size: 11px
    }

    .landing-stats {
        padding: 0 20px;
        margin-top: -20px
    }

    .landing-stats-inner {
        grid-template-columns: 1fr 1fr;
        padding: 20px 12px
    }

    .landing-stat b {
        font-size: 24px
    }

    .features {
        padding: 70px 20px 60px
    }

    .landing-pricing {
        padding: 70px 20px 80px
    }

    .pricing-card {
        padding: 36px 24px
    }

    .pricing-fee-value {
        font-size: 60px
    }

    .pricing-badge {
        top: 16px;
        left: 16px
    }

    .landing-cta {
        padding: 0 20px 70px
    }

    .landing-cta-inner {
        padding: 40px 24px
    }

    .landing-cta-inner h2 {
        font-size: 22px
    }

    .public-nav {
        padding: 14px 20px;
        flex-wrap: wrap
    }

    .public-nav .brand {
        order: 1
    }

    .public-nav-toggle {
        display: flex;
        order: 2;
        margin-right: auto
    }

    .public-nav-links,
    .public-nav-actions {
        display: none;
        order: 3;
        width: 100%
    }

    .public-nav.open .public-nav-links,
    .public-nav.open .public-nav-actions {
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(18px);
        border: 1px solid rgba(1, 28, 95, .08);
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 20px 60px rgba(1, 28, 95, .12);
        gap: 12px;
        margin-top: 8px
    }

    .public-nav.open .public-nav-links {
        margin-right: 0
    }

    .public-nav.open .public-nav-actions {
        border-top: 1px solid #eef1f5;
        padding-top: 16px
    }

    .public-footer-inner {
        padding: 0 20px 32px
    }

    .public-footer-links {
        grid-template-columns: 1fr
    }

    .auth-wrap {
        padding: 18px
    }

    .pay-body {
        padding: 20px
    }

    .amount b {
        font-size: 29px
    }

    .detail-list {
        grid-template-columns: 1fr
    }
}

.badge.approved {
    background: #e8f8f2;
    color: #087a55
}

.badge.unsubmitted {
    background: #f3f4f6;
    color: #6b7280
}

.badge.rejected,
.badge.overdue {
    background: #fff0f0;
    color: #bf3036
}

.badge.issued {
    background: #fff7e8;
    color: #b46100
}

.badge.partial {
    background: #eef2ff;
    color: #4f46e5
}

.badge.void,
.badge.cancelled {
    background: #f3f4f6;
    color: #6b7280
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important
}

.table .mono {
    white-space: nowrap
}

.help {
    font-size: 9px;
    color: #9ca3af;
    line-height: 1.8
}

.card h2 {
    color: #011C5F
}

.invoice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-bottom: 14px
}

.invoice-sheet {
    max-width: 1150px;
    margin: 0 auto
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line)
}

.invoice-brand {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--accent), var(--ink));
    -webkit-background-clip: text;
    color: transparent
}

.invoice-number {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px
}

.invoice-number>span:first-child {
    font-size: 9px;
    color: var(--muted)
}

.invoice-number b {
    font-size: 14px
}

.invoice-parties {
    margin-top: 18px
}

.invoice-party {
    display: flex;
    flex-direction: column;
    gap: 7px;
    line-height: 1.7
}

.invoice-party span {
    font-size: 10px;
    color: var(--muted)
}

.invoice-meta {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 18px
}

.invoice-section-title {
    font-size: 14px !important;
    margin: 25px 0 11px
}

.invoice-lines th,
.invoice-lines td {
    font-size: 10px
}

.invoice-total {
    margin: 20px 0 0 auto;
    width: min(100%, 420px);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden
}

.invoice-total>div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 11px
}

.invoice-total>div:last-child {
    border-bottom: 0
}

.invoice-total .grand {
    background: #F0FFF7
}

.invoice-total .grand b {
    font-size: 14px
}

.invoice-pay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--line)
}

@media(max-width:650px) {
    .invoice-header {
        flex-direction: column
    }

    .invoice-number {
        align-items: flex-start
    }

    .invoice-meta {
        grid-template-columns: 1fr 1fr
    }

    .invoice-pay {
        align-items: stretch;
        flex-direction: column
    }

    .invoice-pay .btn {
        width: 100%
    }
}

@media print {
    body {
        background: #fff !important
    }

    .sidebar,
    .topbar,
    .no-print,
    .alert {
        display: none !important
    }

    .main {
        margin: 0 !important
    }

    .page {
        padding: 0 !important;
        max-width: none !important
    }

    .invoice-sheet {
        max-width: none !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important
    }

    .card {
        box-shadow: none !important
    }

    .invoice-lines {
        font-size: 9px
    }

    .invoice-lines th,
    .invoice-lines td {
        padding: 8px 7px
    }

    .invoice-brand {
        -webkit-text-fill-color: #0A1633;
        color: #0A1633;
        background: none
    }

    .invoice-party,
    .detail {
        break-inside: avoid
    }

    .table-wrap {
        overflow: visible !important
    }

    @page {
        size: A4;
        margin: 12mm
    }
}

/* CardPayOne device pairing */
.device-hero {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(120deg, #fff 0, #fbfdff 62%, #f1fff8 100%)
}

.device-hero:after {
    content: "";
    position: absolute;
    left: -70px;
    top: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 201, 103, .16), rgba(7, 55, 142, .02) 68%, transparent 70%)
}

.device-hero-icon {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(145deg, #07378e, #0b2f73 70%);
    box-shadow: 0 16px 32px rgba(7, 55, 142, .2);
    position: relative;
    z-index: 1
}

.device-hero-icon:after {
    content: "";
    position: absolute;
    width: 19px;
    height: 10px;
    border-radius: 4px;
    background: #00c967;
    right: 11px;
    bottom: 12px;
    transform: skewX(-12deg)
}

.device-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px
}

.device-hero-copy .eyebrow {
    font-size: 10px;
    font-weight: 800;
    color: #07378e;
    letter-spacing: .6px
}

.device-hero-copy h2 {
    font-size: 20px;
    margin: 4px 0 7px
}

.device-hero-copy p {
    font-size: 11px;
    line-height: 1.9;
    color: #687385;
    margin: 0
}

.device-hero-status {
    margin-right: auto;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    border: 1px solid #dff5e9;
    background: #f4fff9;
    color: #087a55;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 10px;
    font-weight: 700
}

.signal-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00c967;
    margin-left: 6px;
    box-shadow: 0 0 0 4px rgba(0, 201, 103, .12)
}

.device-connect-grid {
    margin-top: 6px
}

.connect-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px
}

.connect-steps>div {
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 14px;
    padding: 14px
}

.connect-steps span {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #eaf1ff;
    color: #07378e;
    font-weight: 900;
    font-size: 11px;
    margin-bottom: 9px
}

.connect-steps b {
    display: block;
    font-size: 11px;
    margin-bottom: 5px
}

.connect-steps small {
    font-size: 9px;
    line-height: 1.7;
    color: #8a94a3
}

.device-card-picker {
    display: grid;
    gap: 9px;
    margin: 10px 0 16px
}

.device-card-picker.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.device-card-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e9ee;
    border-radius: 13px;
    padding: 11px 12px;
    cursor: pointer;
    transition: .18s;
    background: #fff
}

.device-card-option:hover {
    border-color: #b9d2ff;
    background: #fbfdff
}

.device-card-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.check-ui {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid #d7dce3;
    display: grid;
    place-items: center;
    color: transparent;
    font-size: 12px;
    background: #fff
}

.device-card-option input:checked+.check-ui {
    background: linear-gradient(135deg, #07378e, #00a95b);
    border-color: transparent;
    color: #fff
}

.device-card-option>span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column
}

.device-card-option b {
    font-size: 11px
}

.device-card-option small {
    font-size: 9px;
    color: #8c96a5;
    direction: ltr;
    text-align: right;
    margin-top: 2px
}

.pairing-panel {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: center
}

.pairing-qr {
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 15px 35px rgba(7, 55, 142, .07)
}

.pairing-qr svg {
    width: 100%;
    height: auto;
    max-width: 280px
}

.pairing-copy h3 {
    font-size: 18px;
    margin: 12px 0 7px
}

.pairing-copy p {
    font-size: 11px;
    color: #6d7786;
    line-height: 1.9
}

.pair-code {
    border: 1px solid #e8ebef;
    background: #f9fafb;
    border-radius: 13px;
    padding: 12px;
    margin: 14px 0
}

.pair-code>span {
    font-size: 9px;
    color: #8c95a3;
    display: block
}

.pair-code code {
    display: block;
    direction: ltr;
    text-align: left;
    font-size: 10px;
    word-break: break-all;
    margin: 6px 0 9px;
    color: #26303d
}

.pair-expiry {
    font-size: 10px;
    color: #8b95a3;
    margin-bottom: 13px
}

.device-health {
    display: grid;
    gap: 3px
}

.device-health>div {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 5px;
    border-bottom: 1px solid #f0f2f4
}

.device-health>div:last-child {
    border-bottom: 0
}

.device-health>div>span:nth-child(2) {
    display: flex;
    flex: 1;
    flex-direction: column
}

.device-health b {
    font-size: 11px
}

.device-health small {
    font-size: 9px;
    color: #8b95a3;
    margin-top: 3px
}

.device-health em {
    font-style: normal;
    font-size: 9px;
    color: #087a55
}

.health-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 900
}

.health-icon.ok {
    background: #e9fbf2;
    color: #07945f
}

.device-card {
    position: relative
}

.device-card-head {
    display: flex;
    align-items: center;
    gap: 11px
}

.phone-icon {
    width: 38px;
    height: 48px;
    border: 2px solid #07378e;
    border-radius: 10px;
    position: relative;
    display: grid;
    place-items: end center;
    padding-bottom: 4px;
    background: linear-gradient(160deg, #f7faff, #eef4ff)
}

.phone-icon:before {
    content: "";
    width: 13px;
    height: 2px;
    border-radius: 2px;
    background: #07378e;
    position: absolute;
    top: 4px
}

.phone-icon span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00c967
}

.device-title {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column
}

.device-title b {
    font-size: 13px
}

.device-title small {
    font-size: 9px;
    color: #8b95a3;
    margin-top: 4px;
    direction: ltr;
    text-align: right
}

.device-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 16px 0
}

.device-metrics>div {
    background: #fafbfc;
    border: 1px solid #eef0f2;
    border-radius: 11px;
    padding: 10px;
    display: flex;
    flex-direction: column
}

.device-metrics span {
    font-size: 8px;
    color: #9199a6;
    margin-bottom: 4px
}

.device-metrics b {
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis
}

.device-assign-form {
    border-top: 1px solid #eef0f2;
    padding-top: 14px
}

.device-actions {
    display: flex;
    justify-content: flex-end
}

.recent-device-events {
    border-top: 1px dashed #e5e8ec;
    margin-top: 15px;
    padding-top: 13px
}

.recent-device-events>div {
    display: grid;
    grid-template-columns: 8px 90px 1fr auto;
    align-items: center;
    gap: 7px;
    padding: 7px 0;
    font-size: 9px
}

.recent-device-events b {
    font-size: 9px
}

.recent-device-events small {
    color: #818b99;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.recent-device-events time {
    font-size: 8px;
    color: #a1a8b3;
    direction: ltr
}

.event-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #eab308
}

.event-dot.success {
    background: #00c967
}

.event-dot.danger {
    background: #e5484d
}

.device-revoke-form {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f1f3;
    display: flex;
    justify-content: flex-end
}

.empty.mini {
    padding: 20px
}

.device-actions+.device-revoke-form {
    margin-top: 10px
}

@media(max-width:850px) {
    .pairing-panel {
        grid-template-columns: 1fr
    }

    .pairing-qr {
        max-width: 320px;
        margin: auto
    }

    .device-metrics {
        grid-template-columns: 1fr 1fr
    }

    .device-card-picker.compact {
        grid-template-columns: 1fr
    }

    .device-hero {
        align-items: flex-start
    }

    .device-hero-status {
        display: none
    }
}

@media(max-width:650px) {
    .connect-steps {
        grid-template-columns: 1fr
    }

    .device-hero-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 16px
    }

    .device-hero-copy h2 {
        font-size: 16px
    }

    .pairing-qr {
        padding: 8px
    }

    .recent-device-events>div {
        grid-template-columns: 8px 70px 1fr
    }

    .recent-device-events time {
        display: none
    }
}

.alert.info {
    background: #eef6ff;
    border-color: #cfe3ff;
    color: #174b84
}

.alert.info a {
    color: #07378e
}

.device-card-option small {
    display: block;
    margin-top: 3px;
    line-height: 1.55
}

.filter-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #087a55;
    background: #e8f8f2;
    padding: 5px 9px;
    border-radius: 999px
}

.wallet-status-form,
.wallet-adjust-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-adjust-form {
    flex-wrap: wrap;
}

/* Inputs */
.form-input,
.form-select {
    height: 40px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    background: #fff;
    padding: 0 12px;
    font-family: inherit;
    font-size: 13px;
    color: #1f2937;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.form-input:hover,
.form-select:hover {
    border-color: #bcc6d4;
}

.form-input:focus,
.form-select:focus {
    border-color: #01c058;
    box-shadow: 0 0 0 3px rgba(1, 192, 88, .10);
}

/* Select */
.form-select {
    min-width: 95px;
    cursor: pointer;
    padding-left: 30px;
}

/* Wallet amount */
.wallet-amount {
    width: 130px;
    direction: ltr;
    text-align: center;
    font-weight: 600;
}

/* Reason */
.wallet-reason {
    width: 190px;
}

/* Buttons */
.wallet-save-btn,
.wallet-adjust-btn {
    height: 40px;
    min-width: 64px;
    border-radius: 10px;
    padding: 0 14px;
    white-space: nowrap;
}

/* Submit adjustment */
.wallet-adjust-btn {
    background: linear-gradient(135deg,
            #011c5f 0%,
            #01c058 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 10px rgba(1, 28, 95, .12);
}

.wallet-adjust-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(1, 28, 95, .18);
}

/* Placeholder */
.form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Mobile */
@media (max-width: 768px) {

    .wallet-status-form,
    .wallet-adjust-form {
        align-items: stretch;
    }

    .wallet-adjust-form {
        flex-direction: column;
    }

    .wallet-amount,
    .wallet-reason,
    .form-select {
        width: 100%;
    }

    .wallet-save-btn,
    .wallet-adjust-btn {
        width: 100%;
    }
}


/* ============================================================
   CardPayOne Payment Page
============================================================ */

.payment-page-card {
    width: min(100% - 32px, 520px);
    margin: 38px auto;

    background: #ffffff;

    border: 1px solid #e6ebf2;
    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 24px 70px rgba(1, 28, 95, .10),
        0 4px 18px rgba(1, 28, 95, .04);
}


/* ============================================================
   Header
============================================================ */

.payment-header {
    min-height: 128px;

    padding: 26px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        radial-gradient(circle at 100% 0,
            rgba(1, 192, 88, .13),
            transparent 38%),
        linear-gradient(135deg,
            #011c5f 0%,
            #062c75 100%);
}


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

.payment-logo img {
    display: block;

    width: 220px;
    max-width: 100%;
}


.payment-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 34px;

    padding: 0 10px;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 9px;

    background: rgba(255, 255, 255, .08);

    color: rgba(255, 255, 255, .94);

    font-size: 10px;
    font-weight: 650;

    white-space: nowrap;
}


/* ============================================================
   Body
============================================================ */

.payment-body {
    padding: 27px 27px 25px;
}


.payment-merchant {
    margin-bottom: 12px;

    text-align: center;

    color: #7d8999;

    font-size: 12px;
    font-weight: 500;
}


/* ============================================================
   Amount
============================================================ */

.payment-amount {
    padding: 3px 0 27px;

    text-align: center;
}


.payment-section-caption {
    margin-bottom: 7px;

    color: #9aa4b2;

    font-size: 11px;
}


.payment-amount-value {
    display: block;

    width: auto;

    margin: 0 auto;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #061b42;

    font-family: inherit;

    font-size: 36px;
    line-height: 1.22;

    font-weight: 850;

    letter-spacing: -.5px;

    direction: ltr;

    cursor: pointer;

    transition:
        transform .15s ease,
        opacity .15s ease;
}


.payment-amount-value:hover {
    opacity: .88;
}


.payment-amount-value:active {
    transform: scale(.985);
}


.payment-currency {
    margin-top: 6px;

    color: #a1aab7;

    font-size: 11px;
}


.payment-copy-button {
    min-width: 138px;
    height: 40px;

    margin: 14px auto 0;

    padding: 0 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border: 1px solid #c7f0da;
    border-radius: 11px;

    background: #eefbf4;

    color: #009c50;

    font-family: inherit;
    font-size: 11px;
    font-weight: 750;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}


.payment-copy-button svg {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;
}


.payment-copy-button:hover {
    border-color: #9fe7be;

    background: #e4f9ed;

    transform: translateY(-1px);
}


.payment-copy-button.copied,
.payment-copy-button.is-copied {
    border-color: #01c058;

    background: #01c058;

    color: #ffffff;
}


.payment-exact-hint {
    margin-top: 10px;
    color: #758193;
    font-size: 13px;
    font-weight: bold;
}


/* ============================================================
   Destination Card
============================================================ */

.payment-destination-card {
    padding: 19px;

    border: 1px solid #e2e7ef;
    border-radius: 17px;

    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #fafbfd 100%);
}


.payment-destination-header {
    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.payment-destination-title {
    color: #737f90;

    font-size: 11px;
    font-weight: 650;
}


.payment-destination-subtitle {
    margin-top: 3px;

    color: #a7afbb;

    font-size: 9px;
}


.payment-bank-badge {
    padding: 5px 8px;

    border-radius: 8px;

    background: #f1f4f8;

    color: #596678;

    font-size: 9px;
    font-weight: 650;
}


.payment-card-number-row {
    width: 100%;
    min-height: 54px;

    padding: 0 13px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border: 1px dashed #cdd5e0;
    border-radius: 12px;

    background: #ffffff;

    transition:
        background .18s ease,
        border-color .18s ease;
}


.payment-card-number-row:hover {
    border-color: #aebccc;
    background: #fcfdff;
}


.payment-card-number-text {
    min-width: 0;

    color: #061b42;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 15px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: 1.55px;

    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}


.payment-card-copy-btn {
    min-width: 70px;
    height: 34px;

    padding: 0 10px;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 0;
    border-radius: 9px;

    background: #eefbf4;
    color: #00a956;

    font-family: inherit;
    font-size: 10px;
    font-weight: 750;

    white-space: nowrap;
    cursor: pointer;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}


.payment-card-copy-btn svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}


.payment-card-copy-btn:hover {
    background: #e0f8eb;
    transform: translateY(-1px);
}


.payment-card-copy-btn:active {
    transform: translateY(0);
}


.payment-card-copy-btn.copied,
.payment-card-copy-btn.is-copied {
    background: #01c058;
    color: #ffffff;
}



.payment-destination-details {
    margin-top: 11px;
}


.payment-detail-row {
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid #edf0f4;
}


.payment-detail-row:last-child {
    border-bottom: 0;
}


.payment-detail-row span {
    color: #8e98a6;

    font-size: 10px;
}


.payment-detail-row strong {
    color: #1e2d44;

    font-size: 11px;
    font-weight: 700;
}


/* ============================================================
   Timer
============================================================ */

.payment-timer-card {
    min-height: 57px;

    margin-top: 14px;

    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border-radius: 13px;

    background: #f6f8fb;

    border: 1px solid #f0f2f6;
}


.payment-timer-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #ffffff;

    color: #102d60;

    box-shadow: 0 1px 4px rgba(1, 28, 95, .05);
}


.payment-timer-icon svg {
    width: 15px;
    height: 15px;
}


.payment-timer-content {
    display: flex;
    align-items: center;

    gap: 7px;
}


.payment-timer-content>span {
    color: #7f8998;

    font-size: 10px;
}


.payment-timer-value {
    color: #071b3d;

    font-size: 13px;
    font-weight: 800;

    direction: ltr;
}


/* ============================================================
   Warning
============================================================ */

.payment-warning {
    margin-top: 13px;

    padding: 13px 14px;

    display: flex;
    align-items: flex-start;

    gap: 10px;

    border: 1px solid #f6dfa6;
    border-radius: 13px;

    background: #fff9eb;
}


.payment-warning-icon {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #ffedba;

    color: #c78100;

    font-size: 12px;
    font-weight: 850;
}


.payment-warning-content {
    flex: 1;
}


.payment-warning-content strong {
    display: block;

    color: #765915;

    font-size: 10px;
    font-weight: 750;
}


.payment-warning-content p {
    margin: 4px 0 0;

    color: #967a38;

    font-size: 9px;
    line-height: 1.85;
}


/* ============================================================
   Payment Status
============================================================ */

.payment-status {
    min-height: 72px;

    margin-top: 14px;

    padding: 15px 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e5eaf1;
    border-radius: 14px;

    background: #f6f8fb;

    text-align: center;
}


.payment-status-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 6px;
}


.payment-status-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}


.payment-status-title strong {
    color: #24334a;

    font-size: 11px;
    font-weight: 750;
}


.payment-status-content p {
    margin: 0;

    color: #8b95a3;

    font-size: 9px;
    line-height: 1.7;
}


/*
 * Pending pulse:
 * حالا دقیقاً جزئی از title است.
 */

.payment-status-pulse {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: #01c058;

    box-shadow: 0 0 0 0 rgba(1, 192, 88, .30);

    animation: cardpayonePaymentPulse 1.7s infinite;
}


@keyframes cardpayonePaymentPulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(1, 192, 88, .32);
    }

    70% {
        box-shadow:
            0 0 0 7px rgba(1, 192, 88, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(1, 192, 88, 0);
    }

}


/*
 * Success / Review
 */

.payment-status-success {
    border-color: #ccefdc;

    background: #effbf5;
}


.payment-status-success .payment-status-title strong {
    color: #008f49;
}


.payment-status-review {
    border-color: #f5e2ae;

    background: #fff9eb;
}


.payment-status-review .payment-status-title strong {
    color: #9a6600;
}


.payment-status-icon {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #ffffff;

    font-size: 12px;
    font-weight: 850;
}


.payment-status-icon.success {
    background: #01c058;
}


.payment-status-icon.review {
    background: #e6a51b;
}


/* ============================================================
   Receipt
============================================================ */

.payment-receipt {
    margin-top: 14px;

    padding: 17px;

    border: 1px solid #e2e8f0;
    border-radius: 15px;

    background: #f8fafc;
}


.payment-receipt-heading strong {
    display: block;

    color: #24334a;

    font-size: 11px;
}


.payment-receipt-heading p {
    margin: 6px 0 13px;

    color: #818c9c;

    font-size: 9px;
    line-height: 1.8;
}


.payment-file-picker {
    min-height: 61px;

    padding: 10px 12px;

    display: flex;
    align-items: center;

    gap: 10px;

    border: 1px dashed #c8d1de;
    border-radius: 12px;

    background: #ffffff;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease;
}


.payment-file-picker:hover {
    border-color: #9fb1c8;

    background: #fbfcff;
}


.payment-file-picker input {
    display: none;
}


.payment-upload-icon {
    width: 35px;
    height: 35px;

    flex: 0 0 35px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #edf3ff;

    color: #07378e;
}


.payment-upload-icon svg {
    width: 17px;
    height: 17px;
}


.payment-file-info {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.payment-file-info strong {
    color: #344358;

    font-size: 10px;
}


.payment-file-info small {
    color: #9aa4b2;

    font-size: 8px;
}


.payment-receipt-submit {
    width: 100%;
    height: 42px;

    margin-top: 10px;

    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(100deg,
            #011c5f 0%,
            #07378e 45%,
            #01c058 100%);

    color: #ffffff;

    font-family: inherit;
    font-size: 10px;
    font-weight: 750;

    cursor: pointer;

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}


.payment-receipt-submit:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(1, 28, 95, .15);
}


/* ============================================================
   Footer
============================================================ */

.payment-footer {
    padding: 13px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-top: 1px solid #edf0f4;

    background: #fafbfd;

    color: #a0a8b4;

    font-size: 8px;
}


.payment-footer strong {
    color: #737e8e;

    font-weight: 650;
}


/* ============================================================
   Generic hidden
============================================================ */

.payment-receipt[hidden] {
    display: none !important;
}


/* ============================================================
   Mobile
============================================================ */

@media (max-width: 560px) {

    body {
        background: #ffffff;
    }


    .payment-page-card {
        width: 100%;

        min-height: 100vh;

        margin: 0;

        border: 0;

        box-shadow: none;
    }


    .payment-header {
        min-height: 110px;

        padding: 20px 19px;
    }


    .payment-logo img {
        width: 185px;
    }


    .payment-secure-badge {
        min-height: 31px;

        font-size: 9px;
    }


    .payment-body {
        padding: 23px 17px 24px;
    }


    .payment-amount-value {
        font-size: 32px;
    }


    .payment-destination-card {
        padding: 16px;
    }


    .payment-card-number-row {
        padding: 0 11px;
        gap: 9px;
    }


    .payment-card-number-text {
        font-size: 13px;
        letter-spacing: 1.15px;
    }


    .payment-card-copy-btn {
        min-width: 66px;
        height: 32px;
        padding: 0 8px;
    }


    .payment-footer {
        padding: 13px 17px;

        flex-direction: column;

        text-align: center;

        line-height: 1.7;
    }

}


/* ============================================================
   Very small screens
============================================================ */

@media (max-width: 360px) {

    .payment-logo img {
        width: 160px;
    }


    .payment-card-number-row {
        padding: 0 9px;
        gap: 7px;
    }


    .payment-card-number-text {
        font-size: 11.5px;
        letter-spacing: .8px;
    }


    .payment-card-copy-btn {
        min-width: 60px;
        height: 31px;
        padding: 0 7px;
        font-size: 9px;
    }


    .payment-copy-button {
        min-width: 130px;
    }

}

/* ============================================================
   Merchant plugins catalog
============================================================ */

.plugins-hero {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(120deg, #fff 0, #fbfdff 58%, #eef6ff 100%);
    margin-bottom: 16px
}

.plugins-hero:after {
    content: "";
    position: absolute;
    left: -80px;
    top: -100px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(1, 192, 88, .14), rgba(1, 28, 95, .03) 68%, transparent 72%)
}

.plugins-hero-icon {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #07378e, #0b2f73 70%);
    box-shadow: 0 16px 32px rgba(7, 55, 142, .2);
    position: relative;
    z-index: 1
}

.plugins-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px
}

.plugins-hero-copy .eyebrow {
    font-size: 10px;
    font-weight: 800;
    color: #07378e;
    letter-spacing: .6px
}

.plugins-hero-copy h2 {
    font-size: 20px;
    margin: 4px 0 7px
}

.plugins-hero-copy p {
    font-size: 12px;
    line-height: 1.9;
    color: #687385;
    margin: 0
}

.plugins-hero-status {
    margin-right: auto;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    border: 1px solid #dff5e9;
    background: #f4fff9;
    color: #087a55;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 10px;
    font-weight: 700
}

.plugins-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px
}

.plugins-steps > div {
    background: #fff;
    border: 1px solid #edf1f5;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(1, 28, 95, .04)
}

.plugins-steps span {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #eaf1ff;
    color: #07378e;
    font-weight: 900;
    font-size: 11px;
    margin-bottom: 9px
}

.plugins-steps b {
    display: block;
    font-size: 12px;
    margin-bottom: 5px
}

.plugins-steps small {
    font-size: 11px;
    line-height: 1.7;
    color: #8a94a3
}

.plugins-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px
}

.plugins-filter {
    border: 1px solid #e5eaf2;
    background: #fff;
    color: #4b5568;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s ease
}

.plugins-filter:hover {
    border-color: #c9d6ef;
    color: #07378e
}

.plugins-filter.is-active {
    background: #07378e;
    border-color: #07378e;
    color: #fff;
    box-shadow: 0 8px 18px rgba(7, 55, 142, .22)
}

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

.plugin-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid #e8edf5;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease
}

.plugin-card:hover {
    border-color: #cfd9ec;
    box-shadow: 0 18px 40px rgba(1, 28, 95, .08);
    transform: translateY(-2px)
}

.plugin-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px
}

.plugin-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(145deg, #07378e, #0b2f73)
}

.plugin-mark--woocommerce {
    background: linear-gradient(145deg, #7f54b3, #96588a)
}

.plugin-mark--wordpress {
    background: linear-gradient(145deg, #21759b, #135e96)
}

.plugin-mark--opencart {
    background: linear-gradient(145deg, #23a1d1, #1b7fa3)
}

.plugin-mark--prestashop {
    background: linear-gradient(145deg, #df0067, #b80056)
}

.plugin-mark--whmcs {
    background: linear-gradient(145deg, #1a4d80, #0f355c)
}

.plugin-card-titles {
    min-width: 0;
    flex: 1
}

.plugin-card-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px
}

.plugin-platform {
    font-size: 10px;
    font-weight: 800;
    color: #07378e;
    background: #eaf1ff;
    border-radius: 999px;
    padding: 4px 9px
}

.plugin-version {
    font-size: 11px;
    font-weight: 700;
    color: #087a55;
    background: #f0fff7;
    border: 1px solid #d8f5e6;
    border-radius: 999px;
    padding: 3px 8px
}

.plugin-card-titles h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.45
}

.plugin-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.9;
    color: #5b6575;
    white-space: pre-wrap;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.plugin-desc.muted {
    color: #8a94a3
}

.plugin-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.plugin-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6b7280;
    background: #f7f9fc;
    border: 1px solid #eef2f7;
    border-radius: 999px;
    padding: 5px 10px
}

.plugin-stat.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .2px
}

.plugin-guide {
    border: 1px dashed #dbe3ef;
    border-radius: 12px;
    background: #fbfcfe;
    padding: 0 12px
}

.plugin-guide summary {
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 700;
    color: #07378e;
    padding: 11px 0;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.plugin-guide summary::-webkit-details-marker {
    display: none
}

.plugin-guide summary:after {
    content: "+";
    font-size: 14px;
    font-weight: 700;
    color: #8a94a3
}

.plugin-guide[open] summary:after {
    content: "−"
}

.plugin-guide-body {
    font-size: 12px;
    line-height: 1.9;
    color: #687385;
    white-space: pre-wrap;
    padding: 0 0 12px;
    border-top: 1px solid #edf1f5;
    padding-top: 10px
}

.plugin-card-foot {
    margin-top: auto;
    padding-top: 4px
}

.plugin-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center
}

.plugins-empty {
    text-align: center;
    padding: 48px 24px !important;
    background: linear-gradient(180deg, #fff, #f8fbff)
}

.plugins-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: #07378e;
    background: #eaf1ff
}

.plugins-empty h3 {
    margin: 0 0 8px;
    font-size: 17px
}

.plugins-empty p {
    margin: 0 auto;
    max-width: 34rem;
    line-height: 1.9
}

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

    .plugins-hero {
        align-items: flex-start
    }

    .plugins-hero-status {
        display: none
    }
}

@media (max-width: 650px) {
    .plugins-steps {
        grid-template-columns: 1fr
    }

    .plugins-hero-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 16px
    }

    .plugins-hero-copy h2 {
        font-size: 16px
    }
}

/* ─── Support / Ticketing ─── */
.badge.open,
.badge.awaiting_agent {
    background: #fff7e8;
    color: #b46100
}

.badge.awaiting_customer {
    background: #eef2ff;
    color: #4338ca
}

.badge.resolved {
    background: #e8f8f2;
    color: #087a55
}

.badge.closed {
    background: #f3f4f6;
    color: #6b7280
}

.badge.priority-low {
    background: #f3f4f6;
    color: #6b7280
}

.badge.priority-normal {
    background: #eaf1ff;
    color: #1d4ed8
}

.badge.priority-high {
    background: #fff7e8;
    color: #b46100
}

.badge.priority-urgent {
    background: #fff0f0;
    color: #bf3036
}

.ticket-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 20px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #011C5F 0%, #0a3a8f 55%, #0c4dab 100%);
    color: #fff;
    box-shadow: var(--shadow)
}

.ticket-hero h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800
}

.ticket-hero p {
    margin: 0;
    opacity: .82;
    font-size: 13px;
    line-height: 1.8
}

.ticket-hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0
}

.ticket-hero .btn.secondary,
.ticket-hero .btn.primary {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff
}

.ticket-hero .btn.primary {
    background: var(--accent);
    border-color: transparent;
    color: #05301a
}

.ticket-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px
}

.ticket-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    transition: .15s
}

.ticket-tab:hover {
    border-color: #c7d2fe;
    color: var(--primary)
}

.ticket-tab.active {
    background: #eaf1ff;
    border-color: #bfdbfe;
    color: #1d4ed8
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.ticket-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    transition: .15s;
    box-shadow: 0 1px 2px rgba(1, 28, 95, .03)
}

.ticket-row:hover {
    border-color: #c7d2fe;
    box-shadow: 0 8px 24px rgba(1, 28, 95, .08);
    transform: translateY(-1px)
}

.ticket-row-main {
    min-width: 0
}

.ticket-row-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink2);
    line-height: 1.5
}

.ticket-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    color: var(--muted)
}

.ticket-row-meta .mono {
    font-size: 10px
}

.ticket-row-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0
}

.ticket-row-time {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap
}

.ticket-empty {
    text-align: center;
    padding: 48px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed #d1d5db
}

.ticket-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #eaf1ff;
    color: #1d4ed8;
    font-size: 22px;
    font-weight: 800
}

.ticket-empty h3 {
    margin: 0 0 8px;
    font-size: 16px
}

.ticket-empty p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8
}

.ticket-create {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 16px;
    align-items: start
}

.ticket-create-form,
.ticket-create-aside {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px
}

.ticket-create-aside h3 {
    margin: 0 0 10px;
    font-size: 15px
}

.ticket-create-aside ul {
    margin: 0;
    padding: 0 18px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 2
}

.ticket-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px
}

.ticket-cat {
    position: relative;
    cursor: pointer
}

.ticket-cat input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.ticket-cat span {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fafbff;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink2);
    transition: .15s;
    line-height: 1.5
}

.ticket-cat small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.6
}

.ticket-cat input:checked+span {
    border-color: #93c5fd;
    background: #eaf1ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12)
}

.ticket-priority-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px
}

.ticket-priority {
    position: relative;
    cursor: pointer
}

.ticket-priority input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.ticket-priority span {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    transition: .15s
}

.ticket-priority input:checked+span {
    background: #011C5F;
    border-color: #011C5F;
    color: #fff
}

.ticket-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start
}

.ticket-thread {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden
}

.ticket-thread-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #fafbff
}

.ticket-thread-head h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.5
}

.ticket-thread-head-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center
}

.ticket-messages {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 40%)
}

.ticket-msg {
    display: flex;
    gap: 12px;
    max-width: 92%
}

.ticket-msg.is-agent {
    align-self: flex-start
}

.ticket-msg.is-customer {
    align-self: flex-end;
    flex-direction: row-reverse
}

.ticket-msg.is-internal {
    max-width: 100%;
    align-self: stretch
}

.ticket-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: #011C5F
}

.ticket-msg.is-agent .ticket-avatar {
    background: #01C058;
    color: #05301a
}

.ticket-msg.is-internal .ticket-avatar {
    background: #d97706
}

.ticket-bubble {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(1, 28, 95, .04)
}

.ticket-msg.is-agent .ticket-bubble {
    background: #f0fdf6;
    border-color: #bbf7d0
}

.ticket-msg.is-customer .ticket-bubble {
    background: #eef4ff;
    border-color: #c7d2fe
}

.ticket-msg.is-internal .ticket-bubble {
    background: #fffbeb;
    border-color: #fde68a;
    width: 100%
}

.ticket-bubble-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    align-items: center
}

.ticket-bubble-head strong {
    font-size: 12px;
    color: var(--ink2)
}

.ticket-bubble-head time {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap
}

.ticket-bubble-body {
    white-space: pre-wrap;
    line-height: 1.9;
    font-size: 13px;
    color: #1f2937
}

.ticket-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px
}

.ticket-attach {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(1, 28, 95, .05);
    border: 1px solid rgba(1, 28, 95, .08);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary)
}

.ticket-composer {
    padding: 16px 18px;
    border-top: 1px solid var(--line);
    background: #fff
}

.ticket-composer h3 {
    margin: 0 0 12px;
    font-size: 14px
}

.ticket-side {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.ticket-side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px
}

.ticket-side-card h3 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800
}

.ticket-kv {
    display: grid;
    gap: 10px
}

.ticket-kv-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: 12px
}

.ticket-kv-row span {
    color: var(--muted)
}

.ticket-kv-row b {
    text-align: left;
    font-weight: 700;
    color: var(--ink2);
    word-break: break-word
}

.ticket-admin-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px
}

.ticket-admin-filters .field {
    margin: 0
}

.ticket-admin-table .ticket-subject {
    font-weight: 700;
    color: var(--ink2)
}

.ticket-admin-table tr.urgent-row {
    background: #fff8f8
}

.ticket-admin-user {
    min-width: 140px
}

.ticket-admin-user div:first-child {
    font-weight: 700;
    font-size: 12px
}

.ticket-closed-banner {
    padding: 14px 16px;
    border-radius: 14px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.8
}

@media (max-width: 980px) {
    .ticket-create,
    .ticket-layout {
        grid-template-columns: 1fr
    }

    .ticket-admin-filters {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width: 650px) {
    .ticket-hero {
        flex-direction: column
    }

    .ticket-row {
        grid-template-columns: 1fr
    }

    .ticket-row-side {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap
    }

    .ticket-cat-grid {
        grid-template-columns: 1fr
    }

    .ticket-admin-filters {
        grid-template-columns: 1fr
    }

    .ticket-msg {
        max-width: 100%
    }
}

