/* ============================================================
   VESTIQ GLOBAL STYLE
   Premium Green + Gold 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: #173b2a;

    /*
       MAIN BACKGROUND
       Dark emerald investment environment
    */
    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(231, 190, 82, 0.28),
            transparent 22%
        ),
        radial-gradient(
            circle at 88% 12%,
            rgba(0, 220, 135, 0.20),
            transparent 25%
        ),
        radial-gradient(
            circle at 75% 75%,
            rgba(229, 187, 80, 0.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #021f16 0%,
            #043c29 35%,
            #07583b 65%,
            #02281c 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(229, 187, 80, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(229, 187, 80, 0.055) 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(229,187,80,.30) 18.2%,
            transparent 18.5% 35%,
            rgba(229,187,80,.22) 35.2%,
            transparent 35.5% 48%,
            rgba(229,187,80,.28) 48.2%,
            transparent 48.5% 65%,
            rgba(229,187,80,.20) 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(229,187,80,.35);

    box-shadow:
        0 8px 30px rgba(0,0,0,.35);

    backdrop-filter: blur(12px);
}


/* ============================================================
   BRAND
   ============================================================ */

.brand {
    color: #e5bb50;

    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,
            #e5bb50,
            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(229,187,80,.13);
}


/* ============================================================
   MAIN
   ============================================================ */

main {
    width: min(1150px, 94%);

    margin: 30px auto;

    padding: 0 10px;
}


/* ============================================================
   HEADINGS
   ============================================================ */

main h1,
main h2 {
    color: #fff;

    margin-bottom: 18px;

    text-shadow:
        0 3px 15px rgba(0,0,0,.35);
}

main h3,
main h4 {
    color: #173b2a;
}


/* ============================================================
   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(229,187,80,.28);

    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,
            #075e3d,
            #032f21
        );

    border:
        1px solid rgba(229,187,80,.30);

    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(229,187,80,.25);
}

.stat::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -40px;
    top: -40px;

    border-radius: 50%;

    border:
        1px solid rgba(229,187,80,.18);
}

.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,
            #075c3c,
            #e5bb50,
            #075c3c
        );
}

.package h3 {
    color: #075c3c;

    font-size: 20px;

    margin-bottom: 10px;
}

.price {
    color: #075c3c;

    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(229,187,80,.22),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #075e3d,
            #022c1e
        );

    border:
        1px solid rgba(229,187,80,.35);

    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(229,187,80,.18);
}

.balance-card .amount {
    color: #e5bb50;

    font-size: 36px;

    font-weight: 900;
}


/* ============================================================
   FORMS
   ============================================================ */

label {
    display: block;

    margin: 14px 0;

    color: #173b2a;

    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 #ccd8d0;

    background: #fff;

    color: #173b2a;

    font-family: inherit;

    font-size: 15px;

    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #075c3c;

    box-shadow:
        0 0 0 3px rgba(7,92,60,.12);
}


/* ============================================================
   BUTTONS
   ============================================================ */

button,
.btn {
    display: inline-block;

    padding: 11px 17px;

    border: none;

    border-radius: 9px;

    background: #e8ece9;

    color: #173b2a;

    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,
            #075c3c,
            #08734c
        );

    box-shadow:
        0 8px 20px rgba(7,92,60,.28);
}

.btn.gold {
    color: #173b2a;

    background:
        linear-gradient(
            135deg,
            #d6a83b,
            #f0cc6c
        );

    box-shadow:
        0 8px 20px rgba(180,140,45,.20);
}

.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: #12603b;

    background: #def5e6;

    border: 1px solid #b9e5c8;
}

.alert.danger {
    color: #8c1e14;

    background: #fde5e2;

    border: 1px solid #f3c1bb;
}


/* ============================================================
   BADGES
   ============================================================ */

.badge {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 30px;

    font-size: 11px;

    font-weight: 800;
}

.badge.pending,
.pending {
    color: #735500;

    background: #fff1c9;
}

.badge.approved,
.approved,
.badge.active,
.active {
    color: #12603b;

    background: #ddf4e5;
}

.badge.rejected,
.rejected,
.badge.suspended,
.suspended {
    color: #8c1e14;

    background: #fde5e2;
}


/* ============================================================
   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,
            #075c3c,
            #043b29
        );
}

td {
    padding: 12px;

    color: #294437;

    border-bottom:
        1px solid #e5ece7;
}

tr:hover td {
    background: #f4f9f5;
}


/* ============================================================
   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(229,187,80,.25),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(0,220,135,.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #021f16,
            #07583b,
            #02281c
        );
}

.auth::before {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    border-radius: 50%;

    border:
        1px solid rgba(229,187,80,.16);

    right: -300px;
    top: -250px;
}

.auth::after {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    border:
        1px solid rgba(229,187,80,.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: #075c3c;

    text-align: center;

    margin-bottom: 15px;
}


/* ============================================================
   CENTER
   ============================================================ */

.center {
    text-align: center;
}

.muted {
    color: #6d7c73;
}


/* ============================================================
   LINKS
   ============================================================ */

a {
    color: #075c3c;

    font-weight: 600;
}

a:hover {
    color: #b18425;
}


/* ============================================================
   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(1,29,20,.88);

    border-top:
        1px solid rgba(229,187,80,.20);
}


/* ============================================================
   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;
    }
}