* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #ffffff;
    line-height: 1.6;
    text-align: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.78)),
        url('/images/background.png') no-repeat center center fixed;
    background-size: cover;
}

a {
    color: #ffd700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-nav {
    background: rgba(0, 0, 0, 0.85);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.nav-links a {
    color: #ffffff;
    font-weight: 600;
}

.hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    width: 100%;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.45);
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700, 0 0 20px rgba(255, 215, 0, 0.7);
}

h2 {
    color: #ffd700;
    margin-top: 0;
}

.main-content {
    padding: 20px 12px 40px;
}

.container {
    max-width: 900px;
    margin: 24px auto;
    padding: 24px 20px;
    background: rgba(0, 0, 0, 0.62);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.contract {
    word-break: break-all;
    color: #ffd700;
    font-weight: bold;
}

.button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    background: #ffd700;
    color: #111111;
    font-weight: bold;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    text-decoration: none;
}

.chart-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.chart-wrapper iframe {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 12px;
    background: #111111;
}

.legal-page {
    text-align: left;
}

.legal-page ul {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 16px;
}

.site-footer {
    padding: 24px 20px;
    background: rgba(0, 0, 0, 0.85);
    margin-top: 40px;
}

.site-footer p {
    margin: 8px 0;
}

@media (max-width: 700px) {
    .nav-inner {
        flex-direction: column;
    }

    .chart-wrapper iframe {
        height: 320px;
    }

    .container {
        padding: 20px 16px;
    }
}

.auth-container {
    max-width: 520px;
    text-align: left;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: #ffd700;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 16px 0;
}

.alert-error {
    background: rgba(200, 30, 30, 0.18);
    border: 1px solid rgba(255, 80, 80, 0.35);
    color: #ffd6d6;
}

.auth-links {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1rem;
}

table th,
table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

code {
    display: inline-block;
    padding: 4px 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    word-break: break-all;
}