/* Cursor-Inspired Dark Theme */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-hover: #30363d;
    --border-color: #30363d;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent-primary: #8b949e;
    --accent-secondary: #6e7681;
    --accent-success: #3fb950;
    --accent-danger: #f85149;
    --accent-warning: #d29922;
    --accent-gray: #b1bac4;
    --accent-ivory: #e6edf3;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-logo a:hover {
    color: var(--accent-gray);
}

.nav-logo i {
    font-size: 1.5rem;
    color: var(--accent-gray);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-register {
    background: var(--accent-gray);
    color: var(--bg-primary) !important;
}

.nav-register:hover {
    background: var(--accent-ivory);
    color: var(--bg-primary) !important;
}

/* Buttons - Cursor Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    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.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-gray);
    border-color: var(--accent-gray);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-ivory);
    border-color: var(--accent-ivory);
    color: var(--bg-primary);
    box-shadow: 0 4px 16px rgba(139, 148, 158, 0.3);
}

.btn-primary:active {
    box-shadow: 0 2px 8px rgba(139, 148, 158, 0.2);
}

.btn-secondary {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

.btn-success {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: white;
}

.btn-success:hover {
    background: #2ea043;
    border-color: #2ea043;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.plan-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.plan-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    position: relative;
    right: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.25rem;
    border-radius: 8px;
    transition: all 0.3s;
    z-index: 10;
    flex-shrink: 0;
}

.modal-close:hover {
    color: var(--accent-danger, #ef4444);
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.05);
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-gray), var(--accent-ivory));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Plans Section */
.plans-section {
    padding: 3rem 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plan-return {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-success);
    margin: 1rem 0;
}

.plan-details {
    list-style: none;
    margin: 1.5rem 0;
}

.plan-details li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.plan-details li:last-child {
    border-bottom: none;
}

/* Profile */
.profile-container {
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.profile-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.profile-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-gray), var(--accent-ivory));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gray), var(--accent-ivory));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card:hover {
    border-color: var(--accent-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.profile-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-card h2 i {
    color: var(--accent-gray);
    font-size: 1.125rem;
}

/* Enhanced Wallet Card */
.wallet-card-enhanced {
    background: linear-gradient(135deg, #1a1f2e 0%, #16213e 100%);
    border: 1px solid rgba(139, 148, 158, 0.2);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.wallet-card-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 148, 158, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wallet-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.wallet-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3fb950, #2ea043);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(63, 185, 80, 0.3);
}

.wallet-title-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: block;
}

.wallet-title-section .wallet-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.wallet-balance-section {
    text-align: center;
    margin: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.balance-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.balance-amount-enhanced {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gray);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-gray), var(--accent-ivory));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-update-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.btn-wallet {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-wallet::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-wallet:hover::before {
    width: 300px;
    height: 300px;
}

.btn-deposit {
    background: linear-gradient(135deg, #3fb950, #2ea043);
    color: white;
    box-shadow: 0 4px 12px rgba(63, 185, 80, 0.3);
}

.btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 185, 80, 0.4);
}

.btn-withdraw {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-withdraw:hover {
    background: var(--bg-hover);
    border-color: var(--accent-gray);
    transform: translateY(-2px);
}

/* Enhanced Account Info Card */
.account-info-card-enhanced {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.account-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-gray), var(--accent-ivory));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--bg-primary);
}

.account-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.account-info-list-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item-enhanced {
    padding: 1.25rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-item-enhanced:hover {
    border-color: var(--accent-gray);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.info-label-enhanced {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.info-label-enhanced i {
    color: var(--accent-gray);
    font-size: 0.9375rem;
}

.info-value-enhanced {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.info-value-group-enhanced {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.referral-code-display-enhanced {
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-gray);
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex: 1;
    letter-spacing: 1px;
}

.btn-copy-enhanced {
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.btn-copy-enhanced:hover {
    background: var(--accent-gray);
    color: var(--bg-primary);
    border-color: var(--accent-gray);
    transform: scale(1.05);
}

.info-input-group-enhanced {
    display: flex;
    gap: 0.75rem;
}

.info-input-enhanced {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.info-input-enhanced:focus {
    outline: none;
    border-color: var(--accent-gray);
    box-shadow: 0 0 0 3px rgba(139, 148, 158, 0.1);
}

.wallet-input-enhanced {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.btn-save-enhanced {
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--accent-gray), var(--accent-ivory));
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.btn-save-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 148, 158, 0.3);
}

/* Enhanced Telegram Warning */
.telegram-warning-card {
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-danger);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    position: relative;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.warning-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent-danger);
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
}

.warning-text h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent-danger);
    margin: 0 0 0.25rem 0;
}

.warning-text p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border: 1px solid #3b82f6;
    border-radius: 8px;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.875rem;
}

.verified-badge i {
    font-size: 1rem;
}

.verified-badge-table {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
}

.verified-badge-table.verified {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

.verified-badge-table.unverified {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* Table-based Profile Cards */
.wallet-table-card,
.account-table-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    grid-column: 1 / -1;
}

.card-header-table {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header-table h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.card-header-table h2 i {
    color: var(--accent-gray);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: auto;
}

.info-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.info-table tbody tr:last-child {
    border-bottom: none;
}

.info-table tbody tr:hover {
    background: var(--bg-primary);
}

.table-label {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    min-width: 200px;
    width: 25%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-label i {
    color: var(--accent-gray);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.table-value {
    padding: 1rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
    width: 75%;
}

.table-value-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.referral-code-table {
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent-gray);
    background: var(--bg-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

.btn-copy-table {
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.btn-copy-table:hover {
    background: var(--accent-gray);
    color: var(--bg-primary);
    border-color: var(--accent-gray);
    transform: scale(1.05);
}

.table-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.table-input {
    flex: 1;
    min-width: 200px;
    padding: 0.625rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.table-input:focus {
    outline: none;
    border-color: var(--accent-gray);
    box-shadow: 0 0 0 3px rgba(139, 148, 158, 0.1);
}

.wallet-input-table {
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
}

.btn-save-table {
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, var(--accent-gray), var(--accent-ivory));
    border: none;
    border-radius: 6px;
    color: var(--bg-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 0.875rem;
}

.btn-save-table:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 148, 158, 0.3);
}

.wallet-actions-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-wallet-table {
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-deposit-table {
    background: linear-gradient(135deg, #3fb950, #2ea043);
    color: white;
    box-shadow: 0 4px 12px rgba(63, 185, 80, 0.3);
}

.btn-deposit-table:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 185, 80, 0.4);
}

.btn-withdraw-table {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-withdraw-table:hover {
    background: var(--bg-hover);
    border-color: var(--accent-gray);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .info-table {
        font-size: 0.875rem;
    }
    
    .table-label,
    .table-value {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .table-label {
        min-width: 120px;
    }
    
    .table-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-input {
        min-width: 100%;
    }
    
    .wallet-actions-table {
        grid-template-columns: 1fr;
    }
    
    .card-header-table {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Referrals Section */
.referrals-card {
    background: var(--bg-secondary);
}

.card-header {
    margin-bottom: 1.5rem;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-item.highlight {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border: 1px solid var(--accent-gray);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-gray);
    margin-bottom: 0.5rem;
}

.stat-item.highlight .stat-value {
    color: var(--accent-success);
    font-size: 2rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.referrals-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--accent-gray);
}

.tab-btn.active {
    color: var(--accent-gray);
    border-bottom-color: var(--accent-gray);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.referrals-list {
    display: grid;
    gap: 1rem;
}

.referral-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
}

.referral-item:hover {
    border-color: var(--accent-gray);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.referral-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gray), var(--accent-ivory));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 1.125rem;
}

.referral-info {
    flex: 1;
}

.referral-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.referral-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.referral-detail-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.referral-detail-item i {
    color: var(--accent-gray);
    font-size: 0.75rem;
}

.referral-badge {
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gray);
}

.commission-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    transition: all 0.2s;
}

.commission-item:hover {
    border-color: var(--accent-gray);
    transform: translateX(4px);
}

.commission-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-success);
}

.commission-level {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gray);
    margin-left: 0.5rem;
}

/* Account Info Styles */
.account-info-card {
    background: var(--bg-secondary);
}

.account-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-item:hover {
    border-color: var(--accent-gray);
    transform: translateX(2px);
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 140px;
}

.info-label i {
    color: var(--accent-gray);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: right;
}

.info-value-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.referral-code-display {
    font-family: 'Courier New', monospace;
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-gray);
    border: 1px solid var(--border-color);
    letter-spacing: 0.05em;
}

.info-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
    max-width: 100%;
}

.info-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s;
    min-width: 0;
}

.info-input:focus {
    outline: none;
    border-color: var(--accent-gray);
    box-shadow: 0 0 0 3px rgba(139, 148, 158, 0.1);
}

.wallet-input {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

.btn-sm {
    padding: 0.5rem;
    min-width: auto;
    font-size: 0.875rem;
}

.btn-sm i {
    font-size: 0.875rem;
}

/* Daily Click Button */
.daily-click-btn {
    background: var(--accent-success);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 1rem;
}

.daily-click-btn:hover:not(:disabled) {
    background: #2ea043;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.daily-click-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Investment Card */
.investment-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.investment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.investment-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Features Section */
.features-section {
    padding: 3rem 1.5rem;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-gray);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--accent-gray);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--accent-gray);
    text-decoration: none;
    transition: all 0.2s;
    gap: 0.5rem;
}

.social-link:hover {
    background: var(--bg-hover);
    border-color: var(--accent-gray);
    color: var(--accent-ivory);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        transition: left 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
    }

    .nav-toggle span {
        width: 25px;
        height: 2px;
        background: var(--text-primary);
        border-radius: 2px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }
}

/* Country Select Dropdown - Limit visible options */
.country-select {
    position: relative;
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    min-height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    transition: all 0.2s;
}

.country-select:hover {
    border-color: var(--accent-gray);
    background-color: var(--bg-secondary);
}

.country-select:focus {
    outline: none;
    border-color: var(--accent-gray);
    box-shadow: 0 0 0 3px rgba(139, 148, 158, 0.1);
}

/* When size is set to 8, show as listbox with scroll */
.country-select[size] {
    max-height: 240px;
    overflow-y: auto;
    padding: 0;
    background-image: none;
    padding-right: 0;
}

.country-select[size] option {
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    min-height: 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.country-select[size] option:hover {
    background: var(--bg-hover);
}

.country-select[size] option:checked,
.country-select[size] option:focus {
    background: var(--bg-tertiary);
    color: var(--accent-gray);
}

/* Custom scrollbar for country select when size is set */
.country-select[size]::-webkit-scrollbar {
    width: 10px;
}

.country-select[size]::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 5px;
}

.country-select[size]::-webkit-scrollbar-thumb {
    background: var(--accent-gray);
    border-radius: 5px;
}

.country-select[size]::-webkit-scrollbar-thumb:hover {
    background: var(--accent-ivory);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .country-select {
        min-height: 52px;
        padding: 1rem 1.25rem;
        padding-right: 3rem;
        font-size: 1rem;
        -webkit-tap-highlight-color: rgba(139, 148, 158, 0.2);
    }
    
    .country-select[size] {
        max-height: 280px;
    }
    
    .country-select[size] option {
        padding: 1rem 1.25rem;
        min-height: 35px;
        font-size: 1rem;
    }
}

/* Daily Earnings Section */
.daily-earnings-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.daily-earnings-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.earnings-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.earnings-info-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.earnings-info-item:hover {
    border-color: var(--accent-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.earnings-info-item .info-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.earnings-info-item .info-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-gray);
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.claim-earnings-btn {
    padding: 1rem 2.5rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.claim-earnings-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--accent-gray);
    box-shadow: var(--shadow-md);
    background: var(--bg-hover);
}

.claim-earnings-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-primary);
}

.claim-earnings-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border-color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    animation: pulse-button 2s ease-in-out infinite;
}

@keyframes pulse-button {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 35px rgba(251, 191, 36, 0.5);
    }
}

.claim-window-info {
    position: relative;
    z-index: 1;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.claim-window-info.active {
    color: #fbbf24;
    font-weight: 600;
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

/* Active Plan Card */
.plan-card-display {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    color: var(--text-primary);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.plan-card-display:hover {
    border-color: var(--accent-gray);
    box-shadow: var(--shadow-md);
}

.plan-card-display .plan-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-gray), var(--accent-ivory));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-card-display .plan-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plan-card-display .plan-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.plan-card-display .plan-detail-item:hover {
    border-color: var(--accent-gray);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.plan-card-display .plan-detail-item .label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-card-display .plan-detail-item .value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-gray);
    font-weight: 600;
}

