/* ========================================================================== 
   AI Income Skills Portal
   Clean public-site and admin stylesheet
   Designed for the existing Laravel Blade markup.
   ========================================================================== */

/* 1. Foundation ------------------------------------------------------------ */
:root {
    --navy: #073a73;
    --navy-deep: #041b37;
    --blue: #087dc1;
    --blue-bright: #1d6bff;
    --sky: #41c7f1;
    --ink: #133454;
    --muted: #6b8094;
    --mist: #f4f8fc;
    --line: #d7e2eb;
    --success: #087349;
    --warning: #956500;
    --danger: #b62533;
    --shadow: 0 30px 80px rgba(7, 45, 90, .16), 0 8px 25px rgba(7, 45, 90, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "DM Sans", Arial, sans-serif;
}

img { max-width: 100%; }

h1, h2, h3, h4, h5, .brand {
    font-family: "Space Grotesk", Arial, sans-serif;
    font-weight: 700;
}

/* 2. Site header ----------------------------------------------------------- */
.site-header {
    min-height: 78px;
    display: flex;
    align-items: center;
    background: #fff;
    position: relative;
    z-index: 50;
}

.brand {
    color: var(--navy);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -1.5px;
    text-decoration: none;
}

.brand span { color: #168ac9; }

.brand small {
    display: block;
    margin-top: -4px;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.site-logo {
    display: block;
    width: auto;
    height: 42px;
    transition: transform .2s ease;
}

.site-logo:hover { transform: scale(1.03); }

.socials {
    display: flex;
    align-items: center;
    gap: 13px;
}

.socials a {
    color: var(--navy);
    font-size: 18px;
    line-height: 1;
    transition: color .2s ease, transform .2s ease;
}

.socials a:hover {
    color: var(--blue);
    transform: translateY(-2px);
}

/* 3. Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 860px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 90px 0 160px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 35%, rgba(25, 120, 255, .18), transparent 30%),
        radial-gradient(circle at 25% 20%, rgba(0, 180, 255, .10), transparent 25%),
        linear-gradient(135deg, #041327 0%, #071b3c 45%, #0a2857 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    top: 120px;
    right: -180px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 153, 255, .22), transparent 70%);
    filter: blur(50px);
}

.hero::after {
    top: 200px;
    right: 220px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 110, 255, .14), transparent 70%);
    filter: blur(35px);
}

.hero .container { position: relative; z-index: 2; }

.eyebrow {
    margin: 0 0 12px;
    color: #4dbbff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.hero h1 {
    max-width: 720px;
    margin: 0 0 23px;
    color: #fff;
    font-size: clamp(48px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -3px;
}

.hero h1 span { color: #0e94d1; }

.lead {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 38px 0 48px;
}

.btn-primary-hero,
.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary-hero {
    background: var(--blue-bright);
    color: #fff;
}

.btn-primary-hero:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(29, 107, 255, .35);
}

.btn-secondary-hero {
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(8px);
}

.btn-secondary-hero:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    transform: translateY(-3px);
}

.feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 180px;
    min-height: 82px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);
    transition: transform .25s ease, background .25s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, .10);
    transform: translateY(-4px);
}

.feature-card > i {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    color: #34b8ff;
    background: rgba(0, 153, 255, .15);
}

.feature-text { display: flex; flex-direction: column; }
.feature-text b { color: #fff; font-size: 14px; line-height: 1.2; }
.feature-text span { margin-top: 3px; color: rgba(255, 255, 255, .72); font-size: 11px; }

.hero-art {
    position: relative;
    display: flex;
    min-height: 520px;
    align-items: center;
    justify-content: center;
    transform: translateY(-60px);
}

.hero-glow {
    position: absolute;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25, 150, 255, .30), transparent 50%);
    filter: blur(10px);
}

.hero-image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    border-radius: 14px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 80px rgba(0, 140, 255, .18);
}

.floating-card {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    color: var(--navy);
    background: #fff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .12);
    white-space: nowrap;
}

.floating-card i { color: #1398d2; font-size: 18px; }
.floating-card strong { display: block; color: var(--navy); }
.floating-card small { color: #7b8fa2; }
.floating-card-1 { top: -10px; left: 90px; transform: translateX(-50%); }
.floating-card-2 { right: 1px; bottom: -10px; }

/* 4. Registration form ---------------------------------------------------- */
.registration-section {
    position: relative;
    z-index: 20;
    margin-top: -130px;
    margin-bottom: 90px;
}

/* The existing form uses both classes. This overrides the old split layout. */
.form-shell,
.form-shell.form-shell-single {
    display: block;
    width: min(100%, 1280px);
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(7,58,115,.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

/* Kept only for compatibility if an older view still includes it. */
.form-intro { display: none; }

.registration-form{
    width:100%;
    padding:50px 60px 55px;
    background:#fff;
}

.form-header {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.form-header h1{
    margin:0;
    color:#18345a;
    font-size:clamp(20px,2.6vw,30px);
    line-height:1.25;
    letter-spacing:-0.5px;
    font-weight:700;
}

.form-header p{
    margin:10px auto 0;
    color:#66798d;
    font-size:15px;
}

.header-divider {
    width: 80px;
    height: 4px;
    margin: 20px auto 0;
    border-radius: 999px;
    background: var(--blue-bright);
}

.registration-form .alert { margin-bottom: 28px; }

.registration-form h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 36px 0 22px;
    padding: 14px 18px;
    border-radius: 14px;
    color: var(--navy);
    background: #f1f7ff;
    font-size: 19px;
    line-height: 1.2;
}

.registration-form h3:first-of-type { margin-top: 0; }

.section-number {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #1e8fff;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.registration-form h3 > i { color: #1e8fff; }
.registration-form .row { --bs-gutter-y: 1.15rem; }

.registration-form label {
    display: block;
    margin: 0 0 7px;
    color: #274662;
    font-size: 12px;
    font-weight: 700;
}

.registration-form em { color: #e04141; font-style: normal; }

.registration-form input,
.registration-form select {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.registration-form input::placeholder { color: #9aa9b6; opacity: 1; }

.registration-form input:focus,
.registration-form select:focus {
    outline: 0;
    border-color: #139bd3;
    box-shadow: 0 0 0 4px rgba(19, 155, 211, .15);
}

.registration-form input.is-invalid,
.registration-form select.is-invalid { border-color: #dc3545; }

.register-btn {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 32px;
    padding: 14px 22px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(90deg, #0879bb, #10a3d9);
    box-shadow: 0 10px 24px rgba(18, 138, 203, .28);
    font: 700 16px "DM Sans", Arial, sans-serif;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(18, 138, 203, .38);
}

.register-btn:focus-visible {
    outline: 3px solid rgba(29, 107, 255, .35);
    outline-offset: 3px;
}

.payment-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    color: #71879b;
    font-size: 14px;
    text-align: center;
}

.payment-trust i { color: #199bff; }
.paynow-logo { width: auto; height: 42px; object-fit: contain; }

.form-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin: 35px -60px -55px;

    padding: 30px 40px;

    background: #f4f9ff;

    border-top: 1px solid #e2edf9;

    border-radius: 0 0 24px 24px;

    text-align: center;
    
}

.form-features > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 10px;
    margin-bottom: 20px;
}

.form-features i {
    margin-bottom: 12px;
    color: #1d6bff;
    font-size: 30px;
}

.form-features strong {
    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
}

.form-features small {
    display: block;
    margin-top: 6px;
    color: #6d8094;
    font-size: 15px;
}

/* 5. Footer ---------------------------------------------------------------- */
footer {
    padding: 70px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #d7e7f5;
    background: #082d5a;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, .9fr);
    gap: 80px;
    align-items: start;
}

.footer-logo {
    display: block;
    width: auto;
    height: 60px;
    margin-bottom: 22px;
    transition: transform .2s ease;
}

.footer-logo:hover { transform: scale(1.03); }

.footer-brand p {
    max-width: 420px;
    margin: 0;
    color: #bfd3e7;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.footer-social a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.footer-social a:hover { color: #fff; background: #199bff; transform: translateY(-4px); }
.footer-contact h5 { margin: 0 0 26px; color: #fff; font-size: 22px; }

.footer-contact > div {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.footer-contact i { width: 20px; margin-top: 4px; color: #3dbdff; }
.footer-contact span { color: #c7dbed; line-height: 1.7; }

.copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 14px;
}

.developer { color: #bfd3e7; }
.developer a { color: #38b6ff; font-weight: 700; text-decoration: none; }
.developer a:hover { color: #fff; }

.whatsapp-float {
    position: fixed;
    z-index: 100;
    right: 22px;
    bottom: 22px;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #25d366;
    box-shadow: 0 7px 21px rgba(14, 104, 57, .53);
    font-size: 29px;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, .13); }
}

/* 6. Payment return and login --------------------------------------------- */
.return-page,
.login-wrap {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 25px;
    background: var(--mist);
}

.return-card,
.login-card {
    width: min(100%, 530px);
    padding: 45px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 15px 55px rgba(23, 54, 83, .13);
}

.return-card { text-align: center; }
.return-card > i { font-size: 50px; }
.success { color: #169d66; }
.pending { color: #d18706; }

.login-card { text-align: left; }
.login-card .brand { display: inline-block; margin-bottom: 42px; }
.login-card h1 { margin-bottom: 25px; font-size: 25px; }
.login-card label { display: block; margin: 15px 0 6px; font-size: 12px; font-weight: 700; }
.login-card input:not([type="checkbox"]) { width: 100%; min-height: 45px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; }
.login-card .check { margin: 0; font-weight: 400; }
.login-card .check input { width: auto; min-height: 0; }
.login-card a { font-size: 12px; }

/* 7. Admin ----------------------------------------------------------------- */
.admin-body { min-height: 100vh; background: #f4f7fa; }

.admin-nav {
    display: flex;
    min-height: 65px;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(18px, 5vw, 65px);
    background: var(--navy);
}

.admin-nav .brand { color: #fff; }

.admin-nav > div {
    display: flex;
    align-items: center;
    gap: 22px;
}

.admin-nav a,
.admin-nav button {
    border: 0;
    color: #cde0ef;
    background: none;
    font-family: inherit;
    font-size: 13px;
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav button:hover { color: #fff; }
.admin-nav button { padding: 0; cursor: pointer; }

.admin-main { max-width: 1200px; margin: 0 auto; padding: 42px 24px; }

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 27px;
}

.page-heading h1 { margin: 0; font-size: 32px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 24px;
}

.stat-grid > div,
.data-card {
    border: 1px solid #e4ebf1;
    border-radius: 12px;
    background: #fff;
}

.stat-grid > div { padding: 21px; }
.stat-grid span { display: block; color: #6d8194; font-size: 12px; }
.stat-grid b { display: block; margin-top: 8px; font: 700 25px "Space Grotesk", Arial, sans-serif; }
.data-card { padding: 23px; }
.data-card h2 { margin-bottom: 19px; font-size: 18px; }
.data-card table { margin: 0; font-size: 13px; }
.data-card a { color: #087abe; text-decoration: none; }
.data-card a:hover { text-decoration: underline; }

.status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: capitalize;
}

.status.paid { color: var(--success); background: #daf7ea; }
.status.pending { color: var(--warning); background: #fff2d4; }
.status.failed,
.status.cancelled { color: var(--danger); background: #fde3e4; }

.filter-form { display: flex; gap: 10px; margin-bottom: 20px; }
.filter-form input { width: 100%; max-width: 300px; }
.filter-form select { width: 100%; max-width: 160px; }
.filter-form .btn { white-space: nowrap; }

.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.details > div { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.details b { color: #6d8194; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; }
.settings-form h2 { margin: 30px 0 15px; padding-bottom: 12px; border-bottom: 1px solid #e8eef4; font-size: 18px; }
.settings-form h2:first-child { margin-top: 0; }

/* 8. Responsive ------------------------------------------------------------ */
@media (max-width: 991.98px) {
    .hero { min-height: auto; padding: 78px 0 170px; }
    .hero-art { margin-top: 20px; transform: none; }
    .registration-section { margin-top: -110px; }
    .form-shell,
    .form-shell.form-shell-single { width: min(100%, 900px); }
    .footer-grid { gap: 48px; }
}

@media (max-width: 767.98px) {
    .site-header { min-height: 64px; }
    .site-logo { height: 34px; }
    .socials { gap: 10px; }
    .socials a { font-size: 16px; }

    .hero { padding: 57px 0 135px; }
    .hero h1 { font-size: clamp(44px, 13vw, 62px); letter-spacing: -2.5px; }
    .lead { font-size: 16px; }
    .hero-buttons { margin: 30px 0 34px; }
    .btn-primary-hero,
    .btn-secondary-hero { flex: 1 1 200px; padding: 14px 22px; }
    .feature-row { flex-direction: column; gap: 14px; margin-top: 30px; }
    .feature-card { width: 100%; max-width: 390px; }
    .hero-art { min-height: 250px; margin-top: -35px; margin-bottom: -35px; }
    .floating-card { display: none; }

    .registration-section { margin-top: -70px; margin-bottom: 62px; }
    .form-shell,
    .form-shell.form-shell-single { border-radius: 18px; }
    .registration-form { padding: 34px 22px; }
    .form-header { margin-bottom: 32px; }
    .form-header h1 { font-size: 29px; }
    .form-header p { font-size: 15px; }
    .registration-form h3 { margin: 27px 0 18px; padding: 14px 16px; font-size: 18px; }
    .registration-form .row { --bs-gutter-y: .9rem; }
    .registration-form input,
    .registration-form select { min-height: 50px; }
    .register-btn { min-height: 56px; font-size: 16px; }
    .payment-trust { flex-wrap: wrap; }
    .paynow-logo { height: 34px; }
    .form-features { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; padding-top: 24px; }
    .form-features > div { padding: 0; }

    footer { padding-top: 52px; }
    .footer-grid { grid-template-columns: 1fr; gap: 42px; }
    .footer-logo { height: 48px; }
    .copyright { flex-direction: column; margin-top: 45px; text-align: center; }
    .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; font-size: 27px; }

    .return-card,
    .login-card { padding: 32px 24px; }
    .admin-nav { padding: 10px 16px; align-items: flex-start; flex-direction: column; }
    .admin-nav > div { width: 100%; gap: 14px; overflow-x: auto; }
    .admin-main { padding: 30px 16px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .details { grid-template-columns: 1fr; }
    .filter-form { flex-direction: column; }
    .filter-form input,
    .filter-form select { max-width: none; }
}

@media (max-width: 420px) {
    .socials { gap: 8px; }
    .registration-form { padding: 28px 16px; }
    .form-header h1 { font-size: 26px; }
    .stat-grid { grid-template-columns: 1fr; }