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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Oxygen, Ubuntu, sans-serif;
            background: #f8f9fa;
            color: #1a1a1a;
            min-height: 100vh;
        }

        /* HEADER */
        .header {
            background: #ffffff;
            padding: 20px 40px;
            border-bottom: 1px solid #e5e7eb;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .header-title {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .header-title h1 {
            font-size: 1.8em;
            font-weight: 700;
            color: #1a1a1a;
            letter-spacing: -0.5px;
        }

        .back-btn {
            background: #ffffff;
            border: 1px solid #d1d5db;
            color: #374151;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s;
            display: none;
        }

        .back-btn:hover {
            background: #f9fafb;
            border-color: #9ca3af;
        }

        /* MAIN CONTAINER */
        .main-container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 30px;
        }

        /* DASHBOARD VIEW */
        .dashboard-view {
            display: block;
        }

        .dashboard-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .stat-card {
            background: #ffffff;
            border-radius: 12px;
            padding: 25px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .stat-label {
            font-size: 0.875em;
            color: #6b7280;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .stat-value {
            font-size: 2em;
            font-weight: 700;
            color: #1a1a1a;
        }

        .add-crypto-section {
            background: #ffffff;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 40px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .add-crypto-section h2 {
            margin-bottom: 25px;
            font-size: 1.5em;
            color: #1a1a1a;
            font-weight: 700;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group label {
            font-size: 0.875em;
            color: #374151;
            font-weight: 600;
        }

        .form-group input {
            background: #ffffff;
            border: 1px solid #d1d5db;
            padding: 12px 15px;
            border-radius: 8px;
            color: #1a1a1a;
            font-size: 1em;
            transition: all 0.2s;
        }

        .form-group input:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .btn {
            background: #1a1a1a;
            color: white;
            border: none;
            padding: 5px 15px;
            border-radius: 8px;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid transparent;
        }

        .btn:hover {
            background: #374151;
        }

        .btn-secondary {
            background: #ffffff;
            border: 1px solid #d1d5db;
            color: #374151;
        }

        .btn-secondary:hover {
            background: #f9fafb;
            border-color: #9ca3af;
        }

        .btn-danger {
            color: white;
        }

        .btn-small {
            padding: 8px 16px;
            font-size: 0.9em;
        }

        /* CRYPTO GRID */
        .crypto-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 25px;
        }

        /* CRYPTO TABLE */
        .crypto-table-container {
            background: #ffffff;
            border-radius: 12px;
            padding: 30px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .table-wrapper {
            overflow-x: auto;
        }

        .crypto-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.95em;
        }

        .crypto-table thead {
            background: #f9fafb;
            border-bottom: 2px solid #e5e7eb;
        }

        .crypto-table th {
            padding: 16px;
            text-align: left;
            font-weight: 700;
            color: #374151;
            text-transform: uppercase;
            font-size: 0.8em;
            letter-spacing: 0.5px;
        }

        .crypto-table tbody tr {
            border-bottom: 1px solid #e5e7eb;
            transition: background 0.2s;
            cursor: pointer;
        }

        .crypto-table tbody tr:hover {
            background: #f9fafb;
        }

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

        .crypto-table td {
            padding: 18px 16px;
            color: #1a1a1a;
        }

        .crypto-table .crypto-name-cell {
            font-weight: 700;
            font-size: 1.1em;
            color: #1a1a1a;
        }

        .crypto-table .actions-cell {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        .crypto-table .empty-cell {
            text-align: center;
            padding: 40px 20px;
        }

        .table-action-btn {
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            width: 36px;
            height: 36px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1em;
        }

        .table-action-btn:hover {
            background: #f3f4f6;
            border-color: #d1d5db;
        }

        .crypto-card {
            background: #ffffff;
            border-radius: 12px;
            padding: 25px;
            border: 1px solid #e5e7eb;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .crypto-card:hover {
            border-color: #3b82f6;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

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

        .crypto-name {
            font-size: 1.5em;
            font-weight: 700;
            color: #1a1a1a;
        }

        .crypto-actions {
            display: flex;
            gap: 8px;
        }

        .icon-btn {
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            width: 35px;
            height: 35px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2em;
        }

        .icon-btn:hover {
            background: #f3f4f6;
            border-color: #d1d5db;
        }

        .crypto-stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .crypto-stat {
            background: #f9fafb;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
        }

        .crypto-stat-label {
            font-size: 0.8em;
            color: #6b7280;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .crypto-stat-value {
            font-size: 1.2em;
            font-weight: 700;
            color: #1a1a1a;
        }

        /* DETAIL VIEW */
        .detail-view {
            display: none;
        }

        .detail-header {
            background: #ffffff;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .detail-title {
            font-size: 2.5em;
            margin-bottom: 20px;
            color: #1a1a1a;
            font-weight: 700;
        }

        .detail-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        .detail-card {
            background: #ffffff;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .detail-card h3 {
            font-size: 1.5em;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #1a1a1a;
            font-weight: 700;
        }

        .results-grid {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 20px;
        }

        .result-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: #f9fafb;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
        }

        .result-label {
            font-weight: 600;
            color: #6b7280;
        }

        .result-value {
            font-size: 1.2em;
            font-weight: 700;
        }

        .positive {
            color: #10b981;
        }

        .negative {
            color: #ef4444;
        }

        .neutral {
            color: #3b82f6;
        }

        .progress-container {
            background: #e5e7eb;
            border-radius: 10px;
            height: 30px;
            overflow: hidden;
            margin-top: 10px;
        }

        .progress-bar {
            height: 100%;
            background: #10b981;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            transition: width 0.5s;
            color: white;
        }

        .simulation-item {
            background: #f9fafb;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 15px;
            border: 1px solid #e5e7eb;
        }

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

        .simulation-title {
            font-weight: 700;
            font-size: 1.1em;
            color: #1a1a1a;
        }

        .simulation-actions {
            display: flex;
            gap: 8px;
        }

        .simulation-results {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .simulation-stat {
            background: #ffffff;
            padding: 10px;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
        }

        .simulation-stat-label {
            font-size: 0.8em;
            color: #6b7280;
            margin-bottom: 3px;
            font-weight: 600;
        }

        .simulation-stat-value {
            font-weight: 700;
            color: #1a1a1a;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #9ca3af;
        }

        .empty-state-icon {
            font-size: 4em;
            margin-bottom: 20px;
            opacity: 0.5;
        }

        /* ANALYSIS PANEL */
        .analysis-panel {
            background: #f9fafb;
            border-radius: 12px;
            padding: 25px;
            margin-top: 20px;
            border: 1px solid #e5e7eb;
        }

        .performance-indicator {
            background: #ffffff;
            border-radius: 12px;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            border: 1px solid #e5e7eb;
        }

        .performance-icon {
            font-size: 2.5em;
        }

        .performance-text {
            flex: 1;
        }

        .performance-label {
            font-size: 0.9em;
            color: #6b7280;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .performance-value {
            font-size: 1.3em;
            font-weight: 700;
        }

        /* SIMULATION LIVE */
        .simulation-preview {
            background: #f9fafb;
            border-radius: 12px;
            padding: 25px;
            margin-top: 20px;
            border: 1px solid #e5e7eb;
        }

        .simulation-metrics {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .simulation-metric {
            background: #ffffff;
            padding: 15px;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
        }

        .simulation-metric-label {
            font-size: 0.85em;
            color: #6b7280;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .simulation-metric-value {
            font-size: 1.3em;
            font-weight: 700;
        }

        .comparison-box {
            background: #ffffff;
            border-radius: 12px;
            padding: 20px;
            margin-top: 15px;
            border: 1px solid #e5e7eb;
        }

        .comparison-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #e5e7eb;
        }

        .comparison-row:last-child {
            border-bottom: none;
        }

        .comparison-label {
            color: #6b7280;
            font-size: 0.95em;
            font-weight: 600;
        }

        .comparison-value {
            font-weight: 700;
            font-size: 1.1em;
            color: #1a1a1a;
        }

        .arrow-change {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.9em;
            margin-left: 10px;
        }

        /* METADATA STYLES */
        .metadata-group {
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 20px;
        }

        .metadata-title {
            font-size: 1em;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e5e7eb;
        }

        .metadata-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #e5e7eb;
        }

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

        .metadata-label {
            font-size: 0.9em;
            color: #6b7280;
            font-weight: 500;
        }

        .metadata-value {
            font-size: 0.95em;
            color: #1a1a1a;
            font-weight: 600;
            text-align: right;
        }

        .risk-badge {
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 0.85em;
            font-weight: 600;
        }

        .risk-low {
            background: #d1fae5;
            color: #065f46;
        }

        .risk-medium {
            background: #fef3c7;
            color: #92400e;
        }

        .risk-medium-high {
            background: #fed7aa;
            color: #9a3412;
        }

        .risk-high {
            background: #fee2e2;
            color: #991b1b;
        }

        /* METADATA STATS CARDS */
        .metadata-stats-card {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .metadata-stats-title {
            font-size: 1em;
            font-weight: 700;
            color: #1a1a1a;
            margin: 0 0 15px 0;
            padding-bottom: 10px;
            border-bottom: 2px solid #e5e7eb;
        }

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

        .stat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            background: #f9fafb;
            border-radius: 6px;
            transition: background 0.2s;
            cursor: pointer;
        }

        .stat-item:hover {
            background: #e5e7eb;
        }

        .stat-label-text {
            font-size: 0.9em;
            color: #374151;
            font-weight: 500;
        }

        .stat-badge {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .stat-count {
            background: #3b82f6;
            color: white;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.85em;
            font-weight: 600;
        }

        .stat-percentage {
            font-size: 0.85em;
            color: #6b7280;
            font-weight: 600;
        }

        /* MODAL */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: #ffffff;
            border-radius: 12px;
            padding: 40px;
            max-width: 500px;
            width: 90%;
            border: 1px solid #e5e7eb;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }

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

        .modal-header h2 {
            font-size: 1.8em;
            color: #1a1a1a;
            font-weight: 700;
        }

        .close-modal {
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            width: 35px;
            height: 35px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.5em;
            color: #374151;
        }

        /* TABS */
        .tabs {
            display: flex;
            gap: 5px;
            margin-bottom: 25px;
            border-bottom: 2px solid #e5e7eb;
        }

        .tab-btn {
            padding: 12px 20px;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            color: #6b7280;
            font-size: 0.95em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            flex: 1;
            margin-bottom: -2px;
        }

        .tab-btn:hover {
            color: #1a1a1a;
            background: #f9fafb;
        }

        .tab-btn.active {
            color: #3b82f6;
            border-bottom-color: #3b82f6;
        }

        .tab-content {
            display: none;
        }

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

        /* FORM IMPROVEMENTS */
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 15px;
        }

        .form-group input[type="text"],
        .form-group input[type="number"],
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            font-size: 1em;
            transition: all 0.2s;
            box-sizing: border-box;
        }

        .form-select {
            width: 100%;
            padding: 12px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            font-size: 1em;
            background: white;
            cursor: pointer;
            transition: all 0.2s;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-select:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .form-group textarea {
            resize: vertical;
            font-family: inherit;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #374151;
            font-size: 0.9em;
        }

        .checkbox {
            width: 20px;
            height: 20px;
            cursor: pointer;
            accent-color: #3b82f6;
        }

        /* CRYPTO ITEM IN MODAL */
        .crypto-item-modal {
            padding: 15px;
            background: #f9fafb;
            border-radius: 8px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.2s;
            cursor: pointer;
        }

        .crypto-item-modal:hover {
            background: #f3f4f6;
            transform: translateX(5px);
        }

        .crypto-item-name {
            font-weight: 600;
            color: #1a1a1a;
            font-size: 1em;
        }

        .crypto-item-details {
            font-size: 0.85em;
            color: #6b7280;
            margin-top: 3px;
        }

        @media (max-width: 768px) {
            .header {
                padding: 15px 20px;
            }

            .main-container {
                padding: 20px;
            }

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

            .crypto-table {
                font-size: 0.75em;
            }

            .crypto-table th,
            .crypto-table td {
                padding: 10px 6px;
            }

            .header {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }

            #headerActions {
                flex-wrap: wrap;
                width: 100%;
            }

            #headerActions button {
                font-size: 0.85em;
                padding: 8px 12px;
            }

            .dashboard-stats {
                grid-template-columns: 1fr;
            }

            #exchangeStats {
                grid-template-columns: 1fr !important;
            }

            .table-wrapper {
                overflow-x: auto;
            }

            .detail-header h2 {
                font-size: 1.3em;
            }

            .detail-stats {
                grid-template-columns: 1fr;
            }

            .metadata-group {
                padding: 15px;
            }

            .metadata-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }

            .metadata-value {
                text-align: left;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .modal-content {
                padding: 25px;
            }

            .tabs {
                flex-direction: column;
            }

            .tab-btn {
                border-bottom: none;
                border-left: 3px solid transparent;
            }

            .tab-btn.active {
                border-left-color: #3b82f6;
                border-bottom-color: transparent;
            }
        }

        @media (max-width: 1024px) {
            #metadataSection>div:first-of-type {
                grid-template-columns: repeat(2, 1fr) !important;
            }
        }

        @media (max-width: 640px) {
            #metadataSection>div:first-of-type {
                grid-template-columns: 1fr !important;
            }
        }