/* ═══════════════════════════════════════════════════════════
   Starlet Wallet — Main Styles
   Modern Dark Theme with Gold Accents
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-hover: #22222f;
    
    --text-primary: #ffffff;
    --text-secondary: #8a8a9a;
    --text-muted: #5a5a6a;
    
    --accent-blue: #3b82f6;
    --accent-blue-dark: #2563eb;
    --accent-gold: #fbbf24;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    
    /* Sizes */
    --header-height: 60px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 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(59, 130, 246, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════
   SNOW EFFECT
   ═══════════════════════════════════════════════════════════ */

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
    display: none;
}

.snow-container.active {
    display: block;
}

.snowflake {
    position: absolute;
    color: #fff;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes snowfall {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(25vh) translateX(calc(var(--drift, 0px) * 0.5)) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(var(--drift, 0px)) rotate(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(calc(var(--drift, 0px) * 0.5)) rotate(270deg);
    }
    100% {
        opacity: 0;
        transform: translateY(110vh) translateX(0) rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════
   APP CONTAINER
   ═══════════════════════════════════════════════════════════ */

.app {
    min-height: 100vh;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px 24px;
    background: var(--bg-primary);
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    height: var(--header-height);
}

.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.header-btn:active {
    transform: scale(0.95);
}

.header-btn .material-icons {
    font-size: 22px;
}

#snowBtn.active {
    background: var(--accent-blue);
    color: white;
}

/* User Block */
.user-block {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    max-width: 200px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-hover);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.user-avatar img.loaded {
    display: block;
}

.user-avatar img.loaded + .avatar-placeholder {
    display: none;
}

.avatar-placeholder {
    color: var(--text-muted);
    font-size: 20px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════
   WORKER VERIFICATION BADGE
   ═══════════════════════════════════════════════════════════ */

.worker-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 16px 0;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(56, 142, 60, 0.1) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    color: #4CAF50;
    font-size: 13px;
    font-weight: 600;
}

.worker-badge .material-icons {
    font-size: 18px;
    color: #4CAF50;
}

/* ═══════════════════════════════════════════════════════════
   BALANCE SECTION
   ═══════════════════════════════════════════════════════════ */

.balance-section {
    margin-top: 20px;
    text-align: center;
}

.balance-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.balance-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.balance-card:active {
    transform: scale(0.98);
}

.balance-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.balance-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.balance-currency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 14px;
}

.balance-currency .material-icons {
    font-size: 18px;
}

.balance-currency .ton-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.balance-currency .ton-icon svg {
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
}

.balance-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   ACTIONS SECTION
   ═══════════════════════════════════════════════════════════ */

.actions-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--bg-hover);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-icon .material-icons {
    font-size: 24px;
    color: white;
}

.action-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Different colors for each action */
#topupBtn .action-icon {
    background: linear-gradient(135deg, var(--accent-green), #16a34a);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

#withdrawBtn .action-icon {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#exchangeBtn .action-icon {
    background: linear-gradient(135deg, var(--accent-purple), #9333ea);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

#marketBtn .action-icon {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   ASSETS SECTION
   ═══════════════════════════════════════════════════════════ */

.assets-section {
    margin-top: 28px;
    padding-bottom: 40px;
}

.assets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.assets-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Assets Container */
.assets-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.assets-group {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.assets-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.group-icon {
    font-size: 20px;
    color: var(--accent-blue);
}

.assets-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.assets-list-wrapper {
    display: flex;
    flex-direction: column;
}

/* Toggle Switch */
.toggle-small {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-small input {
    display: none;
}

.toggle-slider {
    width: 36px;
    height: 20px;
    background: var(--bg-hover);
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--text-secondary);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-small input:checked + .toggle-slider {
    background: var(--accent-blue);
}

.toggle-small input:checked + .toggle-slider::after {
    left: 18px;
    background: white;
}

.toggle-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Assets List */
.assets-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.asset-item:hover {
    background: var(--bg-hover);
}

.asset-item.hidden {
    display: none;
}

.asset-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-hover);
}

.asset-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-icon.crypto-icon {
    background: transparent;
    padding: 0;
}

.asset-icon.crypto-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.asset-icon.flag-icon {
    background: transparent;
    padding: 0;
}

.asset-icon.flag-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-fallback {
    font-size: 22px;
    display: none;
    align-items: center;
    justify-content: center;
}

.asset-icon .material-icons {
    font-size: 26px;
}

.asset-icon.material-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.asset-icon.material-icon .material-icons {
    font-size: 28px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Asset icon colors */
.asset-icon.stars {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.asset-icon.ton {
    background: linear-gradient(135deg, #0088cc, #0066aa);
    color: white;
}

.asset-icon.usdt {
    background: linear-gradient(135deg, #26a17b, #1a8f6e);
    color: white;
}

.asset-icon.not {
    background: linear-gradient(135deg, #000000, #333333);
    color: white;
}

.asset-icon.rub {
    background: linear-gradient(135deg, #5c6bc0, #3f51b5);
    color: white;
}

.asset-icon.usd {
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: white;
}

.asset-info {
    flex: 1;
    min-width: 0;
}

.asset-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.asset-ticker {
    font-size: 12px;
    color: var(--text-muted);
}

.asset-balance {
    text-align: right;
}

.asset-amount {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.asset-value {
    font-size: 12px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    margin-bottom: env(safe-area-inset-bottom, 20px);
    padding-bottom: 20px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 16px 20px 32px;
}

/* Settings Items */
.settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item .material-icons {
    color: var(--text-muted);
    font-size: 22px;
}

.settings-item > span:nth-child(2) {
    flex: 1;
    font-size: 15px;
}

.settings-value {
    font-size: 14px;
    color: var(--text-muted);
}

.settings-value.status-pending {
    color: var(--accent-gold);
}

.settings-value.status-verified {
    color: var(--accent-green);
}

/* ═══════════════════════════════════════════════════════════
   TOPUP MODALS
   ═══════════════════════════════════════════════════════════ */

.modal-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.modal-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

/* Topup Options */
.topup-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topup-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.topup-option:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.topup-option > .material-icons:first-child {
    font-size: 28px;
    color: var(--accent-blue);
}

.option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.option-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.topup-option .arrow {
    color: var(--text-muted);
    font-size: 22px;
}

/* Currency List */
.currency-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.currency-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.currency-item .currency-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency-item .currency-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.currency-item .currency-icon.material-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.currency-item .currency-icon .material-icons {
    font-size: 24px;
}

.currency-info {
    flex: 1;
}

.currency-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.currency-ticker {
    font-size: 13px;
    color: var(--text-muted);
}

/* Amount Input */
.amount-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.amount-input {
    flex: 1;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    width: 100%;
}

.amount-input::placeholder {
    color: var(--text-muted);
}

.amount-currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 10px;
}

.amount-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

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

.btn-primary .material-icons {
    font-size: 20px;
}

/* Payment Card */
.payment-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.payment-amount {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-blue);
}

.card-number-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
    font-family: 'SF Mono', Monaco, monospace;
}

.copy-btn {
    background: rgba(59, 130, 246, 0.2);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--accent-blue);
}

.copy-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.copy-btn .material-icons {
    font-size: 20px;
}

/* Payment Info */
.payment-info {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.payment-info .material-icons {
    color: var(--accent-blue);
    font-size: 22px;
    flex-shrink: 0;
}

.payment-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.payment-info.warning {
    background: rgba(245, 158, 11, 0.1);
}

.payment-info.warning .material-icons {
    color: var(--accent-gold);
}

/* Crypto Address Block */
.crypto-info-block {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.crypto-network {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.network-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.network-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-blue);
}

.crypto-address-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crypto-address {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
    font-family: 'SF Mono', Monaco, monospace;
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   STARS TOPUP MODAL
   ═══════════════════════════════════════════════════════════ */

#starsTopupModal .modal-body {
    text-align: center;
    padding: 20px;
}

.stars-topup-icon {
    margin-bottom: 12px;
}

.stars-topup-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.stars-amount-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
}

.stars-adjust-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.stars-adjust-btn:active {
    transform: scale(0.95);
    background: var(--bg-input);
}

.stars-amount-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stars-amount-display #starsAmountDisplay {
    font-size: 48px;
    font-weight: 700;
    color: #FFD700;
    line-height: 1;
}

.stars-amount-display .stars-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stars-usd-value {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
}

.stars-presets {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.stars-preset {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.stars-preset:active {
    transform: scale(0.95);
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.stars-min-note {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 20px;
}

.stars-pay-btn {
    width: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    font-weight: 600;
}

.stars-pay-btn .material-icons {
    color: #000;
}

/* ═══════════════════════════════════════════════════════════
   VERIFICATION MODAL
   ═══════════════════════════════════════════════════════════ */

.verification-content .modal-body {
    text-align: center;
    padding-bottom: 20px;
}

.verification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-icon .material-icons {
    font-size: 40px;
    color: var(--accent-blue);
}

.verification-text {
    margin-bottom: 24px;
}

.verification-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.verification-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.verification-features {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item .material-icons {
    font-size: 20px;
    color: var(--accent-green);
}

.feature-item span:last-child {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Success Icon */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon .material-icons {
    font-size: 40px;
    color: var(--accent-green);
}

/* Verification Steps */
.verification-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.step-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Phone Input with Country Selector */
.phone-full-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.country-selector:hover {
    border-color: var(--accent-blue);
}

.country-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.country-code {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.country-selector .material-icons {
    font-size: 20px;
    color: var(--text-muted);
}

.phone-number-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
}

.phone-number-input:focus {
    border-color: var(--accent-blue);
}

.phone-number-input::placeholder {
    color: var(--text-muted);
}

/* Country Select Modal */
.country-select-content {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.country-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    margin: 0 16px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.country-search-wrapper .material-icons {
    color: var(--text-muted);
    font-size: 22px;
}

.country-search {
    flex: 1;
    background: none;
    border: none;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.country-search::placeholder {
    color: var(--text-muted);
}

.country-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 16px;
    max-height: 50vh;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 6px;
}

.country-item:hover {
    background: var(--bg-hover);
}

.country-item.selected {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--accent-blue);
}

.country-item .country-flag {
    width: 32px;
    height: 24px;
}

.country-item .country-info {
    flex: 1;
}

.country-item .country-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.country-item .country-dial {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
}

/* Old Phone Input - kept for compatibility */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-prefix {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 4px;
}

.phone-input {
    flex: 1;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
}

.phone-input::placeholder {
    color: var(--text-muted);
}

/* Code Input */
.code-input-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.code-input {
    width: 150px;
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 8px;
    outline: none;
}

.code-input:focus {
    border-color: var(--accent-blue);
}

/* Password Input */
.password-input-wrapper {
    margin-bottom: 12px;
}

.password-input {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
}

.password-input:focus {
    border-color: var(--accent-blue);
}

/* Input Hint */
.input-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Verification Error */
.verification-error {
    margin-top: 12px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    display: none;
}

.verification-error.show {
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   VERIFICATION RULES MODAL
   ═══════════════════════════════════════════════════════════ */

.rules-header {
    text-align: center;
    margin-bottom: 24px;
}

.rules-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-icon .material-icons {
    font-size: 32px;
    color: var(--accent-blue);
}

.rules-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.rules-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.rules-section {
    margin-bottom: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Rules Modal Content */
.verification-rules-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.verification-rules-content .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: calc(90vh - 60px);
    -webkit-overflow-scrolling: touch;
}

.verification-rules-content .modal-body::-webkit-scrollbar {
    width: 4px;
}

.verification-rules-content .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.verification-rules-content .modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header .material-icons {
    font-size: 22px;
    color: var(--accent-blue);
}

.section-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Warning section */
.rules-section:has(.rule-item.warning) .section-header .material-icons {
    color: #ef4444;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-blue);
}

.rule-item.warning {
    background: rgba(239, 68, 68, 0.08);
    border-left-color: #ef4444;
}

.rule-item.warning .material-icons {
    color: #ef4444;
}

.rule-item .material-icons {
    font-size: 20px;
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.rule-text {
    flex: 1;
}

.rule-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.rule-text p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Info Cards */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-blue);
}

.info-card .material-icons {
    font-size: 20px;
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Security Block */
.security-block {
    padding: 16px;
    background: rgba(34, 197, 94, 0.06);
    border-radius: var(--radius-md);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.rules-section:has(.security-block) .section-header .material-icons {
    color: var(--accent-green);
}

.protocol-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 20px;
    margin-bottom: 12px;
}

.protocol-badge .material-icons {
    font-size: 16px;
    color: var(--accent-green);
}

.protocol-badge span {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-green);
}

.security-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 14px 0;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.sec-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

.sec-feature .material-icons {
    font-size: 14px;
    color: var(--accent-green);
}

.security-note {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Rules Accept Checkbox */
.rules-accept {
    margin: 20px 0 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.checkbox-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

#acceptRulesBtn {
    width: 100%;
    margin-top: 8px;
}

#acceptRulesBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-card);
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 380px) {
    .balance-amount {
        font-size: 40px;
    }
    
    .action-icon {
        width: 42px;
        height: 42px;
    }
    
    .action-icon .material-icons {
        font-size: 20px;
    }
    
    .action-label {
        font-size: 11px;
    }
}

/* ═══════════════════════════════════════════════════════════
   LANGUAGE SELECTION
   ═══════════════════════════════════════════════════════════ */

.language-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.language-item:hover {
    background: var(--bg-secondary);
}

.language-item.active {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
}

.language-flag {
    font-size: 24px;
}

.language-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.language-check {
    color: var(--primary-color);
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.language-item.active .language-check {
    opacity: 1;
}

/* RTL Support for Arabic */
[dir="rtl"] .modal-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .settings-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .action-btn {
    direction: rtl;
}

[dir="rtl"] .asset-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .currency-item {
    flex-direction: row-reverse;
}

/* Settings item clickable */
.settings-item {
    cursor: pointer;
    transition: background 0.2s ease;
}

.settings-item:hover {
    background: var(--bg-secondary);
}

.settings-item .arrow {
    color: var(--text-muted);
    font-size: 18px;
    margin-left: auto;
}
