/* Base Styles */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --background: #50103f;
    --surface: #99247a;
    --surface-hover: #420e34d7;
    --border: #475569;
    --text: #f8fafc;
    --text-secondary: #94a3b8;
    --error: #ef4444;
    --warning: #f59e0b;
    --success: #55f50b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

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

/* Search Bar */
.search-container {
    margin: 1.5rem 0;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
}

/* Security Notice */
.security-notice {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.notice-icon {
    font-size: 1.5rem;
}

.notice-content h3 {
    color: var(--success);
    margin-bottom: 0.5rem;
}

/* Wallet Selector */
.wallet-selector {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.secure-badge {
    background: var(--surface-hover);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.wallets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .wallets-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.wallet-button {
    background: linear-gradient(135deg, #ff2fbf, #ff7fe4);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.wallet-button:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.wallet-icon {
    width: 78px;
    height: 78px;
    
    border-radius: 50%;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

span {
    color: white;
    font-size: 12px;
    font-weight: 500;
    font-family: arial;
}

img#connectionWalletIcon {
    width: 68px;
    height: 68px;
    border-radius:20px;
}

img#manualWalletIcon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
}

.contex {
    font-size: 20px;
    font-weight: 800;
    font-family: arial;
}

.wallet-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius:20px;
}

/* Dashboard Styles */

/* Navigation */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.logout-btn:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 2rem;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.user-greeting {
    color: var(--primary-color);
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.stat-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.stat-change.neutral {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-secondary);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.dashboard-card {
    background: var(--surface);
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.card-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.25rem;
}

.refresh-btn,
.edit-btn,
.mark-read-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.refresh-btn:hover,
.edit-btn:hover,
.mark-read-btn:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Portfolio Card */
.portfolio-chart {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.chart-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.chart-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.portfolio-list {
    padding: 0 1.5rem 1.5rem;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.asset-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.asset-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.asset-name {
    font-weight: 500;
}

.asset-symbol {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.asset-amount {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.asset-value {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.asset-change {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.asset-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.asset-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.asset-change.neutral {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-secondary);
}

/* Transactions Card */
.transactions-list {
    padding: 0 1.5rem 1.5rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.transaction-details {
    flex: 1;
}

.transaction-type {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.transaction-address {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.transaction-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-weight: 500;
    text-align: right;
}

.transaction-amount.positive {
    color: #22c55e;
}

.transaction-amount.negative {
    color: var(--error);
}

.transaction-amount.neutral {
    color: var(--text-secondary);
}

/* Profile Card */
.profile-content {
    padding: 1.5rem;
}

.profile-avatar {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.account-type.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    width: fit-content;
}

.security-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-bar {
    flex: 1;
    height: 8px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.security-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 4px;
}

/* Actions Card */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.action-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--primary-color);
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 1.5rem;
}

.action-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Market Card */
.market-status {
    background: #22c55e;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.market-list {
    padding: 0 1.5rem 1.5rem;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.market-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.market-name {
    font-weight: 500;
}

.market-price {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.market-change {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.market-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.market-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Notifications Card */
.notifications-list {
    padding: 0 1.5rem 1.5rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    opacity: 0.7;
}

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

.notification-item.unread {
    opacity: 1;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: -1rem;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.notification-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface);
    border-radius: 1rem;
    border: 1px solid var(--border);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.modal-body {
    padding: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.loading-indicator {
    text-align: center; 
}

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

.modal-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-direction: column;
}

.modal-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.modal-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.modal-disclaimer {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Modal Phase System */
.modal-phase {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.modal-phase.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Loading Progress */
.loading-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-fill.complete {
    background: linear-gradient(90deg, #c55022, #a31616);
}

.progress-fill.complete::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

#progressPercent {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.progress-text.complete #progressPercent {
    color: #c54b22dd;
}

.progress-text.complete #progressStatus {
    color: #c52222;
}

#progressStatus {
    color: ;
}

/* Loading Steps */
.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(148, 163, 184, 0.05);
    transition: all 0.3s ease;
}

.step-item.completed {
    background: rgba(197, 34, 34, 0.1);
    border-left: 3px solid #c52222;
}

.step-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--primary-color);
}

.step-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-item.completed .step-icon {
    background: #c52222; 
}

.step-item.active .step-icon {
    background: var(--primary-color);
    color: white;
}

.step-item .step-icon i.fa-circle {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.step-item span {
    color: var(--text);
    font-size: 0.875rem;
}

.step-item.completed span {
    color: #c52222;
    font-weight: 500;
}

.step-item.active span {
    color: var(--primary-color);
    font-weight: 500;
}

.modal-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.modal-body {
    padding: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background-color: #382a46;
    padding: 20px 10px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.loading-indicator {
    text-align: center; 
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

.modal-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.modal-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.modal-disclaimer {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Skeleton Loading Styles */
.content-section {
    display: block;
}

.skeleton-section {
    display: none;
}

.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, rgba(148, 163, 184, 0.2) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.25rem;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Welcome Section Skeleton */
.skeleton-title {
    height: 2.5rem;
    width: 60%;
    margin-bottom: 0.5rem;
}

.skeleton-subtitle {
    height: 1.125rem;
    width: 40%;
}

/* Stats Cards Skeleton */
.skeleton-card {
    background: var(--surface);
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.skeleton-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
}

.skeleton-content {
    flex: 1;
}

.skeleton-value {
    height: 1.5rem;
    width: 70%;
    margin-bottom: 0.25rem;
}

.skeleton-label {
    height: 0.875rem;
    width: 50%;
    margin-bottom: 0.5rem;
}

.skeleton-change {
    height: 0.875rem;
    width: 30%;
}

/* Dashboard Card Skeletons */
.skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.skeleton-title {
    height: 1.25rem;
    width: 40%;
}

.skeleton-button {
    height: 2rem;
    width: 2rem;
    border-radius: 0.25rem;
}

.skeleton-link {
    height: 0.875rem;
    width: 4rem;
}

.skeleton-chart {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.skeleton-chart-content {
    height: 150px;
    width: 150px;
    border-radius: 50%;
}

.skeleton-list {
    padding: 0 1.5rem 1.5rem;
}

.skeleton-list-item {
    height: 3rem;
    width: 100%;
    margin-bottom: 1rem;
}

.skeleton-list-item:last-child {
    margin-bottom: 0;
}

.skeleton-transaction {
    height: 4rem;
    width: 100%;
    margin-bottom: 1rem;
}

.skeleton-transaction:last-child {
    margin-bottom: 0;
}

.skeleton-profile {
    padding: 1.5rem;
}

.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.skeleton-info-item {
    height: 3rem;
    width: 100%;
    margin-bottom: 1rem;
}

.skeleton-info-item:last-child {
    margin-bottom: 0;
}

.skeleton-security {
    height: 2rem;
    width: 80%;
    margin: 0 auto;
}

.skeleton-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.skeleton-action-btn {
    height: 4rem;
    width: 100%;
    border-radius: 0.5rem;
}

.skeleton-status {
    height: 0.75rem;
    width: 3rem;
    border-radius: 0.25rem;
}

.skeleton-market-item {
    height: 3rem;
    width: 100%;
    margin-bottom: 1rem;
}

.skeleton-market-item:last-child {
    margin-bottom: 0;
}

.skeleton-notification {
    height: 5rem;
    width: 100%;
    margin-bottom: 1rem;
}

.skeleton-notification:last-child {
    margin-bottom: 0;
}

/* Responsive Modal */
@media (max-width: 640px) {
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .modal-header {
        padding: 1.5rem 1rem 1rem;
    }

    .modal-body {
        padding: 1.5rem 1rem;
    }

    .modal-footer {
        padding: 1rem 1rem 1.5rem;
    }

    .feature-list {
        gap: 1rem;
    }

    .feature-item {
        gap: 0.75rem;
    }
}


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

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

.modal-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Error Modal Specific */
.error-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--error);
}

.error-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
}

.error-list li {
    color: var(--error);
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.error-list li:before {
    content: "•";
    margin-right: 0.75rem;
    color: var(--error);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Progress Bar */
.progress-container {
    margin: 1.5rem 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 15px;
    font-weight: 500;
    font-family: arial;
}

.progress-bar {
    background: var(--surface-hover);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

/* Buttons */
.primary-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

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

.secondary-btn {
    background: var(--surface-hover);
    color: white;
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    border-color: var(--primary-color);
}

.full-width {
    width: 100%;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 1rem;
}

.tab {
    flex: 1;
    padding: 0.75rem;
    background: var(--surface-hover);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.tab.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    background: var(--surface-hover);
    padding: 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
}

.tab-pane {
    display: none;
}

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

/* Form Elements */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

textarea,
input[type="text"] {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: white;
    margin-bottom: 1rem;
}

input[type="text"] {
    font-size: 17px;
}


textarea {
    height: 100px;
    resize: vertical;
    font-size: 16px;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
}

.error-message h4 {
    color: var(--error);
    margin-bottom: 0.25rem;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.modal.active .modal-content {
    animation: slideUp 0.3s ease-out;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
}

.test-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}