/* style.css */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
 

:root {
    --primary:  #007BFF;
    --secondary: #00C48C;
    --success: #82d616;
    --error: #d50000;
    --text: #ffffff;
    --card-bg:#0C1625;
    --dark: #1a237e;
    --light: #f8f9fa;
    --silver: #c0c0c0;
    --gold: #f59e0b;
    --premium: #00c853;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color:#c4c9d4;
    
    color: var(--text);
    line-height: 1.6;
    padding-top: 30px;
}

/* Header/Navigation */
.navbar {
    background: #232b60 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    padding: 0.5rem 0 !important;}
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--dark), var(--primary));
    z-index: 100;
    display: flex;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

.nav-links a:hover {
    color: white;
}

.hamburger {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

/* Main Content Container */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 0;
    padding: 20px;
background-color:#495268;
    
}

.dashboard-card {
    background:#0C1625;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

/* Balance Card */
.balance-card {
    background:#0C1625;
    color: white;
    position: relative;
    overflow: hidden;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.notification-bell {
    position: relative;
    font-size: 1.2rem;
    cursor: pointer;
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Investment Plans */
.investment-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.plan-card {
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.popular-plan {
    border: 2px solid var(--success);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--success);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
}

.plan-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.plan-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.plan-range {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.3rem;
}

.plan-profit {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.plan-profit span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success);
}

.plan-duration {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.plan-features i {
    color: var(--success);
}

.btn-plan {
    display: block;
    text-align: center;
    margin-top: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-plan:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Plan-specific colors */
.starter-plan {
    background: white;
}

.silver-plan {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0,grey);
    border: 1px solid var(--silver);
}

.gold-plan {
    background: linear-gradient(135deg, #fff9e6, #f59e0b);
    border: 1px solid var(--gold);
}

.premium-plan {
    background: linear-gradient(135deg, #ccff90, #00c853);

    border: 1px solid var(--premium);
    color: white;
}

.premium-plan .plan-range,
.premium-plan .plan-duration {
    color: rgba(46, 125, 50, 0.8);
}

/* Referral Card */
.referral-card {
      background:#0C1625;
    color: white;
}

.referral-stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.referral-link-container {
    margin-top: 1rem;
}

.input-group {
    display: flex;
    margin: 1rem 0;
}

.input-group input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: monospace;
}

.btn-copy {
    background: #333;
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: #555;
}

.referral-info {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Transactions */
.transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.transactions-table th,
.transactions-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.transactions-table th {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--error);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.status-badge.completed {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success);
}

.status-badge.pending {
    background: rgba(255, 165, 0, 0.1);
    color: #ffa500;
}

.status-badge.failed {
    background: rgba(255, 71, 87, 0.1);
    color: var(--error);
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--success);
    color: white;
}

.btn-primary:hover {
    background: #00e676;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 200, 83, 0.3);
}

.btn-secondary {
    background: var(--primary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(41, 98, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: var(--text);
}

.btn-outline:hover {
    background: #f5f5f5;
}

/* Crypto List */
.crypto-list {
    margin-top: 2rem;
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.crypto-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.crypto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.crypto-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.crypto-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.crypto-card p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.positive {
    color: var(--success);
}

.negative {
    color: var(--error);
}

/* Deposit Page Styles */
.deposit-container {
background-color:#495268;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 0;
    padding: 5px;
}

.deposit-header {
    margin-bottom: 30px;
}

.deposit-header h1 {
    margin: 0;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.deposit-header p {
    margin: 5px 0 0;
    color: white;
}

.deposit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 0;
}

.deposit-grid > * {
    min-width: 0;
}

.deposit-card {
    background:#0C1625;
    color:#5474a5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-wrap: break-word;
}


.plan-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.plan-tab {
    flex: 1;
    padding: 5px;
    text-align: center;
background-color: #232b60;  
border: #5474a5 solid 8px;
    box-shadow:#5474a5 solid 8px ;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color:white;
}

.plan-tab.active {
    background: #007BFF;
    color: #98bdf4;
}

.plan-details-container {
    margin-top: 20px;
    border-radius: 5px;
}

.payout-schedule {
    margin: 20px 0;
}

.payout-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.payout-item:last-child {
    border-bottom: none;
}

.payout-time {
    font-weight: 500;
}

.payout-amount {
    color: #00c853;
    font-weight: bold;
}

.plan-minimum {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    color: #666;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.input-group-text {
    padding: 10px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 5px 0 0 5px;
}

.amount-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Profit Calculation */
.profit-calculation {
    background:#5474a5;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    color:#162235 ;
}

.profit-calculation h4 {
    margin: 0 0 15px;
    font-size: 1rem;
}

.calculation-result {
    background: white;
    padding: 15px;
    border-radius: 5px;
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.calculation-row.total {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-weight: bold;
}

@media (max-width: 412px) {
    .online-dot {
    bottom: 20px;
    margin-left: 1000px; 
    animation: pulse 2s infinite;
}
 
        
    }
@media (max-width: 768px) {
    .main-footer {
        display:none;
    }
     
}
/* Footer */
.main-footer {
    margin-top: 2rem;
    
    
    color: white;
    background: #232b60 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    padding: 0.5rem 0 !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-links h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Media Queries */
@media (max-width: 600px) {
     

    /* --- Security Section Mobile Fix --- */
.security-section {
    overflow-x: hidden;
    width: 100%;
    padding: 1rem;
}

.security-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
}

.security-left,
.security-right {
    width: 100%;
    min-width: unset;
}

.security-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.security-feature {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.security-badge {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin: 0 auto 10px auto;
}

    .deposit-container {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .deposit-card {
        padding: 15px;
    }
    
    .plan-tab h2 {
        font-size: 1rem;
        white-space: nowrap;
    }
    
    .plan-tabs {
        gap: 8px;
    }
    
    .deposit-header h1 {
        font-size: 1.5rem;
    }
    
    .calculation-row {
        font-size: 14px;
    }

    /* Existing 600px media query rules */
    .deposit-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .plan-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .plan-tab {
        flex: 1 1 45%;
        font-size: 14px;
        padding: 10px;
    }
    
    /* Make the deposit cards full-width */
    .deposit-card {
        width: 100%;
        box-sizing: border-box;
    }

    /* Plan Details (make sure it's responsive and does not overflow) */
    .plan-details {
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Plan Details Container (adds spacing between sections) */
    .plan-details-container {
        margin-top: 15px;
        overflow-x: hidden;
    }

    /* Payout Schedule (align payout items vertically on mobile) */
    .payout-schedule {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Calculation Result Text (make font smaller on mobile) */
    .calculation-result {
        font-size: 14px;
    }

    /* Form Group Spacing (tighten form element spacing) */
    .form-group {
        margin-bottom: 15px;
    }

    /* Adjust Input Group Layout for Mobile */
    .input-group .input-group-text {
        font-size: 14px;
        padding: 0.375rem 0.75rem;
        line-height: 1.5;
    }

    .input-group .form-control {
        font-size: 16px;
        height: auto;
        flex: 1 1 auto;
    }

    /* Optional: Make the whole input group full width */
    .input-group {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* --- Security Section Mobile Fix --- */
.security-section {
    overflow-x: hidden;
    width: 100%;
    padding: 1rem;
}

.security-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
}

.security-left,
.security-right {
    width: 100%;
    min-width: unset;
}

.security-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.security-feature {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.security-badge {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin: 0 auto 10px auto;
}

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--dark), var(--primary));
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .investment-plans-grid {
        grid-template-columns: 1fr 1fr;
    }

    .crypto-grid {
        grid-template-columns: 1fr 1fr;
    }
     
}

@media (max-width: 576px) {
    /* --- Security Section Mobile Fix --- */
.security-section {
    overflow-x: hidden;
    width: 100%;
    padding: 1rem;
}
 
.security-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
}

.security-left,
.security-right {
    width: 100%;
    min-width: unset;
}

.security-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.security-feature {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.security-badge {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin: 0 auto 10px auto;
}

    .investment-plans-grid {
        grid-template-columns: 1fr;
    }

    .crypto-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.hidden { display: none; }

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Deposit Complete Page */
.deposit-complete-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.qr-code-container {
    margin: 1.5rem auto;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    text-align: center;
    max-width: 250px;
}

.address-container {
    margin: 1.5rem 0;
}

.address-box {
    display: flex;
    margin: 1rem 0;
}

.address-box input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-family: monospace;
}

.copy-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-button:hover {
    background: var(--secondary);
}

.copy-button.copied {
    background: var(--success);
}

.deposit-notes {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.deposit-notes h4 {
    margin-bottom: 0.5rem;
}

.deposit-notes ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.deposit-notes li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.action-buttons {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    margin-top: 1.5rem;
}

.error-message {
    color: var(--error);
    background: #ffebee;
    padding: 0.8rem;
    border-radius: 4px;
    margin: 1rem 0;
    display: none;
    font-size: 0.9rem;
}

/* Crypto Logo */
.crypto-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    margin-right: 0.5rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #ffebee;
    color: var(--error);
    border-left: 4px solid var(--error);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



/* Left side - Brand and Navigation */
.brand-nav-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 20px;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.primary-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4cc9f0;
}

/* Right side - User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-right: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
}

.profile-icon {
    font-size: 1.4rem;
}

.username {
    font-weight: 500;
}

.logout-btn {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: #e63946;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #c1121f;
}

.btn-outline {
    background-color: white;
}

/* User Icon with Online Indicator in Navbar */
.user-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-dot {
    position: absolute;
    left: 20px;
    bottom: 10px;
    width: 10px;
    height: 10px;
    background-color: #00c849;
    border-radius: 50%;
    border: 2px solid var(--dark);
}

/* For smaller screens */
@media (max-width: 768px) {
    .online-dot {
        left: 15px;
        bottom: 11px;   
    }
     
}

/* Optional pulse animation */
.online-dot {
    bottom: 20px;
    left: 29px; 
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* TradingView Widget Styles */
.tradingview-widget-container {
    width: 100%;
    height: 900px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.tradingview-widget-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    
}

@media (max-width: 768px) {
    .tradingview-widget-container {
        height: 1000px;
    }
     
}

@media (max-width: 576px) {
    .tradingview-widget-container {
        height: 350px;
    }
     
}
/* Active Investments Section */
.active-investments {
    margin-bottom: 20px;
}

.investment-details {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 15px;
}

.invested-amount {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.invested-amount strong {
    color: #00c853;
    font-size: 1.2rem;
}

.countdown-container {
    text-align: center;
}

.countdown-label {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.flip-clock {
    display: inline-block;
    margin: 0 auto;
}

.flip-clock .flip-clock-divider .flip-clock-label {
    color: white !important;
    font-size: 0.7rem !important;
}

/* Flip clock customization */
.flip-clock-wrapper ul {
    background: #1a237e;
}

.flip-clock-wrapper ul li a div div.inn {
    background: #2962ff;
    color: white;
}

.flip-clock-wrapper ul li a div.up:after {
    background: rgba(0, 0, 0, 0.4);
}

.flip-clock-wrapper ul {
    margin: 0 3px;
    width: 30px;
    height: 45px;
}

.flip-clock-wrapper ul li a div div.inn {
    font-size: 30px;
}

.flip-clock-wrapper ul li {
    line-height: 45px;
}

.flip-clock-divider {
    height: 45px;
}

.flip-clock-dot {
    background: #2962ff;
    width: 6px;
    height: 6px;
}

.flip-clock-divider .flip-clock-label {
    right: -60px;
}

/* Plan-specific colors for active investments */
.starter-plan .investment-details {
    background: rgba(245, 245, 245, 0.2);
}

.silver-plan .investment-details {
    background: rgba(224, 224, 224, 0.2);
}

.gold-plan .investment-details {
    background: rgba(255, 215, 0, 0.2);
}

.premium-plan .investment-details {
    background: rgba(0, 200, 83, 0.2);
}
/* Active Investments Table - Responsive */
.active-investments {
    margin-bottom: 20px;
    overflow: hidden;
}

.scroll-box::-webkit-scrollbar {
  width: 8px;
}

.scroll-box::-webkit-scrollbar-thumb {
  background-color: #58a6ff;
  border-radius: 4px;
}
.scroll-box {
  overflow: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  background-color: #58a6ff; /* Apply blue background */
}

.investments-table {
    overflow-x: auto;
    margin-top: 20px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    background:  #0C1625;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.investments-table table {
    width: 100%;
    min-width: 600px; /* Minimum width before scrolling kicks in */
    border-collapse: collapse;
    background:  #0C1625;
}

.investments-table th {
    background: #1a237e;
    color: white;
    padding: 12px 10px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.investments-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

/* Plan-specific colors for table headers */
.investments-table th:nth-child(2) {
    background: #bdbdbd; /* Starter */
}

.investments-table th:nth-child(3) {
    background: #9e9e9e; /* Silver */
}

.investments-table th:nth-child(4) {
    background: #f59e0b; /* Gold */
}

.investments-table th:nth-child(5) {
    background: #00c853; /* Premium */
    color: white;
}

/* Amount rows styling */
.investments-table .amount-row td {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.investments-table .amount-row td:not(:first-child) {
    color: #00c853;
    font-weight: bold;
}

.investments-table .payout-row td {
    padding-top: 5px;
    padding-bottom: 5px;
}


/* Mobile-specific styles */
@media (max-width: 768px) {
     
    .investments-table {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        border-radius: 0;
    }
    
    .investments-table th {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    
    .investments-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .investments-table .amount-row td {
        font-size: 1rem;
    }
    
    .countdown-flip {
        font-size: 1rem;
        padding: 6px 8px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .investments-table th {
        padding: 8px 5px;
        font-size: 0.75rem;
    }
    
    .investments-table td {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
    
    .countdown-flip {
        font-size: 0.9rem;
        padding: 4px 6px;
        min-width: 70px;
    }
}

/* Add some spacing between table and other elements */
.investments-table  .dashboard-card {
    margin-top: 25px;
}
/* Add to your style.css */
.dashboard-hero-stats {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard-middle-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .dashboard-hero-stats,
    .dashboard-middle-section {
        grid-template-columns: 1fr;
    }
    .dashboard-container{margin-bottom: 20px;}
}

/* Modern card styling */
.dashboard-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #3699FF;
}

.balance-card {
    border-left-color: #8950FC;
}

/* Progress bars */
.progress-bar {
    height: 8px;
    background: #2b2b40;
    border-radius: 4px;
    margin: 5px 0;
}

.progress-bar .progress {
    height: 100%;
    background: #3699FF;
    border-radius: 4px;
}

/* Status badges */
.status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-badge.completed {
    background: rgba(40, 199, 111, 0.2);
    color: #28C76F;
}

.status-badge.pending {
    background: rgba(255, 159, 67, 0.2);
    color: #FF9F43;
}
/* phone.css - Complete Mobile Styles */
/* ================================= */
/* Common mobile styles (applies to all phones ≤780px) */
@media (max-width: 780px) {
  /* Mobile Bottom Navigation */
   
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #232b60 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    padding: 0.5rem 0 !important;
    border-radius: 10px 10px 0 0;
  }

  .mobile-bottom-nav .nav-menu {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: space-around;
  }

  .mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
  }

  .mobile-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #a2a3b7;
    font-size: 10px;
    padding: 2px;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .mobile-bottom-nav .nav-link i {
    font-size: 15px;
    margin-bottom: 3px;
  }

  .mobile-bottom-nav .nav-link.active {
    color: #3699FF;
  }

  /* Body adjustments for mobile nav */
  body {
    padding-bottom: 60px;
  }

  /* Mobile navbar adjustments */
  .navbar-collapse .navbar-nav {
    flex-direction: column;
  }

  .navbar {
    border-radius: 10px 10px 0 0;
  }

  /* User elements */
  .desktop-user {
    display: none !important;
  }

  .mobile-user {
    display: flex !important;
    align-items: center;
    color: #fff;
    font-size: 14px;
    padding: 5px 20px;
    text-decoration: none;
  }

  .mobile-user .online-dot {
    width: 12px;
    height: 12px;
    background-color: #28a745;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
    animation: pulse 2s infinite;
    
  }

  /* Main content adjustments */
  .dashboard-container {
    grid-template-columns: 1fr;
    margin-bottom: 20px;
  }

  .dashboard-card {
    padding: 1rem;
  }

  /* Tables */
  .transactions-table, .investments-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

 
  /* TradingView widget */
  .tradingview-widget-container {
    height: 350px;
  }
}

/* Phones – XS (max-width: 360px) - Old/small phones */
@media (max-width: 360px) {
 

  /* Global adjustments */
  

  /* Typography */
  h1, h2, h3 {
    font-size: 1.3rem;
  }

  /* Cards */
  .dashboard-card {
    padding: 0.8rem;
  }

  .balance-amount {
    font-size: 1.5rem;
  }

  /* Investment plans */
  .investment-plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    padding: 0.8rem;
  }

  /* Buttons */
  .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Phones – S (361px-390px) - Modern iPhones, mid-size Androids */
@media (min-width: 361px) and (max-width: 390px) {
  /* User profile */
  
  /* Cards */
   
  .balance-amount {
    font-size: 1.8rem;
  }

  /* Investment plans */
  .investment-plans-grid {
    grid-template-columns: 1fr;
  }

  /* Crypto grid */
  .crypto-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* TradingView */
  .tradingview-widget-container {
    height: 380px;
  }
}


/* Phones – M (391px-414px) - Large phones and phablets */
@media (min-width: 391px) and (max-width: 414px) {
  /* User profile */
 /* Shared adjustments for all narrow screens */
  
 
.plan-card {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    height: auto; /* prevent stretching */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  /* Optional: Limit the image and text spacing */
  .plan-header img.star-icon {
    width: 16px;
    height: 16px;
  }
  
  .plan-header h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .plan-range {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .plan-details {
    font-size: 14px;
  }
  
  .plan-features {
    padding-left: 20px;
    margin-bottom: 12px;
  }
  
  .btn-plan {
    align-self: center;
    font-size: 14px;
    padding: 10px 20px;
    margin-top: 10px;
  }
  
 
  /* Investment plans */
  .investment-plans-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Crypto grid */
  .crypto-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* TradingView */
  .tradingview-widget-container {
    height: 400px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width: 430px) {
    /* User profile */
    
   .deposit-grid {
    display: block;
  }

  .deposit-card {
    width: 100%;
    margin-bottom: 20px;
  }

  .plan-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .plan-tab {
    width: 100%;
  }

  .plan-details-container {
    padding: 10px;
  }

  .profit-calculation .calculation-row,
  .payout-schedule .payout-item {
    flex-direction: column;
    align-items: flex-start;
  }
.input-group .form-control  {
  flex: 1;
  min-width: 2;
}

  .input-group-text {
    
    padding: 10px;
  }

  .btn-block {
    width: 100%;
  }
    

                

      
  }
  .mobile-user {
    font-size: 12px;
    margin-left: 80px;
    padding: 10px 10px;

  }

  .plan-card {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    height: auto; /* prevent stretching */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
/* Cards */
.investment-plans-grid {
    display: flex;
    flex-direction: column; /* Stack cards vertically */
    gap: 20px; /* Space between cards */
  }

  .balance-amount {
    font-size: 1.5rem;
  }

  .security-content {
                flex-direction: column;
                align-items: stretch;
            }

            .security-left, .security-right {
                width: 100%;
                min-width: unset;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .stat-block {
                padding: 1rem;
            }

/* Phones – L/Phablets (415px-480px) - Max-size phones or folded tablets */
@media (min-width: 415px) and (max-width: 480px) {
  /* User profile */
  
  .plan-card {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    height: auto; /* prevent stretching */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  

  /* Cards */
  .balance-amount {
    font-size: 2rem;
  }

  /* Investment plans */
  .investment-plans-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Deposit grid */
  .deposit-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* TradingView */
  .tradingview-widget-container {
    height: 450px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hide mobile navigation on desktop (≥781px) */
@media (min-width: 781px) {
  .mobile-bottom-nav {
    display: none;
  }

  .navbar-collapse .navbar-nav {
    flex-direction: row;
  }

  .mobile-user {
    display: none !important;
  }

  .desktop-user {
    display: flex !important;
  }
}

/* Animation for online dot */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Utility classes for mobile */
.mobile-only {
  display: block !important;
}

.desktop-only {
  display: none !important;
}

@media (min-width: 781px) {
  .mobile-only {
    display: none !important;
  }
  
  .desktop-only {
    display: block !important;
  }
}
/* Placeholder: full existing CSS content will be inserted here programmatically */

/* === Custom Media Queries for Better Mobile Responsiveness === */

/* ========== XS Devices: 360px and below ========== */
@media (max-width: 360px) {
    /* Header and Navbar */
   
    /* Dashboard Cards */
    .dashboard-card {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .balance-amount {
        font-size: 1.5rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .investment-plans-grid,
    .crypto-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== S Devices: 361px to 390px ========== */
@media (min-width: 361px) and (max-width: 390px) {
    
    .dashboard-card {
        padding: 1.2rem;
    }

    .balance-amount {
        font-size: 1.8rem;
    }

    .investment-plans-grid,
    .crypto-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== M Devices: 391px to 414px ========== */
@media (min-width: 391px) and (max-width: 414px) {
    .dashboard-container {
        padding: 15px;
    }

    .dashboard-card {
        padding: 1.5rem;
    }

    .balance-amount {
        font-size: 2rem;
    }

    .investment-plans-grid,
    .crypto-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========== L Devices: 415px to 480px ========== */
@media (min-width: 415px) and (max-width: 480px) {
    .dashboard-container {
        padding: 20px;
    }

    .dashboard-card {
        padding: 1.5rem;
    }

    .investment-plans-grid,
    .crypto-grid,
    .deposit-grid {
        grid-template-columns: 1fr 1fr;
    }

    .balance-amount {
        font-size: 2.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}
.security-section {
            padding: 1.5rem;
            overflow-x: hidden;
            width: 100%;
        }

        .security-content {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
        }

        .security-left, .security-right {
            flex: 1 1 400px;
            min-width: 300px;
            box-sizing: border-box;
        }

        .stats-grid, .security-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            width: 100%;
            box-sizing: border-box;
        }
        .stat-block, .security-feature {
                background:#0C1625;

            padding: 1rem;
            border-radius: 8px;
            text-align: center;
            box-sizing: border-box;
            width: 100%;
        }

        .stat-number {
                background:#0C1625;

            font-size: 2rem;
            font-weight: bold;
            color: #4ECB71;
            min-height: 2.5rem;
            font-family: monospace;
            display: inline-block;
            text-align: center;
            width: 100%;
            overflow: hidden;
            white-space: nowrap;
        }

        .security-badge {
            width: 40px;
            height: 40px;
            object-fit: contain;
            margin-bottom: 10px;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        width: 100%;

    }
.security-grid{
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    width: 80%;
    
}
    .stat-block {
        width: 80%;
        text-align: center;
        padding: 0.8rem;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
    }

    .stat-number {
        font-size: 1.5rem;
        min-height: 2.5rem;
     
    }
}

/* ==== FIXED: S Devices - 361px to 390px ==== */
@media (min-width: 361px) and (max-width: 390px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 80%;
    }

    .stat-block {
        width: 80%;
        text-align: center;
        padding: 2.0rem;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
       
    }

    .stat-number {
        font-size: 1.5rem;
        min-height: 2.5rem;
    }
}

/* ==== FIXED: M Devices - 391px to 414px ==== */
@media (min-width: 391px) and (max-width: 414px) {
    .investment-plans-grid {
        display: flex;
        flex-direction: column; /* Stack cards vertically */
        gap: 20px; /* Space between cards */
      }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }

    .stat-block {
        width: 80%;
        text-align: center;
        padding: 2.5rem;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
    }

    .stat-number {
        font-size: 1.5rem;
        min-height: 2.5rem;
    }
}

/* ==== FIXED: L Devices - 415px to 480px ==== */
@media (min-width: 415px) and (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        width: 100%;
    }

    .stat-block {
        width: 80%;
        padding: 1.1rem;
        text-align: center;
        box-sizing: border-box;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}
.notification-wrapper {
    position: relative;
    display: inline-block;
margin-bottom: 35px;
margin-left: 100px;
}

.notification-bell {
    cursor: pointer;
    position: relative;
    font-size: 24px;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 50%;
}
@media (max-width: 768px) {
  .notification-box {
    margin-left: 1000px;
    margin-right: 0;
    width: auto;
    max-width: 90vw;
    max-height: 60vh;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    position:relative;
  }
}

@media (max-width: 480px) {
  .notification-box li {
    font-size: 13px;
    padding: 8px;
  }

  .no-notifications {
    font-size: 13px;
  }
}

.notification-box {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 5px;
    background-color:#0C1625;
    border: 1px solid #0C1625;
    width: 300px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-bottom:200px;
}

.notification-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-box li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    
}

.notification-box li:last-child {
    border-bottom: none;
}

.no-notifications {
    padding: 10px;
    text-align: center;
    color: #666;
}
