[hidden] { display: none !important; }

.totp-card { padding: 28px; }
.totp-title-bar { background: linear-gradient(135deg, var(--site-dark) 0%, var(--site-dark-2) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.totp-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; }

.totp-privacy { display: flex; gap: 12px; align-items: flex-start; background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 10px; padding: 14px 16px; margin: 0 0 22px; font-size: .9em; color: #134e4a; }
.totp-privacy i { color: var(--site-dark); margin-top: 3px; }
.totp-privacy p { margin: 0; }

.totp-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.totp-field label, .totp-field-label { font-weight: 600; font-size: .9em; color: #374151; }
.totp-field-hint { font-size: .82em; color: #6b7280; margin: 0; }
.totp-field input[type="text"], .totp-field input[type="number"], .totp-field select {
    border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: .95em; background: #fff; outline: none; transition: border-color .15s ease; width: 100%; box-sizing: border-box;
}
.totp-field input[type="text"] { font-family: "Courier New", monospace; letter-spacing: .04em; }
.totp-field input:focus, .totp-field select:focus { border-color: var(--site-light); }
.totp-field input:focus-visible, .totp-field select:focus-visible, .totp-btn:focus-visible, .totp-clear:focus-visible { outline: 3px solid var(--site-light); outline-offset: 2px; }

.totp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.totp-row .totp-field { margin-bottom: 0; }

.totp-advanced { margin: 4px 0 18px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 16px; }
.totp-advanced summary { cursor: pointer; font-weight: 600; font-size: .9em; color: #374151; }
.totp-advanced .totp-field { margin: 14px 0 4px; }

.totp-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; font-size: .9em; margin: 0 0 16px; }

.totp-output { background: #f7f8fa; border: 1px solid #eee; border-radius: 12px; padding: 22px 20px; text-align: center; margin-bottom: 14px; }
.totp-code { font-family: "Courier New", monospace; font-size: 2.6em; font-weight: 700; letter-spacing: .12em; color: var(--site-dark); word-break: break-all; margin: 0 0 12px; }
.totp-countdown { font-size: .92em; color: #374151; margin: 0 0 12px; }
.totp-bar { height: 10px; background: #e5e7eb; border-radius: 10px; overflow: hidden; margin: 0 auto; max-width: 420px; }
.totp-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--site-light), var(--site-dark)); border-radius: 10px; transition: width .25s linear; }
.totp-bar.totp-urgent .totp-bar-fill { background: #d97706; }

.totp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.totp-btn { display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 30px; padding: 9px 20px; font-weight: 600; font-size: .92em; cursor: pointer; transition: background .2s ease; }
.totp-btn-primary { background: var(--site-dark); color: #fff; }
.totp-btn-primary:hover { background: var(--site-dark-2); }
.totp-clear { background: #f3f4f6; color: #374151; border: 1px solid #ddd; border-radius: 30px; padding: 9px 20px; font-weight: 600; font-size: .92em; cursor: pointer; }
.totp-clear:hover { background: #eceef1; }
.totp-copied-msg { font-size: .85em; font-weight: 600; color: var(--site-success); display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 600px) {
    .totp-card { padding: 22px 18px; }
    .totp-title-bar { margin: -22px -18px 20px; }
    .totp-row { grid-template-columns: 1fr; }
    .totp-code { font-size: 2em; letter-spacing: .06em; }
    .totp-actions { flex-direction: column; }
    .totp-btn, .totp-clear { width: 100%; justify-content: center; box-sizing: border-box; }
}
