/* ==========================================
   INVST TRADE PLATFORM - PROFESSIONAL STYLES
   Version: 1.0.0
   Author: InvstTrade Team
   Description: Complete styling for investment platform
========================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-bg: #0f0f23;
    --secondary-bg: #1a1a2e;
    --card-bg: #16213e;
    --accent-primary: #00d4ff;
    --accent-secondary: #7b2cbf;
    --accent-gold: #ffb800;
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --success: #00ff88;
    --danger: #ff006e;
    --warning: #ffba08;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 50%, var(--card-bg) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-primary));
}

/* ===== UTILITIES ===== */
.btn-block {
    width: 100%;
    margin-top: var(--spacing-md);
}

.header-spacer {
    width: 114px;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner i {
    font-size: 48px;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.login-container {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.9), rgba(26, 26, 46, 0.8));
    backdrop-filter: blur(20px);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-xl);
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.login-logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-lg);
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: 16px;
}

.auth-form {
    margin-bottom: var(--spacing-lg);
}

.toggle-auth {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
}

.toggle-auth a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-fast);
}

.toggle-auth a:hover {
    color: var(--accent-gold);
}

/* ===== HEADER ===== */
.header {
    background: rgba(22, 33, 62, 0.9);
    backdrop-filter: blur(20px);
    padding: 18px var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-md);
}

.header-left {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.header-center {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
    animation: pulse 2s infinite;
}

.platform-name {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.5px;
}

.icon-btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 44, 191, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    font-size: 20px;
}

.icon-btn:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.5);
    border-color: var(--accent-primary);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--danger), #c9184a);
    color: white;
    border-radius: 12px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.6);
    min-width: 20px;
    text-align: center;
}

/* ===== IMAGE SLIDER ===== */
.slider-container {
    margin: var(--spacing-lg) var(--spacing-lg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    height: 220px;
    box-shadow: var(--shadow-lg);
}

.slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide-content {
    text-align: center;
    z-index: 2;
}

.slide-content i {
    font-size: 60px;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.slide-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.slide-content p {
    font-size: 16px;
    opacity: 0.9;
}

.slide-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.slide-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.slide-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.slide-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-normal);
}

.dot.active {
    background: white;
    width: 36px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 0 var(--spacing-lg) var(--spacing-xl);
}

.main-card {
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.8), rgba(26, 26, 46, 0.6));
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--accent-primary);
}

/* ===== BALANCE SECTION ===== */
.balance-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.balance-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(123, 44, 191, 0.15));
    padding: var(--spacing-lg);
    border-radius: 18px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.balance-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.balance-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.balance-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    position: relative;
    z-index: 1;
}

.balance-value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.btn {
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span,
.btn i {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #c9184a);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

.btn-danger:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.6);
}

/* ===== INVESTMENT SECTION ===== */
.investment-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.timer-profit-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.timer-box {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.1), rgba(255, 153, 0, 0.1));
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 184, 0, 0.3);
}

.timer-label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.countdown {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-gold);
    font-family: 'Courier New', monospace;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
}

.current-profit-box {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 106, 0.1));
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 2px solid rgba(0, 255, 136, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profit-display {
    font-size: 26px;
    font-weight: 800;
    color: var(--success);
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.profit-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(123, 44, 191, 0.08));
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    border: 2px solid rgba(0, 212, 255, 0.2);
    transition: var(--transition-normal);
}

.stat-box:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: var(--spacing-xs);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
}

.investment-input-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.input-field {
    background: rgba(22, 33, 62, 0.6);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: 14px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition-normal);
    font-weight: 600;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
    background: rgba(22, 33, 62, 0.8);
}

.input-field::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.input-field:disabled,
.input-field[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.package-dates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.date-box {
    background: rgba(22, 33, 62, 0.6);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    border: 2px solid rgba(0, 212, 255, 0.2);
    text-align: center;
}

.date-label {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: var(--spacing-xs);
}

.date-value {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
}

/* ===== REFERRAL SECTION ===== */
.referral-card {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.08), rgba(255, 153, 0, 0.08));
    border: 2px solid rgba(255, 184, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.referral-title {
    color: var(--accent-gold);
}

.referral-link-box {
    background: rgba(22, 33, 62, 0.6);
    padding: 18px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    border: 2px solid rgba(0, 212, 255, 0.2);
    gap: var(--spacing-sm);
}

.referral-link {
    color: var(--accent-primary);
    font-size: 14px;
    word-break: break-all;
    font-weight: 600;
    flex: 1;
}

.copy-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-normal);
    font-weight: 700;
    font-size: 14px;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

/* ===== BOTTOM SHEETS ===== */
.bottom-sheet-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.bottom-sheet-overlay.active {
    display: block;
}

.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--spacing-lg);
    max-height: 85vh;
    overflow-y: auto;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
    box-shadow: 0 -15px 60px rgba(0, 0, 0, 0.8);
    border-top: 3px solid rgba(0, 212, 255, 0.5);
}

.bottom-sheet.active {
    bottom: 0;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.sheet-title {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(201, 24, 74, 0.2));
    border: 2px solid rgba(255, 0, 110, 0.3);
    color: var(--danger);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: linear-gradient(135deg, var(--danger), #c9184a);
    color: white;
    transform: rotate(90deg);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    transition: var(--transition-fast);
}

.toggle-password:hover {
    color: var(--accent-primary);
}

.password-input .input-field {
    padding-left: 45px;
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.radio-option {
    background: rgba(22, 33, 62, 0.6);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    font-weight: 600;
}

.radio-option i {
    font-size: 24px;
    margin-bottom: var(--spacing-xs);
    display: block;
}

.radio-option.selected {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 44, 191, 0.2));
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.file-upload {
    background: rgba(22, 33, 62, 0.6);
    border: 3px dashed rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 40px var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.file-upload:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
}

.file-upload i {
    font-size: 50px;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.file-upload-text {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.file-upload-hint {
    font-size: 13px;
    color: var(--text-secondary);
}

.file-preview {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.file-preview i {
    color: var(--success);
    font-size: 24px;
}

.withdrawable-balance-box {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 204, 106, 0.15));
    padding: var(--spacing-lg);
    border-radius: 14px;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

/* ===== PROFILE PAGE ===== */
.profile-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    z-index: 3000;
    overflow-y: auto;
}

.profile-page.active {
    display: block;
}

.profile-header-bar {
    background: rgba(22, 33, 62, 0.9);
    backdrop-filter: blur(20px);
    padding: 18px var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.profile-header-bar h2 {
    font-size: 20px;
    font-weight: 700;
}

.profile-content {
    padding: var(--spacing-lg);
}

.profile-avatar-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.profile-logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-lg);
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.profile-phone {
    color: var(--text-secondary);
    font-size: 16px;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.profile-stat-box {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.8), rgba(26, 26, 46, 0.6));
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 2px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: var(--transition-normal);
}

.profile-stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-info {
    flex: 1;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* ===== NOTIFICATIONS PANEL ===== */
.notifications-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    z-index: 3000;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    padding: var(--spacing-lg);
    border-left: 3px solid rgba(0, 212, 255, 0.5);
}

.notifications-panel.active {
    display: block;
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notifications-list {
    margin-top: var(--spacing-lg);
}

.notification-item {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.8), rgba(26, 26, 46, 0.6));
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 14px;
    border-left: 4px solid var(--accent-primary);
    transition: var(--transition-normal);
}

.notification-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.notification-item.success {
    border-left-color: var(--success);
}

.notification-item.warning {
    border-left-color: var(--warning);
}

.notification-item.danger {
    border-left-color: var(--danger);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.notification-title {
    font-size: 16px;
    font-weight: 700;
}

.notification-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.notification-message {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    top: 90px;
    right: 20px;
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.95), rgba(26, 26, 46, 0.95));
    backdrop-filter: blur(10px);
    padding: 18px 24px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 4000;
    animation: slideInToast 0.4s ease;
    border-left: 4px solid var(--accent-primary);
    min-width: 280px;
    max-width: 400px;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast i {
    font-size: 24px;
}

.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--danger);
}

.toast.warning i {
    color: var(--warning);
}

.toast span {
    font-weight: 600;
    flex: 1;
}

@keyframes slideInToast {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .platform-name {
        font-size: 20px;
    }

    .balance-section {
        grid-template-columns: 1fr;
    }

    .profit-stats {
        grid-template-columns: 1fr;
    }

    .timer-profit-section {
        grid-template-columns: 1fr;
    }

    .investment-input-section {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .referral-stats {
        grid-template-columns: 1fr;
    }

    .package-dates {
        grid-template-columns: 1fr;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .notifications-panel {
        max-width: 100%;
    }

    .login-container {
        padding: var(--spacing-lg);
    }

    .toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .slider-container {
        height: 180px;
    }

    .slide-content h3 {
        font-size: 20px;
    }

    .slide-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .header {
        padding: 12px var(--spacing-md);
    }

    .main-content {
        padding: 0 var(--spacing-md) var(--spacing-lg);
    }

    .slider-container {
        margin: var(--spacing-md);
    }

    .balance-value {
        font-size: 24px;
    }

    .countdown {
        font-size: 24px;
    }

    .profit-display {
        font-size: 22px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-card {
    animation: fadeIn 0.6s ease;
}

.main-card:nth-child(1) {
    animation-delay: 0.1s;
}

.main-card:nth-child(2) {
    animation-delay: 0.2s;
}

.main-card:nth-child(3) {
    animation-delay: 0.3s;
}