:root {
  --primary:     #8b7cf6;
  --primary-dark:#6d5ce8;
  --primary-glow:rgba(139,124,246,.18);
  --bg:          #f4f3ff;
  --bg2:         #ffffff;
  --card:        #ffffff;
  --text:        #0f0e17;
  --muted:       #6b6980;
  --border:      #ddd9f7;
  --success-bg:  #edfbf0;
  --success-txt: #1e7c3a;
  --error-bg:    #fdf0f0;
  --error-txt:   #c0392b;
  --radius:      14px;
}

body.dark {
  --bg:    #0f0e17;
  --bg2:   #16141f;
  --card:  #1c1927;
  --text:  #e8e6f0;
  --muted: #8a87a0;
  --border:#2e2a45;
  --success-bg:  #0d2a17;
  --success-txt: #4caf70;
  --error-bg:    #2a0d0d;
  --error-txt:   #e57373;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background .2s, color .2s;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- NAV ---- */

nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: .75rem 2rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: var(--primary);
  text-decoration: none;
}

.nav-logo:hover { text-decoration: none; }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .9rem;
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-block;
  padding: .5rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  text-decoration: none;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.btn-danger {
  background: transparent;
  color: var(--error-txt);
  border-color: var(--border);
  font-size: .82rem;
  padding: .3rem .75rem;
}
.btn-danger:hover {
  background: var(--error-bg);
  border-color: var(--error-txt);
  text-decoration: none;
}

.btn-sm {
  font-size: .82rem;
  padding: .32rem .75rem;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: .2rem .4rem;
  border-radius: 6px;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.btn-icon:hover { background: var(--primary-glow); color: var(--primary); }

/* ---- FLASH ---- */

.flash {
  padding: .7rem 1rem;
  border-radius: 8px;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.flash.success { background: var(--success-bg); color: var(--success-txt); }
.flash.error   { background: var(--error-bg);   color: var(--error-txt);   }

/* ---- FORMS ---- */

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .35rem;
  color: var(--muted);
}

input[type=text],
input[type=email],
input[type=password],
input[type=time],
select {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ---- AUTH PAGES ---- */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}

.auth-box h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-box .auth-sub {
  text-align: center;
  font-size: .88rem;
  color: var(--muted);
  margin-top: 1.2rem;
}

/* ---- LANDING ---- */

.landing {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.landing h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.landing h1 span { color: var(--primary); }

.landing p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.landing-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 4rem;
  text-align: left;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
}

.feature-card .icon { font-size: 1.6rem; margin-bottom: .6rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.feature-card p  { font-size: .87rem; color: var(--muted); }

/* ---- DASHBOARD ---- */

.dashboard {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.streak-badge {
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: .8rem 1.4rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.streak-badge .streak-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.streak-badge .streak-label {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.3;
}

.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.4rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
}

/* ---- SITES LIST ---- */

.site-list { list-style: none; }
.site-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.site-item:last-child { border-bottom: none; }
.site-domain { font-weight: 500; }

/* ---- WINDOWS LIST ---- */

.window-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.window-item:last-child { border-bottom: none; }

.window-time {
  font-weight: 700;
  font-size: .95rem;
  min-width: 110px;
}

.window-label { color: var(--muted); font-size: .87rem; }

.day-chips { display: flex; gap: .3rem; flex-wrap: wrap; }
.day-chip {
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 4px;
  padding: .1rem .4rem;
  font-size: .75rem;
  font-weight: 600;
}

.toggle-btn {
  margin-left: auto;
  width: 42px;
  height: 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: var(--border);
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.toggle-btn.on { background: var(--primary); }
.toggle-btn::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left .2s;
}
.toggle-btn.on::after { left: 21px; }

/* ---- ADD FORMS ---- */

.add-form {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.add-form .form-group { margin-bottom: 0; flex: 1; min-width: 140px; }

.day-checkboxes {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.day-check {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.day-check input[type=checkbox] { display: none; }

.day-check-box {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  transition: all .15s;
  background: var(--bg2);
}

.day-check input:checked ~ .day-check-box {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- HEATMAP ---- */

.heatmap-wrap { overflow-x: auto; }

.heatmap {
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  gap: 4px;
  min-width: 320px;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--border);
  transition: background .2s;
  position: relative;
}

.heatmap-cell.active { background: var(--primary); }

.heatmap-cell[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: .7rem;
  padding: .2rem .4rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* ---- API KEY ---- */

.api-key-box {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem .9rem;
}

.api-key-val {
  font-family: monospace;
  font-size: .85rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  cursor: default;
  user-select: all;
}

/* ---- THEME TOGGLE ---- */

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: .25rem .45rem;
  border-radius: 50%;
  transition: background .15s;
}
#theme-toggle:hover { background: var(--primary-glow); }

/* ---- ADMIN LAYOUT ---- */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-logo {
  padding: 1.2rem 1.2rem 1rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.admin-logo span { color: var(--text); }

.admin-nav {
  display: flex;
  flex-direction: column;
  padding: .6rem 0;
  gap: .1rem;
}

.admin-nav a {
  display: block;
  padding: .55rem 1.2rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  transition: background .12s, color .12s;
}

.admin-nav a:hover { background: var(--primary-glow); color: var(--primary); }
.admin-nav a.active { background: var(--primary-glow); color: var(--primary); font-weight: 700; border-right: 3px solid var(--primary); }

.admin-nav-sep {
  height: 1px;
  background: var(--border);
  margin: .5rem 1rem;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.5rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-content {
  padding: 1.4rem 1.5rem;
  flex: 1;
}

/* ---- ADMIN STATS GRID ---- */

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: .2rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .3rem;
}

.stat-label { font-size: .78rem; color: var(--muted); }

/* ---- ADMIN TABLE ---- */

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.admin-table th {
  text-align: left;
  padding: .65rem 1rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.admin-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--primary-glow); }

.admin-table .muted { color: var(--muted); }

.badge-admin {
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: .1rem .45rem;
  font-size: .72rem;
  font-weight: 700;
}

/* ---- RANK BADGE ---- */

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
}

.rank-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: .4rem;
  overflow: hidden;
}

.rank-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width .5s;
}

/* ---- COINS ---- */

.coins-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .95rem;
  color: #f5a623;
}

/* ---- SANCTUARY TREE ---- */

.sanctuary-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: 1rem 0 .5rem;
}

.tree-svg {
  width: 120px;
  height: 140px;
  transition: filter .4s;
}

.tree-svg.withering {
  filter: sepia(60%) saturate(60%);
}

.tree-label {
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}

/* ---- SILENT ROOMS ---- */

.room-code {
  font-family: monospace;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .15em;
  color: var(--primary);
}

.room-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.room-card:last-child { border-bottom: none; }

.room-meta { font-size: .82rem; color: var(--muted); }

/* Room view page */

.room-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.room-header {
  text-align: center;
  margin-bottom: 2rem;
}

.room-header h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: .4rem; }

.member-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1rem;
}

.member-chip {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: .3rem .8rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
}

.break-log {
  list-style: none;
  font-size: .87rem;
}

.break-log li {
  display: flex;
  justify-content: space-between;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--error-txt);
}

.break-log li:last-child { border-bottom: none; }

.break-count-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 8px;
}

.break-count-badge.zero { background: var(--success-bg); color: var(--success-txt); }
.break-count-badge.nonzero { background: var(--error-bg); color: var(--error-txt); }

/* pulse animation for active room */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(139,124,246,.4); }
  70%  { box-shadow: 0 0 0 10px rgba(139,124,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(139,124,246,0); }
}

.room-live-dot {
  width: 10px; height: 10px;
  background: #4caf70;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-ring 2s infinite;
}

/* ---- HELP PAGE ---- */

.help-page {
  display: flex;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  align-items: flex-start;
}

.help-nav {
  width: 210px;
  flex-shrink: 0;
  position: sticky;
  top: 1.5rem;
}

.help-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-nav-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding: .5rem 0 .3rem;
  margin-top: .8rem;
}

.help-nav a {
  display: block;
  padding: .35rem .7rem;
  font-size: .84rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: color .12s, border-color .12s;
  border-radius: 0 6px 6px 0;
}

.help-nav a:hover { color: var(--primary); }
.help-nav a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-glow);
  font-weight: 600;
}

.help-content {
  flex: 1;
  min-width: 0;
}

.help-hero {
  background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 70%);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  margin-bottom: 2rem;
}

.help-hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.help-hero p { color: var(--muted); font-size: 1rem; }

.help-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 1.5rem;
}

.help-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.help-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.1rem 0 .4rem;
}

.help-section p { margin-bottom: .7rem; font-size: .92rem; }

.help-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .8rem;
  margin: .8rem 0;
}

.help-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.help-card .icon { font-size: 1.5rem; margin-bottom: .4rem; }
.help-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.help-card p { font-size: .82rem; color: var(--muted); margin: 0; }

.help-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: .8rem 0;
}

.help-steps li {
  counter-increment: step;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .6rem 0;
  font-size: .9rem;
}

.help-steps li::before {
  content: counter(step);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-list {
  padding-left: 1.3rem;
  margin: .5rem 0;
  font-size: .9rem;
}

.help-list li { margin-bottom: .3rem; }

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin: .8rem 0;
}

.help-table th {
  text-align: left;
  padding: .55rem .9rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.help-table td {
  padding: .55rem .9rem;
  border-bottom: 1px solid var(--border);
}

.help-table tr:last-child td { border-bottom: none; }

.help-tip {
  background: var(--success-bg);
  border-left: 3px solid var(--success-txt);
  color: var(--success-txt);
  border-radius: 0 8px 8px 0;
  padding: .7rem 1rem;
  font-size: .88rem;
  margin: .8rem 0;
}

.help-warning {
  background: var(--error-bg);
  border-left: 3px solid var(--error-txt);
  color: var(--error-txt);
  border-radius: 0 8px 8px 0;
  padding: .7rem 1rem;
  font-size: .88rem;
  margin: .8rem 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: .6rem;
  overflow: hidden;
}

.faq-q {
  padding: .85rem 1rem;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after { content: '›'; font-size: 1.2rem; color: var(--muted); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(90deg); }

.faq-a {
  display: none;
  padding: 0 1rem .85rem;
  font-size: .88rem;
  color: var(--muted);
}

.faq-item.open .faq-a { display: block; }

@media (max-width: 760px) {
  .help-page { flex-direction: column; }
  .help-nav { width: 100%; position: static; }
  .help-nav ul { display: flex; flex-wrap: wrap; gap: .3rem; }
  .help-nav a { border-left: none; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; }
  .help-nav a.active { border-left: none; border-bottom-color: var(--primary); }
  .help-nav-title { display: none; }
}

@media (max-width: 600px) {
  nav { padding: .65rem 1rem; }
  .dashboard { padding: 1.2rem 1rem; }
  .auth-box { padding: 1.8rem 1.2rem; }
  .room-page { padding: 1.2rem 1rem; }
}

/* ---- INSTALL STEPS (vizuálny návod na extension) ---- */

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.2rem;
}

.install-step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.install-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .2rem;
}

.install-step-body {
  flex: 1;
}

.install-step-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .3rem;
  color: var(--text);
}

/* Chrome UI mockup */
.chrome-mockup {
  border: 1.5px solid #dadce0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: .7rem;
  background: #fff;
  font-family: 'Google Sans', 'Inter', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  max-width: 480px;
}

.chrome-bar {
  background: #f1f3f4;
  padding: .45rem .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  border-bottom: 1px solid #dadce0;
}

.chrome-dots {
  display: flex;
  gap: .3rem;
}
.chrome-dots span {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #dadce0;
}

.chrome-url {
  flex: 1;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 20px;
  padding: .22rem .75rem;
  font-size: .78rem;
  color: #202124;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.chrome-lock { font-size: .72rem; }
.chrome-url-text { color: #188038; font-weight: 500; }

.chrome-body {
  padding: .85rem 1rem;
  background: #fff;
  font-size: .82rem;
  color: #202124;
}

.chrome-ext-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e8eaed;
}

.chrome-devmode-off,
.chrome-devmode-on {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: #5f6368;
}

/* Toggle off */
.toggle-off {
  width: 2rem;
  height: 1rem;
  border-radius: 10px;
  background: #bdc1c6;
  position: relative;
}

/* Toggle on */
.toggle-on {
  width: 2rem;
  height: 1rem;
  border-radius: 10px;
  background: #1a73e8;
  position: relative;
}

.toggle-thumb {
  position: absolute;
  right: .1rem;
  top: .1rem;
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: #fff;
}

.chrome-btn-blue {
  background: #1a73e8;
  color: #fff;
  padding: .38rem .85rem;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 500;
  cursor: default;
  display: inline-block;
}

.chrome-btn-gray {
  background: #f1f3f4;
  color: #3c4043;
  border: 1px solid #dadce0;
  padding: .38rem .85rem;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 500;
  cursor: default;
  display: inline-block;
}

.chrome-folder-dialog {
  border-top: 1px solid #e8eaed;
  padding: .4rem .6rem;
  background: #fafafa;
  font-size: .8rem;
}

.chrome-folder-row {
  padding: .35rem .5rem;
  border-radius: 4px;
  color: #202124;
  margin-bottom: .2rem;
}

.chrome-folder-active {
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 600;
}

.chrome-ext-card {
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: .75rem;
  background: #fff;
}

/* Popup mockup */
.chrome-popup-mockup {
  max-width: 260px;
}

.chrome-popup {
  padding: .8rem 1rem;
  font-size: .82rem;
}

.popup-label {
  display: block;
  font-size: .73rem;
  color: #5f6368;
  margin-bottom: .2rem;
  font-weight: 600;
}

.popup-input {
  border: 1.5px solid #dadce0;
  border-radius: 6px;
  padding: .32rem .6rem;
  font-size: .8rem;
  color: #5f6368;
  background: #f8f9fa;
  font-family: monospace;
}

/* Dark mode prispôsobenie mockupov */
body.dark .chrome-mockup { background: #2d2b3d; border-color: #3a3750; box-shadow: none; }
body.dark .chrome-bar { background: #1e1c2e; border-color: #3a3750; }
body.dark .chrome-url { background: #2d2b3d; border-color: #3a3750; color: #e8e6f0; }
body.dark .chrome-body { background: #2d2b3d; color: #e8e6f0; }
body.dark .chrome-ext-header { border-color: #3a3750; }
body.dark .chrome-ext-card { background: #252336; border-color: #3a3750; }
body.dark .chrome-folder-dialog { background: #252336; border-color: #3a3750; }
body.dark .chrome-btn-gray { background: #3a3750; color: #e8e6f0; border-color: #4a4767; }
body.dark .popup-input { background: #252336; border-color: #3a3750; color: #8a87a0; }

@media (max-width: 600px) {
  .install-step { flex-direction: column; }
  .chrome-mockup { max-width: 100%; }
}
