/* ============================================================
   VESTIQ GLOBAL STYLE
   Clean Light Blue + White Investment Theme
   ============================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    color: #163A5F;

    /*
       MAIN BACKGROUND
       Clean light-blue investment environment
    */
    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(74, 173, 232, 0.16),
            transparent 22%
        ),
        radial-gradient(
            circle at 88% 12%,
            rgba(74, 173, 232, 0.12),
            transparent 25%
        ),
        radial-gradient(
            circle at 75% 75%,
            rgba(74, 173, 232, 0.08),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #EAF6FF 0%,
            #D9F0FF 35%,
            #BFE3F7 65%,
            #F7FCFF 100%
        );

    background-attachment: fixed;
    background-size: cover;

    position: relative;
}


/* ============================================================
   LARGE BACKGROUND EFFECT
   ============================================================ */

body::before {
    content: "";

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    pointer-events: none;

    opacity: 1;

    background-image:
        linear-gradient(
            rgba(74, 173, 232, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(74, 173, 232, 0.08) 1px,
            transparent 1px
        );

    background-size:
        45px 45px,
        45px 45px;
}


/* ============================================================
   SECOND BACKGROUND LAYER
   FINANCIAL CHART-LIKE LINES
   ============================================================ */

body::after {
    content: "";

    position: fixed;

    width: 900px;
    height: 500px;

    right: -180px;
    bottom: -80px;

    z-index: 0;

    pointer-events: none;

    opacity: 0.28;

    transform: rotate(-8deg);

    background:
        linear-gradient(
            145deg,
            transparent 0 18%,
            rgba(74,173,232,.22) 18.2%,
            transparent 18.5% 35%,
            rgba(74,173,232,.18) 35.2%,
            transparent 35.5% 48%,
            rgba(74,173,232,.20) 48.2%,
            transparent 48.5% 65%,
            rgba(74,173,232,.16) 65.2%,
            transparent 65.5%
        );

    filter: blur(1px);
}


/* ============================================================
   KEEP ALL ACTUAL CONTENT ABOVE BACKGROUND
   ============================================================ */

body > * {
    position: relative;
    z-index: 2;
}


/* ============================================================
   HEADER
   ============================================================ */

header {
    background:
        linear-gradient(
            135deg,
            rgba(1, 34, 23, 0.98),
            rgba(3, 74, 48, 0.96)
        );

    color: #fff;

    padding: 16px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    flex-wrap: wrap;

    border-bottom:
        1px solid rgba(74,173,232,.28);

    box-shadow:
        0 8px 30px rgba(0,0,0,.35);

    backdrop-filter: blur(12px);
}


/* ============================================================
   BRAND
   ============================================================ */

.brand {
    color: #4AADE8;

    text-decoration: none;

    font-size: 29px;

    font-weight: 900;

    letter-spacing: -1px;
}

.brand span {
    color: #fff;
}

.brand::after {
    content: "";

    display: block;

    width: 35px;
    height: 3px;

    margin-top: 4px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #4AADE8,
            transparent
        );
}


/* ============================================================
   NAVIGATION
   ============================================================ */

nav {
    display: flex;

    align-items: center;

    gap: 5px;

    flex-wrap: wrap;
}

nav a {
    color: rgba(255,255,255,.88);

    text-decoration: none;

    padding: 9px 12px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    transition: .2s;
}

nav a:hover {
    color: #fff;

    background:
        rgba(74,173,232,.14);
}


/* ============================================================
   MAIN
   ============================================================ */

main {
    width: min(1150px, 94%);

    margin: 30px auto;

    padding: 0 10px;
}


/* ============================================================
   HEADINGS
   ============================================================ */

main h1,
main h2 {
    color: #163A5F;

    margin-bottom: 18px;

    text-shadow: none;
}

main h3,
main h4 {
    color: #163A5F;
}


/* ============================================================
   PREMIUM CARD
   ============================================================ */

.card {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(246,250,247,.97)
        );

    border-radius: 18px;

    padding: 22px;

    margin: 18px 0;

    border:
        1px solid rgba(74,173,232,.20);

    box-shadow:
        0 20px 55px rgba(0,0,0,.25);

    backdrop-filter: blur(8px);
}

.card:hover {
    box-shadow:
        0 25px 65px rgba(0,0,0,.30);
}


/* ============================================================
   DASHBOARD GRID
   ============================================================ */

.grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0,1fr));

    gap: 15px;

    margin-bottom: 20px;
}


/* ============================================================
   STAT CARDS
   ============================================================ */

.stat {
    position: relative;

    overflow: hidden;

    min-height: 115px;

    padding: 21px;

    border-radius: 16px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #168ACB,
            #0B5F91
        );

    border:
        1px solid rgba(74,173,232,.22);

    box-shadow:
        0 15px 40px rgba(0,0,0,.30);
}

.stat::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    right: -70px;
    top: -70px;

    border-radius: 50%;

    border:
        1px solid rgba(74,173,232,.22);
}

.stat::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -40px;
    top: -40px;

    border-radius: 50%;

    border:
        1px solid rgba(74,173,232,.16);
}

.stat span {
    display: block;

    color: rgba(255,255,255,.68);

    font-size: 13px;

    margin-bottom: 8px;
}

.stat b {
    color: #f0c85f;

    font-size: 22px;

    font-weight: 800;
}


/* ============================================================
   INVESTMENT PLANS
   ============================================================ */

.cards {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0,1fr));

    gap: 18px;
}

.package {
    position: relative;

    overflow: hidden;
}

.package::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 5px;

    background:
        linear-gradient(
            90deg,
            #168ACB,
            #4AADE8,
            #168ACB
        );
}

.package h3 {
    color: #168ACB;

    font-size: 20px;

    margin-bottom: 10px;
}

.price {
    color: #168ACB;

    font-size: 28px;

    font-weight: 900;

    margin: 12px 0;
}


/* ============================================================
   BALANCE CARD
   ============================================================ */

.balance-card {
    position: relative;

    overflow: hidden;

    padding: 28px;

    border-radius: 20px;

    color: #fff;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(74,173,232,.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #168ACB,
            #0B5F91
        );

    border:
        1px solid rgba(74,173,232,.28);

    box-shadow:
        0 20px 55px rgba(0,0,0,.30);
}

.balance-card::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    right: -100px;
    top: -100px;

    border:
        1px solid rgba(74,173,232,.16);
}

.balance-card .amount {
    color: #4AADE8;

    font-size: 36px;

    font-weight: 900;
}


/* ============================================================
   FORMS
   ============================================================ */

label {
    display: block;

    margin: 14px 0;

    color: #163A5F;

    font-size: 14px;

    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;

    display: block;

    margin-top: 6px;

    padding: 12px 13px;

    border-radius: 9px;

    border:
        1px solid #C7DCE8;

    background: #fff;

    color: #163A5F;

    font-family: inherit;

    font-size: 15px;

    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #168ACB;

    box-shadow:
        0 0 0 3px rgba(22,138,203,.12);
}


/* ============================================================
   BUTTONS
   ============================================================ */

button,
.btn {
    display: inline-block;

    padding: 11px 17px;

    border: none;

    border-radius: 9px;

    background: #EAF3F8;

    color: #163A5F;

    text-decoration: none;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
}

.btn.primary,
button.primary {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            #168ACB,
            #39A9E8
        );

    box-shadow:
        0 8px 20px rgba(22,138,203,.24);
}

.btn.gold {
    color: #163A5F;

    background:
        linear-gradient(
            135deg,
            #6DBCEB,
            #A8DDF7
        );

    box-shadow:
        0 8px 20px rgba(74,173,232,.18);
}

.full {
    width: 100%;
}

.small {
    padding: 7px 10px;

    font-size: 12px;
}

.dangerbtn {
    background: #b42318;

    color: #fff;
}


/* ============================================================
   ACTIONS
   ============================================================ */

.actions {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin: 18px 0;
}


/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    padding: 13px 15px;

    border-radius: 10px;

    margin: 13px 0;

    font-size: 14px;

    font-weight: 600;
}

.alert.success {
    color: #176B9C;

    background: #E5F5FF;

    border: 1px solid #B9DFF2;
}

.alert.danger {
    color: #A33A3A;

    background: #FFF0F0;

    border: 1px solid #F1C5C5;
}


/* ============================================================
   BADGES
   ============================================================ */

.badge {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 30px;

    font-size: 11px;

    font-weight: 800;
}

.badge.pending,
.pending {
    color: #765A00;

    background: #FFF7D6;
}

.badge.approved,
.approved,
.badge.active,
.active {
    color: #176B9C;

    background: #E4F6FF;
}

.badge.rejected,
.rejected,
.badge.suspended,
.suspended {
    color: #A33A3A;

    background: #FFF0F0;
}


/* ============================================================
   TABLES
   ============================================================ */

.tablewrap {
    width: 100%;

    overflow-x: auto;

    border-radius: 12px;
}

table {
    width: 100%;

    border-collapse: collapse;

    background: #fff;

    font-size: 14px;
}

th {
    padding: 13px;

    text-align: left;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #168ACB,
            #0B5F91
        );
}

td {
    padding: 12px;

    color: #31566F;

    border-bottom:
        1px solid #DCEAF2;
}

tr:hover td {
    background: #F2FAFF;
}


/* ============================================================
   AUTHENTICATION
   ============================================================ */

.auth {
    min-height: 100vh;

    display: grid;

    place-items: center;

    padding: 30px 15px;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(74,173,232,.22),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(74,173,232,.16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #EAF6FF,
            #BFE3F7,
            #F7FCFF
        );
}

.auth::before {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    border-radius: 50%;

    border:
        1px solid rgba(74,173,232,.14);

    right: -300px;
    top: -250px;
}

.auth::after {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    border:
        1px solid rgba(74,173,232,.10);

    left: -200px;
    bottom: -180px;
}

.auth .card {
    position: relative;

    z-index: 5;

    width: min(450px,100%);

    margin: 0;

    padding: 30px;

    background:
        rgba(255,255,255,.98);

    border-radius: 20px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.38);
}

.auth h1,
.auth h2,
.auth h3 {
    color: #168ACB;

    text-align: center;

    margin-bottom: 15px;
}


/* ============================================================
   CENTER
   ============================================================ */

.center {
    text-align: center;
}

.muted {
    color: #71899A;
}


/* ============================================================
   LINKS
   ============================================================ */

a {
    color: #168ACB;

    font-weight: 600;
}

a:hover {
    color: #2679A8;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
    position: relative;

    z-index: 3;

    margin-top: 50px;

    padding: 30px 20px;

    text-align: center;

    color: rgba(255,255,255,.68);

    font-size: 13px;

    background:
        rgba(10,72,108,.90);

    border-top:
        1px solid rgba(74,173,232,.16);
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 1050px) {

    .grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }

    .cards {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }
}


@media (max-width: 700px) {

    header {
        padding: 13px 4%;
    }

    .brand {
        font-size: 24px;
    }

    nav {
        width: 100%;

        justify-content: center;
    }

    nav a {
        font-size: 12px;

        padding: 7px 9px;
    }

    main {
        width: 94%;

        margin: 20px auto;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 17px;
    }

    .actions {
        flex-direction: column;
    }

    .actions .btn,
    .actions button {
        width: 100%;

        text-align: center;
    }

    .balance-card .amount {
        font-size: 30px;
    }

    table {
        min-width: 700px;
    }

    .auth .card {
        padding: 23px;
    }
}


@media (max-width: 420px) {

    .brand {
        font-size: 22px;
    }

    nav a {
        font-size: 11px;

        padding: 6px;
    }

    .stat b {
        font-size: 19px;
    }

    .price {
        font-size: 24px;
    }
}