:root {
    --bg: #0b1220;
    --card: #131c2e;
    --nested: #1a2540;
    --border: rgba(255,255,255,0.08);
    --border-strong: #2c3a5c;
    --text: #e8edf5;
    --muted: #8a96ad;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59,130,246,0.25);
    --success: #10b981;
    --success-bg: rgba(16,185,129,0.12);
    --success-border: rgba(16,185,129,0.3);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    background-image: radial-gradient(circle at top right, rgba(59,130,246,0.06), transparent 60%);
}

.brand-bar {
    display: flex;
    align-items: center;
    padding: 20px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #60a5fa, #3b82f6);
    box-shadow: 0 0 16px rgba(59,130,246,0.4);
}

.brand-text {
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 15px;
}

.container {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 20px 48px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 16px 0 24px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--muted);
}

.input-wrapper {
    margin-bottom: 18px;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 14px 14px;
    background: var(--nested);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.input-wrapper select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='%238a96ad'><path d='M6 8 0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px;
    padding-right: 36px;
}

.input-wrapper input::placeholder {
    color: var(--muted);
}

.input-wrapper input:hover,
.input-wrapper select:hover {
    border-color: var(--border-strong);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.btn-primary {
    width: 100%;
    min-height: 48px;
    padding: 0 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error {
    color: #f87171;
    font-size: 14px;
    margin: 0 0 10px;
    min-height: 18px;
}

.result-box {
    margin-top: 22px;
    padding: 20px;
    border-radius: 12px;
    background: var(--nested);
    border: 1px solid var(--border);
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
}

.success-box {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--text);
    animation: fadeIn 0.3s ease;
}

.success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pop 0.3s ease;
}

.success-text { font-size: 15px; }
.success-text .datetime { color: var(--muted); margin-bottom: 8px; }
.success-text b { color: var(--text); font-weight: 600; }
.success-warning {
    margin-top: 16px;
    padding: 10px 12px;
    background: rgba(248,113,113,0.12);
    border: 1px solid rgba(248,113,113,0.3);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
    0% { transform: scale(0.4); opacity: 0; }
    80% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

@media (max-width: 480px) {
    .page-title { font-size: 24px; }
    .card { padding: 22px 18px; }
    h2 { font-size: 20px; }
}
