:root {
  --bg: #141414; --surface: #1f1f1f; --surface2: #2a2a2a; --surface3: #181818;
  --accent: #E50914; --text: #e5e5e5; --muted: #999; --radius: 4px;
  --border: #444; --track-bg: rgba(255,255,255,.15);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--text); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Navbar */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem; padding: .8rem 4%; height: 64px;
  background: linear-gradient(to bottom, rgba(0,0,0,.9), transparent);
  transition: background .3s;
}
#navbar.scrolled { background: rgba(20,20,20,.98); }
.nav-logo { font-size: 2rem; font-weight: 900; color: var(--accent); letter-spacing: 1px; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-link { font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; font-size: 1.2rem; }
.nav-actions button:hover { opacity: .7; }
#btn-user { display: flex; align-items: center; gap: .5rem; padding: .2rem .4rem; border-radius: var(--radius); }
#btn-user:hover { background: rgba(255,255,255,.08); opacity: 1; }
#nav-user-name { font-size: .82rem; color: var(--muted); }

/* Search overlay */
#search-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.85);
  display: flex; flex-direction: column; align-items: center; padding-top: 15vh;
}
.search-box { display: flex; width: min(600px, 90%); }
#search-input {
  flex: 1; padding: .8rem 1rem; background: var(--surface2); border: 1px solid var(--border);
  border-right: none; border-radius: var(--radius) 0 0 var(--radius);
  color: var(--text); font-size: 1.1rem; outline: none;
}
#btn-search-close { padding: .8rem 1rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 0 var(--radius) var(--radius) 0; }
#search-results { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; width: min(900px, 90%); justify-content: center; }

/* App */
#app { padding-top: 64px; }

/* Hero */
#hero {
  position: relative; height: 80vh; overflow: hidden;
}
.hero-track {
  display: flex; height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.hero-slide {
  flex: 0 0 100%; position: relative; height: 100%;
  display: flex; align-items: flex-end; padding: 0 4% 8%;
  background-size: cover; background-position: center center;
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 40%, rgba(0,0,0,.4) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 480px; }
.hero-title { font-size: clamp(2rem, 4vw, 4rem); font-weight: 800; margin-bottom: .4rem; text-shadow: 2px 2px 8px rgba(0,0,0,.8); }
.hero-meta { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.badge { padding: .1rem .45rem; border: 1px solid #888; border-radius: 2px; font-size: .7rem; color: #ccc; }
.badge.hdr { border-color: #f90; color: #f90; }
.rating { color: #46d369; font-weight: 700; }
.hero-overview { font-size: .9rem; line-height: 1.5; margin-bottom: 1rem; opacity: .9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-btns { display: flex; gap: .8rem; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s, background .2s;
}
#hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(0,0,0,.85); }
.hero-arrow.left { left: 1.5rem; }
.hero-arrow.right { right: 1.5rem; }
.hero-dots { position: absolute; bottom: 3.5rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: .5rem; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .2s, transform .2s; }
.hero-dot.active { background: #fff; transform: scale(1.3); }
.btn-primary { background: #fff; color: #000; padding: .65rem 1.6rem; border-radius: var(--radius); font-weight: 700; transition: background .2s; }
.btn-primary:hover { background: rgba(255,255,255,.8); }
.btn-secondary { background: rgba(109,109,110,.7); color: #fff; padding: .65rem 1.6rem; border-radius: var(--radius); font-weight: 700; transition: background .2s; }
.btn-secondary:hover { background: rgba(109,109,110,.5); }

/* Carousels */
.carousel-section { padding: 1.5rem 0 .5rem; }
.carousel-title { font-size: 1.15rem; font-weight: 700; padding: 0 4%; margin-bottom: .8rem; }
.carousel-wrap { position: relative; }
.carousel-track { display: flex; gap: .4rem; padding: 0 4%; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-arrow {
  position: absolute; top: 0; bottom: 0; z-index: 10; width: 4%;
  background: rgba(20,20,20,.65); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; opacity: 0; transition: opacity .2s;
}
.carousel-wrap:hover .carousel-arrow { opacity: 1; }
.carousel-arrow.left { left: 0; }
.carousel-arrow.right { right: 0; }

/* Cards */
.card { flex: 0 0 calc(14.28% - .35rem); min-width: 100px; border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s; position: relative; }
.card:hover { transform: scale(1.08); z-index: 5; box-shadow: 0 8px 30px rgba(0,0,0,.8); }
.card-poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: var(--surface2); display: block; }
.card-info { padding: .3rem .4rem; background: var(--surface); }
.card-title { font-size: .7rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: .62rem; color: var(--muted); margin-top: .15rem; display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.card-prog { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--track-bg); }
.card-prog-fill { height: 100%; background: var(--accent); }
.card-bookmark, .card-download, .card-remove {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: .8rem; font-weight: 700; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s, background .2s;
  z-index: 2;
}
.card-bookmark { top: .3rem; right: .3rem; }
.card-download { top: .3rem; left: .3rem; }
.card-remove { bottom: .5rem; right: .3rem; font-size: .7rem; }
.card:hover .card-bookmark, .card:hover .card-download, .card:hover .card-remove, .card-bookmark.active { opacity: 1; }
.card-bookmark.active { background: var(--accent); }
.card-download:hover { background: rgba(255,255,255,.25); }
.card-remove:hover { background: rgba(180,0,0,.8); }
.card-new-badge {
  position: absolute; top: .4rem; left: .4rem;
  background: var(--accent); color: #fff;
  font-size: .6rem; font-weight: 800; letter-spacing: .06em;
  padding: .15rem .4rem; border-radius: 3px;
  pointer-events: none;
}

/* Stats section */
.stats-section { padding: 2.5rem 4vw 3rem; border-top: 1px solid #222; margin-top: 1rem; }
.stats-title { font-size: 1.1rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.5rem; }
.stats-totals { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.stats-total { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.stats-total[data-page]:hover .stats-num { color: #fff; }
.stats-total[data-page]:hover .stats-label { color: #aaa; }
.stats-num { font-size: 2.8rem; font-weight: 900; line-height: 1; color: var(--accent); }
.stats-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stats-divider { width: 1px; height: 3rem; background: #333; }
.stats-genres { display: flex; flex-wrap: wrap; gap: .5rem; }
.stats-genre-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem; border-radius: 20px;
  border: 1px solid #444; background: transparent;
  color: #ccc; font-size: .85rem; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.stats-genre-btn:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.stats-genre-count { font-size: .75rem; color: var(--muted); background: rgba(255,255,255,.08); padding: .1rem .45rem; border-radius: 10px; }
.stats-genre-btn:hover .stats-genre-count { color: #bbb; }

/* Genre chips (grid page) */
.genre-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.genre-chip {
  padding: .3rem .9rem; border-radius: 20px; font-size: .8rem;
  border: 1px solid #555; color: #aaa; background: transparent;
  transition: border-color .15s, color .15s, background .15s;
}
.genre-chip:hover { border-color: #fff; color: #fff; }
.genre-chip.active { background: #fff; color: #000; border-color: #fff; }
.genre-chip-count { font-size: .72rem; opacity: .6; margin-left: .15rem; }
.genre-chip.active .genre-chip-count { opacity: .5; }

/* Genre tags (modal) */
.modal-genres { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.genre-tag {
  padding: .2rem .7rem; border-radius: 20px; font-size: .75rem;
  border: 1px solid #444; color: #aaa;
}

/* Modal */
#modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 2rem; }
#modal-content { background: var(--surface3); border-radius: 8px; width: min(850px, 95%); max-height: 90vh; overflow-y: auto; position: relative; }
.modal-backdrop { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px 8px 0 0; }
.modal-backdrop-placeholder { width: 100%; aspect-ratio: 16/9; background: var(--surface2); border-radius: 8px 8px 0 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--muted); }
.modal-close { position: absolute; top: .9rem; right: .9rem; width: 30px; height: 30px; background: var(--surface2); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1; }
.modal-body { padding: 1.4rem; }
.modal-title { font-size: 1.55rem; font-weight: 800; margin-bottom: .4rem; }
.modal-meta { display: flex; gap: .8rem; font-size: .82rem; color: var(--muted); margin-bottom: .8rem; align-items: center; flex-wrap: wrap; }
.modal-overview { font-size: .9rem; line-height: 1.6; margin-bottom: 1.2rem; }
.modal-cast { font-size: .82rem; color: var(--muted); margin-bottom: 1.2rem; }
.modal-btns { display: flex; gap: .8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.episode-item { display: flex; gap: 1rem; align-items: center; padding: .7rem; border-radius: var(--radius); cursor: pointer; transition: background .2s; }
.episode-item:hover { background: var(--surface2); }
.ep-num { width: 30px; text-align: center; color: var(--muted); font-size: .85rem; }
.ep-title { font-size: .85rem; flex: 1; }
.ep-prog { height: 3px; background: var(--track-bg); border-radius: 2px; margin-top: 4px; }
.ep-prog-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.season-header { font-size: 1rem; font-weight: 700; padding: 1rem 0 .5rem; }

/* Player */
#player-page { position: fixed; inset: 0; z-index: 500; background: #000; }
#player-container { width: 100%; height: 100%; position: relative; }
#video-el { width: 100%; height: 100%; object-fit: contain; }
#player-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; transition: opacity .3s; pointer-events: none; }
#player-container.controls-visible #player-ui, #player-container.paused #player-ui { opacity: 1; pointer-events: auto; }
#player-container:not(.controls-visible):not(.paused) { cursor: none; }
#player-top { padding: 1.5rem 2rem; background: linear-gradient(to bottom, rgba(0,0,0,.8), transparent); display: flex; align-items: center; gap: 1.2rem; }
#player-back { background: rgba(0,0,0,.5); padding: .4rem .9rem; border-radius: var(--radius); font-size: .9rem; }
#player-title { font-size: 1rem; font-weight: 600; }
#player-controls { padding: .8rem 2rem 1.8rem; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); }
#seek-row { display: flex; align-items: center; gap: 1rem; margin-bottom: .7rem; }
#seek-track { flex: 1; position: relative; height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; }
#seek-progress, #seek-buffered { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; pointer-events: none; }
#seek-progress { background: var(--accent); }
#seek-buffered { background: rgba(255,255,255,.18); }
#seek-bar { position: absolute; inset: -8px 0; width: 100%; opacity: 0; cursor: pointer; }
#time-display { font-size: .75rem; color: var(--muted); white-space: nowrap; }
#controls-bottom { display: flex; align-items: center; gap: .8rem; }
.ctrl-btn { font-size: 1rem; padding: .3rem .55rem; color: #fff; opacity: .8; transition: opacity .2s; border-radius: var(--radius); }
.ctrl-btn:hover { opacity: 1; background: rgba(255,255,255,.1); }
#vol-group { display: flex; align-items: center; gap: .4rem; }
#volume-bar { width: 70px; accent-color: #fff; }
#quality-badge { font-size: .72rem; border: 1px solid #999; padding: .1rem .4rem; border-radius: 2px; color: #ccc; }
#btn-fullscreen { margin-left: auto; }

/* Utils */
.hidden { display: none !important; }
.spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 5rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Profile screen */
#profile-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
}
.ps-screen { text-align: center; padding: 4vh 2vw; }
.ps-title { font-size: clamp(1.8rem, 3.5vw, 4rem); font-weight: 700; margin-bottom: 5vh; }
.ps-list { display: flex; flex-wrap: wrap; gap: clamp(1rem, 2.5vw, 3rem); justify-content: center; max-width: 90vw; margin: 0 auto; }
.ps-item {
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  cursor: pointer; padding: clamp(.5rem, 1vw, 1.2rem); border-radius: 6px;
  width: clamp(100px, 10vw, 160px); position: relative; transition: opacity .15s;
}
.ps-avatar-wrap {
  border-radius: 50%; border: 3px solid transparent; transition: border-color .15s; line-height: 0;
}
.ps-item:not(.ps-managing):hover .ps-avatar-wrap { border-color: #fff; }
.ps-name { font-size: clamp(.8rem, 1.1vw, 1.2rem); color: var(--muted); transition: color .15s; }
.ps-item:not(.ps-managing):hover .ps-name { color: #fff; }
.ps-add-icon {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  border: 3px dashed #555; display: flex; align-items: center;
  justify-content: center; font-size: clamp(1.5rem, 3vw, 3rem); color: #555; line-height: 1;
  transition: border-color .15s, color .15s;
}
.ps-add:not(.ps-managing):hover .ps-add-icon { border-color: #fff; color: #fff; }
.ps-edit-btn, .ps-del-btn {
  position: absolute; width: clamp(20px, 2vw, 28px); height: clamp(20px, 2vw, 28px);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: clamp(.6rem, .8vw, .9rem); z-index: 1;
}
.ps-edit-btn { top: 2px; right: clamp(22px, 2.5vw, 32px); background: rgba(255,255,255,.25); }
.ps-del-btn { top: 2px; right: 2px; background: var(--accent); }
.ps-footer { margin-top: 4vh; }
.ps-manage-btn {
  background: transparent; border: 1px solid #555; color: #aaa;
  padding: clamp(.4rem, .7vh, .8rem) clamp(1rem, 2vw, 2.5rem);
  border-radius: 4px; font-size: clamp(.8rem, 1vw, 1.1rem);
  transition: border-color .15s, color .15s;
}
.ps-manage-btn:hover { border-color: #fff; color: #fff; }

/* Profile form modal */
.ps-modal-overlay {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(0,0,0,.78); display: flex; align-items: center; justify-content: center;
}
.ps-modal {
  background: var(--surface2); border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 3rem); width: clamp(280px, 35vw, 560px);
}
.ps-modal h2 { font-size: clamp(1.2rem, 1.8vw, 2rem); margin-bottom: clamp(1rem, 2vh, 2rem); text-align: center; }
.ps-form { display: flex; flex-direction: column; align-items: center; gap: clamp(.7rem, 1.5vh, 1.2rem); }
.ps-av-preview { line-height: 0; }
.ps-form-row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.ps-photo-btn {
  background: rgba(255,255,255,.08); border: 1px solid #555; color: #ccc;
  padding: clamp(.35rem, .6vh, .6rem) clamp(.8rem, 1.2vw, 1.2rem);
  border-radius: 4px; font-size: clamp(.75rem, .9vw, 1rem); transition: background .15s;
}
.ps-photo-btn:hover { background: rgba(255,255,255,.16); }
.ps-name-input {
  width: 100%; padding: clamp(.6rem, 1vh, 1rem) 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 4px; color: var(--text);
  font-size: clamp(.9rem, 1.1vw, 1.3rem); text-align: center;
}
.ps-name-input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.ps-colors { display: flex; gap: clamp(.3rem, .6vw, .8rem); flex-wrap: wrap; justify-content: center; }
.ps-swatch {
  width: clamp(24px, 2.5vw, 40px); height: clamp(24px, 2.5vw, 40px);
  border-radius: 50%; border: 3px solid transparent; transition: transform .15s, border-color .15s;
}
.ps-swatch:hover, .ps-swatch.active { transform: scale(1.25); border-color: #fff; }
.ps-modal-btns { display: flex; gap: .8rem; justify-content: center; margin-top: clamp(1rem, 2vh, 1.8rem); }
.ps-cancel-btn {
  background: rgba(255,255,255,.1); border: 1px solid #555; color: #fff;
  padding: clamp(.5rem, .8vh, .8rem) clamp(1.2rem, 2vw, 2rem);
  border-radius: var(--radius); font-weight: 700; transition: background .15s;
}
.ps-cancel-btn:hover { background: rgba(255,255,255,.18); }

/* Suggestions */
.sg-textarea {
  width: 100%; padding: .7rem 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 4px; color: var(--text);
  font-size: .95rem; font-family: inherit; resize: none;
}
.sg-textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.sg-admin-box { width: clamp(300px, 45vw, 620px); max-height: 80vh; overflow-y: auto; }
.sg-section-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; padding: .8rem 0 .4rem; border-bottom: 1px solid #333; margin-bottom: .5rem; }
.sg-row { display: flex; align-items: flex-start; gap: .8rem; padding: .65rem .5rem; border-radius: 4px; transition: background .15s; }
.sg-row:hover { background: rgba(255,255,255,.05); }
.sg-done .sg-title { opacity: .45; text-decoration: line-through; }
.sg-info { flex: 1; min-width: 0; }
.sg-title { font-size: .9rem; font-weight: 600; }
.sg-note { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.sg-meta { font-size: .72rem; color: #666; margin-top: .25rem; }
.sg-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.sg-btn-done { background: rgba(70,211,105,.15); color: #46d369; border-radius: 4px; padding: .25rem .55rem; font-size: .85rem; transition: background .15s; }
.sg-btn-done:hover { background: rgba(70,211,105,.3); }
.sg-btn-del { background: rgba(229,9,20,.15); color: var(--accent); border-radius: 4px; padding: .25rem .55rem; font-size: .85rem; transition: background .15s; }
.sg-btn-del:hover { background: rgba(229,9,20,.3); }
#btn-admin-suggestions { font-size: .85rem; color: var(--muted); transition: color .2s; }
#btn-admin-suggestions:hover { color: #fff; }
.sg-my-list { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .25rem; }
.sg-my-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; padding-bottom: .4rem; border-bottom: 1px solid #333; margin-bottom: .25rem; }
.sg-my-row { display: flex; align-items: flex-start; gap: .6rem; padding: .45rem .6rem; background: rgba(255,255,255,.04); border-radius: 6px; font-size: .9rem; }
.sg-my-done { opacity: .55; }
.sg-my-status { flex-shrink: 0; font-size: 1rem; }
.sg-my-text { flex: 1; line-height: 1.4; }
.sg-my-note { color: var(--muted); font-size: .82rem; }

/* PIN lock icon on profile items */
.ps-pin-lock-icon { font-size: .8em; opacity: .65; }

/* PIN entry screen */
.ps-pin-overlay {
  position: fixed; inset: 0; z-index: 650;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
}
.ps-pin-box {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(.8rem, 2vh, 1.5rem); text-align: center;
}
.ps-pin-name { font-size: clamp(1rem, 2vw, 1.8rem); font-weight: 700; }
.ps-pin-hint { font-size: clamp(.75rem, .95vw, 1rem); color: var(--muted); }
.ps-pin-dots { display: flex; gap: clamp(.8rem, 1.5vw, 1.5rem); }
.ps-pin-dot {
  width: clamp(12px, 1.4vw, 20px); height: clamp(12px, 1.4vw, 20px);
  border-radius: 50%; border: 2px solid #777; transition: background .1s, border-color .1s;
}
.ps-pin-dot.filled { background: #fff; border-color: #fff; }
.ps-numpad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(.4rem, .8vw, 1rem); width: clamp(200px, 22vw, 320px);
}
.ps-num-btn {
  background: rgba(255,255,255,.1); border-radius: 50%; aspect-ratio: 1;
  font-size: clamp(1.1rem, 1.8vw, 2rem); font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .1s;
}
.ps-num-btn:hover { background: rgba(255,255,255,.2); }
.ps-num-btn:active { transform: scale(.92); }
.ps-pin-back { font-size: clamp(.7rem, .9vw, 1rem); color: var(--muted); padding: .5rem; transition: color .15s; }
.ps-pin-back:hover { color: #fff; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(8px); }
}
.ps-pin-dots.shake { animation: shake .4s ease; }

/* PIN field in profile form */
.ps-pin-section { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.ps-pin-label { font-size: clamp(.7rem, .9vw, 1rem); color: var(--muted); }
.ps-pin-input {
  width: clamp(80px, 8vw, 120px); padding: clamp(.5rem, .8vh, .8rem) .8rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  color: var(--text); font-size: 1.4rem; text-align: center; letter-spacing: .4rem;
}
.ps-pin-input:focus { outline: 2px solid var(--accent); border-color: transparent; }
