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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #fafafa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.container {
    max-width: 600px;
    width: 100%;
}

header {
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header h1 a:hover {
    color: #2563eb;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #888;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #fafafa;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #888;
    margin-bottom: 2rem;
}

.purchase-section {
    margin: 2rem 0;
}

.buy-button {
    background: #2563eb;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.buy-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.buy-button:active {
    transform: translateY(0);
}

.button {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.button:hover {
    background: #1d4ed8;
}

.button.secondary {
    background: #333;
}

.button.secondary:hover {
    background: #444;
}

hr {
    border: none;
    border-top: 1px solid #333;
    margin: 2rem 0;
}

.info-cards {
    display: grid;
    gap: 1rem;
}

.info-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.help-text {
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.help-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.help-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.help-section p {
    color: #888;
    font-size: 0.875rem;
}

.help-section a {
    color: #2563eb;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #333;
    border-radius: 0.5rem;
    background: #1a1a1a;
    color: #fafafa;
    font-size: 1rem;
}

input[type="email"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #2563eb;
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: #2563eb;
    color: #fafafa;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #1d4ed8;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.local-banner {
    background: #422006;
    border: 1px solid #ea580c;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
}

.message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.message:empty {
    display: none;
}

.message.success {
    background: #052e16;
    border: 1px solid #16a34a;
    color: #4ade80;
}

.message.error {
    background: #450a0a;
    border: 1px solid #dc2626;
    color: #f87171;
}

.machines-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.machine-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1rem;
}

.machine-fingerprint {
    font-family: monospace;
    font-size: 0.875rem;
    word-break: break-all;
    margin-bottom: 0.5rem;
}

.machine-meta {
    color: #666;
    font-size: 0.75rem;
}

.no-machines {
    color: #888;
    text-align: center;
    padding: 2rem;
}

.thank-you {
    text-align: center;
}

.thank-you .checkmark {
    width: 64px;
    height: 64px;
    background: #052e16;
    border: 2px solid #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #4ade80;
    margin: 0 auto 1.5rem;
}

.thank-you h2 {
    margin-bottom: 0.5rem;
}

.next-steps {
    text-align: left;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.next-steps h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.next-steps ol {
    margin-left: 1.25rem;
    color: #ccc;
}

.next-steps li {
    margin-bottom: 0.5rem;
}

.next-steps a {
    color: #2563eb;
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
