/* Common Styles */
:root {
    --primary-color: #1e1f26;
    --secondary-color: #4a4b53;
    --accent-color: #00ff9d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --danger-color: #dc3545;
    --success-color: #00ff9d;
    --card-bg: #2a2b35;
}

* {
    /* margin: 0;
    padding: 0; */
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--primary-color);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px; /* Space for footer */
    margin: 0;
}

/* Profile Page Styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-avatar {
    font-size: 3rem;
    color: var(--accent-color);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
}

.profile-details {
    margin: 20px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.detail-item h4 {
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.detail-item p {
    color: var(--text-primary);
    font-size: 1rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--card-bg);
    margin-bottom: 20px;
}

.logo {
    height: 35px;
    width: auto;
}

.wallet-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.wallet-balance i {
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 70px; /* Space for footer */
}

/* History Tabs */
.history-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 15px;
}

.tab-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--accent-color);
    color: var(--primary-color);
}

.history-content {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-top: 10px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-item:last-child {
    border-bottom: none;
}

.history-item .time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.history-item .amount {
    color: var(--accent-color);
    font-weight: bold;
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--card-bg);
    padding: 10px 0;
    z-index: 1000;
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
}

.footer-nav a i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.footer-nav a.active {
    color: var(--accent-color);
}

/* Navigation Styles */
.navbar {
    background: var(--dark-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    color: var(--text-primary);
}

.data-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin: 15px 0;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.data-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-card h3 i {
    color: var(--accent-color);
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #00ff9d;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.live-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #00ff9d;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.data-card .value {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Button Styles */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.btn-withdraw {
    background: linear-gradient(45deg, var(--accent-color), #00cc7e);
    color: var(--primary-color);
    width: 100%;
    margin-top: 10px;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
}

/* Dashboard Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 80px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
}

.stat {
    text-align: center;
}

.stat h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: normal;
}

.stat .value {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: bold;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.rate, .speed {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-right: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #00ff9d);
    width: 0%;
    transition: width 0.2s ease;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    animation: shine 1.5s linear infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0;
}

.action-buttons button {
    flex: 1;
    padding: 15px;
    border-radius: 30px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.action-buttons button i {
    font-size: 1.2rem;
}

.btn-stop {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-withdraw {
    background: linear-gradient(45deg, #00ff9d, #00cc7e);
    color: #1e1f26;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

.total-earnings {
    margin-top: 20px;
    text-align: right;
}

.total-earnings h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.total-earnings .value {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--accent-color);
    font-weight: normal;
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.badge-success {
    background: rgba(0, 255, 157, 0.2);
    color: var(--accent-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.badge-danger {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Alert Styles */
.alert {
    padding: 10px 20px;
    border-radius: 5px;
    margin: 10px 0;
}

.alert-success {
    background: var(--success-color);
    color: white;
}

.alert-danger {
    background: var(--danger-color);
    color: white;
}

/* Team Page Styles */
.team-list {
    margin: 20px 0;
}

.team-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-info i {
    font-size: 2rem;
    color: var(--accent-color);
}

.member-stats {
    text-align: right;
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-top: 5px;
}

.status.active {
    background: rgba(0, 255, 157, 0.2);
    color: var(--accent-color);
}

.status.inactive {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

/* Share Page Styles */
.referral-link-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
}

.link-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.link-input input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    color: var(--text-primary);
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-telegram {
    background: #0088cc;
    color: white;
}

.referral-benefits {
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.benefit-item h5 {
    margin: 0;
    color: var(--text-primary);
}

.benefit-item p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Recharge & Withdrawal Page Styles */
.quick-recharge {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.custom-recharge,
.withdraw-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.withdrawal-rules {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.withdrawal-rules h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.withdrawal-rules ul {
    list-style: none;
    padding: 0;
}

.withdrawal-rules li {
    color: var(--text-secondary);
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.withdrawal-rules li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.plan-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card.popular {
    background: linear-gradient(145deg, rgba(0, 255, 157, 0.1), rgba(0, 255, 157, 0.05));
    border: 1px solid var(--accent-color);
}

.plan-header {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2rem;
    color: var(--accent-color);
    margin: 15px 0;
}

.plan-features {
    margin: 20px 0;
    color: var(--text-secondary);
}

.plan-features div {
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--primary-color);
    }

    .logo {
        height: 28px;
    }

    .container {
        padding: 0 15px;
        margin-top: 60px;
        padding-bottom: 80px;
    }

    .data-card {
        padding: 15px;
        margin: 10px 0;
    }

    .stats-grid {
        /* grid-template-columns: 1fr; */
        gap: 10px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }

    .history-tabs {
        overflow-x: auto;
        padding: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .history-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        white-space: nowrap;
        padding: 8px 15px;
    }

    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 8px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    }

    .footer-nav {
        padding: 5px 0;
    }

    .footer-nav a {
        font-size: 0.7rem;
        color: var(--text-secondary);
    }

    .footer-nav a.active {
        color: var(--accent-color);
    }

    .footer-nav a i {
        font-size: 1.2rem;
    }

    /* Recharge page responsive */
    .quick-recharge {
        /* grid-template-columns: 1fr; */
    }

    .plan-cards {
        grid-template-columns: 1fr;
    }

    .plan-card {
        margin-bottom: 15px;
    }

    /* Team page responsive */
    .team-member {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }

    .member-info {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .member-stats {
        text-align: center;
    }

    /* Profile page responsive */
    .profile-details {
        margin: 15px 0;
    }

    .detail-item {
        padding: 12px 0;
    }

    /* History items responsive */
    .history-item {
        padding: 12px;
    }

    .history-item .time {
        font-size: 0.75rem;
    }

    /* Form controls responsive */
    .form-group input {
        padding: 10px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}