/* ============================================
   ORBITRAGE - Telegram Mini App Styles
   Dark Theme with Glassmorphism
   ============================================ */

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.1);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-lg: 24px;

    /* Spacing */
    --header-height: 70px;
    --nav-height: 70px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background:
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        var(--bg-primary);
}

/* ============================================
   SPLASH SCREEN
   ============================================ */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
}

.logo-container {
    margin-bottom: 24px;
}

.logo-circle {
    width: 100px;
    height: 100px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-glow);
    animation: pulse 2s ease-in-out infinite;
}

.logo-icon {
    font-size: 48px;
}

.splash-title {
    font-size: 32px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.splash-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    margin: 24px auto 0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   REFERRAL SCREEN
   ============================================ */
.referral-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 24px;
}

.referral-content {
    text-align: center;
    max-width: 320px;
}

.referral-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.referral-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.referral-content p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.referral-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px !important;
}

.referral-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.referral-input-group input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    color: var(--text-primary);
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.referral-input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.screen {
    min-height: 100vh;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: var(--bg-card-hover);
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    height: var(--header-height);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
}

.user-balance {
    font-size: 13px;
    color: var(--success);
    font-weight: 500;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    padding: 16px;
    padding-bottom: calc(var(--nav-height) + var(--safe-area-bottom) + 16px);
    overflow-y: auto;
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--accent-primary);
}

.nav-icon {
    font-size: 22px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.card-glass {
    background: var(--bg-glass);
}

.card-gradient {
    background: var(--accent-gradient);
    border: none;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    text-align: center;
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   PACKAGE CARDS
   ============================================ */
.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.package-card.starter::before {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.package-card.silver::before {
    background: linear-gradient(90deg, #94a3b8, #64748b);
}

.package-card.gold::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.package-card.premium::before {
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
}

.package-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.package-name {
    font-size: 18px;
    font-weight: 700;
}

.package-price {
    font-size: 24px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.package-detail {
    text-align: center;
}

.package-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--success);
}

.package-detail-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.package-roi {
    display: inline-block;
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   WALLET BALANCE CARD
   ============================================ */
.balance-card {
    background: var(--accent-gradient);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.balance-actions {
    display: flex;
    gap: 12px;
}

.balance-actions .btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.balance-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   BALANCE BREAKDOWN
   ============================================ */
.balance-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.breakdown-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.breakdown-card.locked {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.breakdown-card.withdrawable {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.breakdown-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.breakdown-value {
    font-size: 16px;
    font-weight: 700;
}

.breakdown-value.locked {
    color: var(--warning);
}

.breakdown-value.withdrawable {
    color: var(--success);
}

.breakdown-info {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.2;
}

/* Validation Messages */
.validation-message {
    font-size: 12px;
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
}

.validation-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.validation-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ============================================
   TRANSACTION LIST
   ============================================ */
.transaction-list {
    list-style: none;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
}

.transaction-icon.credit {
    background: rgba(34, 197, 94, 0.2);
}

.transaction-icon.debit {
    background: rgba(239, 68, 68, 0.2);
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

.transaction-date {
    font-size: 12px;
    color: var(--text-muted);
}

.transaction-amount {
    font-weight: 600;
    font-size: 15px;
}

.transaction-amount.credit {
    color: var(--success);
}

.transaction-amount.debit {
    color: var(--danger);
}

/* ============================================
   TEAM / REFERRAL
   ============================================ */
.referral-link-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.referral-code-display {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}

.referral-code {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--accent-primary);
}

.level-list {
    list-style: none;
}

.level-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.level-item:last-child {
    border-bottom: none;
}

.level-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
}

.level-info {
    flex: 1;
}

.level-title {
    font-weight: 500;
    font-size: 14px;
}

.level-percentage {
    font-size: 12px;
    color: var(--success);
}

.level-count {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================
   MY PACKAGES
   ============================================ */
.my-package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
}

.my-package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.my-package-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.my-package-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.my-package-status.completed {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
}

.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ============================================
   MODAL
   ============================================ */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 24px;
    padding-bottom: calc(24px + var(--safe-area-bottom));
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 44px;
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-text {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   PROFILE
   ============================================ */
.profile-header {
    text-align: center;
    padding: 24px 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-gradient);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-username {
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.menu-list {
    list-style: none;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-item:hover {
    background: var(--bg-card-hover);
}

.menu-icon {
    font-size: 20px;
    margin-right: 12px;
}

.menu-text {
    flex: 1;
    font-weight: 500;
}

.menu-arrow {
    color: var(--text-muted);
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title span {
    font-size: 20px;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.quick-action-icon {
    font-size: 24px;
}

.quick-action-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.3s ease;
}

/* ============================================
   LIVE TRADING PAGE
   ============================================ */
.live-trading-container {
    padding-bottom: 20px;
}

/* Live Header */
.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--danger);
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

.live-time {
    font-family: monospace;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Forex Ticker */
.forex-ticker {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.ticker-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    transition: all 0.3s ease;
}

.ticker-item.up {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.ticker-item.down {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.ticker-pair {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ticker-price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: monospace;
}

.ticker-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}

.ticker-change.up {
    color: var(--success);
}

.ticker-change.down {
    color: var(--danger);
}

.ticker-arrow {
    font-size: 10px;
}

.ticker-skeleton {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    height: 80px;
    animation: shimmer 1.5s infinite;
}

.ticker-loading {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@keyframes shimmer {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* Trading Status Card */
.trading-status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-icon {
    font-size: 24px;
}

.status-title {
    font-weight: 600;
    flex: 1;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
    animation: statusPulse 2s infinite;
}

.status-badge.inactive {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.status-badge.loading {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.status-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.status-item {
    text-align: center;
}

.status-item-icon {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.status-item-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.status-item-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.status-item-value.success {
    color: var(--success);
}

.status-inactive-msg {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.status-inactive-msg p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

/* Profit Card */
.profit-card {
    background: var(--accent-gradient);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.profit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: profitGlow 3s infinite;
}

@keyframes profitGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20%, 20%);
    }
}

.profit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.profit-live-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    animation: badgePulse 1s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.profit-amount {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.profit-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.profit-progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    transition: width 1s ease;
    position: relative;
}

.profit-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, white);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.profit-stats {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.profit-stat {
    text-align: center;
}

.profit-stat-label {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.profit-stat-value {
    font-size: 16px;
    font-weight: 700;
}

/* Trades Feed */
.trades-feed {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.trade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInTrade 0.3s ease;
}

@keyframes fadeInTrade {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.trade-item:last-child {
    border-bottom: none;
}

.trade-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trade-pair {
    font-weight: 600;
    font-size: 14px;
}

.trade-action {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.trade-action.buy {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.trade-action.sell {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.trade-details {
    text-align: right;
}

.trade-time {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.trade-profit {
    font-weight: 700;
    font-size: 14px;
}

.trade-profit.success {
    color: var(--success);
}

.trade-profit.danger {
    color: var(--danger);
}

.trade-skeleton {
    height: 50px;
    background: var(--bg-secondary);
    margin: 10px;
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
}

.empty-trades {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-trades span {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.empty-trades p {
    font-size: 14px;
}

/* Trading Summary */
.trading-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.summary-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    text-align: center;
}

.summary-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.summary-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Trading Info Banner */
.trading-info-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.info-icon {
    font-size: 18px;
}

.info-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Profit Message */
.profit-message {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
    text-align: center;
    animation: messageGlow 2s infinite;
}

@keyframes messageGlow {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.6;
    }
}

/* Packages Earning Section */
.packages-earning {
    margin-bottom: 20px;
}

.package-earning-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    margin-bottom: 10px;
}

.package-earning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.package-earning-name {
    font-weight: 600;
    font-size: 14px;
}

.package-earning-daily {
    color: var(--success);
    font-weight: 700;
    font-size: 14px;
}

.package-earning-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.package-earning-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 1s ease;
}

.package-earning-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

/* Empty Packages State */
.empty-packages {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
}

.empty-packages .empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.empty-packages p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.empty-packages .empty-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}