:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

p.subtitle {
    color: #64748b;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    background-color: var(--primary);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-danger {
    background-color: #ef4444;
}
.btn-danger:hover { background-color: #dc2626; }

.btn-icon {
    padding: 8px;
    width: auto;
    background: transparent;
    color: #ef4444;
}
.btn-icon:hover { background: #fee2e2; transform: none; }

.token-display {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    word-break: break-all;
    border: 1px solid #e2e8f0;
}

.countdown {
    font-family: monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
    padding: 15px;
    background: #e0e7ff;
    border-radius: 8px;
}

.input-group {
    margin-bottom: 16px;
    text-align: left;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.token-list {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.token-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #334155;
    color: white;
    padding: 12px 24px;
    border-radius: 99px;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.toast.show { opacity: 1; }

.hidden { display: none; }
</style>