/* Main stylesheet for the portal pages, forms, admin dashboard, and responsive layout. */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
    --gradient: linear-gradient(135deg, #667eea, #764ba2);
    --gradient-strong: linear-gradient(135deg, #6d35dc 0%, #3d86ff 100%);
    --ink: #101633;
    --muted: #69728a;
    --line: #dfe5f2;
    --soft: #f6f8ff;
    --white: #ffffff;
    --purple: #7657e7;
    --blue: #3d86ff;
    --green: #22b455;
    --red: #ff3d4f;
    --yellow: #fff2ca;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 70px rgba(42, 57, 133, 0.18);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    color: var(--ink);
    background: var(--gradient);
}

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

button,
input {
    font: inherit;
}

svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.app-shell {
    margin: 0;
    min-height: 100vh;
    padding: 24px 0 0;
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.12), transparent 26rem),
        radial-gradient(circle at 86% 20%, rgba(85, 141, 255, 0.18), transparent 28rem),
        #081737;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
}

.container {
    width: 100%;
    padding-left: clamp(16px, 4vw, 80px);
    padding-right: clamp(16px, 4vw, 80px);
}

.content-wrapper {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.brand-header {
    margin: 0 0 20px;
    color: #fff;
}

.brand-header > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #7b6df6, #b28cff);
    clip-path: polygon(50% 0, 90% 21%, 90% 79%, 50% 100%, 10% 79%, 10% 21%);
    box-shadow: 0 16px 34px rgba(112, 84, 255, 0.35);
}

.brand-icon svg {
    width: 48px;
    height: 48px;
}

.brand-icon.xl {
    width: 90px;
    height: 90px;
    margin: 0 auto 22px;
}

.brand-lockup strong {
    display: block;
    font-size: clamp(1.4rem, 2.5vw, 2.05rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.brand-lockup small,
.auth-brand p {
    display: block;
    color: #b99cff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-top: 7px;
}

.trust-line {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-weight: 700;
    font-size: 1.04rem;
    white-space: nowrap;
}

.shield-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #fee06b;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.payment-hero {
    min-height: 390px;
    height: clamp(390px, calc(100vh - 132px), 510px);
    margin: -2px 0 0;
    padding: 64px 0 16px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.93)),
        radial-gradient(circle at 85% 65%, rgba(118, 75, 162, 0.18), transparent 26rem);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    box-shadow: 0 22px 60px rgba(5, 16, 45, 0.18);
    position: relative;
}

.payment-hero > .container {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.52fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px 28px;
    position: relative;
}

.payment-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 auto;
    width: 52%;
    height: 70%;
    opacity: 0.18;
    background:
        linear-gradient(#9289ff 0 0) 18% 100% / 2px 170px no-repeat,
        linear-gradient(#9289ff 0 0) 36% 100% / 2px 230px no-repeat,
        linear-gradient(#9289ff 0 0) 54% 100% / 2px 126px no-repeat,
        linear-gradient(#9289ff 0 0) 72% 100% / 2px 205px no-repeat,
        linear-gradient(#9289ff 0 0) 0 100% / 100% 2px no-repeat;
    pointer-events: none;
}

.payment-copy {
    position: relative;
    z-index: 1;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-step-label {
    margin-bottom: 12px;
    z-index: 2;
}

.step-pill {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    color: #fff;
    background: var(--gradient-strong);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.3);
}

.payment-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 2.55vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.payment-copy h1::after {
    content: "";
    display: block;
    width: 62px;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: var(--gradient-strong);
}

.payment-copy p {
    max-width: 510px;
    margin: 0;
    color: #58617b;
    font-size: 0.98rem;
    line-height: 1.65;
}

.qr-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 238px;
    justify-self: start;
    align-self: start;
    margin-top: -42px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 44px rgba(102, 126, 234, 0.18);
}

.qr-card-inner {
    padding: 12px 12px 14px;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    border: 1px solid #e4e9f5;
}

.qr-card img {
    width: 100%;
    max-width: 206px;
    display: block;
    margin: 0 auto 12px;
    border-radius: 10px;
}

.qr-card strong,
.qr-card span {
    display: block;
}

.qr-card strong {
    margin-bottom: 5px;
    font-size: 0.78rem;
}

.qr-card span {
    color: var(--muted);
    font-size: 0.76rem;
}

.scanner-tutorial-widget {
    position: absolute;
    top: -56px;
    right: 16px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.scanner-tutorial-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #6d35dc, #3d86ff);
    box-shadow: 0 14px 34px rgba(61, 134, 255, 0.28);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.scanner-tutorial-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(61, 134, 255, 0.34);
}

.scanner-tutorial-panel {
    width: min(360px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid rgba(224, 229, 245, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(16, 22, 51, 0.22);
    animation: tutorialPanelIn 0.24s ease both;
}

.scanner-tutorial-panel[hidden] {
    display: none;
}

.scanner-tutorial-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.scanner-tutorial-head strong {
    font-size: 0.9rem;
}

.scanner-tutorial-head button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: #eef2ff;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.scanner-tutorial-panel video {
    display: block;
    width: 100%;
    max-height: 260px;
    border-radius: 12px;
    background: #050b1e;
}

@keyframes tutorialPanelIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.step-two-cta {
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
    min-height: 76px;
    margin-top: 0;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 150px auto;
    align-items: center;
    gap: 16px;
    border: 1px solid #e4e9f7;
    border-radius: 12px;
    background: linear-gradient(90deg, #f4f6ff, #f9fbff);
    box-shadow: 0 14px 32px rgba(42, 57, 133, 0.08);
}

.cta-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--purple);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.16);
}

.step-two-cta p {
    margin: 0;
    color: #38425e;
    line-height: 1.55;
}

.step-two-link {
    border: 0;
    padding: 0;
    color: #3020a4;
    background: transparent;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    white-space: nowrap;
    animation: stepLinkBlink 1.9s ease-in-out infinite;
    transition: color 0.25s, text-shadow 0.25s, transform 0.25s;
}

.step-two-link:hover {
    color: #1e146f;
    text-shadow: 0 0 16px rgba(79, 70, 229, 0.28);
    transform: translateY(-1px) scale(1.02);
}

.curved-arrow {
    width: 150px;
    height: 72px;
    color: #3020a4;
    animation: curvedArrowFly 2.6s cubic-bezier(0.42, 0, 0.22, 1) infinite;
    pointer-events: none;
    justify-self: end;
}

.curved-arrow svg {
    width: 150px;
    height: 72px;
    overflow: visible;
}

.arrow-curve {
    fill: none;
    stroke: currentColor;
    stroke-width: 6;
    stroke-dasharray: 0.1 15;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(48, 32, 164, 0.18));
}

.arrow-head {
    fill: currentColor;
    stroke: none;
    filter: drop-shadow(0 0 6px rgba(48, 32, 164, 0.22));
    animation: arrowHeadPop 2.6s ease-in-out infinite;
}

@keyframes stepLinkBlink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.58;
    }
}

@keyframes curvedArrowFly {
    0% {
        opacity: 0;
        transform: translate(-22px, 14px) rotate(-7deg) scale(0.96);
    }

    22% {
        opacity: 0.92;
    }

    64% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    82%,
    100% {
        opacity: 0;
        transform: translate(16px, -8px) rotate(0deg) scale(1.02);
    }
}

@keyframes arrowHeadPop {
    0%,
    46% {
        opacity: 0;
        transform: translate(-8px, 6px);
    }

    56%,
    72% {
        opacity: 1;
        transform: translate(0, 0);
    }

    100% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

.form-card {
    margin: 20px 0 72px;
    padding: 42px 0 46px;
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(224, 229, 245, 0.9);
    border-radius: 42px;
    box-shadow: var(--shadow-lg);
    scroll-margin-top: 20px;
}

.form-card-marker {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: var(--purple);
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.form-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.form-heading h2,
.dashboard-heading h1,
.auth-card h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    letter-spacing: 0;
}

.form-heading p,
.dashboard-heading p,
.auth-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
}

.field b {
    color: #ff5263;
}

.input-shell {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    border: 1px solid #dbe1ed;
    border-radius: 12px;
    background: #fff;
    color: #657089;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.input-shell:focus-within,
.input-shell:hover {
    border-color: rgba(102, 126, 234, 0.75);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
}

.input-shell input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.input-shell input::placeholder {
    color: #8992a8;
}

.upload-field {
    grid-row: span 2;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.drop-zone {
    min-height: 178px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
    border: 1.5px solid #dbe1ed;
    border-radius: 12px;
    background: #fbfcff;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.drop-zone:hover,
.drop-zone.is-dragging {
    border-color: var(--purple);
    background: #f5f2ff;
    transform: translateY(-1px);
}

.drop-zone svg {
    width: 44px;
    height: 44px;
    color: var(--purple);
    padding: 8px;
    border-radius: 12px;
    background: #f0ebff;
}

.drop-zone em {
    color: var(--purple);
    font-style: normal;
}

.browse-btn {
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: #fff;
    background: var(--gradient-strong);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.browse-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.24);
}

.drop-zone small {
    color: var(--muted);
}

.info-note {
    margin: 32px 0 44px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-radius: 12px;
    border: 1px solid #bfd0ff;
    background: #f4f8ff;
    color: #293657;
}

.info-note svg {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    color: #4a61f0;
}

.info-note p,
.security-note {
    margin: 0;
}

.info-note strong {
    display: block;
    margin-bottom: 5px;
}

.primary-btn {
    width: 100%;
    min-height: 70px;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    font-size: 1.13rem;
    font-weight: 700;
    background: var(--gradient-strong);
    box-shadow: 0 14px 28px rgba(102, 126, 234, 0.35);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.primary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 42px rgba(102, 126, 234, 0.42);
}

.security-note {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    text-align: center;
}

.alert {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
    white-space: pre-line;
}

.alert.success {
    color: #126b35;
    background: #ddf7e7;
    border: 1px solid #b8edcb;
}

.alert.error {
    color: #a0182b;
    background: #ffe1e6;
    border: 1px solid #ffc0cb;
}

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 88% 48%, rgba(255, 255, 255, 0.18), transparent 20rem),
        radial-gradient(circle at 9% 88%, rgba(255, 255, 255, 0.14), transparent 22rem),
        var(--gradient);
}

.auth-shell {
    min-height: 100vh;
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
    display: grid;
    align-content: center;
    gap: 32px;
    padding: 42px 0;
}

.auth-brand {
    color: #fff;
    text-align: center;
}

.auth-brand h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3rem);
    letter-spacing: 0;
}

.auth-card {
    position: relative;
    padding: 44px 42px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-badge {
    width: 88px;
    height: 88px;
    margin: 0 auto 26px;
    display: grid;
    place-items: center;
    color: var(--purple);
    background: #eee8ff;
    border-radius: 50%;
}

.auth-badge svg {
    width: 46px;
    height: 46px;
}

.auth-card form {
    margin-top: 28px;
}

.auth-input {
    margin-bottom: 20px;
}

.password-shell input {
    min-width: 0;
}

.password-toggle {
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    color: #4f46e5;
    background: #eef2ff;
    font-weight: 800;
    cursor: pointer;
}

.password-toggle:hover {
    background: #e0e7ff;
}

.verify-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.verify-row .auth-input {
    margin-bottom: 12px;
}

.email-wrapper {
    position: relative;
}

.email-wrapper .email-verify-input {
    width: 100%;
    padding-right: 126px;
}

.email-wrapper input {
    width: 100%;
    padding-right: 120px;
}

.email-wrapper .verify-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 54px;
    min-height: 0;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    background: linear-gradient(45deg, #4f46e5, #3b82f6);
    color: white;
    cursor: pointer;
    box-shadow: none;
}

.email-wrapper .verified-check {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 2;
}

.email-wrapper.is-verified .email-verify-input {
    padding-right: 62px;
}

.email-wrapper.is-verified input {
    padding-right: 58px;
}

.email-verify-input input:disabled,
.otp-input input:disabled {
    color: #39425a;
    opacity: 1;
}

.verified-check {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
}

.verified-check[hidden] {
    display: none;
}

.verified-check svg {
    width: 18px;
    height: 18px;
}

.verify-btn,
.otp-submit-btn {
    min-height: 64px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    color: #fff;
    background: var(--gradient-strong);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.24);
}

.verify-btn:hover:not(:disabled),
.otp-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(102, 126, 234, 0.3);
}

.verify-btn:disabled,
.otp-submit-btn:disabled,
.primary-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.otp-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 22px;
}

.otp-panel[hidden] {
    display: none;
}

.otp-panel .auth-input {
    margin-bottom: 0;
}

.otp-panel.is-verified {
    opacity: 0.8;
}

.otp-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-top: 10px;
}

.otp-section[hidden] {
    display: none;
}

.otp-section .input-shell {
    min-height: 54px;
}

.otp-section .otp-submit-btn {
    min-height: 54px;
    border-radius: 8px;
    background: linear-gradient(45deg, #4f46e5, #3b82f6);
}

.auth-input .link-btn {
    flex: 0 0 auto;
}

.or-line {
    margin: 28px 0;
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
}

.or-line::before,
.or-line::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.link-btn {
    border: 0;
    color: var(--purple);
    background: transparent;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-page {
    min-height: 100vh;
    background: #f5f7ff;
}

.dashboard-shell {
    min-height: 100vh;
    margin: 0;
    background: #f8faff;
    box-shadow: 0 0 44px rgba(44, 60, 120, 0.1);
}

.auth-card > .pending-approval-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ff9f1c, #ffd166);
    box-shadow: 0 14px 30px rgba(255, 159, 28, 0.28);
    font-weight: 800;
}

.auth-card > .pending-approval-badge span {
    font-size: 0.78rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.auth-card > .pending-approval-badge strong {
    min-width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    color: #f47d00;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.86rem;
    line-height: 1;
}

.dashboard-topbar {
    min-height: 112px;
    padding: 22px 0;
    color: #fff;
    background: var(--gradient);
    border-radius: 0 0 0 0;
}

.dashboard-topbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-lockup.compact .brand-icon {
    width: 58px;
    height: 58px;
}

.brand-lockup.compact .brand-icon svg {
    width: 38px;
    height: 38px;
}

.brand-lockup.compact strong {
    font-size: 1.35rem;
}

.brand-lockup.compact small {
    font-size: 0.8rem;
    color: #eee7ff;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    transition: background 0.3s, transform 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.dashboard-card {
    margin: 42px 36px;
    padding: 34px 30px 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.dashboard-card.content-wrapper {
    margin: 42px auto;
}

.dashboard-heading {
    margin-bottom: 28px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #e4e9f5;
    border-radius: 14px;
    background: #fff;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

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

th,
td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #e9edf6;
    font-size: 0.95rem;
}

th {
    color: #121936;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #fbfcff;
}

tbody tr {
    transition: background 0.3s, transform 0.3s;
}

tbody tr:hover td {
    background: #f8faff;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 0.84rem;
    font-weight: 700;
}

.status.pending {
    color: #cb7a00;
    background: var(--yellow);
}

.status.verified {
    color: #179349;
    background: #dcf7e7;
}

.status.rejected {
    color: #e3344d;
    background: #ffe1e7;
}

.table-actions {
    display: flex;
    gap: 12px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid currentColor;
    border-radius: 7px;
    display: inline-grid;
    place-items: center;
    background: #fff;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.icon-btn:hover {
    transform: scale(1.05);
}

.icon-btn.view {
    color: #4862ff;
    border-color: #ccd5ff;
}

.icon-btn.approve {
    color: var(--green);
}

.icon-btn.reject {
    color: var(--red);
}

.pagination-bar {
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #4e5870;
}

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

.pagination button {
    width: 38px;
    height: 38px;
    border: 1px solid #e1e6f2;
    border-radius: 7px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s, color 0.3s;
}

.pagination button.active,
.pagination button:hover:not(:disabled) {
    color: #fff;
    background: var(--gradient);
    transform: scale(1.05);
}

.pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 35, 0.72);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: 86vh;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.modal-card img {
    display: block;
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 12px;
}

.modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--gradient);
    cursor: pointer;
    font-size: 1.4rem;
}

@media (max-width: 920px) {
    .brand-header > .container,
    .dashboard-topbar > .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .trust-line {
        white-space: normal;
    }

    .payment-hero {
        padding-top: 72px;
        padding-bottom: 22px;
        border-radius: 24px;
    }

    .payment-hero > .container {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .qr-card {
        max-width: 220px;
        justify-self: center;
    }

    .scanner-tutorial-widget {
        top: -60px;
        right: 16px;
    }

    .scanner-tutorial-panel {
        width: min(320px, calc(100vw - 32px));
    }

    .step-two-cta {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .curved-arrow {
        justify-self: end;
    }

    .step-two-link {
        justify-self: start;
    }

    .form-card {
        margin-top: 18px;
        padding-top: 36px;
        padding-bottom: 36px;
        border-radius: 28px;
    }

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

    .upload-field {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }

    html,
    body {
        overflow-x: hidden;
    }

    .app-shell,
    .dashboard-shell,
    .auth-shell {
        max-width: 100%;
    }

    .payment-hero {
        height: auto;
        min-height: 0;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .payment-hero > .container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .payment-copy {
        width: 100%;
    }

    .qr-card {
        width: 100%;
        max-width: 270px;
        align-self: center;
        justify-self: center;
        margin-top: 0;
    }

    .qr-card img {
        max-width: 220px;
    }

    .scanner-tutorial-widget {
        position: static;
        align-items: stretch;
        order: 3;
    }

    .scanner-tutorial-trigger {
        width: 100%;
    }

    .scanner-tutorial-panel {
        width: 100%;
    }

    .step-two-cta {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .step-two-link {
        width: 100%;
        white-space: normal;
        text-align: left;
        min-height: 44px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .field,
    .input-shell,
    .email-wrapper,
    .drop-zone,
    .otp-section,
    .otp-submit-btn,
    .verify-btn {
        width: 100%;
    }

    .email-wrapper .verify-btn {
        position: static;
        width: 100%;
        min-height: 44px;
        margin-top: 10px;
    }

    .email-wrapper .email-verify-input,
    .email-wrapper input {
        padding-right: 14px;
    }

    .otp-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .primary-btn,
    .browse-btn,
    .otp-submit-btn,
    .verify-btn {
        min-height: 44px;
    }

    .dashboard-card.content-wrapper {
        margin: 22px auto;
    }

    .dashboard-card th:nth-child(2),
    .dashboard-card td:nth-child(2) {
        display: table-cell !important;
    }

    .dashboard-card th:nth-child(2),
    .dashboard-card td:nth-child(2) {
        min-width: 86px;
        white-space: nowrap;
    }

    table {
        min-width: 620px;
        font-size: 12px;
    }

    th,
    td {
        padding: 12px 10px;
        font-size: 12px;
    }

    .btn,
    .icon-btn,
    .pagination button {
        padding: 6px 8px;
        font-size: 12px;
    }

    .hide-mobile {
        display: none;
    }

    .table-actions {
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .app-shell {
        padding-top: 22px;
    }

    .brand-header {
        margin-bottom: 20px;
    }

    .brand-icon {
        width: 56px;
        height: 56px;
    }

    .brand-icon svg {
        width: 34px;
        height: 34px;
    }

    .brand-lockup {
        gap: 12px;
    }

    .brand-lockup strong {
        font-size: 1.15rem;
    }

    .brand-lockup small {
        font-size: 0.72rem;
        letter-spacing: 2px;
    }

    .payment-copy h1 {
        font-size: 1.9rem;
    }

    .payment-copy p {
        font-size: 0.95rem;
    }

    .step-two-cta {
        grid-template-columns: 1fr;
        justify-items: start;
        min-height: 0;
        padding: 18px;
    }

    .curved-arrow {
        width: 82px;
        height: 44px;
        justify-self: center;
    }

    .curved-arrow svg {
        width: 82px;
        height: 44px;
    }

    .step-two-link {
        white-space: normal;
    }

    .form-heading {
        flex-direction: column;
    }

    .input-shell {
        min-height: 58px;
        padding: 0 14px;
    }

    .primary-btn {
        min-height: 60px;
        font-size: 1rem;
    }

    .auth-shell {
        max-width: 660px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .auth-card {
        padding: 34px 22px;
    }

    .verify-row,
    .otp-panel,
    .otp-section {
        grid-template-columns: 1fr;
    }

    .verify-btn,
    .otp-submit-btn {
        min-height: 56px;
        width: 100%;
    }

    .email-wrapper .verify-btn {
        position: static;
        width: 100%;
        margin-top: 10px;
    }

    .email-wrapper .email-verify-input,
    .email-wrapper input {
        padding-right: 14px;
    }

    .auth-input {
        align-items: stretch;
    }

    .auth-input .link-btn {
        padding-left: 6px;
    }

    .dashboard-topbar {
        padding: 22px 0;
    }

    .auth-card > .pending-approval-badge {
        top: 14px;
        right: 14px;
        min-height: 34px;
        padding: 7px 11px;
        gap: 8px;
    }

    .auth-card > .pending-approval-badge span {
        font-size: 0.68rem;
    }

    .auth-card > .pending-approval-badge strong {
        min-width: 24px;
        height: 24px;
        font-size: 0.78rem;
    }

    .dashboard-card.content-wrapper {
        margin: 22px auto;
        padding: 24px 14px;
    }

    .pagination-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}
