/* VERSION 18.3 - COMPLETE STYLES */

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d3a 100%);
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Hex_background001.png');
    background-repeat: repeat;
    background-size: auto;
    z-index: 0;
    pointer-events: none;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid #ff8c00;
    transition: transform 0.3s ease;
}

.nav-header.hidden {
    transform: translateY(-100%);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link-btn {
    background: rgba(255, 140, 0, 0.1);
    border: 2px solid #ff8c00;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ffa500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link-btn:hover {
    background: rgba(255, 140, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: transform 0.3s ease;
}

.menu-btn:hover {
    transform: scale(1.1);
}

.menu-btn span {
    width: 25px;
    height: 2px;
    background: #ff8c00;
    display: block;
    transition: all 0.3s ease;
}

.connect-wallet-btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6600 100%);
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

.wallet-connected {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    max-width: 280px;
}

.wallet-connected.wrong-network {
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid #ff8c00;
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    flex: 1;
    min-width: 0;
}

.wallet-address {
    color: #00ff00;
    font-weight: bold;
    font-family: monospace;
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-connected.wrong-network .wallet-address {
    color: #ffa500;
}

.wallet-balance {
    color: #ffa500;
    font-size: 0.6rem;
}

.wallet-network {
    color: #888;
    font-size: 0.55rem;
}

.wallet-buttons {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-shrink: 0;
}

.disconnect-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff6666;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.65rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.disconnect-btn:hover {
    background: rgba(255, 0, 0, 0.3);
}

.switch-network-btn {
    background: rgba(255, 140, 0, 0.3);
    border: 1px solid #ff8c00;
    color: #ffa500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.65rem;
    transition: all 0.3s;
    font-weight: bold;
    white-space: nowrap;
}

.switch-network-btn:hover {
    background: rgba(255, 140, 0, 0.5);
}

.network-warning {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    background: rgba(255, 140, 0, 0.95);
    border: 2px solid #ff8c00;
    border-radius: 10px;
    padding: 1rem 2rem;
    display: none;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.5);
}

.network-warning.show {
    display: flex;
}

.network-warning-text {
    color: #fff;
    font-weight: bold;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(10px);
    border-right: 2px solid #ff8c00;
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.side-menu.open {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.menu-overlay.show {
    display: block;
}

.menu-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 140, 0, 0.3);
}

.menu-header h3 {
    color: #ffa500;
    font-size: 1.5em;
}

.menu-items {
    padding: 1rem 0;
}

.menu-item {
    padding: 1rem 2rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 140, 0, 0.1);
    border-left-color: #ff8c00;
}

.menu-item.active {
    background: rgba(255, 140, 0, 0.2);
    border-left-color: #ff8c00;
}

.page-content {
    display: none;
}

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

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

.info-card {
    background: rgba(15, 20, 45, 0.8);
    border: 2px solid #ff8c00;
    border-radius: 15px;
    padding: 25px;
}

.info-card h3 {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.info-card-value {
    font-size: 1.8em;
    color: #ffa500;
    font-weight: bold;
    margin: 10px 0;
}

.info-card-label {
    color: #b8b8b8;
    font-size: 0.9em;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.calc-input-group {
    margin-bottom: 25px;
}

.calc-input-group label {
    display: block;
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: bold;
}

.calc-input-group input,
.calc-input-group select {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    background: rgba(20, 25, 50, 0.8);
    border: 2px solid #ff8c00;
    border-radius: 10px;
    color: #fff;
}

.calc-input-group input:focus,
.calc-input-group select:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

.input-helper {
    color: #b8b8b8;
    font-size: 0.9em;
    margin-top: 5px;
}

.calc-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6600 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    margin-top: 20px;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.5);
}

.calc-btn:active {
    transform: translateY(0);
}

#calcResults {
    margin-top: 30px;
}

#calcResults table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#calcResults td,
#calcResults th {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px;
    position: relative;
    z-index: 2;
}

header {
    background: rgba(15, 20, 45, 0.8);
    border: 2px solid #ff8c00;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-ticker {
    background: rgba(15, 20, 45, 0.9);
    border: 2px solid #ff8c00;
    border-radius: 10px;
    padding: 15px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-label {
    color: #b8b8b8;
    font-size: 0.9em;
}

.price-value {
    color: #ffa500;
    font-size: 1.2em;
    font-weight: bold;
}

.price-change {
    font-size: 0.9em;
    padding: 3px 8px;
    border-radius: 5px;
}

.price-up {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.price-down {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.logo {
    width: 80px;
    height: 80px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-logo {
    max-width: 400px;
    width: 100%;
}

.main-logo img {
    width: 100%;
    height: auto;
}

h1 {
    font-size: 2.5em;
    color: #ffa500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    color: #ffa500;
    font-size: 0.9em;
    margin-top: 5px;
}

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

.stat-card {
    background: rgba(15, 20, 45, 0.8);
    border: 2px solid #ff8c00;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.stat-card h3 {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2em;
    color: #ffa500;
    font-weight: bold;
    margin: 10px 0;
}

.stat-label {
    color: #b8b8b8;
    font-size: 0.9em;
}

.section {
    background: rgba(15, 20, 45, 0.8);
    border: 2px solid #ff8c00;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
}

h2 {
    color: #fff;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.about-text {
    color: #d0d0d0;
    line-height: 1.8;
    text-align: center;
    font-size: 1.05em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(20, 25, 50, 0.6);
    border: 1px solid #ff8c00;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.feature-card p {
    color: #b8b8b8;
    font-size: 0.95em;
    line-height: 1.6;
}

.faq-item {
    background: rgba(20, 25, 50, 0.6);
    border: 1px solid #ff8c00;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    text-align: left;
    font-size: 1em;
}

.faq-question:hover {
    background: rgba(255, 140, 0, 0.1);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: #b8b8b8;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 20px;
    padding-bottom: 25px;
    max-height: 1000px;
}

.faq-toggle {
    color: #ffa500;
    font-size: 1.5em;
    line-height: 1;
}

footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .nav-header {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .container {
        padding: 10px;
        padding-top: 70px;
    }

    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    header {
        padding: 20px 15px;
        gap: 15px;
        justify-content: flex-start;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    header .logo:last-child {
        display: none;
    }
    
    .main-logo {
        max-width: 280px;
    }
    
    .price-ticker {
        padding: 15px;
        gap: 15px;
        flex-direction: column;
    }
    
    .price-item {
        width: 100%;
        justify-content: space-between;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .about-text {
        font-size: 0.95em;
    }
    
    .calc-input-group label {
        font-size: 1em;
    }
    
    .calc-input-group input,
    .calc-input-group select {
        padding: 12px;
    }
    
    .calc-btn {
        padding: 15px;
        font-size: 1.1em;
    }
    
    #calcResults {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #calcResults table tbody {
        display: table;
        width: 100%;
    }
    
    #calcResults td,
    #calcResults th {
        padding: 12px 10px !important;
        font-size: 0.9em !important;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-value {
        font-size: 1.5em;
    }
    
    .stat-card h3 {
        font-size: 1.1em;
    }
    
    .info-card {
        padding: 20px 15px;
    }
    
    .info-card h3 {
        font-size: 1em;
    }
    
    .info-card-value {
        font-size: 1.4em;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 0.95em;
    }
    
    .faq-answer {
        font-size: 0.9em;
    }
    
    .wallet-connected {
        max-width: 240px;
    }
    
    .wallet-address {
        font-size: 0.6rem;
    }
    
    .wallet-balance {
        font-size: 0.55rem;
    }
    
    .wallet-network {
        font-size: 0.5rem;
    }
    
    .disconnect-btn,
    .switch-network-btn {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }

    .network-warning {
        flex-direction: column;
        top: 65px;
        left: 10px;
        right: 10px;
        transform: none;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
        padding-top: 55px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .section {
        padding: 15px 10px;
    }
    
    .main-logo {
        max-width: 240px;
    }
    
    .connect-wallet-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .nav-link-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .wallet-connected {
        max-width: 200px;
    }
    
    .wallet-address {
        font-size: 0.55rem;
    }
    
    .wallet-balance {
        font-size: 0.5rem;
    }
    
    .wallet-network {
        font-size: 0.45rem;
    }
    
    .disconnect-btn,
    .switch-network-btn {
        font-size: 0.55rem;
        padding: 0.2rem 0.35rem;
    }
    
    #calcResults td,
    #calcResults th {
        padding: 10px 8px !important;
        font-size: 0.85em !important;
    }
    
    .stat-value {
        font-size: 1.3em;
    }
    
    .info-card-value {
        font-size: 1.2em;
    }
}
