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

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: #f2f5f9;
    color: #1f2937;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
}

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

img,
video,
iframe {
    max-width: 100%;
    display: block;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    max-width: 100%;
}

input,
select,
textarea {
    font-size: 16px;
}

textarea {
    resize: vertical;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
small,
strong,
label,
a,
div {
    word-break: break-word;
    overflow-wrap: anywhere;
}

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

.page-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 12px 100px;
}

.guest-wrap {
    padding-top: 88px;
}

/* ------------ flash messages ------------ */
.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
}

.flash.success {
    background: #e9f9ef;
    color: #18794e;
}

.flash.danger {
    background: #fdecec;
    color: #b42318;
}

.flash.warning {
    background: #fff8e6;
    color: #b54708;
}

.flash.info {
    background: #edf6ff;
    color: #175cd3;
}

/* ------------ topbar ------------ */
.topbar,
.public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #0b1f35, #0f766e);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(11, 31, 53, 0.18);
    flex-wrap: nowrap;
}

.topbar-left,
.public-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 0;
}

.menu-toggle,
.menu-close {
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

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

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.brand-logo.lg {
    width: 58px;
    height: 58px;
    font-size: 22px;
    margin: 0 auto 12px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.brand-text strong {
    font-size: 15px;
    white-space: nowrap;
    color: #ffffff;
}

.brand-text small {
    display: none;
    color: rgba(255,255,255,0.78);
    font-size: 12px;
}

.notification-bell {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.15);
    color: #fff;
    flex-shrink: 0;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
}

.balance-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #ffffff;
    color: #16a34a;
    padding: 0;
    border-radius: 50%;
    font-weight: 700;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar-large,
.profile-avatar-fallback {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #0f766e, #16a34a);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 40px;
    font-weight: 800;
}

.profile-avatar-box {
    text-align: center;
    margin-bottom: 20px;
}

.profile-name {
    display: none;
}

.topbar-avatar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-bell--avatar {
    position: absolute;
    top: -8px;
    right: -8px; 
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.16);
    z-index: 3;
    font-size: 14px;
}

.notification-bell--avatar .badge {
    top: -5px;
    right: -5px;
}

/* ------------ side menu ------------ */
.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 86vw;
    height: 100vh;
    z-index: 90;
    background: linear-gradient(180deg, #ffffff, #eef8f0);
    transition: left 0.25s ease;
    box-shadow: 14px 0 35px rgba(0,0,0,0.16);
    padding: 18px;
    overflow-y: auto;
}

.side-menu.open {
    left: 0;
}

.side-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.side-title {
    font-size: 18px;
    font-weight: 800;
}

.side-links {
    display: grid;
    gap: 10px;
}

.side-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    background: linear-gradient(180deg, #ffffff, #eef7ef);
    border: 1px solid #edf2f7;
}

.side-links a.active,
.side-links a:hover {
    background: linear-gradient(180deg, #f8fffa, #e7f6ea);
}

.danger-link {
    color: #d92d20;
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 80;
    display: none;
}

.menu-backdrop.show {
    display: block;
}

/* ------------ footer ------------ */
.site-footer {
    margin-top: 32px;
    background: #0b1f35;
    color: #fff;
    padding: 28px 20px;
    display: grid;
    gap: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-copy {
    color: #cbd5e1;
    font-size: 14px;
}

/* ------------ buttons ------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    transition: 0.2s ease;
    text-align: center;
}

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

.btn-primary {
    background: linear-gradient(135deg, #0f766e, #16a34a);
    color: #fff;
}

.btn-secondary {
    background: #ffffff;
    color: #0f766e;
    border: 1px solid #d7e8d7;
}

.btn-ghost {
    background: transparent;
    color: #0f766e;
    border: 1px solid #0f766e;
}

.btn-glass {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

.btn-warning {
    background: #ffb020;
    color: #1a1f36;
}

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

.btn.full {
    width: 100%;
}

.btn-small {
    padding: 8px 12px;
    font-size: 13px;
}

.fit-btn {
    width: auto;
    display: inline-flex;
}

/* ------------ cards / layout ------------ */
.card,
.table-card,
.auth-card,
.hero-copy,
.hero-side,
.info-card,
.product-card,
.product-single-card,
.info-page-card,
.status-card,
.stat-card {
    background: linear-gradient(180deg, #ffffff, #f6fdf7);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
    color: #1f2937;
}

.table-card,
.auth-card,
.info-page-card {
    padding: 16px;
}

.form-card {
    padding: 18px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin: 18px 0 14px;
}

.section-head.compact {
    margin: 0 0 12px;
}

.section-head.compact-column {
    flex-direction: column;
    align-items: start;
    margin: 0 0 14px;
}

.section-head h1,
.section-head h2 {
    margin: 0;
    color: #111827;
}

.section-head p,
.subtext {
    color: #667085;
}

.empty-state {
    text-align: center;
    padding: 22px;
    color: #667085;
}

/* ------------ landing ------------ */
.landing-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: center;
}

.hero-copy {
    padding: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.hero-side {
    padding: 18px;
    background: linear-gradient(180deg, #eef7ff, #eef9f1);
}

.eyebrow {
    display: inline-block;
    color: #0f766e;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 8px;
}

.eyebrow.light {
    color: #0f766e;
}

.hero-copy h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #111827;
}

.hero-copy p {
    font-size: 16px;
    color: #475467;
    line-height: 1.7;
}

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

.hero-actions .btn {
    width: 100%;
}

.hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 26px;
}

.hero-metrics div {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
}

.hero-metrics strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.hero-metrics span {
    color: #667085;
    font-size: 13px;
}

.activity-widget {
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid #edf2f7;
}

.activity-head {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    margin-bottom: 10px;
}

.activity-head small {
    color: #667085;
}

.activity-body {
    position: relative;
    min-height: 64px;
}

.activity-item {
    display: none;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 8px;
    align-items: center;
}

.activity-item.active {
    display: grid;
}

.activity-item strong {
    font-size: 13px;
}

.activity-item span {
    color: #667085;
    font-size: 13px;
}

.activity-item b {
    color: #0f766e;
}

.phone-mockup {
    border-radius: 28px;
    padding: 18px;
    background: linear-gradient(180deg, #0b1f35, #163655);
    color: #fff;
}

.phone-header {
    width: 100px;
    height: 8px;
    background: rgba(255,255,255,0.45);
    border-radius: 999px;
    margin: 0 auto 18px;
}

.mini-balance {
    background: rgba(255,255,255,0.08);
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 14px;
}

.mini-balance small {
    color: #d0d5dd;
}

.mini-balance strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
}

.mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.mini-actions span,
.mini-item {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    flex: 1 1 100%;
}

.mini-list {
    display: grid;
    gap: 10px;
}

.mini-item small {
    display: block;
    color: #d0d5dd;
    margin-top: 5px;
}

.info-grid,
.dual-grid,
.profile-grid {
    display: grid;
    gap: 20px;
    margin-top: 24px;
    grid-template-columns: 1fr;
}

.info-card {
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #f9fffb);
    color: #1f2937;
}

.info-card h1,
.info-card h2,
.info-card h3,
.table-card h1,
.table-card h2,
.table-card h3,
.auth-card h1,
.auth-card h2,
.auth-card h3,
.hero-copy h1,
.hero-copy h2,
.hero-copy h3,
.hero-side h1,
.hero-side h2,
.hero-side h3,
.stat-card h1,
.stat-card h2,
.stat-card h3 {
    color: #111827;
}

.info-card p,
.info-card li,
.table-card p,
.auth-card p,
.hero-copy p,
.hero-side p,
.stat-card p {
    color: #475467;
}

.dark-card,
.cta-band {
    background: linear-gradient(135deg, #0b1f35, #0f766e, #16a34a);
    color: #fff;
}

.feature-list {
    padding-left: 18px;
    color: #ecf4ff;
    line-height: 1.8;
}

.landing-media-section,
.packages-section {
    margin-top: 32px;
}

.landing-media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.landing-media-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding-bottom: 12px;
}

.landing-media-card img,
.landing-media-card video,
.landing-video-player {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #000;
    cursor: pointer;
}

.landing-media-card h3 {
    padding: 12px 14px 0;
    font-size: 16px;
}

.package-slider-wrap {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
    padding: 20px 0;
}

.package-slider-track {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: slidePackages 34s linear infinite;
}

.package-slide {
    width: 230px;
    flex: 0 0 auto;
    background: #f8fafc;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid #edf2f7;
}

.package-slide img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
}

.package-slide h3 {
    margin: 0 0 8px;
}

.package-slide p,
.package-slide span,
.package-slide small {
    display: block;
    margin-bottom: 6px;
    color: #475467;
}

@keyframes slidePackages {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cta-band {
    margin-top: 32px;
    padding: 24px 18px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.stack-mobile {
    flex-wrap: wrap;
}

/* ------------ auth ------------ */
.auth-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.auth-card.wide {
    max-width: 860px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 18px;
}

.auth-brand h2 {
    margin: 0 0 8px;
    color: #111827;
}

.auth-brand p {
    color: #667085;
}

.auth-form {
    display: grid;
    gap: 14px;
    width: 100%;
}

.grid-two {
    grid-template-columns: 1fr;
    gap: 16px;
}

.grid-two .span-two {
    grid-column: span 1;
}

.auth-form label {
    font-weight: 700;
    font-size: 14px;
    color: #344054;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    background: #fff;
    outline: none;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrap input {
    width: 100%;
    padding-right: 80px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    border: none;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    color: #0f766e;
}

.auth-links.center,
.muted.center {
    text-align: center;
    margin-top: 14px;
}

.resend-form {
    margin-top: 12px;
}

.muted {
    color: #667085;
}

/* ------------ dashboard ------------ */
.dashboard-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    background: linear-gradient(135deg, #ffffff, #f1fff7);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.dashboard-hero h1 {
    margin: 0 0 8px;
    color: #111827;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 22px;
}

.stat-card {
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.stat-card.highlight {
    background: linear-gradient(135deg, #0f766e, #16a34a);
    color: #fff;
}

.stat-card small {
    display: block;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card h2,
.stat-card h3 {
    margin: 0 0 8px;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

.action-card {
    background: linear-gradient(180deg, #ffffff, #eef8f0);
    border: 1px solid #e0efe3;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.07);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    border-color: #b9dfc0;
}

.action-card .action-icon {
    font-size: 24px;
}

.action-card small {
    color: #667085;
}

/* ------------ tables ------------ */
.history-grid {
    display: grid;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    min-width: 0;
}

.header-row {
    font-weight: 800;
    color: #667085;
    border-bottom: 1px solid #edf2f7;
}

.body-row {
    border-bottom: 1px solid #f0f3f8;
}

.admin-grid-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.admin-grid-5 {
    grid-template-columns: 1fr 1.3fr 1fr 1fr 1.2fr;
}

.admin-grid-6 {
    grid-template-columns: 1.1fr 1.1fr 1fr 0.9fr 1.2fr 1.2fr;
}

.clean-table.header-row,
.clean-table.body-row {
    gap: 0;
}

.clean-table.header-row > div,
.clean-table.body-row > div {
    padding: 12px 10px;
    border-right: 1px solid #e5e7eb;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.clean-table.header-row > div:last-child,
.clean-table.body-row > div:last-child {
    border-right: none;
}

.clean-table.header-row {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.clean-table.body-row {
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
    padding: 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f3f8;
}

.align-right {
    text-align: right;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.pill.success,
.pill.approved {
    background: #eafaf0;
    color: #18794e;
}

.pill.pending {
    background: #fff4dd;
    color: #b54708;
}

.pill.danger,
.pill.rejected {
    background: #fdecec;
    color: #b42318;
}

.tx-green {
    color: #16a34a;
    font-weight: 700;
}

.tx-red {
    color: #dc2626;
    font-weight: 700;
}

.tx-dark {
    color: #111827;
    font-weight: 700;
}

/* ------------ product cards ------------ */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.product-card {
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-body {
    padding: 18px;
}

.row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.row.between {
    justify-content: space-between;
}

.product-meta {
    margin: 12px 0;
    color: #667085;
}

.product-single-card {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    width: 100%;
    max-width: 980px;
}

.product-single-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.product-single-body {
    padding: 20px;
}

/* ------------ profile / referral ------------ */
.copy-box input,
#refLink {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    margin-bottom: 12px;
}

/* ------------ admin helpers ------------ */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-form input {
    flex: 1;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
}

.mini-balance-form {
    display: grid;
    gap: 10px;
}

.mini-balance-form input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d0d5dd;
}

.mini-actions,
.stack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-preview-image,
.admin-preview-video {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

/* ------------ info page ------------ */
.info-page {
    display: flex;
    justify-content: center;
}

.info-page-card {
    max-width: 860px;
    width: 100%;
    padding: 20px;
}

/* ------------ modal ------------ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    background: #fff;
    border-radius: 24px;
    max-width: 620px;
    width: 100%;
    padding: 22px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: #f4f7fb;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

/* ------------ status popup page ------------ */
.status-page-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.status-card {
    width: 100%;
    max-width: 520px;
    padding: 28px 18px;
    text-align: center;
}

.status-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 20px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 44px;
    font-weight: 800;
}

.status-card.success .status-icon {
    background: #e8fbef;
    color: #1f9d55;
}

.status-card.failed .status-icon {
    background: #fdecec;
    color: #d92d20;
}

.status-card h1 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #111827;
}

.status-card p {
    margin: 0 0 22px;
    color: #667085;
    line-height: 1.6;
}

.status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px 16px;
    margin-top: 12px;
    gap: 10px;
}

.status-line span {
    color: #667085;
}

.status-line strong {
    font-size: 18px;
}

.status-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.action-card {
    background: linear-gradient(180deg, #ffffff 0%, #e6f4ea 100%);
    border: 1px solid rgba(15,118,110,0.10);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(16,24,40,0.12);
    border-color: rgba(15,118,110,0.28);
}

.action-deposit { border-left: 4px solid #16a34a; }
.action-withdraw { border-left: 4px solid #d92d20; }
.action-refer { border-left: 4px solid #0f766e; }
.action-notification { border-left: 4px solid #f59e0b; }

/* ------------ contact + long text safety ------------ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.contact-card {
    padding: 28px;
    border-radius: 22px;
}

.deep-green-card {
    border: 4px solid #0f766e;
    background: linear-gradient(180deg, #ffffff, #e6f4ea);
}

.contact-text {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

/* ------------ bottom nav ------------ */
.bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    width: calc(100% - 16px);
    max-width: 640px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0b1f35, #0f766e);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 8px 10px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.14);
    z-index: 60;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.bottom-nav a {
    flex: 1;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 2px;
    border-radius: 18px;
    color: #667085;
    transition: 0.2s ease;
}

.bottom-nav a.active {
    background: linear-gradient(135deg, #0f766e, #16a34a);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}

.bottom-nav a:hover {
    background: #f3f6fb;
}

.bottom-nav a.active:hover {
    background: linear-gradient(135deg, #0f766e, #16a34a);
}

.nav-icon {
    font-size: 18px;
    line-height: 1;
}

.bottom-nav small {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* ------------ table horizontal scrolling ------------ */
.table-scrollable {
    position: relative;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.table-scroll-controls {
    position: sticky;
    left: 0;
    top: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-bottom: 8px;
    z-index: 3;
}

.table-scroll-btn {
    border: none;
    width: 50px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f766e, black);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(15,118,110,0.20);
}

.table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.history-grid.header-row,
.history-grid.body-row {
    min-width: 760px;
}

/* ------------ medium screens and desktop ------------ */
@media (min-width: 769px) {
    .page-wrap {
        padding: 22px 18px 110px;
    }

    .guest-wrap {
        padding-top: 100px;
    }

    .topbar,
    .public-header {
        padding: 14px 18px;
        gap: 12px;
    }

    .topbar-left,
    .public-left {
        gap: 12px;
    }

    .topbar-right {
        gap: 10px;
    }

    .brand-link {
        gap: 12px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text small {
        display: block;
    }

    .menu-toggle,
    .menu-close {
        width: 40px;
        height: 40px;
    }

    .balance-pill {
        font-size: 15px;
        padding: 8px 15px;
        max-width: none;
    }

    .profile-mini {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
    }

    .profile-mini img,
    .profile-letter {
        width: 46px;
        height: 46px;
    }

    .landing-hero {
        grid-template-columns: 1.2fr 0.9fr;
        gap: 24px;
    }

    .hero-copy {
        padding: 34px;
    }

    .hero-side {
        padding: 24px;
    }

    .hero-copy h1 {
        font-size: 40px;
        line-height: 1.15;
    }

    .hero-actions .btn {
        width: auto;
    }

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

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

    .mini-actions span,
    .mini-item {
        flex: initial;
    }

    .info-grid,
    .dual-grid,
    .profile-grid {
        grid-template-columns: 1fr 1fr;
        margin-top: 28px;
    }

    .table-card,
    .auth-card,
    .info-page-card {
        padding: 22px;
        border-radius: 22px;
    }

    .form-card {
        padding: 24px;
    }

    .cta-band {
        flex-direction: row;
        align-items: center;
        padding: 28px;
    }

    .cta-actions {
        width: auto;
    }

    .grid-two {
        grid-template-columns: 1fr 1fr;
    }

    .grid-two .span-two {
        grid-column: span 2;
    }

    .dashboard-hero {
        flex-direction: row;
        align-items: center;
        padding: 28px;
    }

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

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

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

    .product-single-card {
        grid-template-columns: 1fr 1fr;
    }

    .product-single-card img {
        height: 100%;
    }

    .product-single-body {
        padding: 28px;
    }

    .search-form {
        flex-direction: row;
    }

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

    .bottom-nav {
        width: calc(100% - 24px);
        bottom: 14px;
        padding: 10px 12px;
        border-radius: 28px;
    }

    .bottom-nav a {
        padding: 8px 4px;
    }

    .nav-icon {
        font-size: 20px;
    }

    .bottom-nav small {
        font-size: 11px;
    }
}