* {
    box-sizing: border-box;
}

body {
    margin:0;
    font-family: Arial, sans-serif;
    color: #13264b;
    background: #fff;
    line-height:1.6;
}

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

.container {
    width:min(1120px,92%);
    margin:auto;
}

.nav {
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.brand {
    font-weight:900;
    letter-spacing:.6px;
    color: #132f68;
}

.brand span {
    color: #c9942e;
}

nav {
    display:flex;
    gap:20px;
    align-items:center;
}

.btn {
    display:inline-block;
    border:0;
    border-radius:10px;
    background: #132f68;
    color:white;
    padding:13px 22px;
    font-weight:800;
    cursor:pointer;
}

.gold {
    background: #c9942e;
}

.small {
    padding:9px 15px;
}

.hero {
    padding:105px 0;
    background:linear-gradient(135deg,#f5f8fc,#fff9ed);
}

.hero h1 {
    font-size:clamp(42px,7vw,74px);
    line-height:1.05;
    max-width:900px;
    margin:18px 0;
}

.hero h1 span {
    color: #c9942e;
}

.hero p {
    max-width:760px;
    font-size:19px;
    color: #5d687b;
}

.badge {
    font-size:12px;
    font-weight:900;
    letter-spacing:2px;
    color: #c9942e;
}

.actions {
    display:flex;
    gap:12px;
    margin-top:30px;
}

.section {
    padding:72px 0;
}

.muted {
    background: #f6f8fb;
}

.center {
    text-align:center;
}

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

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

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

.card,.stat {
    border:1px solid #e2e7ef;
    border-radius:16px;
    padding:26px;
    background: #fff;
    box-shadow:0 8px 30px rgba(19,38,75,.06);
}

.price {
    font-size:32px;
    font-weight:900;
    color: #132f68;
    margin:10px 0;
}

.featured {
    border:2px solid #c9942e;
}

.auth {
    min-height:100vh;
    display:grid;
    place-items:center;
    background: #f5f7fa;
    padding:20px;
}

.auth .card {
    width:min(500px,100%);
}

form {
    display:grid;
    gap:15px;
}

label {
    font-weight:800;
    display:grid;
    gap:6px;
}

input,textarea,select {
    padding:13px;
    border:1px solid #ccd4e1;
    border-radius:9px;
    font:inherit;
}

textarea {
    resize:vertical;
}

.stat small {
    color: #687386;
}

.stat strong {
    font-size:28px;
    display:block;
    margin-top:8px;
}

.notice {
    padding:14px;
    border-radius:10px;
    background: #fff7e5;
    border:1px solid #ecd39b;
}

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

.table th,.table td {
    padding:12px;
    border-bottom:1px solid #e7ebf1;
    text-align:left;
}
@media (max-width: 900px) {
    .four {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    nav a:not(.btn) {
        display: none;
    }

    .three,
    .four {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 75px 0;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
}

.admin-page {
    padding: 30px 18px;
}

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

.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat span {
    font-size: 28px;
    font-weight: 800;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.smallBtn {
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.inline-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.inline-form input {
    flex: 1;
    min-width: 160px;
}

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

.stat {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.stat b {
    display: block;
    font-size: 1.45rem;
}

.stat span {
    color: #667085;
}

.small {
    padding: 7px 10px;
    font-size: .85rem;
}

.muted {
    color: #667085;
}

.note {
    padding: 10px;
    border-left: 3px solid #2563eb;
    background: #f8fafc;
}

textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
}

.legal {
    max-width: 900px;
    margin: 24px auto;
    line-height: 1.7;
}

.legal h2 {
    margin-top: 28px;
}

.legal hr {
    margin: 28px 0;
}

/* Payment / payout forms */
.payment-details { margin: 4px 0 18px; }
.payment-details code {
    display: block;
    overflow-wrap: anywhere;
    padding: 8px;
    background: #f6f8fb;
    border-radius: 7px;
}
.two { grid-template-columns: repeat(2, 1fr); }
.payment-setting-form { box-shadow: none; }
.compact-json {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 0;
    font: inherit;
}
.admin-actions { display: flex; gap: 10px; align-items: center; }
.error { color: #9b1c1c; }
.success { color: #176b3a; }
@media (max-width: 800px) {
    .two { grid-template-columns: 1fr; }
    .admin-actions { flex-wrap: wrap; }
}

/* Plans catalogue */
.plans-hero {
    padding: 42px 0;
    background: transparent;
}
.plans-hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    margin: 10px 0;
}
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 26px;
}
.plan-card {
    overflow: hidden;
    border: 1px solid #e2e7ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(19,38,75,.07);
    display: flex;
    flex-direction: column;
}
.plan-card.featured {
    border: 2px solid #c9942e;
}
.plan-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f5f8fc;
}
.plan-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.plan-label {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #c9942e;
}
.plan-card h2 {
    font-size: 34px;
    margin: 5px 0 8px;
    color: #132f68;
}
.plan-card p {
    color: #667085;
    margin-top: 0;
}
.plan-meta {
    margin: auto 0 18px;
    padding: 12px 0;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.plan-meta span {
    color: #667085;
}
.plans-status {
    margin-top: 8px;
}
@media (max-width: 1000px) {
    .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .plans-grid { grid-template-columns: 1fr; }
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 8px;
    flex: 0 0 auto;
}

.brand-name {
    color: #132f68;
    font-weight: 900;
    letter-spacing: .5px;
    white-space: nowrap;
}

.auth .brand-logo {
    width: 78px;
    height: 78px;
}

html.admin-session-pending body {
    visibility: hidden;
}

html.admin-session-ready body {
    visibility: visible;
}

@media (max-width: 700px) {
    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-name {
        font-size: 15px;
    }
}

.progress-track {
    width:100%;
    height:16px;
    border-radius:999px;
    background:#e8edf4;
    overflow:hidden;
    margin-top:18px;
}

.progress-bar {
    height:100%;
    width:0;
    border-radius:999px;
    background:#132f68;
    transition:width .5s ease;
}

.progress-row {
    display:flex;
    justify-content:space-between;
    gap:16px;
    margin-top:10px;
    color:#5d687b;
}

.progress-complete {
    color:#188038;
    font-weight:800;
}
