/* =========================================================
   COMPOUND EARN
   MASTER STYLESHEET
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --bg-one: #58450a;
    --bg-two: #1c4d0e;
    --bg-three: #418a2a;

    --glass: rgba(255, 255, 255, 0.12);

    --border: rgba(255, 255, 255, 0.25);

    --text: rgba(255, 255, 255, 0.90);

    --muted: rgba(255, 255, 255, 0.70);

    --dark-green: #10220c;

}


/* =========================================================
   BODY
========================================================= */

body {

    font-family: Arial, sans-serif;

    min-height: 100vh;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--bg-one),
            var(--bg-two),
            var(--bg-three)
        );

}


/* =========================================================
   GENERAL
========================================================= */

a {

    color: inherit;

}


button,
input,
select {

    font: inherit;

}


button {

    cursor: pointer;

}


.center {

    text-align: center;

}


.muted {

    color: var(--muted);

}


.small {

    font-size: 12px;

    color: var(--muted);

}


.subtitle {

    color: var(--muted);

    line-height: 1.55;

}


p {

    line-height: 1.55;

}


/* =========================================================
   PAGE CENTER
========================================================= */

.page-center {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

}


/* =========================================================
   CARDS
========================================================= */

.card,
.panel {

    width: 100%;

    max-width: 560px;

    padding: 30px 24px;

    background:
        var(--glass);

    border:
        1px solid
        var(--border);

    border-radius: 25px;

    backdrop-filter: blur(15px);

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.25);

}


.panel {

    max-width: none;

    margin-bottom: 18px;

}


/* =========================================================
   HERO
========================================================= */

.hero {

    text-align: center;

}


.hero p {

    margin-bottom: 25px;

}


/* =========================================================
   LOGO
========================================================= */

.logo {

    width: 100px;

    height: 100px;

    object-fit: cover;

    border-radius: 50%;

    display: block;

    margin: 0 auto 18px;

}


/* =========================================================
   HEADINGS
========================================================= */

h1 {

    font-size: 32px;

    margin-bottom: 12px;

    text-align: center;

}


h2 {

    margin-bottom: 12px;

}


h3 {

    margin-bottom: 10px;

}


/* =========================================================
   BUTTONS
========================================================= */

.btn {

    display: block;

    width: 100%;

    padding: 15px;

    border: 0;

    border-radius: 13px;

    text-decoration: none;

    font-weight: bold;

    text-align: center;

    cursor: pointer;

    margin-top: 12px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;

}


.btn:hover {

    transform: translateY(-2px);

}


.btn:active {

    transform: scale(0.98);

}


.btn-primary {

    background: white;

    color: #17310f;

}


.btn-secondary {

    background:
        linear-gradient(
            90deg,
            #3c5121,
            #534b12
        );

    color: white;

    border:
        1px solid
        var(--border);

}


.btn-dark {

    background: #000;

    color: white;

}


.btn-danger {

    background: #8d2222;

    color: white;

}


/* =========================================================
   FORM
========================================================= */

.form-group {

    margin-bottom: 16px;

}


label {

    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: bold;

}


input,
select {

    width: 100%;

    padding: 14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.20);

    outline: none;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.92);

    color: #222;

}


input:focus,
select:focus {

    border-color: white;

    box-shadow:
        0 0 0 2px
        rgba(255, 255, 255, 0.15);

}


input::placeholder {

    color: #777;

}


/* =========================================================
   PHONE INPUT
========================================================= */

.input-row {

    display: flex;

    gap: 8px;

}


.country-code {

    width: 76px;

    min-width: 76px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: white;

    color: #222;

    font-weight: bold;

}


/* =========================================================
   MESSAGES
========================================================= */

.message {

    display: none;

    padding: 12px;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.15);

    margin-bottom: 15px;

    text-align: center;

}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {

    padding: 16px 18px;

    background:
        rgba(0, 0, 0, 0.20);

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 12px;

}


.back {

    font-weight: bold;

    text-decoration: none;

}


.logout {

    border: 0;

    background: transparent;

    color: white;

    font-weight: bold;

    cursor: pointer;

}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.container {

    width:
        min(
            calc(100% - 28px),
            1000px
        );

    margin: auto;

    padding:
        24px 0
        50px;

}


/* =========================================================
   DASHBOARD GRID
========================================================= */

.dashboard-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;

}


/* =========================================================
   STAT CARDS
========================================================= */

.stat {

    padding: 18px;

    border-radius: 18px;

    background:
        rgba(0, 0, 0, 0.20);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

}


.stat small {

    color: var(--muted);

}


.stat strong {

    display: block;

    font-size: 24px;

    margin-top: 8px;

}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.actions {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

}


.actions a {

    margin: 0;

}


/* =========================================================
   PACKAGE GRID
========================================================= */

.package-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

}


/* =========================================================
   PACKAGE CARD
========================================================= */

.package {

    padding: 16px;

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.10);

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

}


.package .amount {

    font-size: 20px;

    font-weight: bold;

}


.package .return {

    margin-top: 7px;

    color: #e9f5d8;

    font-size: 14px;

}


/* =========================================================
   PAYMENT AMOUNT OPTIONS
========================================================= */

.option-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

}


.amount-option {

    padding: 15px;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.10);

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    cursor: pointer;

    text-align: center;

    font-weight: bold;

    color: white;

}


.amount-option:hover {

    background:
        rgba(255, 255, 255, 0.20);

}


.amount-option.selected {

    background: white;

    color: #17310f;

}


/* =========================================================
   CONFIRMATION BOX
========================================================= */

.confirm {

    display: none;

    margin-top: 18px;

    padding: 18px;

    border-radius: 18px;

    background: white;

    color: #28304d;

}


.confirm h2 {

    margin-bottom: 10px;

}


.confirm-row {

    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 9px 0;

    border-bottom:
        1px solid
        #ddd;

    font-size: 13px;

}


.confirm-row:last-child {

    border-bottom: 0;

}


/* =========================================================
   NOTICES
========================================================= */

.notice {

    padding: 14px;

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.10);

    font-size: 13px;

    line-height: 1.55;

    margin-top: 16px;

}


/* =========================================================
   TRANSACTIONS
========================================================= */

.tx {

    padding: 15px 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.12);

}


.tx:last-child {

    border-bottom: 0;

}


.tx-head {

    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 5px;

}


/* =========================================================
   STATUS BADGES
========================================================= */

.badge {

    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: bold;

    margin-top: 7px;

}


.pending {

    background: #fff3cd;

    color: #856404;

}


.completed {

    background: #d4edda;

    color: #155724;

}


.failed {

    background: #f8d7da;

    color: #721c24;

}


/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media (max-width: 700px) {

    .dashboard-grid {

        grid-template-columns: 1fr;

    }


    .actions {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 600px) {

    .package-grid,
    .option-grid {

        grid-template-columns: 1fr;

    }


    .container {

        width:
            calc(100% - 20px);

    }


    .card,
    .panel {

        padding:
            24px 18px;

    }


    h1 {

        font-size: 28px;

    }


    .logo {

        width: 90px;

        height: 90px;

    }


    .topbar {

        padding:
            14px;

    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .page-center {

        padding: 12px;

    }


    .card,
    .panel {

        border-radius: 18px;

        padding:
            20px 14px;

    }


    .country-code {

        width: 65px;

        min-width: 65px;

        font-size: 14px;

    }


    input {

        padding: 12px;

    }


    .btn {

        padding: 13px;

    }

}

/* Compound Earn interaction glow */
button:active, a.btn:active, .action:active, .bottom-nav-item:active {
    box-shadow: 0 0 4px rgba(255,255,255,.95), 0 0 10px rgba(255,0,180,.62), 0 0 16px rgba(0,220,255,.48), 0 0 22px rgba(255,220,55,.32) !important;
}
@media (max-width: 600px) {
    body { overflow-x:hidden; }
    .container { padding-top:18px; padding-bottom:35px; }
    .card, .panel { padding:18px 14px; border-radius:18px; }
    h1 { font-size:24px; }
    .btn { padding:12px; border-radius:11px; }
}
