@charset "utf-8";

/* 
==================================================================
1. CORE BASE STYLES
- Purpose: Resets and Global Body Settings
==================================================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button[type="submit"] {
    font-family: inherit;
    font-size: 16px;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(
        135deg,
        #0c0c0c 0%,
        #1a1a2e 15%,
        #16213e 35%,
        #0f3460 50%,
        #533a7d 70%,
        #8b5a8c 85%,
        #a0616a 100%
    );
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
}

/* 
==================================================================
2. ANIMATED BACKGROUND SHAPES
==================================================================
*/
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.shape:nth-child(1) { width: 120px; height: 80px; border-radius: 15px; top: 20%; left: 10%; transform: rotate(15deg); }
.shape:nth-child(2) { width: 90px; height: 140px; border-radius: 12px; top: 60%; right: 15%; animation-delay: 2s; transform: rotate(-20deg); }
.shape:nth-child(3) { width: 100px; height: 60px; border-radius: 10px; bottom: 20%; left: 20%; animation-delay: 4s; transform: rotate(25deg); }
.shape:nth-child(4) { width: 80px; height: 120px; border-radius: 8px; top: 10%; right: 30%; animation-delay: 1s; transform: rotate(-10deg); }
.shape:nth-child(5) { width: 110px; height: 70px; border-radius: 14px; bottom: 40%; right: 20%; animation-delay: 3s; transform: rotate(30deg); }
.shape:nth-child(6) { width: 95px; height: 95px; border-radius: 20px; top: 40%; left: 5%; animation-delay: 5s; transform: rotate(-15deg); }

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

/* 
==================================================================
3. GLASSMORPHISM SYSTEM
==================================================================
*/
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

/* 
==================================================================
4. HEADER & NAVIGATION (FIXED FOR MOBILE)
==================================================================
*/
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    white-space: nowrap;
}

/* 
==================================================================
5. HERO SECTION (WELCOME CONTENT)
==================================================================
*/
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.8);
}
/* 


/* Container for Start Trading / Signup buttons */
.hero-btns-container {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.cta-button {
    display: inline-block;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    font-size: 14px;
    flex: 1; /* Makes them equal width on small screens */
    max-width: 200px;
}

/* 
==================================================================
6. FORMS & INPUTS
==================================================================
*/
.glass-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
}

/* 
==================================================================
7. FOOTER STYLES (FIXED GRID FOR MOBILE)
==================================================================
*/
#footer {
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* 
==================================================================
8. WHATSAPP FLOATING BUTTON
==================================================================
*/
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
}

/* 
==================================================================
9. MOBILE RESPONSIVE FIXES (Critical)
==================================================================
*/
@media (max-width: 768px) {
    /* Fixed: Logo and Login/Signup stay in one row */
    nav {
        padding: 20px 15px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Fixed: Hero layout and Horizontal Buttons */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-btns-container {
        justify-content: center; /* Keep them center and horizontal */
        flex-direction: row; 
    }

    .cta-button {
        padding: 12px 15px;
        font-size: 13px;
    }

    /* Fixed: Footer Grid stays 2 columns */
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}
/* 
==================================================================
10. PASSWORD TOGGLE STYLES
==================================================================
*/
.password-wrapper {
    position: relative;
    width: 100%;
}

.toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    z-index: 10;
    font-size: 18px;
}

.toggle-icon:hover {
    color: white;
}

/* 
==================================================================
11. FORM BUTTON STYLE (CENTERED PILL DESIGN)
- Purpose: Same design as CTA but centered in forms
==================================================================
*/
.form-btn {
    display: block;          /* Allows margin auto to work */
    margin: 30px auto 10px auto; /* Centers it and adds space at top */
    width: 100%;             /* Stretches to fill space... */
    max-width: 250px;        /* ...but stops at 250px so it stays a neat pill */
    
    /* Your exact requested styles */
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 
==================================================================
12. DASHBOARD MOBILE APP UI
==================================================================
*/
.app-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: white;
}

.hamburger, .notification-icon {
    font-size: 22px;
    cursor: pointer;
}

.app-logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Balance Card */
.balance-card {
    margin: 10px 20px 30px 20px;
    padding: 15px;
    text-align: center;
}
.balance-card p { opacity: 0.8; font-size: 14px; margin-bottom: 5px; }
.balance-card h1 { font-size: 24px; font-weight: 800; }

/* Action Circular Buttons */
.action-grid {
    display: flex;
    justify-content: space-around;
    padding: 0 10px;
    margin-bottom: 40px;
}
.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.circle-btn {
    width: 70px;
    height: 70px;
    border-radius: 50% !important; /* Forces it to be circular */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    text-decoration: none;
}
.action-item span {
    font-size: 12px;
    font-weight: 600;
}

/* Transactions List */
.transactions-section {
    padding: 0 20px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.section-header h3 { font-size: 16px; }
.section-header a { font-size: 12px; color: #a0616a; text-decoration: none; }

.tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 15px !important;
}
.tx-info { display: flex; flex-direction: column; }
.tx-network { font-weight: 700; font-size: 14px; }
.tx-number { font-size: 12px; opacity: 0.7; }

/* Status Labels */
.tx-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.status-yellow { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.status-green { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.status-red { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

/* 
==================================================================
13. SLIDE-OUT SIDEBAR
==================================================================
*/
.sidebar {
    position: fixed;
    top: 0;
    left: -280px; /* Hidden by default */
    width: 280px;
    height: 100%;
    z-index: 2000;
    transition: 0.4s ease;
    border-radius: 0 30px 30px 0 !important;
    padding: 30px 20px;
}

.sidebar.active {
    left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(5px);
}

.overlay.active {
    display: block;
}

/* Sidebar Header */
.sidebar-header {
    text-align: center;
    margin-bottom: 40px;
}

.user-avatar {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
    border: 2px solid var(--glass-border);
}

/* Sidebar Links */
.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 5px;
    font-size: 15px;
    transition: 0.3s;
}

.sidebar-links a i {
    width: 20px;
    opacity: 0.7;
}

.sidebar-links a:hover, .sidebar-links a.active {
    background: rgba(255,255,255,0.15);
}


.verify-banner {
    margin: 10px 20px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
    background: rgba(255, 193, 7, 0.1) !important;
    border-radius: 12px !important;
}
.verify-banner span { font-size: 13px; color: #ffc107; }
.verify-banner a { 
    font-size: 12px; 
    font-weight: 700; 
    color: white; 
    text-decoration: none;
    background: #ffc107;
    padding: 5px 12px;
    border-radius: 8px;
}

/* 
==================================================================
14. GLOBAL ALERT SYSTEM
==================================================================
*/
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInDown 0.4s ease;
    backdrop-filter: blur(10px);
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    color: #ffbaba;
    border-color: rgba(220, 53, 69, 0.4);
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #b7ffb7;
    border-color: rgba(40, 167, 69, 0.4);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}