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

body {
    font-family: 'Lexend Deca', sans-serif;
    background-color: #f9fafb;
    padding-bottom: 40px;
}

.bg-header {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 140px;
    background-color: #FE3301;
    z-index: 0;
}

.main-container {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 24px 12px 0 12px;
}

.wallet-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 768px;
    margin: 8px auto 0 auto;
}

.card-title {
    text-align: center;
    font-weight: 700;
    font-size: 26px;
    color: #111827;
    margin-bottom: 8px;
}

.card-subtitle {
    text-align: center;
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 35px;
}

.input-group { margin-bottom: 20px; }

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.custom-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.custom-input:focus {
    border-color: #FE3301;
    box-shadow: 0 0 0 3px rgba(82, 123, 255, 0.1);
}

.custom-input.input-error {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.password-wrapper { position: relative; }
.password-wrapper .custom-input { padding-right: 45px; }

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
}

.alert {
    display: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
}
.alert.error   { display: flex; background-color: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert.success { display: flex; background-color: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.alert.warning { display: flex; background-color: #fffbeb; border: 1px solid #fde68a; color: #d97706; }
.alert.info    { display: flex; background-color: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; }
.alert ul { margin: 0; padding-left: 18px; }
.alert ul li { margin-bottom: 4px; }

.btn-save {
    width: 100%;
    background-color: #FE3301;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-save:hover:not(:disabled) { background-color: #d92c00; }
.btn-save:disabled { background-color: #93aeff; cursor: not-allowed; opacity: 0.7; }

.spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    font-size: 14px;
}
.footer-link { color: #6b7280; text-decoration: none; font-weight: 500; }
.divider { margin: 0 12px; color: #d1d5db; }
.footer-link-active { color: #FE3301; text-decoration: none; font-weight: 600; margin-left: 5px; }
.footer-link-active:hover { text-decoration: underline; }

.nirosafe-wrapper { margin-bottom: 20px; }
.nirosafe-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: border-color 0.3s;
}
.nirosafe-card.verified { border-color: #10b981; }
.nirosafe-left { display: flex; align-items: center; cursor: pointer; flex-grow: 1; }
.nirosafe-left input { position: absolute; opacity: 0; }

.box {
    height: 28px; width: 28px;
    background-color: #fff;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.niro-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid #FE3301;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.checkmark {
    display: none;
    width: 6px; height: 11px;
    border: solid #10b981;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-bottom: 3px;
}

.nirosafe-text { font-size: 14px; color: #4b5563; user-select: none; transition: color 0.3s; }

.nirosafe-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid #f3f4f6;
    padding-left: 12px;
    margin-left: 8px;
}
.brand-logo { color: #FE3301; font-size: 20px; }
.brand-name { font-size: 8px; font-weight: 700; color: #9ca3af; text-transform: uppercase; margin-top: 2px; }

.is-loading.box { border-color: #FE3301; }
.is-loading .niro-spinner { display: block; }
.is-success.box { border-color: #10b981; }
.is-success .checkmark { display: block; }
.is-success .niro-spinner { display: none; }

.success-card { text-align: center; padding: 20px 0; }
.success-icon { font-size: 60px; color: #16a34a; margin-bottom: 16px; }
.success-title { font-size: 22px; font-weight: 700; color: #111827; margin-bottom: 10px; }
.success-desc { font-size: 14px; color: #6b7280; line-height: 1.7; }
.success-code {
    display: inline-block;
    background-color: #fff7ed;
    border: 1px dashed #FE3301;
    color: #FE3301;
    font-weight: 700;
    font-size: 20px;
    padding: 10px 28px;
    border-radius: 8px;
    margin: 14px 0;
    letter-spacing: 2px;
}

.verify-icon { font-size: 64px; margin-bottom: 20px; }
.verify-icon.success { color: #16a34a; }
.verify-icon.error   { color: #dc2626; }
.verify-icon.warning { color: #d97706; }
.verify-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 30px;
}
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FE3301;
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    text-decoration: none;
    transition: 0.3s;
}
.btn-action:hover { background-color: #d92c00; }
