@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg-dark: #0f0a0a;
    --bg-panel: rgba(20, 15, 15, 0.7);
    --border-glow: rgba(255, 69, 0, 0.2);
    
    /* Solar Flare / Orange-Red Theme */
    --accent-primary: #ff4d00;
    --accent-secondary: #ff8c00;
    --accent-gradient: linear-gradient(135deg, #ff8c00 0%, #ff4d00 100%);
    
    --slate-gray: #2d1b1b;
    --slate-muted: #8b6464;
    --text-main: #f8fafc;
    --text-muted: #a39494;
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Deep Sea / Cyber Glow */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 77, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 36, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 10, 10, 1) 0%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Slightly smaller padding for mobile */
    width: 100%;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.35rem; /* Larger font size */
    font-weight: 800;
    color: #ffffff; /* Explicitly white for Crypto and Notes */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search Box */
.hero-search {
    margin: 2rem 0;
    text-align: center;
}

.hero-search h1 {
    font-size: clamp(1.8rem, 7vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.search-input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    outline: none;
    min-width: 0; /* Important for flex shrink */
}

.search-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
    background: var(--accent-gradient);
    color: #000;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 100%;
    overflow-wrap: break-word; /* Prevent text overflow */
    word-break: break-word;
}

.glass-panel.accent-glow {
    position: relative;
    border-top: 1px solid rgba(255, 77, 0, 0.25);
}

/* Table container fix */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

th, td {
    padding: 1rem 0.8rem;
    text-align: left;
    font-size: 0.85rem;
}

.hash-link {
    color: var(--accent-primary);
    text-decoration: none;
    word-break: break-all;
}

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

.asset-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Connect Button */
.connect-btn {
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    border: none !important;
    background: var(--accent-gradient) !important;
    color: #000 !important;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    display: inline-block; /* Make it visible on desktop too */
}

.connect-btn:hover {
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.4);
    transform: translateY(-1px);
}

.btn-disconnect {
    font-weight: 600 !important; /* Slightly thinner than 700 to satisfy "no negritas" request */
}

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    
    .search-form {
        flex-direction: column;
        border-radius: 15px;
    }
    .search-input { text-align: center; }
    .search-btn { width: 100%; border-radius: 10px; }
    
    .hero-search h1 { font-size: 2rem; }
    
    .glass-panel { padding: 1.2rem; }

    /* Mobile Connect Button visibility and logo adjustment */
    .mobile-connect {
        display: block;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .logo {
        font-size: 1.1rem; /* Slightly smaller on mobile but still larger than before */
    }
    
    .logo svg {
        width: 28px; /* Larger SVG on mobile */
        height: 28px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none !important; /* Force hidden initially */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: #0f172a;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

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

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.modal-form .search-form {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.modal-form .search-input {
    background: rgba(255, 255, 255, 0.05);
}
