/* BeatMaster Profile System UI (Profile Select, Onboarding, PIN, Manager) */

:root {
  --bm-primary: #00d9ff;
  --bm-bg: #0f2023;
  --bm-surface: #162a2d;
  --bm-surface-2: #1a2c30;
  --bm-border: rgba(255, 255, 255, 0.10);
  --bm-border-strong: rgba(255, 255, 255, 0.16);
  --bm-text: rgba(255, 255, 255, 0.96);
  --bm-muted: rgba(255, 255, 255, 0.68);
  --bm-muted-strong: rgba(255, 255, 255, 0.48);
  --bm-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

/* ========================================
   Base
   ======================================== */

.screen {
  width: 100%;
  min-height: 100dvh;
  padding: 1.25rem 1rem 2rem;
  box-sizing: border-box;
}

.text-muted {
  color: var(--bm-muted);
}

.text-center {
  text-align: center;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  appearance: none;
  border: 1px solid var(--bm-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--bm-text);
  min-height: 2.75rem;
  height: auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(0.75rem, 3vw, 0.9rem);
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  white-space: normal;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn .material-symbols-outlined {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--bm-primary);
  color: #052126;
  border-color: rgba(0, 217, 255, 0.55);
  box-shadow: 0 10px 28px rgba(0, 217, 255, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 34px rgba(0, 217, 255, 0.30);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.btn-tertiary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-lg {
  height: 3.5rem;
  padding: 0 1.5rem;
}

.btn-block {
  width: 100%;
}

/* ========================================
   Profile Select
   ======================================== */

.profile-select-screen {
  max-width: 760px;
  margin: 0 auto;
}

.profile-select-header {
  text-align: center;
  margin: 0.5rem auto 1.25rem;
}

.profile-select-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--bm-text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-select-subtitle {
  margin: 0.25rem 0 0;
  color: var(--bm-muted);
  font-weight: 600;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

@media (min-width: 540px) {
  .profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.profile-empty-state {
  grid-column: 1 / -1;
  padding: 2rem 1.25rem;
  border-radius: 20px;
  border: 1px solid var(--bm-border);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.profile-empty-state .material-symbols-outlined {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.25);
}

.profile-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--bm-border);
  background: rgba(22, 42, 45, 0.75);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  padding: 0.95rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.profile-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 217, 255, 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30);
}

.profile-card-locked {
  opacity: 0.85;
}

.profile-card-menu {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.70);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card-menu:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.profile-avatar,
.profile-avatar-large {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.profile-avatar .material-symbols-outlined {
  font-size: 1.8rem;
}

.profile-info {
  min-width: 0;
}

.profile-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--bm-text);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-meta {
  margin: 0.2rem 0 0;
  min-height: 1.2rem;
}

.profile-last-login {
  margin: 0.3rem 0 0;
  color: var(--bm-muted-strong);
  font-weight: 600;
  font-size: 0.85rem;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ========================================
   Profile Select - Menu Modal
   ======================================== */

.profile-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .profile-menu-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Destructive action stays full width */
  .profile-menu-grid .profile-menu-tile-danger {
    grid-column: 1 / -1;
  }
}

.profile-menu-tile {
  /* Avoid global `button`/`.btn` auto-fixes affecting the layout */
  all: unset;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1.05rem;
  border-radius: 18px;
  border: 1px solid var(--bm-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--bm-text);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.profile-menu-tile:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(0, 217, 255, 0.28);
}

.profile-menu-tile:active {
  transform: scale(0.99);
}

.profile-menu-tile:focus-visible {
  outline: 3px solid rgba(0, 217, 255, 0.35);
  outline-offset: 2px;
}

.profile-menu-tile .material-symbols-outlined {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.78);
}

.profile-menu-tile-danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.10);
  color: #fee2e2;
}

.profile-menu-tile-danger:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
}

.profile-menu-tile-danger .material-symbols-outlined {
  color: rgba(254, 202, 202, 0.92);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-guest {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.78);
}

.badge-locked {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.profile-lock-indicator {
  margin-top: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.10);
  color: #fecaca;
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-lock-indicator .material-symbols-outlined {
  font-size: 1.1rem;
}

/* ========================================
   Onboarding
   ======================================== */

.profile-onboarding-screen {
  max-width: 760px;
  margin: 0 auto;
}

.onboarding-progress {
  width: 100%;
  max-width: 560px;
  margin: 0.5rem auto 1rem;
}

.onboarding-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bm-primary), rgba(0, 217, 255, 0.35));
  box-shadow: 0 10px 18px rgba(0, 217, 255, 0.12);
}

.onboarding-progress-text {
  margin-top: 0.5rem;
  color: var(--bm-muted);
  text-align: center;
  font-weight: 700;
}

.onboarding-content {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid var(--bm-border);
  background: rgba(22, 42, 45, 0.70);
  box-shadow: var(--bm-shadow);
  padding: 1.4rem 1.2rem;
}

.onboarding-step h1,
.onboarding-step h2 {
  margin: 0.5rem 0 0.25rem;
  color: var(--bm-text);
  font-weight: 900;
  line-height: 1.1;
}

.onboarding-step p {
  margin: 0.25rem 0;
  color: var(--bm-muted);
  font-weight: 600;
}

.onboarding-icon {
  display: inline-flex;
  width: 3.25rem;
  height: 3.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.12);
  border: 1px solid rgba(0, 217, 255, 0.22);
  color: var(--bm-primary);
  margin-bottom: 0.6rem;
  font-size: 1.9rem;
}

.form-group {
  margin-top: 1.25rem;
  text-align: left;
}

.form-input {
  width: 100%;
  height: 3.25rem;
  border-radius: 16px;
  border: 1px solid var(--bm-border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--bm-text);
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  border-color: rgba(0, 217, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15);
}

.form-hint {
  margin: 0.55rem 0 0;
  color: var(--bm-muted-strong);
  font-weight: 600;
  font-size: 0.85rem;
}

.avatar-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.avatar-grid-edit {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .avatar-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .avatar-grid-edit {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.avatar-option {
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid var(--bm-border);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.avatar-option .material-symbols-outlined {
  font-size: 1.55rem;
  color: rgba(255, 255, 255, 0.82);
}

.avatar-option:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 217, 255, 0.35);
}

.avatar-option.selected {
  border-color: rgba(0, 217, 255, 0.65);
  background: rgba(0, 217, 255, 0.12);
}

/* ========================================
   Profile Manager
   ======================================== */

.profile-manager-screen {
  max-width: 760px;
  margin: 0 auto;
}

.profile-manager-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0.25rem auto 1rem;
}

.btn-back {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--bm-border);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-back:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
}

.btn-back:active {
  transform: scale(0.98);
}

.profile-manager-header-text {
  flex: 1;
  text-align: center;
  padding-right: 2.75rem;
}

.profile-manager-header-text h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.profile-manager-header-text p {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.tab-navigation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--bm-border);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.tab-button {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.65rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.tab-button .material-symbols-outlined {
  font-size: 1.25rem;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.tab-button:active {
  transform: scale(0.99);
}

.tab-button.active {
  background: rgba(0, 217, 255, 0.12);
  border-color: rgba(0, 217, 255, 0.40);
  color: var(--bm-text);
}

.tab-content {
  margin-top: 1rem;
}

.profile-overview,
.profile-edit,
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-card-large {
  border: 1px solid var(--bm-border);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--bm-shadow);
}

.profile-manager-screen .profile-avatar-large {
  width: 5.25rem;
  height: 5.25rem;
}

.profile-manager-screen .profile-avatar-large .material-symbols-outlined {
  font-size: 2.35rem;
}

.profile-name-large {
  margin: 0.25rem 0 0;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  border: 1px solid var(--bm-border);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  padding: 0.9rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.info-card .material-symbols-outlined {
  font-size: 1.45rem;
  color: rgba(255, 255, 255, 0.80);
}

.info-card h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
}

.info-card p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.70);
  font-weight: 700;
  font-size: 0.85rem;
}

.stats-summary {
  border: 1px solid var(--bm-border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 22px;
  padding: 1.05rem 1rem;
}

.stats-summary h3 {
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-card {
  border: 1px solid var(--bm-border);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  padding: 0.85rem 0.75rem;
  text-align: center;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--bm-text);
  letter-spacing: -0.01em;
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bm-muted-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-actions {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Fix: Entfernt den automatischen linken Rand bei vertikalen Buttons */
.quick-actions .btn + .btn,
.form-actions .btn + .btn,
.profile-actions .btn + .btn {
  margin-left: 0;
}

/* Fix: Margin Reset für Grid-Items (Avatar/Theme Options) */
.avatar-option + .avatar-option,
.theme-option + .theme-option {
  margin-left: 0;
}

.profile-edit .form-group label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.profile-edit .form-group label .material-symbols-outlined {
  font-size: 1.25rem;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.action-card {
  border: 1px solid var(--bm-border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.action-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.action-info .material-symbols-outlined {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.78);
}

.action-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.action-info p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 650;
  font-size: 0.85rem;
}

.action-card .btn {
  flex-shrink: 0;
}

.action-card-danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.text-danger {
  color: #fecaca;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.20);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fee2e2;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.26);
  border-color: rgba(239, 68, 68, 0.55);
}

.theme-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.theme-grid-edit {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .theme-grid {
    grid-template-columns: 1fr 1fr;
  }

  .theme-grid-edit {
    grid-template-columns: 1fr 1fr;
  }
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  border: 1px solid var(--bm-border);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.theme-option:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 217, 255, 0.35);
}

.theme-option.selected {
  border-color: rgba(0, 217, 255, 0.65);
  background: rgba(0, 217, 255, 0.10);
}

.theme-preview {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}

.theme-name {
  margin: 0;
  font-weight: 900;
  color: var(--bm-text);
}

.profile-preview {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.profile-preview-card {
  width: 100%;
  max-width: 320px;
  border-radius: 22px;
  border: 1px solid var(--bm-border);
  background: rgba(0, 0, 0, 0.18);
  padding: 1.1rem;
  text-align: center;
}

.profile-preview-card h3 {
  margin: 0.75rem 0 0;
  font-weight: 900;
  color: var(--bm-text);
}

.onboarding-navigation {
  max-width: 560px;
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.onboarding-navigation .btn {
  width: 100%;
}

/* ========================================
   PIN (Onboarding + Modal)
   ======================================== */

.pin-entry {
  padding: 1rem 0.25rem 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.9rem 0 1rem;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pin-dot.filled {
  background: var(--bm-primary);
  border-color: var(--bm-primary);
}

.pin-error {
  text-align: center;
  color: #fecaca;
  font-weight: 700;
  margin-bottom: 0.75rem;
  min-height: 1.2rem;
}

.pin-keypad {
  --pin-gap: 6px;
  --pin-key-size: clamp(64px, 18vw, 84px);
  display: grid;
  grid-template-columns: repeat(3, var(--pin-key-size));
  grid-auto-rows: var(--pin-key-size);
  gap: var(--pin-gap);
  width: fit-content;
  margin: 0 auto;
  align-items: stretch;
  justify-content: center;
}

.pin-key {
  /* Reset global `button { min-height/padding }` rules from responsive-fixes.css */
  all: unset;
  box-sizing: border-box;
  width: var(--pin-key-size);
  height: var(--pin-key-size);
  border: 1px solid var(--bm-border-strong);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--bm-text);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.pin-key:hover {
  border-color: rgba(0, 217, 255, 0.55);
  background: rgba(0, 217, 255, 0.10);
}

.pin-key:active {
  transform: scale(0.98);
}

.pin-key:focus-visible {
  outline: 3px solid rgba(0, 217, 255, 0.35);
  outline-offset: 2px;
}

.pin-key-spacer {
  pointer-events: none;
  opacity: 0.18;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
  cursor: default;
}

.pin-key-backspace .material-symbols-outlined {
  font-size: 1.55rem;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.shake {
  animation: shake 0.5s ease;
}

/* ========================================
   Theme avatar backgrounds
   ======================================== */

[data-theme="default"] { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
[data-theme="blue"] { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
[data-theme="green"] { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
[data-theme="orange"] { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* Make sure avatar text stays readable on gradients */
.profile-avatar,
.profile-avatar-large {
  color: rgba(255, 255, 255, 0.92);
}
