* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: #0F172A;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    color: #0F172A;
    position: relative;
}

.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, #1E3A8A 0%, #0F172A 75%);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
}

.hero {
    text-align: center;
    margin-bottom: 28px;
    color: #FFFFFF;
}

.hero-logo-box {
    display: flex;
    justify-content: center;
}

.hero h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    font-size: 15px;
    font-weight: 600;
    color: #93C5FD;
    margin-bottom: 8px;
}

.hero-desc {
    font-size: 13.5px;
    color: #CBD5E1;
}

.card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card.hidden {
    display: none !important;
}

.field {
    margin-bottom: 22px;
}

.field label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.field label span {
    color: #DC2626;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #CBD5E1;
    border-radius: 9px;
    font-size: 14.5px;
    outline: none;
    transition: all 0.2s ease;
    background: #FAFAFA;
}

.field input:focus {
    border-color: #2563EB;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.field small {
    display: block;
    font-size: 12px;
    color: #64748B;
    margin-top: 6px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
    color: #FFFFFF;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.3);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #15803D 0%, #166534 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 20px -3px rgba(22, 163, 74, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Result Card Styling */
.result-card {
    text-align: center;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #DCFCE7;
    color: #15803D;
    font-weight: 700;
    font-size: 13.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.result-hint {
    font-size: 13.5px;
    color: #475569;
    margin-bottom: 18px;
    line-height: 1.5;
}

.license-box {
    background: #F8FAFC;
    border: 2px dashed #94A3B8;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.license-box code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 15px;
    font-weight: 800;
    color: #1E3A8A;
    letter-spacing: 1.5px;
    word-break: break-all;
}

.btn-copy {
    background: #2563EB;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: #1D4ED8;
}

.result-meta {
    background: #F1F5F9;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 22px;
    text-align: left;
}

.result-meta div {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 5px 0;

}

.result-meta div:not(:last-child) {
    border-bottom: 1px solid #E2E8F0;
}

.result-meta span {
    color: #64748B;
}

.result-meta strong {
    color: #0F172A;
    font-weight: 700;
}

.btn-secondary {
    width: 100%;
    background: #E2E8F0;
    color: #334155;
    border: none;
    padding: 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #CBD5E1;
}

.footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: #94A3B8;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1E293B;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 999;
}

.toast.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.toast-error {
    background: #991B1B;
}

.toast-success {
    background: #15803D;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}
