@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --bg: #05060f;
    --panel: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.12);
    --text: #e8edf7;
    --muted: #a9b4cc;
    --accent: #6ad7ff;
    --accent-2: #ff9f6a;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --radius: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(106, 215, 255, 0.12), transparent 32%),
                radial-gradient(circle at 80% 0%, rgba(255, 159, 106, 0.12), transparent 30%),
                #05060f;
    color: var(--text);
    min-height: 100vh;
    padding: 28px 0 60px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

.page {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.hero {
    background: linear-gradient(135deg, rgba(106, 215, 255, 0.16), rgba(255, 159, 106, 0.12));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 20px 28px;
    box-shadow: var(--shadow);
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
}

.hero p {
    margin: 6px 0 0;
    color: var(--muted);
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.back-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    text-decoration: none;
}

.back-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow);
}

.primary-button {
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #05060f;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(106, 215, 255, 0.28);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(255, 159, 106, 0.35);
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 16px;
}

.ad-slot {
    display: flex;
    justify-content: center;
    margin: 16px auto 20px;
}

.ad-slot-top {
    margin-top: 16px;
}

.ad-slot-mid {
    margin-bottom: 20px;
}

.ad-unit {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-decoration: none;
}

.ad-unit img {
    display: block;
    max-width: 100%;
    height: auto;
}

.ad-728x90 {
    width: 728px;
    height: 90px;
}

.ad-468x60 {
    width: 468px;
    height: 60px;
}

.ad-320x50 {
    width: 320px;
    height: 50px;
}

.ad-300x250 {
    width: 300px;
    height: 250px;
}

.ad-mobile {
    display: none;
}

@media (max-width: 768px) {
    .ad-desktop {
        display: none;
    }

    .ad-mobile {
        display: block;
    }

    .ad-slot {
        margin: 14px auto 18px;
    }
}

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

.card {
    background: #080916;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
}

.card label {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #0b0c1c;
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
}

.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.field {
    flex: 1;
    min-width: 200px;
}

.toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #080916;
    color: var(--text);
    font-weight: 600;
}

.output {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 600;
}

.card .value {
    font-size: 1.3rem;
    font-weight: 700;
    word-break: break-all;
}

.status {
    margin: 10px 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.status.error {
    color: #ff9f9f;
}

.copy-button {
    margin-top: 8px;
}

.info-section {
    display: grid;
    gap: 16px;
}

.info-block {
    background: #080916;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
}

.info-block h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.info-block p {
    color: var(--muted);
    margin: 0 0 10px;
}

.info-block ul {
    margin: 0 0 6px 18px;
    color: var(--muted);
    line-height: 1.5;
}

.page-footer {
    width: min(1100px, 92vw);
    margin: 20px auto 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-links a {
    color: var(--accent);
    font-weight: 700;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .hero-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .actions {
        width: 100%;
    }
}
