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

/* ================= COLORS ================= */
:root {
    --bg-card: rgba(20, 15, 35, 0.75);
    --primary: #a855f7;
    --secondary: #ec4899;
    --text: #fff;
    --text-dim: #aaa;
}

/* ================= BODY (FIXED SCROLL) ================= */
html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Segoe UI', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 70% 30%, rgba(236,72,153,0.12), transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(168,85,247,0.12), transparent 40%),
        #000;
}

/* glow overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at center, rgba(236,72,153,0.08), transparent 50%);
}

/* ================= BACKGROUND ================= */
#stars, #bg, #mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
}

#stars { z-index: 0; opacity: 0.6; }
#bg { z-index: 1; opacity: 0.7; }

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    z-index: 9999;
}

.logo {
    font-weight: bold;
    background: linear-gradient(90deg,#a855f7,#ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* ================= CONTAINER ================= */
.container {
    position: relative;
    width: 100%;
    min-height: 82vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ================= CARD ================= */
.card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
}

/* ================= BUTTON ================= */
/* ================= NAVBAR BUTTON FIX ================= */
.connect-btn {
    padding: 6px 14px;   /* smaller */
    font-size: 12px;     /* smaller text */
    border-radius: 20px;
	height:32px;

    background: linear-gradient(90deg,#a855f7,#ec4899);
    color: #fff;

    border: none;
    cursor: pointer;

    transition: 0.3s;
}

.connect-btn:hover {
    box-shadow: 0 0 15px #ec4899;
}

/* ================= DASHBOARD ================= */
.dashboard {
    position: relative;
    z-index: 10;
    padding: 100px 20px 40px;
}

/* ================= GRID ================= */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
    gap: 15px;
}

/* ================= STAT CARD ================= */
.stat-card {
    position: relative;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    overflow: hidden;
    background: rgba(20,15,35,0.85);
}

/* animated neon border */
.stat-card::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(
        transparent,
        #a855f7,
        #ec4899,
        transparent
    );
    animation: rotate 6s linear infinite;
}

/* inner glass */
.stat-card::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 13px;
    background: rgba(20,15,35,0.95);
}

.stat-card * {
    position: relative;
    z-index: 2;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

/* ================= TEXT ================= */
.label {
    font-size: 12px;
    color: var(--text-dim);
}

.value {
    font-size: 18px;
    margin-top: 5px;
    color: #FFD700;
}

/* ================= EXTRA ================= */
.extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    gap: 12px;
    margin-top: 20px;
}

.extra-card {
    padding: 15px;
    border-radius: 12px;
    background: var(--bg-card);
}

/* ================= REFERRAL ================= */
.referral-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 15px;
    background: var(--bg-card);
}

.ref-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.ref-row input {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: none;
}

/* ================= TRANSACTIONS ================= */
.tx-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 15px;
    background: var(--bg-card);
}

.tx {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.green { color: #00ff99; }
.red { color: #ff4d4d; }

/* ================= ACTIONS ================= */
.actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.main-btn {
    flex: 1;
    padding: 12px;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(90deg,#a855f7,#ec4899);
    color: #fff;
}

/* ================= WALLET ================= */
.wallet-text {
    font-size: 13px;
    color: #00ffc8;
}

/* ================= TABLE ================= */
.table-wrapper {
    overflow-x: auto;
}

.tx-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.tx-table th,
.tx-table td {
    padding: 10px;
    white-space: nowrap;
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
    .dashboard {
        padding: 90px 15px;
    }
}


/* FORCE BACKGROUND CANVAS TO NOT BREAK SCROLL */
#stars {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* IMPORTANT */
    z-index: 0;
}

/* ================= EXTRA CARD NEON BORDER ================= */

.extra-card {
    position: relative;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    overflow: hidden;

    background: rgba(20,15,35,0.85);
    backdrop-filter: blur(15px);

    transition: 0.3s;
}

/* ANIMATED BORDER */
.extra-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;

    background: linear-gradient(
        90deg,
        #00ffc8,
        #a855f7,
        #ff4d8d,
        #00ffc8
    );

    background-size: 300% 100%;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    animation: extraBorderMove 4s linear infinite;
}

/* INNER LAYER */
.extra-card::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 10px;
    background: rgba(20,15,35,0.95);
    z-index: 0;
}

/* KEEP TEXT ABOVE */
.extra-card * {
    position: relative;
    z-index: 2;
}

/* HOVER EFFECT */
.extra-card:hover {
    transform: translateY(-5px) scale(1.03);
}

/* ANIMATION */
@keyframes extraBorderMove {
    0% { background-position: 0% }
    100% { background-position: 300% }
}


/* ================= FEATURES ROW ================= */
.features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

/* EACH ITEM */
.feature {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

/* ICON CIRCLE */
.circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

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

    box-shadow:
        0 0 10px #ec4899,
        0 0 20px #a855f7;

    transition: 0.3s;
}

/* HOVER EFFECT */
.feature:hover .circle {
    transform: scale(1.15);
    box-shadow:
        0 0 20px #ec4899,
        0 0 40px #a855f7;
}

/* TEXT */
.feature span {
    font-size: 13px;
    color: #ccc;
}


@media (max-width: 480px) {
    .features {
        flex-direction: column;
        gap: 15px;
    }
}

/* ================= PREMIUM CARD ================= */
.premium-card {
    position: relative;
    border-radius: 25px;
    padding: 45px 25px;

    background: rgba(20,15,35,0.65);
    backdrop-filter: blur(25px);

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

    box-shadow:
        0 0 40px rgba(168,85,247,0.25),
        0 0 80px rgba(236,72,153,0.15),
        inset 0 0 20px rgba(255,255,255,0.05);

    overflow: hidden;
}

/* animated border */
.premium-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 25px;

    background: linear-gradient(90deg,
        #a855f7,
        #ec4899,
        #ff4d8d,
        #a855f7
    );

    background-size: 300% 100%;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    animation: borderMove 4s linear infinite;
}

/* border animation */
@keyframes borderMove {
    0% { background-position: 0% }
    100% { background-position: 300% }
}

/* ================= GLOW TEXT ================= */
.glow-text {
    text-shadow:
        0 0 10px #a855f7,
        0 0 20px #ec4899,
        0 0 30px #ff4d8d;
}
/* ================= LOGO ================= */
.logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

/* LOGO IMAGE */
.main-logo {
    width: 120px;
    max-width: 100%;
    height: auto;

    filter:
        drop-shadow(0 0 10px #a855f7)
        drop-shadow(0 0 20px #ec4899);

    transition: 0.4s;
}

/* HOVER EFFECT */
.main-logo:hover {
    transform: scale(1.08);
    filter:
        drop-shadow(0 0 20px #a855f7)
        drop-shadow(0 0 40px #ec4899);
}

.main-logo {
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ================= LOGO SIZE FIX ================= */
.main-logo {
    width: 180px;   /* increased from 120px */
    max-width: 80%;
    height: auto;

    filter:
        drop-shadow(0 0 15px #a855f7)
        drop-shadow(0 0 30px #ec4899);

    transition: 0.4s;
}

@media (max-width: 480px) {
    .main-logo {
        width: 120px;
    }

    .connect-btn {
        padding: 5px 12px;
        font-size: 11px;
    }
}


/* ================= SAFE CLICK FIX (NO DESIGN CHANGE) ================= */

/* keep all backgrounds behind */
#stars, #bg {
    z-index: 0 !important;
}

/* glow layer safe */
body::before {
    z-index: 1 !important;
}

/* mouse glow never blocks clicks */
#mouse-glow {
    z-index: 2 !important;
    pointer-events: none !important;
}

/* MAIN UI ABOVE EVERYTHING */
.container {
    position: relative;
    z-index: 10 !important;
}

/* CARDS SAFE ABOVE BACKGROUND */
.card,
.premium-card {
    position: relative;
    z-index: 11 !important;
}

/* NAVBAR ALWAYS TOP */
.navbar {
    z-index: 99999 !important;
}

/* BUTTON ALWAYS CLICKABLE */
.connect-btn,
.main-btn {
    position: relative;
    z-index: 999999 !important;
    pointer-events: auto !important;
}

/* SAFETY FOR ALL BUTTONS */
button {
    pointer-events: auto !important;
}
/* ================= TRANSACTION TABLE UI ================= */

.tx-history {
    margin-top: 25px;
    padding: 15px;
    border-radius: 16px;
    background: rgba(20,15,35,0.75);
    backdrop-filter: blur(20px);
}

/* HEADER */
.tx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tx-header h3 {
    color: #fff;
    font-size: 16px;
}

/* SEARCH BOX */
#searchTx {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.3);
    color: #fff;
    outline: none;
}

/* TABLE WRAPPER */
.table-wrapper {
    overflow-x: auto;
}

/* TABLE */
.tx-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}

/* HEADER ROW */
.tx-table thead {
    background: linear-gradient(90deg, #a855f7, #ec4899);
}

.tx-table th {
    padding: 12px;
    text-align: left;
    color: #fff;
    font-size: 13px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.tx-table th:last-child {
    border-right: none;
}

/* ROWS */
.tx-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.05);
    color: #ddd;
    font-size: 13px;
}

/* LAST COLUMN BORDER REMOVE */
.tx-table td:last-child {
    border-right: none;
}

/* ROW HOVER */
.tx-table tbody tr {
    transition: 0.3s;
}

.tx-table tbody tr:hover {
    background: rgba(168,85,247,0.08);
    transform: scale(1.01);
}

/* STATUS COLORS */
.green {
    color: #00ff99;
    font-weight: bold;
}

.red {
    color: #ff4d4d;
    font-weight: bold;
}

.pending {
    color: #ffcc00;
    font-weight: bold;
}

.success {
    color: #00ff99;
    font-weight: bold;
}

/* MOBILE */
@media (max-width: 600px) {
    .tx-table th,
    .tx-table td {
        font-size: 12px;
        padding: 10px;
    }
}

