@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

:root {
  --bg: #07111f;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-2: rgba(15, 23, 42, 0.7);
  --border: rgba(148, 163, 184, 0.2);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #60a5fa;
  --primary-2: #8b5cf6;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.6);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, rgba(96, 165, 250, 0.12), transparent 35%),
    linear-gradient(135deg, #020817 0%, #0f172a 55%, #111827 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.app-shell { width: min(1200px, 100%); min-width: 0; position: relative; }

/* Keep third-party ad markup outside the dashboard layout. */
.ad-section {
  width: 100%;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 18px auto 0;
  overflow: hidden;
  text-align: center;
}

.ad-section > div {
  width: min(100%, 728px);
  max-width: 100%;
}

.ad-section iframe {
  display: block;
  max-width: 100%;
  border: 0;
}

.ad-sponsored-link {
  color: var(--muted);
  font-size: .72rem;
  text-decoration: none;
}

.ad-sponsored-link:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.dashboard {
  width: 100%;
  min-height: 760px;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(18px);
}

.card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

.auth-body { padding: 28px; flex-direction: column; }
.auth-layout { width: min(1000px, 100%); min-height: 590px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border: 1px solid var(--border); border-radius: 26px; background: rgba(15,23,42,.72); box-shadow: var(--shadow); }
.auth-intro { display: flex; flex-direction: column; justify-content: space-between; padding: 48px; background: radial-gradient(circle at 20% 20%, rgba(96,165,250,.18), transparent 35%), linear-gradient(145deg, rgba(30,41,59,.78), rgba(15,23,42,.9)); }
.auth-logo { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }.auth-logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg,var(--primary),var(--primary-2)); color:#fff; font-weight:800; }
.site-logo { width: 34px; height: 34px; object-fit: cover; border-radius: 10px; }
.auth-intro h1 { margin: 16px 0 14px; font-size: clamp(2.25rem, 5vw, 3.6rem); line-height: 1.04; }.auth-intro p { max-width: 420px; color: var(--muted); line-height: 1.65; }
.auth-points { display: grid; gap: 10px; color: #bfdbfe; font-size: .9rem; }
.auth-card { align-self: center; width: min(430px, calc(100% - 48px)); margin: 24px auto; padding: 32px; }
.auth-card-heading { margin-bottom: 24px; }.auth-card-heading h2 { margin: 12px 0 7px; font-size: 1.8rem; }.auth-card form { display: grid; gap: 16px; }.auth-card input { margin: 0; }.auth-card .primary-btn { width: 100%; margin-top: 4px; }.auth-switch { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }.auth-switch a { color: #bfdbfe; font-weight: 700; text-decoration: none; }.auth-switch a:hover { text-decoration: underline; }
.auth-error { color: #fecaca; background: rgba(127,29,29,.35); border: 1px solid rgba(248,113,113,.4); padding: 10px; border-radius: 10px; }
.secondary-btn { display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--border); background: rgba(30,41,59,.8); color: var(--text); border-radius: 9px; padding: 9px 12px; cursor: pointer; text-decoration: none; }
.profile-area { display: flex; align-items: center; gap: 10px; position: fixed; z-index: 10; right: 24px; top: 24px; }
.profile-button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(96,165,250,.6); background: linear-gradient(135deg,var(--primary),var(--primary-2)); color: white; font-weight: 800; cursor: pointer; }
.profile-menu { display: none; position: absolute; z-index: 4; right: 0; top: 48px; min-width: 210px; padding: 14px; background: #111c31; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.profile-menu.show { display: grid; gap: 8px; }
.profile-menu small { color: var(--muted); }
.profile-menu input { width: 100%; font-size: 11px; }
.profile-upload-label { margin: 0 0 6px; font-size: .68rem; color: var(--muted); }
.social-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px auto 0; color: var(--muted); font-size: .78rem; }
.social-footer a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; color: #cbd5e1; text-decoration: none; background: rgba(15,23,42,.52); transition: .18s ease; }
.social-footer a:hover { transform: translateY(-1px); color: white; border-color: rgba(96,165,250,.65); }.social-icon { display: grid; place-items: center; width: 16px; height: 16px; color: #93c5fd; font-size: .95rem; }
.social-footer .social-icon { font-size: 0; }.social-footer .social-icon::before { font-family: "Font Awesome 6 Brands"; font-size: .95rem; font-weight: 400; }.social-footer a:nth-child(1) .social-icon::before { content: "\f2c6"; }.social-footer a:nth-child(2) .social-icon::before { content: "\e07b"; }.social-footer a:nth-child(3) .social-icon::before { content: "\f39e"; }
.header-actions { display: flex; align-items: center; gap: 10px; }.settings-link { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 12px; color: #bfdbfe; background: rgba(30,41,59,.8); text-decoration: none; font-size: 1.15rem; }
.settings-page { width: min(760px, 100%); margin: 0 auto; min-height: 0; }.settings-form { display: grid; gap: 18px; }.settings-form .card-inset { display: grid; gap: 10px; }.settings-form h2 { margin-bottom: 6px; }.settings-form .primary-btn { justify-self: start; }.logo-preview { width: 76px; height: 76px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; border: 1px solid rgba(96,165,250,.45); background: linear-gradient(135deg,var(--primary),var(--primary-2)); color: white; font-weight: 800; }.logo-preview img { width: 100%; height: 100%; object-fit: cover; }.form-help { margin: 0; color: var(--muted); font-size: .8rem; }.settings-notice { margin: 0 0 18px; padding: 11px 13px; border: 1px solid rgba(52,211,153,.35); border-radius: 10px; color: #bbf7d0; background: rgba(6,78,59,.24); }

.management-page { min-height: 760px; padding: 32px; }
.management-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-right: 58px; margin-bottom: 28px; }
.management-header h1 { margin-top: 12px; }.management-header .subtext { margin-top: 8px; }
.card-inset { padding: 20px; background: rgba(15, 23, 42, .62); border: 1px solid var(--border); border-radius: 18px; }
.create-user h2 { margin-bottom: 16px; }.create-user-form { display: grid; grid-template-columns: 1fr 1.25fr 1.35fr .7fr auto; gap: 12px; align-items: center; }.create-user-form input { min-width: 0; }.create-user-form .primary-btn { white-space: nowrap; }
.form-message { min-height: 20px; margin: 10px 0 0; font-size: .85rem; }.success-text { color: #bbf7d0; }.error-text { color: #fecaca; }
.users-section { margin-top: 28px; }.user-list { display: grid; gap: 12px; }.user-card { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--border); background: rgba(15, 23, 42, .62); border-radius: 18px; }
.user-avatar { flex: 0 0 66px; width: 66px; height: 66px; padding: 3px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-2)); background-position: center; background-size: cover; color: white; font-size: 1.25rem; font-weight: 800; border: 2px solid rgba(147, 197, 253, .6); }
.user-details { display: grid; gap: 5px; min-width: 0; }.user-details strong { font-size: 1rem; }.user-details > span { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }.user-statuses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }.user-statuses .pill { font-size: .68rem; padding: 4px 8px; }.status-banned { color: #fecaca; border-color: rgba(248,113,113,.3); background: rgba(127,29,29,.22); }.status-blocked { color: #fde68a; border-color: rgba(251,191,36,.3); background: rgba(120,53,15,.22); }
.user-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; justify-content: flex-end; }.self-label { color: var(--muted); font-size: .78rem; }
.role-select { width: auto; min-width: 88px; padding: 8px 26px 8px 10px; border-radius: 10px; font-size: .76rem; }
.task-limit-field { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .7rem; letter-spacing: 0; text-transform: none; white-space: nowrap; }.task-limit-field input { width: 52px; padding: 8px 6px; border-radius: 10px; font-size: .76rem; }
.profile-page { width: min(1040px, 100%); margin: 0 auto; min-height: 0; }.profile-header { padding-right: 0; }.profile-hero { margin: -2px -2px 24px; padding: 24px; border: 1px solid rgba(96,165,250,.2); border-radius: 20px; background: radial-gradient(circle at 8% 5%,rgba(96,165,250,.18),transparent 42%),linear-gradient(135deg,rgba(30,41,59,.6),rgba(15,23,42,.55)); }.profile-grid { display: grid; grid-template-columns: minmax(190px,.65fr) 1fr 1fr; gap: 16px; }.profile-grid .card-inset { display: grid; align-content: start; gap: 12px; }.profile-summary { justify-items: center; text-align: center; background: radial-gradient(circle at 50% 0,rgba(139,92,246,.14),transparent 54%),rgba(15,23,42,.62); }.profile-avatar { width: 108px; height: 108px; display: grid; place-items: center; border: 4px solid rgba(147,197,253,.72); border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-2)); background-size: cover; background-position: center; box-shadow: 0 14px 34px rgba(96,165,250,.25); color: white; font-size: 2rem; font-weight: 800; }.profile-email { max-width: 100%; color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }.profile-email i { color: #93c5fd; margin-right: 4px; }.profile-upload-button { width: 100%; font-size: .78rem; }.profile-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 22px 0; }.stat-card { display: grid; gap: 7px; padding: 18px; border: 1px solid rgba(96,165,250,.2); border-radius: 16px; background: linear-gradient(145deg,rgba(30,41,59,.66),rgba(15,23,42,.7)); box-shadow: 0 10px 24px rgba(2,6,23,.16); }.stat-card span { color: var(--muted); font-size: .78rem; }.stat-card strong { font-size: 1.8rem; color: #bfdbfe; }.profile-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.profile-list { display: grid; gap: 9px; max-height: 420px; overflow-y: auto; padding-right: 2px; }.profile-list .empty-state { min-height: 150px; }.profile-task { display: grid; gap: 4px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: rgba(15,23,42,.5); transition: border-color .18s ease,transform .18s ease; }.profile-task:hover { transform: translateY(-1px); border-color:rgba(96,165,250,.42); }.profile-task strong { overflow-wrap: anywhere; }.profile-task span { color: var(--muted); font-size: .77rem; overflow-wrap: anywhere; }

.left-panel,
.right-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Keep the task-creation panel compact instead of stretching to the target-list height. */
.left-panel { align-self: start; }

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.brand-badge,
.live-badge,
.tiny-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  min-height: 28px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-badge,
.tiny-badge {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #bfdbfe;
}

.live-badge {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #bbf7d0;
}

h1, h2, p { margin: 0; }

h1 {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.06em;
}

h2 {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.subtext {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dbeafe;
}

input, select, button {
  font: inherit;
}

input, select {
  width: 100%;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition: 0.2s ease;
}

input:focus, select:focus {
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
}

.primary-btn,
.mini-btn {
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-btn {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 14px 30px rgba(96, 165, 250, 0.25);
  padding: 13px 16px;
}

.primary-btn:hover,
.mini-btn:hover {
  transform: translateY(-1px);
}

.status-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #dbeafe;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.7);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.summary-text {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

.list-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 520px;
}

.task-item {
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 9px;
}

.task-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.uid-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #ddd6fe;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: fit-content;
}

.username-text {
  font-size: 0.94rem;
  font-weight: 700;
  word-break: break-word;
}

.task-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.05);
}

.pinned-task {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  font-weight: 800;
}

.status-pill {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: #bbf7d0;
}

.task-timer {
  justify-self: end;
  white-space: nowrap;
  min-width: 74px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #dbeafe;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.14);
}

.task-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mini-btn {
  padding: 8px 12px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.06);
  color: var(--text);
}

.mini-btn.warn {
  border-color: rgba(251, 191, 36, 0.25);
  color: #fde68a;
}

.mini-btn.danger {
  border-color: rgba(248, 113, 113, 0.25);
  color: #fecaca;
}

.mini-btn.success {
  border-color: rgba(52, 211, 153, 0.25);
  color: #bbf7d0;
}
.eye-btn { width: 38px; padding: 8px; color: #bfdbfe; border-color: rgba(96,165,250,.35); }

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.55);
  text-align: center;
  padding: 20px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(6px);
  z-index: 99;
}

.modal.show {
  display: flex;
}

.modal-card {
  width: min(420px, calc(100vw - 32px));
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.modal-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}
.modal-icon { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: #bbf7d0; background: rgba(16,185,129,.18); border: 1px solid rgba(52,211,153,.35); }
.modal[data-tone="stop"] .modal-icon { color: #fecaca; background: rgba(239,68,68,.18); border-color: rgba(248,113,113,.35); }
.modal-details { display: grid; gap: 7px; margin: 16px 0 4px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(15,23,42,.5); text-align: left; }
.modal-detail-row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .78rem; }
.modal-detail-row strong { color: var(--text); text-align: right; overflow-wrap: anywhere; }

.player-modal-card { position: relative; width: min(440px, calc(100vw - 28px)); padding: 0; overflow: visible; }
.player-modal-card h3 { padding: 18px 48px 18px 20px; margin: 0; border-bottom: 1px solid var(--border); }
.modal-close { position: absolute; top: -42px; right: 0; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; background: rgba(15, 23, 42, .96); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.modal-close:hover { color: #fff; border-color: var(--primary); }
.player-info-content { padding: 16px; }
.player-loading { min-height: 310px; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); font-size: .9rem; }.loading-spinner { width: 38px; height: 38px; border: 3px solid rgba(96,165,250,.2); border-top-color: var(--primary); border-right-color: var(--primary-2); border-radius: 50%; animation: player-spin .75s linear infinite; }@keyframes player-spin { to { transform: rotate(360deg); } }
.player-profile-card { overflow: hidden; border: 1px solid rgba(250,204,21,.35); border-radius: 22px; background: rgba(2,6,23,.76); text-align: center; }
.player-banner { height: 118px; background: linear-gradient(135deg,#1e293b,#0f172a); background-size: cover; background-position: center; }
.player-avatar { width: 82px; height: 82px; margin: -42px auto 0; position: relative; display: grid; place-items: center; border: 4px solid #0b1120; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-2)); background-size: cover; background-position: center; color: white; font-size: 1.5rem; font-weight: 800; }
.player-head { display: grid; justify-items: center; gap: 8px; padding: 10px 16px 16px; }.level-badge { padding: 4px 9px; border-radius: 999px; background: #facc15; color: #1e293b; font-size: .72rem; font-weight: 800; }.player-head h4 { margin: 0; font-size: 1.15rem; color: #f8fafc; word-break: break-word; }.player-uid { border: 1px solid #facc15; border-radius: 999px; padding: 7px 13px; color: #fde047; font-weight: 700; font-size: .82rem; }
.player-data { padding: 10px 18px; border-top: 1px solid var(--border); text-align: left; }.player-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; color: var(--muted); font-size: .8rem; }.player-row strong { color: var(--text); text-align: right; overflow-wrap: anywhere; }.player-bio { margin: 4px 16px 16px; padding: 12px; border: 1px solid var(--border); border-radius: 13px; color: #cbd5e1; text-align: left; font-size: .8rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }

.modal-message {
  color: #dbeafe;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-btn {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 920px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .auth-layout { grid-template-columns: 1fr; max-width: 560px; }
  .auth-intro { min-height: 280px; padding: 32px; gap: 34px; }
  .auth-intro h1 { font-size: 2.4rem; }
  .create-user-form { grid-template-columns: 1fr; }
  .management-page { padding: 22px; }
}
.site-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }.site-brand h1 { overflow-wrap: anywhere; }

.task-owner { color: #bfdbfe; font-size: .8rem; font-weight: 700; }

@media (max-width: 600px) {
  body { padding: 14px; align-items: flex-start; }
  .auth-body { padding: 14px; align-items: center; }
  .auth-intro { display: none; }
  .auth-layout { min-height: 0; display: block; border-radius: 20px; }
  .auth-card { width: 100%; margin: 0; padding: 26px 22px; border: 0; border-radius: 20px; background: rgba(15,23,42,.9); }
  .dashboard { padding: 14px; border-radius: 18px; }
  .profile-area { right: 28px; top: 28px; }
  .management-header { flex-direction: column; padding-right: 48px; }
  .user-card { align-items: flex-start; flex-wrap: wrap; }
  .user-actions { width: 100%; margin-left: 82px; justify-content: flex-start; }
  .profile-grid, .profile-data-grid { grid-template-columns: 1fr; }.profile-page { padding: 18px; }.profile-header { flex-direction: column; }.profile-header .header-actions { width: 100%; flex-wrap: wrap; }.profile-stats { gap: 10px; }
}

/* Phone layout: keeps every screen usable down to a 360px-wide viewport. */
@media (max-width: 420px) {
  html, body { overflow-x: clip; }
  body { padding: 10px; }
  .app-shell { width: 100%; }
  body:has(.profile-area) .app-shell { padding-top: 48px; }
  .dashboard { min-height: 0; gap: 10px; padding: 10px; border-radius: 16px; }
  .card { border-radius: 16px; padding: 16px; }
  .left-panel, .right-panel { gap: 14px; }

  /* Keep the profile control outside the main page container. */
  .profile-area { position: fixed; top: 10px; right: 10px; }
  .management-page { padding-top: 14px; }
  .profile-menu { position: fixed; top: 56px; right: 10px; width: min(280px, calc(100vw - 20px)); min-width: 0; }

  h1 { font-size: 1.55rem; letter-spacing: -0.045em; }
  h2 { font-size: 1.18rem; }
  .subtext { font-size: .86rem; }
  .brand { align-items: flex-start; gap: 8px; padding-right: 42px; }
  .brand-badge, .live-badge, .tiny-badge { padding: 5px 8px; min-height: 26px; font-size: 9px; letter-spacing: .08em; }
  .site-brand { gap: 8px; }

  input, select { padding: 12px 13px; }
  .status-box { align-items: flex-start; gap: 10px; padding: 12px; }
  .panel-header { align-items: flex-start; }
  .panel-header { flex-wrap: wrap; }
  .list-wrap { min-height: 360px; }
  .task-item { padding: 13px; border-radius: 15px; }
  .task-main { gap: 8px; }
  .task-timer { padding: 6px 8px; font-size: .72rem; }
  .task-row { gap: 6px; font-size: .74rem; }
  .pill { max-width: 100%; padding: 5px 7px; overflow-wrap: anywhere; }
  .username-text { font-size: .98rem; }
  .task-actions { justify-content: flex-start; gap: 7px; }
  .mini-btn { min-height: 36px; padding: 8px 10px; }
  .eye-btn { width: 36px; }

  .management-page { min-height: 0; padding: 62px 14px 14px; }
  .management-header { gap: 14px; padding-right: 0; margin-bottom: 20px; }
  .header-actions { width: 100%; flex-wrap: wrap; }
  .settings-link { width: 38px; height: 38px; }
  .card-inset { padding: 14px; border-radius: 14px; }
  .user-card { gap: 12px; padding: 12px; }
  .user-avatar { flex-basis: 52px; width: 52px; height: 52px; }
  .user-details { width: calc(100% - 64px); }
  .user-actions { width: 100%; margin-left: 0; }

  .auth-body { padding: 10px; }
  .auth-card { padding: 22px 16px; }
  .auth-card-heading { margin-bottom: 20px; }
  .auth-card-heading h2 { font-size: 1.5rem; }

  .modal { align-items: center; padding: 50px 10px 10px; }
  .modal-card { width: 100%; max-height: calc(100dvh - 60px); overflow-y: auto; border-radius: 18px; padding: 18px; }
  .player-modal-card { width: 100%; padding: 0; overflow: visible; }
  .player-modal-card h3 { padding: 15px 18px; font-size: 1.12rem; }
  .modal-close { top: -40px; right: 0; }
  .player-info-content { max-height: calc(100dvh - 145px); overflow-y: auto; padding: 12px; }
  .player-loading { min-height: 220px; }
  .player-banner { height: 94px; }
  .player-avatar { width: 70px; height: 70px; margin-top: -35px; }
  .player-head { padding: 8px 12px 12px; }
  .player-data { padding: 8px 12px; }
  .player-row { gap: 8px; font-size: .74rem; }
  .player-bio { margin: 4px 12px 12px; padding: 10px; }
  .social-footer { margin-top: 12px; }
  .ad-section { margin-top: 12px; gap: 6px; }
  .ad-section > div { width: min(100%, 320px); }
  .ad-section iframe { width: 100% !important; max-width: 320px !important; }
  .ad-sponsored-link { font-size: .68rem; }
  .profile-page { padding: 14px; }.profile-stats { grid-template-columns: 1fr; margin: 14px 0; }.stat-card { padding: 13px; }.profile-avatar { width: 86px; height: 86px; }.profile-list { max-height: 310px; }
}

@media (max-width: 520px) {
  .task-main { grid-template-columns: minmax(0, 1fr); }
  .task-timer { justify-self: start; }
}

/* Public homepage */
.home-body { display: block; min-height: 100vh; padding: 0; overflow-x: hidden; background: radial-gradient(circle at 12% 8%, rgba(96,165,250,.2), transparent 27%), radial-gradient(circle at 88% 24%, rgba(139,92,246,.15), transparent 28%), #07111f; }
.home-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 28px; }
.home-nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 54px; }
.home-logo { display: inline-flex; min-width: 0; align-items: center; gap: 10px; color: #f8fafc; text-decoration: none; }.home-logo img, .home-logo > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 12px; object-fit: cover; background: linear-gradient(135deg,var(--primary),var(--primary-2)); color: #fff; font-weight: 800; }.home-logo strong { overflow-wrap: anywhere; }
.home-nav-actions, .hero-actions, .hero-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }.nav-login, .nav-signup, .hero-primary, .hero-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 12px; padding: 11px 15px; color: #e2e8f0; font-size: .86rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }.nav-login, .hero-secondary { border: 1px solid var(--border); background: rgba(15,23,42,.55); }.nav-signup, .hero-primary { border: 1px solid transparent; background: linear-gradient(100deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 12px 28px rgba(96,165,250,.22); }.nav-login:hover, .nav-signup:hover, .hero-primary:hover, .hero-secondary:hover { transform: translateY(-2px); border-color: rgba(191,219,254,.55); }
.hero-section { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(330px,.82fr); gap: clamp(34px, 7vw, 92px); align-items: center; min-height: 590px; padding: 70px 4.5%; }.hero-copy { min-width: 0; }.hero-kicker, .section-label { display: inline-flex; align-items: center; gap: 7px; color: #bfdbfe; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.hero-kicker { padding: 8px 11px; border: 1px solid rgba(96,165,250,.26); border-radius: 999px; background: rgba(96,165,250,.09); }.hero-section h1 { max-width: 670px; margin: 18px 0; font-size: clamp(2.7rem, 6.1vw, 5.4rem); line-height: .99; letter-spacing: -.075em; }.hero-section h1 span, .home-contact h2 span { color: #a5b4fc; }.hero-copy > p, .section-heading > p, .home-contact p { max-width: 570px; color: var(--muted); font-size: 1rem; line-height: 1.75; }.hero-actions { margin-top: 28px; }.hero-primary { padding: 14px 18px; }.hero-secondary { padding: 13px 17px; }.hero-trust { margin-top: 28px; color: #cbd5e1; font-size: .78rem; }.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }.hero-trust i { color: var(--success); }
.hero-visual { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 14px; padding: 22px; border: 1px solid rgba(148,163,184,.24); border-radius: 24px; background: linear-gradient(145deg,rgba(30,41,59,.85),rgba(15,23,42,.82)); box-shadow: 0 28px 70px rgba(2,6,23,.38); }.visual-glow { position: absolute; z-index: -1; width: 210px; height: 210px; right: -80px; top: -80px; border-radius: 50%; background: rgba(96,165,250,.24); filter: blur(28px); }.preview-top { display: flex; align-items: center; gap: 8px; color: #cbd5e1; font-size: .76rem; }.preview-dot, .preview-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(52,211,153,.13); }.preview-live { margin-left: auto; padding: 4px 8px; border-radius: 99px; background: rgba(52,211,153,.12); color: #bbf7d0; font-weight: 700; }.preview-stat { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 2px; padding: 22px; border-radius: 18px; background: rgba(2,6,23,.36); }.preview-stat span, .preview-row small { display: block; color: var(--muted); font-size: .76rem; }.preview-stat strong { display: block; margin-top: 5px; font-size: 2.3rem; }.preview-stat i { font-size: 1.8rem; color: #93c5fd; }.preview-row { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid rgba(148,163,184,.12); border-radius: 15px; background: rgba(15,23,42,.4); }.preview-row strong { display: block; font-size: .85rem; }.preview-row > .fa-ellipsis, .preview-pulse { margin-left: auto; color: var(--muted); }.preview-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(96,165,250,.2); color: #bfdbfe; font-size: .8rem; font-weight: 800; }.preview-avatar.purple { background: rgba(139,92,246,.23); color: #ddd6fe; }
.how-section, .activity-section, .home-contact { padding: 82px 4.5%; }.section-heading { max-width: 625px; }.section-heading h2, .activity-header h2, .home-contact h2 { margin: 11px 0; font-size: clamp(1.8rem,3.2vw,2.8rem); letter-spacing: -.055em; }.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 30px; }.step-card { position: relative; min-width: 0; padding: 22px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: rgba(15,23,42,.57); transition: transform .22s ease, border-color .22s ease; }.step-card:hover { transform: translateY(-5px); border-color: rgba(96,165,250,.55); }.step-number { position: absolute; top: 16px; right: 17px; color: rgba(191,219,254,.32); font-size: .75rem; font-weight: 800; }.step-card > i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg,rgba(96,165,250,.22),rgba(139,92,246,.2)); color: #bfdbfe; }.step-card h3 { margin: 20px 0 8px; font-size: 1rem; }.step-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.activity-section { margin: 8px 0; border: 1px solid rgba(96,165,250,.18); border-radius: 28px; background: linear-gradient(135deg,rgba(15,23,42,.72),rgba(30,41,59,.55)); }.activity-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; }.activity-indicator { display: inline-flex; align-items: center; gap: 7px; color: #bbf7d0; font-size: .76rem; white-space: nowrap; }.activity-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }.activity-window { width: 100%; margin-top: 26px; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }.activity-track { display: flex; gap: 12px; width: max-content; animation: activity-slide 28s linear infinite; }.activity-window:hover .activity-track { animation-play-state: paused; }.activity-card { display: flex; align-items: center; gap: 10px; width: 250px; padding: 13px; border: 1px solid rgba(148,163,184,.18); border-radius: 15px; background: rgba(2,6,23,.28); }.activity-card-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; background: rgba(96,165,250,.16); color: #93c5fd; }.activity-card strong, .activity-card small { display: block; }.activity-card strong { font-size: .78rem; }.activity-card small { max-width: 112px; overflow: hidden; color: var(--muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }.activity-status { margin-left: auto; color: #bbf7d0; font-size: .65rem; font-weight: 800; text-transform: uppercase; }.activity-empty { width: min(100%, 500px); color: var(--muted); font-size: .85rem; }.activity-note { margin: 16px 0 0; color: var(--muted); font-size: .72rem; }
.home-contact { display: grid; grid-template-columns: minmax(0,1fr) minmax(330px,.85fr); align-items: center; gap: 34px; }.contact-links { display: grid; gap: 10px; }.contact-links a { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 16px; background: rgba(15,23,42,.45); color: #e2e8f0; text-decoration: none; transition: transform .2s ease,border-color .2s ease; }.contact-links a:hover { transform: translateX(4px); border-color: rgba(96,165,250,.6); }.contact-links i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(96,165,250,.14); color: #93c5fd; }.contact-links span { font-weight: 700; font-size: .82rem; }.contact-links small { display: block; margin-top: 2px; color: var(--muted); font-size: .69rem; font-weight: 400; }.home-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 28px 4.5% 0; border-top: 1px solid rgba(148,163,184,.13); color: var(--muted); font-size: .75rem; }.home-footer a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 10px; color: #bfdbfe; text-decoration: none; }
.home-ad-section { margin-top: 0; }
.adblock-open { overflow: hidden; }
.adblock-modal { position: fixed; z-index: 10000; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 6, 23, .82); backdrop-filter: blur(8px); }
.adblock-modal.show { display: flex; }
.adblock-card { width: min(460px, 100%); padding: 30px; border: 1px solid rgba(251, 191, 36, .38); border-radius: 22px; background: linear-gradient(145deg, #17243a, #0f172a); box-shadow: 0 28px 80px rgba(0,0,0,.5); text-align: center; }
.adblock-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 16px; background: rgba(251,191,36,.14); color: #fcd34d; font-size: 1.35rem; }.adblock-card h2 { font-size: 1.45rem; }.adblock-card p { margin: 12px 0 0; color: #cbd5e1; font-size: .87rem; line-height: 1.65; }.adblock-card .adblock-android { padding: 11px; border-radius: 12px; background: rgba(96,165,250,.09); color: #bfdbfe; text-align: left; }.adblock-android strong { color: #dbeafe; }.adblock-android em { color: #fde68a; font-style: normal; font-weight: 800; }.adblock-status { min-height: 23px; color: #fde68a !important; font-size: .78rem !important; }.adblock-card .primary-btn { width: 100%; margin-top: 16px; }
.reveal { animation: reveal-up .65s both; }.hero-visual.reveal { animation-delay: .12s; }.how-section.reveal { animation-delay: .16s; }.activity-section.reveal { animation-delay: .2s; }.home-contact.reveal { animation-delay: .24s; }@keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }@keyframes activity-slide { to { transform: translateX(-50%); } }
@media (max-width: 760px) { .home-shell { width: min(100% - 28px, 590px); }.hero-section { grid-template-columns: 1fr; min-height: 0; padding: 60px 0 54px; }.hero-visual { max-width: 500px; }.steps-grid { grid-template-columns: 1fr; }.how-section, .activity-section, .home-contact { padding: 52px 0; }.activity-section { padding-left: 18px; padding-right: 18px; }.home-contact { grid-template-columns: 1fr; }.activity-header { align-items: flex-start; flex-direction: column; }.home-footer { padding-left: 0; padding-right: 0; } }
@media (max-width: 420px) { .home-shell { width: min(100% - 20px, 390px); padding-top: 10px; }.home-nav { align-items: flex-start; padding-top: 6px; }.home-logo { max-width: 120px; gap: 7px; font-size: .82rem; }.home-logo img, .home-logo > span { width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; }.home-nav-actions { justify-content: flex-end; gap: 6px; }.nav-login, .nav-signup { padding: 9px 9px; border-radius: 10px; font-size: .71rem; }.hero-section { padding: 46px 0; gap: 28px; }.hero-section h1 { margin: 15px 0; font-size: clamp(2.35rem, 13vw, 3rem); }.hero-copy > p { font-size: .9rem; line-height: 1.65; }.hero-primary, .hero-secondary { width: 100%; padding: 13px; }.hero-trust { gap: 10px; font-size: .7rem; }.hero-visual { padding: 15px; border-radius: 19px; }.preview-stat { padding: 17px; }.how-section, .activity-section, .home-contact { padding-top: 42px; padding-bottom: 42px; }.steps-grid { margin-top: 22px; }.step-card { padding: 18px; }.activity-section { border-radius: 20px; }.activity-card { width: 222px; }.activity-track { animation-duration: 22s; }.home-contact h2 { font-size: 1.7rem; }.home-footer { padding-top: 20px; } }
@media (prefers-reduced-motion: reduce) { .reveal, .activity-track { animation: none; } .step-card, .contact-links a, .nav-login, .nav-signup, .hero-primary, .hero-secondary { transition: none; } }
