/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100vw;
    max-width: 100vw;
}

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
}

.container {
    max-width: 100vw;
    width: 100vw;
    margin: 0;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
    margin-left: 10px;
}

.header-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ffff;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 200px);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Top Sections Container */
.top-sections-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .top-sections-container {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        max-width: none;
        margin: 0;
        align-items: start;
    }
}

.top-sections-container > * {
    min-width: 0;
}



/* Input Section */
.input-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
    height: 220px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}



.input-container h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: left;
    color: #ffffff;
    letter-spacing: 1px;
}

@media (min-width: 1200px) {
    .input-container h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
}

.wallet-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    max-width: min(600px, calc(100vw - 40px));
    width: 100%;
    margin-left: 0;
    margin-right: auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .wallet-input-group {
        flex-direction: column;
        gap: 10px;
    }
}

.wallet-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 14px 18px;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 52px;
}

.wallet-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.wallet-input::placeholder {
    color: #888;
}

.analyze-btn {
    background: linear-gradient(45deg, #00ffff, #0099cc);
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    color: #000;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
    min-height: 52px;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4);
}

.analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.input-hint {
    text-align: left;
    color: #888;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: auto;
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner.large {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top: 3px solid #00ffff;
}

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

/* Loading Container */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    width: 100%;
    max-width: 100vw;
    grid-column: 1 / -1;
}

.loading-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #00ffff;
}

.loading-content p {
    color: #888;
    font-size: 1rem;
    margin: 0;
}

/* Error Container */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    width: 100%;
    max-width: 100vw;
    grid-column: 1 / -1;
}

.error-content {
    text-align: center;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.error-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #ff6b6b;
}

.error-content p {
    color: #888;
    margin: 0;
    max-width: 400px;
}

.retry-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

/* Results Container */
.results-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100vw;
    margin-top: 20px;
    align-items: start;
    grid-auto-rows: min-content;
}

@media (min-width: 1200px) {
    .results-container {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 100vw;
    }
}

/* Time Period Tabs Section */
.period-tabs-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    .period-tabs-section {
        padding: 25px;
        height: auto;
        width: 100%;
    }
}

.period-tabs-section h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #ffffff;
    letter-spacing: 1px;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .period-tabs-section h2 {
        font-size: 1.2rem;
        margin: 0 0 15px 0;
    }
}

.section-subtitle {
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.input-subtitle {
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0 0 15px 0;
    line-height: 1.4;
    text-align: left;
}

.period-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 5px 0 8px 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: flex-start;
}

.period-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    box-sizing: border-box;
    font-size: 0.8rem;
    font-weight: 500;
}

.period-tab:hover {
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.period-tab.active {
    background: linear-gradient(45deg, #00ffff, #0099cc);
    color: #000;
    border-color: #00ffff;
    font-weight: 600;
}

.period-tab .tab-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 3px;
}

.period-tab .tab-date {
    font-size: 0.7rem;
    opacity: 0.8;
}

.period-tab .tab-count {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 3px;
}



/* Stats Section */
.stats-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.stats-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.stats-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.stats-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.1);
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 255, 0.2);
}

.stat-item-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.stat-item-label {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-item-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #00ffff;
    line-height: 1.2;
}

.stat-item-subvalue {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 2px;
}

.stat-item-change {
    font-size: 0.8rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.stat-item-change.positive {
    color: #00ff88;
}

.stat-item-change.negative {
    color: #ff6b6b;
}

.stat-item-change.neutral {
    color: #888;
}

.change-arrow {
    font-size: 0.9rem;
    font-weight: bold;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1;
    overflow-y: auto;
    padding: 5px 5px 0 0;
}

.comparison-grid::-webkit-scrollbar,
.app-grid::-webkit-scrollbar,
.period-tabs::-webkit-scrollbar {
    width: 6px;
}

.comparison-grid::-webkit-scrollbar-track,
.app-grid::-webkit-scrollbar-track,
.period-tabs::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 3px;
}

.comparison-grid::-webkit-scrollbar-thumb,
.app-grid::-webkit-scrollbar-thumb,
.period-tabs::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

.comparison-grid::-webkit-scrollbar-thumb:hover,
.app-grid::-webkit-scrollbar-thumb:hover,
.period-tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}

.comparison-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.comparison-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

.comparison-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00ffff;
}

.comparison-change {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
}

.comparison-change.positive {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.comparison-change.negative {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
}

.comparison-change.neutral {
    background: rgba(128, 128, 128, 0.2);
    color: #888;
}

.comparison-data {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.comparison-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.comparison-label {
    font-size: 0.7rem;
    color: #888;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comparison-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.comparison-subtitle {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

/* App Results */
.app-results {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.app-results h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex: 1;
    overflow-y: auto;
    padding: 5px 5px 0 0;
    align-content: start;
    grid-auto-rows: min-content;
}

.app-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.app-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.1);
}

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

.app-name-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-card-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.app-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ffff;
}

.app-contract {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
    font-family: 'Courier New', monospace;
}

.address-link {
    color: #00ffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.address-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.app-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    flex: 1;
    align-content: start;
}

.metric {
    text-align: center;
}

.metric-label {
    font-size: 0.7rem;
    color: #888;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.metric-change {
    font-size: 0.8rem;
    margin-top: 3px;
}

.metric-change.positive {
    color: #00ff00;
}

.metric-change.negative {
    color: #ff6b6b;
}

.metric-change.neutral {
    color: #888;
}

/* Volume metrics styling */
.volume-metrics {
    margin-top: 15px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.volume-section {
    margin-bottom: 12px;
}

.volume-section:last-child {
    margin-bottom: 0;
}

.volume-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.volume-values {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.volume-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.volume-type {
    color: #aaa;
    font-weight: 500;
}

.volume-amount {
    color: #fff;
    font-weight: 600;
}

/* Buy/Sell color styling */
.volume-buy {
    color: #00ff88 !important;
}

.volume-sell {
    color: #ff6b6b !important;
}

/* Transaction Feed */
.transaction-feed {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.transaction-feed h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.feed-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-right: 5px;
}

.feed-container::-webkit-scrollbar {
    width: 8px;
}

.feed-container::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 4px;
}

.feed-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 4px;
}

.feed-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}

.transaction-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateX(5px);
}

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

.transaction-hash {
    font-size: 0.8rem;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.transaction-time {
    font-size: 0.7rem;
    color: #888;
    font-weight: 400;
}

.transaction-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.transaction-detail {
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 400;
}

.transaction-detail strong {
    color: #00ffff;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-left, .footer-center, .footer-right {
    display: flex;
    align-items: center;
}

.footer-link, .social-link, .app-link {
    color: #00ffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-link:hover, .social-link:hover, .app-link:hover {
    color: #ffffff;
}

.footer-text {
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-label {
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 10px;
}

.supported-apps {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-separator {
    color: #666;
    font-size: 0.8rem;
}

.coming-soon {
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        height: auto;
        min-height: calc(100vh - 200px);
        width: 100%;
        max-width: 100vw;
    }
    
    .results-container {
        grid-template-columns: 1fr;
        height: auto;
        width: 100%;
        max-width: 100vw;
    }
    
    .period-tabs-section,
    .comparison-section,
    .app-results {
        height: auto;
    }
    
    .wallet-input-group {
        flex-direction: column;
        max-width: calc(100vw - 40px);
        width: 100%;
    }
    
    .analyze-btn {
        width: 100%;
    }
    
    .period-tabs {
        flex-wrap: wrap;
        max-width: 100%;
        width: 100%;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
    }
    
    .app-metrics {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        height: auto;
        min-height: calc(100vh - 200px);
        width: 100%;
        max-width: 100vw;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        max-width: 100%;
        width: 100%;
    }
    
    .header-stats {
        gap: 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .input-container h2 {
        font-size: 1.3rem;
    }
    
    .input-section {
        height: auto;
    }
    
    .period-tabs {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        justify-content: flex-start;
    }
    
    .period-tab {
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }
    
    .app-metrics {
        grid-template-columns: 1fr;
    }
    
    
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-left, .footer-center, .footer-right {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .supported-apps {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .footer-label {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .app-separator {
        display: none;
    }
    
    .wallet-input-group {
        max-width: calc(100vw - 40px);
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        max-width: 100vw;
        width: 100vw;
    }
    
    .input-section {
        padding: 25px 20px;
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    .period-tabs-section, .comparison-section, .app-results {
        padding: 20px 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .wallet-input-group {
        max-width: calc(100vw - 30px);
        width: 100%;
    }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.4);
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.6);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(0, 255, 255, 0.8);
}

::-webkit-scrollbar-corner {
    background: #000000;
}

/* Firefox scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.4) #000000;
}

/* Supported Apps Button */
.supported-apps-button {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.supported-apps-button:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-1px);
}

.supported-count {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.supported-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.supported-apps-button:hover .supported-icon {
    transform: translateY(1px);
}

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

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
    margin: 5% auto;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1px;
}

.modal-close {
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.app-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.1);
}

.app-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.app-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
}

.app-item-type {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}
