:root {
    --bg-color: #0b0e14;
    --card-color: #151a24;
    --primary-neon: #00ffcc;
    --secondary-neon: #00bfff;
    --text-color: #ffffff;
    --text-muted: #8a99ad;
    --danger: #ff3366;
    --warning: #ffcc00;
}
* {
    box-sizing: border-box;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.btn-connect {
    background: transparent;
    border: 2px solid var(--primary-neon);
    color: var(--primary-neon);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}
.btn-connect:hover {
    background: var(--primary-neon);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.6);
}
.btn-connect:disabled {
    opacity: 0.6;
    cursor: wait;
}
.hero {
    text-align: center;
    margin: 60px 20px;
    max-width: 800px;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero h1 span {
    color: var(--primary-neon);
}
.hero p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
}
.main-card {
    background-color: var(--card-color);
    border: 1px solid #222d3d;
    border-radius: 20px;
    padding: 40px;
    width: calc(100% - 40px);
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-bottom: 30px;
}
.price-tag {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-neon);
    margin-bottom: 10px;
}
.entry-description {
    color: var(--text-muted);
    margin-bottom: 20px;
}
.stats {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    background: #0d121a;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
}
#userStatus {
    color: var(--danger);
    font-weight: bold;
}
.network-status {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}
.wallet-info {
    display: none;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}
.wallet-info.show {
    display: block;
}
.action-btn {
    width: 100%;
    background: linear-gradient(45deg, var(--primary-neon), var(--secondary-neon));
    border: none;
    color: var(--bg-color);
    padding: 15px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.4);
}
.action-btn:disabled {
    background: #2a3547;
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.info-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
}
.dashboard {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 20px;
}
.queue-grid {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 0 20px;
    margin-bottom: 20px;
}
.queue-box {
    background: var(--card-color);
    border: 1px solid #222d3d;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}
.queue-box h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-muted);
}
.queue-box .count {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-neon);
}
.queue-detail {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}
.section-title {
    width: 100%;
    max-width: 900px;
    text-align: center;
    margin: 35px 0 20px;
    padding: 0 20px;
}
.section-title h2 {
    margin: 0;
    font-size: 24px;
}
.section-title p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}
.data-grid {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 0 20px;
    margin-bottom: 20px;
}
.data-card {
    background: var(--card-color);
    border: 1px solid #222d3d;
    border-radius: 12px;
    padding: 18px;
    min-height: 100px;
}
.data-card .label {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 8px;
}
.data-card .value {
    color: var(--primary-neon);
    font-size: 22px;
    font-weight: bold;
    word-break: break-word;
}
.data-card .sub-value {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 5px;
}
.user-panel {
    width: 100%;
    max-width: 900px;
    background: var(--card-color);
    border: 1px solid #222d3d;
    border-radius: 15px;
    padding: 25px;
    margin: 0 20px 20px;
}
.user-panel-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-neon);
}
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.user-stat {
    background: #0d121a;
    border-radius: 10px;
    padding: 15px;
}
.user-stat .label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.user-stat .value {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}
.message {
    display: none;
    width: calc(100% - 40px);
    max-width: 450px;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}
.message.show {
    display: block;
}
.message.error {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--danger);
    color: #ff6688;
}
.message.success {
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
}
.message.warning {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}
.loading {
    color: var(--text-muted) !important;
    font-size: 14px !important;
}
@media (max-width: 600px) {
    .hero {
        margin-top: 30px;
    }
    .hero h1 {
        font-size: 34px;
    }
    .hero p {
        font-size: 16px;
    }
    .main-card {
        padding: 25px;
    }
    header {
        padding: 15px;
    }
    .logo {
        font-size: 20px;
    }
    .btn-connect {
        padding: 8px 14px;
        font-size: 12px;
    }
    .data-card .value {
        font-size: 19px;
    }
    .user-panel {
        margin-left: 20px;
        margin-right: 20px;
        width: calc(100% - 40px);
    }
}
.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
}
.hero-logo img {
    display: block;
    width: min(330px, 70vw);
    height: auto;
    object-fit: contain;
}