:root {
   --primary-color: #2979ff;   /* Bold dark purple */
    --primary-light: #6ec6ff;   /* Accent / hover purple */
    --primary-dark: #004ecb;    /* Very deep purple, good for nav backgrounds */

    --secondary-color: #00c853;
    --secondary-light: #5efc82;
    --secondary-dark: #009624;
    --surface-color: #ffffff;
    --background-color: #f5f7fa;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-hint: #9e9e9e;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --success-color: #4caf50;
    --border-radius: 12px;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --bottom-nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
}

/* Mobile App Container */
.app-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: var(--bottom-nav-height);
    background-color: var(--background-color);
}

/* App Header Bar */
.app-header {
    background-color: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-logo {
    display: flex;
    align-items: center;
}

.app-logo h2 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
    margin-left: 8px;
}

.app-logo img {
    height: 45px;
    width: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info span {
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    cursor: pointer;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    height: var(--bottom-nav-height);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-hint);
    font-size: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

/* Main Content Area */
.main-content {
    padding: 16px;
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
}

/* Cards and Containers */
.card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.card-header .more {
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
}

/* Stats Grid */
.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 5px 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

/* Cryptocurrency Chart Area */
.crypto-chart-container {
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-weight: 600;
    font-size: 16px;
}

.chart-time-select {
    display: flex;
    gap: 8px;
}

.time-option {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    background-color: var(--background-color);
    color: var(--text-secondary);
    cursor: pointer;
}

.time-option.active {
    background-color: var(--primary-color);
    color: white;
}

.chart-area {
    width: 100%;
    height: 240px;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Trading Pairs Section */
.trading-pairs {
    margin-bottom: 24px;
}

.pair-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pair-item:last-child {
    border-bottom: none;
}

.pair-info {
    display: flex;
    align-items: center;
}

.pair-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 14px;
    background-color: var(--primary-light);
}

.pair-name {
    font-weight: 600;
    font-size: 15px;
}

.pair-full {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 2px;
}

.pair-price {
    text-align: right;
}

.price-value {
    font-weight: 600;
    font-size: 15px;
}

.price-change {
    font-size: 12px;
    margin-top: 2px;
}

.price-up {
    color: var(--success-color);
}

.price-down {
    color: var(--error-color);
}

/* Signals Area */
.signal-box {
    background-color: #f8f9ff;
    border-radius: var(--border-radius);
    padding: 16px;
    margin-top: 16px;
    border: 1px solid rgba(94, 53, 177, 0.1);
}

.next-signal-box {
    margin: 16px 0;
    padding: 16px;
    background-color: #f1f8e9;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

/* Form Styling */
.container {
    width: 100%;
    padding: 20px;
    max-width: 450px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-container {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
    width: 100%;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section h1 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 5px;
}

.logo-section p {
    color: var(--text-secondary);
    font-size: 14px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-hint);
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 53, 177, 0.1);
    background-color: white;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* Buttons */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
}

/* Table Styling */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    margin-top: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
}

table th {
    background-color: #f5f7fa;
    color: var(--text-secondary);
    font-weight: 600;
}

table tr {
    border-bottom: 1px solid #eeeeee;
}

table tr:last-child {
    border-bottom: none;
}

.status-pending {
    color: var(--warning-color);
    font-weight: 500;
}

.status-completed {
    color: var(--success-color);
    font-weight: 500;
}

.status-failed {
    color: var(--error-color);
    font-weight: 500;
}

/* Deposit Options */
.deposit-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.deposit-option {
    background-color: #f5f7fa;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.deposit-option.highlighted {
    border-color: var(--primary-light);
    background-color: #8fb9ff78;
}

.deposit-option h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.deposit-amount {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
}

/* Withdrawal Info */
.withdrawal-info {
    margin-top: 16px;
    padding: 16px;
    background-color: #e8f5e9;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.withdrawal-form {
    margin-top: 16px;
}

/* Referral Link Box */
.referral-link-box {
    background-color: #8fb9ff78;
    padding: 16px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.referral-link-box .input-group {
    display: flex;
    margin-bottom: 0;
}

.referral-link-box input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    padding-left: 15px;
    font-size: 14px;
}

.referral-link-box .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: var(--primary-color);
    color: white;
}

/* Help make it look good on larger screens too */
@media (min-width: 768px) {
    .app-container {
        max-width: 480px;
        border-left: 1px solid #eaeaea;
        border-right: 1px solid #eaeaea;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(94, 53, 177, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Crypto chart animations */
.price-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}


/* Add these styles to your existing CSS */

/* Notification styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Loading button styles */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.user-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: #2979ff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    min-width: 150px;
    z-index: 1000;
}

.dropdown-menu a {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}
