/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0f2c 0%, #1a1f3c 100%);
    color: #e0e0ff;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid #00C2FF;
    margin-bottom: 40px;
    background: rgba(10, 15, 44, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 194, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 2.5rem;
    color: #00E676;
    animation: pulse 2s infinite ease-in-out;
}

h1 {
    font-size: 2.8rem;
    background: linear-gradient(90deg, #00C2FF, #00E676);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    font-weight: 700;
}

.tagline {
    font-size: 1.2rem;
    color: #88aaff;
    font-weight: 300;
    opacity: 0.9;
}

/* Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    background: rgba(20, 25, 60, 0.7);
    border: 1px solid rgba(0, 194, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 194, 255, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 194, 255, 0.2);
}

.card-icon {
    font-size: 1.5rem;
    color: #F7931A;
}

h2 {
    color: #00C2FF;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(0, 194, 255, 0.5);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.upload-area:hover {
    background: rgba(0, 194, 255, 0.05);
    border-color: #00E676;
}

.upload-icon {
    font-size: 3rem;
    color: #00E676;
    margin-bottom: 15px;
}

.format-hint {
    color: #88aaff;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.sample-hint {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #88aaff;
    background: rgba(0, 194, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
}

.file-input-hidden {
    display: none;
}

/* Process Flow */
.process-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 4px solid #F7931A;
    transition: all 0.3s ease;
}

.flow-step.step-active {
    border-left-color: #00E676;
    background: rgba(0, 230, 118, 0.1);
}

.step-number {
    width: 30px;
    height: 30px;
    background: #F7931A;
    color: #0a0f2c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-active .step-number {
    background: #00E676;
}

.step-description {
    color: #88aaff;
    font-size: 0.9rem;
    margin-top: 2px;
}

/* Buttons */
.btn {
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
}

.btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.primary-btn {
    background: linear-gradient(90deg, #F7931A, #00E676);
    color: #0a0f2c;
}

.primary-btn:hover:not(:disabled) {
    box-shadow: 0 5px 15px rgba(247, 147, 26, 0.4);
}

.secondary-btn {
    background: linear-gradient(90deg, #00C2FF, #0099CC);
    color: #0a0f2c;
}

.burn-btn {
    background: linear-gradient(90deg, #FF6B6B, #FF8E53);
    color: #0a0f2c;
    margin-top: 15px;
    width: 100%;
}

/* Wallet Input */
.wallet-input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 194, 255, 0.5);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.wallet-input:focus {
    outline: none;
    border-color: #00E676;
    box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.2);
}

/* Chain Agnostic Badge */
.chain-agnostic-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 194, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.chain-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
}

.bitcoin { background: #F7931A; }
.cardano { background: #0033AD; }
.monero { background: #FF6600; }
.dogecoin { background: #C2A633; }
.zcash { background: #F4B728; }
.sovryn-dollar { background: #F5A623; }

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.metric-card {
    background: rgba(0, 194, 255, 0.1);
    border: 1px solid rgba(0, 194, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00E676;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.metric-label {
    color: #88aaff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ZK Proof */
.zk-proof {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid #00E676;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Action Buttons */
.action-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.transaction-link {
    color: #00C2FF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.transaction-link:hover {
    color: #00E676;
    text-decoration: underline;
}

/* Burn Section */
.burn-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 107, 107, 0.3);
}

.burn-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #FF6B6B;
}

.liquidity-pool {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid #00E676;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.liquidity-pool p {
    margin: 10px 0;
    color: #88aaff;
}

.asset-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.conversion-rate {
    background: rgba(0, 194, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.asset-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.asset-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-height: 120px;
}

.asset-option:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
}

.asset-option.selected {
    background: rgba(255, 107, 107, 0.3);
    border-color: #FF6B6B;
}

.asset-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.available-amount {
    margin: 15px 0;
    color: #88aaff;
    font-size: 1rem;
}

.burn-address {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin: 15px 0;
    border: 1px solid rgba(255, 107, 107, 0.5);
}

/* Tokenomics */
.tokenomics-card {
    margin-top: 30px;
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .tokenomics-grid {
        grid-template-columns: 1fr;
    }
}

.distribution-chart {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.distribution-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}

.percentage {
    color: #00E676;
    font-weight: bold;
}

.progress-bar {
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    transition: width 1s ease;
}

.prosumer-fill {
    background: linear-gradient(90deg, #00E676, #00C2FF);
    width: 85%;
}

.treasury-fill {
    background: linear-gradient(90deg, #F7931A, #FF6B6B);
    width: 15%;
}

.formula-section {
    margin-top: 30px;
}

.formula-section h3 {
    color: #00C2FF;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.formula-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
}

.formula-explanation {
    color: #88aaff;
    font-size: 0.9rem;
    margin-top: 10px;
    line-height: 1.4;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 194, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-icon {
    color: #00E676;
    width: 20px;
    text-align: center;
}

/* Explorer Modal */
.explorer-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease;
}

.explorer-content {
    background: linear-gradient(135deg, #0a0f2c 0%, #1a1f3c 100%);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 194, 255, 0.3);
    border: 2px solid #00C2FF;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

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

.explorer-header h3 {
    color: #00C2FF;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-explorer {
    color: #88aaff;
    font-size: 28px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-explorer:hover {
    background: rgba(0, 194, 255, 0.1);
}

.explorer-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.wallet-info {
    background: rgba(0, 194, 255, 0.08);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.wallet-info p {
    margin: 8px 0;
    color: #e0e0ff;
}

.network-status {
    color: #00E676;
    font-weight: bold;
}

.tx-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tx-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(0, 194, 255, 0.1);
    border: 1px solid rgba(0, 194, 255, 0.3);
    border-radius: 20px;
    color: #88aaff;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: #00C2FF;
    color: #0a0f2c;
    font-weight: bold;
}

.refresh-btn {
    padding: 8px 16px;
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: 8px;
    color: #F7931A;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 0.9rem;
}

.tx-history h4 {
    color: #00C2FF;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tx-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
}

.tx-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #88aaff;
}

.tx-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.tx-item {
    background: rgba(20, 25, 60, 0.7);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid;
    transition: transform 0.2s;
}

.tx-item:hover {
    transform: translateX(5px);
}

.tx-item.mint {
    border-left-color: #00E676;
}

.tx-item.bridge {
    border-left-color: #F7931A;
}

.tx-item.burn {
    border-left-color: #FF6B6B;
}

.tx-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tx-details {
    flex-grow: 1;
}

.tx-type {
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.tx-amount {
    color: #00E676;
    font-weight: bold;
    font-size: 1.1rem;
}

.tx-time {
    font-size: 0.85rem;
    color: #88aaff;
    margin-top: 2px;
}

.tx-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    flex-shrink: 0;
}

.tx-status.confirmed {
    background: rgba(0, 230, 118, 0.2);
    color: #00E676;
}

.explorer-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 194, 255, 0.3);
    text-align: center;
}

.explorer-link {
    background: linear-gradient(90deg, #00C2FF, #00E676);
    color: #0a0f2c;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s;
}

.explorer-link:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.05);
    }
}

@keyframes minting {
    0% { 
        transform: scale(0.9); 
        opacity: 0; 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

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

.minting-animation {
    animation: minting 0.5s ease-out;
}

/* Success/Error Messages */
.success-message {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid #00E676;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    animation: minting 0.5s ease-out;
}

.error-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #FF6B6B;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    animation: minting 0.5s ease-out;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    animation: minting 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.notification.success {
    background: linear-gradient(90deg, #00E676, #00C2FF);
}

.notification.error {
    background: linear-gradient(90deg, #FF6B6B, #FF8E53);
}

.notification.info {
    background: linear-gradient(90deg, #00C2FF, #0099CC);
}