:root {
  --bg-primary: #040507;
  --bg-secondary: #0c0d12;
  --bg-card: rgba(12, 13, 17, 0.88);
  --bg-panel-header: rgba(18, 20, 26, 0.65);
  --bg-panel-footer: rgba(8, 9, 12, 0.55);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(255, 255, 255, 0.35);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text-main: #f3f4f6;
  --text-muted: #8b8f9c;
  --text-dim: #5c606e;
  --primary-btn-bg: #ffffff;
  --primary-btn-text: #050507;
  --primary-btn-hover: #e5e7eb;
  --google-btn-bg: rgba(255, 255, 255, 0.03);
  --google-btn-hover: rgba(255, 255, 255, 0.06);
  --input-bg: rgba(16, 17, 23, 0.85);
  --input-addon-bg: rgba(22, 24, 32, 0.95);
  --error: #ef4444;
  --success: #10b981;
}

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

html,
body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, #171922, transparent),
    radial-gradient(circle at 15% 100%, #0d0f15, transparent 40%),
    linear-gradient(180deg, #050508 0%, #020203 100%);
  background-attachment: fixed;
}

#streak-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.site-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.auth-header {
  padding: 28px 32px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 40px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.panel-header {
  padding: 24px 28px 20px;
  background: var(--bg-panel-header);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
}

.panel-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.panel-heading-wrap {
  display: flex;
  flex-direction: column;
}

.panel-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.panel-slogan {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.panel-body {
  padding: 28px;
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 22px;
}

.tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.tab-btn:hover:not(.active) {
  color: #ffffff;
}

.social-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.google-btn {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--google-btn-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #f1f3f5;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 42px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.google-btn:hover:not(.is-loading) {
  background: var(--google-btn-hover);
  border-color: var(--border-hover);
}

.google-btn svg {
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.google-btn span {
  transition: opacity 0.2s ease;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.divider span {
  padding: 0 12px;
}

.auth-form-body {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.auth-form-body.switching {
  opacity: 0.3;
  transform: translateY(2px);
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}

.expandable-field {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-bottom: 0;
  transform: translateY(-6px);
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    margin-bottom 0.24s ease;
}

.expandable-field.is-open {
  max-height: 120px;
  opacity: 1;
  margin-bottom: 16px;
  transform: translateY(0);
}

.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9da1b0;
  margin-bottom: 6px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-addon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  background: var(--input-addon-bg);
  border: 1px solid var(--border-subtle);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.input-addon svg {
  width: 16px;
  height: 16px;
}

.form-input,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus {
  border-color: var(--border-focus);
  background: rgba(22, 24, 32, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.form-input::placeholder,
input::placeholder,
textarea::placeholder {
  color: #484b57;
}

.input-group .form-input {
  flex: 1;
  border-radius: 0 6px 6px 0;
}

.input-group:focus-within .input-addon {
  border-color: var(--border-focus);
  color: #ffffff;
  background: rgba(30, 32, 42, 0.95);
}

.input-group:focus-within .form-input {
  border-color: var(--border-focus);
  background: rgba(22, 24, 32, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.input-group.has-toggle .form-input {
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.password-toggle:hover {
  color: var(--text-main);
}

.password-toggle svg {
  width: 16px;
  height: 16px;
}

.form-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 20px;
  font-size: 0.8rem;
  max-height: 40px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s ease,
    margin 0.25s ease;
}

.form-extras.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.remember-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  background: var(--input-bg);
  outline: none;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.15s ease;
}

.remember-checkbox:checked {
  background: #ffffff;
  border-color: #ffffff;
}

.remember-checkbox:checked::before {
  content: "";
  width: 6px;
  height: 3px;
  border-left: 2px solid #000000;
  border-bottom: 2px solid #000000;
  transform: rotate(-45deg) translate(1px, -1px);
  position: relative;
  top: 0.5px;
}

.forgot-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.forgot-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.submit-btn {
  position: relative;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: var(--primary-btn-bg);
  color: var(--primary-btn-text);
  border: none;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.submit-btn:hover:not(.is-loading) {
  background: var(--primary-btn-hover);
  transform: translateY(-1px);
}

.submit-btn:active:not(.is-loading) {
  transform: translateY(0);
}

.submit-btn.is-loading,
.google-btn.is-loading {
  pointer-events: none;
  cursor: wait;
  color: transparent !important;
}

.submit-btn.is-loading>*,
.google-btn.is-loading>* {
  opacity: 0;
  visibility: hidden;
}

.submit-btn.is-loading::after,
.google-btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  margin: -8.5px 0 0 -8.5px;
  border-radius: 50%;
  box-sizing: border-box;
  animation: spinnerRotate 0.65s linear infinite;
}

.submit-btn.is-loading::after {
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-top-color: #050507;
}

.google-btn.is-loading::after {
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: #ffffff;
}

@keyframes spinnerRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.panel-footer {
  padding: 15px 28px;
  background: var(--bg-panel-footer);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.toggle-form-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
  cursor: pointer;
}

.toggle-form-link:hover {
  text-decoration: underline;
}

.status-message {
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 0.82rem;
  margin-bottom: 16px;
  display: none;
  animation: statusFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes statusFade {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.status-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.auth-footer {
  padding: 24px 32px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.notfound-card {
  max-width: 520px;
  text-align: center;
  padding: 44px 32px;
}

.error-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a1a5b3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  margin-bottom: 22px;
}

.notfound-code {
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.3) 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.notfound-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 10px;
}

.notfound-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.notfound-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-secondary {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
}

.btn-primary-link {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary-btn-text);
  background: var(--primary-btn-bg);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-link:hover {
  background: var(--primary-btn-hover);
  transform: translateY(-1px);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(4, 5, 7, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 6px;
  color: #c7cdff;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-discord-btn:hover {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.5);
  color: #ffffff;
}

.nav-discord-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-btn-text {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.nav-btn-text:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn-solid {
  background: var(--primary-btn-bg);
  color: var(--primary-btn-text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.nav-btn-solid:hover {
  background: var(--primary-btn-hover);
  transform: translateY(-1px);
}

.landing-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-section {
  padding: 108px 0 88px;
  text-align: center;
  width: 100%;
}

.hero-section .landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  color: #d1d5db;
  letter-spacing: 0.04em;
  margin: 0 auto 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #ffffff;
  max-width: 880px;
  margin: 0 auto 20px;
  text-align: center;
}

.hero-title-highlight {
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.5) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto;
}

.hero-btn-primary {
  padding: 13px 26px;
  border-radius: 6px;
  background: var(--primary-btn-bg);
  color: var(--primary-btn-text);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-btn-primary:hover {
  background: var(--primary-btn-hover);
  transform: translateY(-1px);
}

.hero-btn-secondary {
  padding: 13px 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.section {
  padding: 88px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9da1b0;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border-top: 2px solid #ffffff;
  background: rgba(16, 18, 25, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.featured-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #050507;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 999px;
}

.tier-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.tier-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 40px;
}

.tier-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.tier-price {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.tier-period {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.tier-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: #d1d5db;
}

.check-icon {
  width: 15px;
  height: 15px;
  color: #10b981;
  flex-shrink: 0;
}

.pricing-btn {
  width: 100%;
  padding: 11px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pricing-btn-solid {
  background: var(--primary-btn-bg);
  color: var(--primary-btn-text);
}

.pricing-btn-solid:hover {
  background: var(--primary-btn-hover);
  transform: translateY(-1px);
}

.pricing-btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
}

.pricing-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.cta-banner {
  background: rgba(14, 16, 22, 0.9);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 64px 32px;
  text-align: center;
  margin: 40px auto 80px;
  max-width: 980px;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.legal-layout {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-sticky {
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 24px;
}

.sidebar-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9da1b0;
  margin-bottom: 16px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.sidebar-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.sidebar-link.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-card {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.sidebar-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.sidebar-card-text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.sidebar-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  background: rgba(88, 101, 242, 0.14);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 6px;
  color: #c7cdff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sidebar-card-btn:hover {
  background: rgba(88, 101, 242, 0.25);
  color: #ffffff;
}

.legal-main {
  min-width: 0;
}

.legal-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.legal-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-breadcrumb a:hover {
  color: #ffffff;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a1a5b3;
  margin-bottom: 14px;
}

.legal-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 10px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.legal-card {
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 32px 30px;
  scroll-margin-top: 100px;
  transition: border-color 0.2s ease;
}

.legal-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.legal-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.clause-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.legal-heading {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.legal-text {
  font-size: 0.94rem;
  line-height: 1.75;
  color: #d1d5db;
  margin-bottom: 14px;
}

.legal-text:last-child {
  margin-bottom: 0;
}

.callout-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-left: 3px solid #ffffff;
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin: 18px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e5e7eb;
}

.callout-box.security-box {
  border-left-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.callout-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 6px;
}

.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.legal-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.legal-list-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  margin-top: 9px;
  flex-shrink: 0;
}

.docs-layout {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px 96px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
}

.docs-nav-group {
  margin-bottom: 24px;
}

.docs-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9da1b0;
  margin-bottom: 10px;
  padding-left: 10px;
}

.docs-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.docs-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.docs-nav-link.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-weight: 600;
}

.docs-content {
  min-width: 0;
}

.docs-article {
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 36px 32px;
  margin-bottom: 32px;
  scroll-margin-top: 100px;
}

.docs-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
}

.docs-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.docs-heading-2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 32px 0 14px;
}

.docs-text {
  font-size: 0.94rem;
  line-height: 1.75;
  color: #d1d5db;
  margin-bottom: 16px;
}

.docs-code-inline {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #f3f4f6;
}

.docs-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.docs-table th {
  background: rgba(22, 24, 32, 0.9);
  padding: 12px 16px;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.docs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

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

.status-badge-inline {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 11, 16, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.dash-topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dash-app-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dash-app-select-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
}

.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.76rem;
  font-weight: 600;
  color: #6ee7b7;
  transition: all 0.2s ease;
}

.dash-status-pill.is-paused {
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.dash-status-pill.is-none {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.status-dot-active {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.status-dot-paused {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.status-dot-none {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b7280;
}

.dash-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
}

.dash-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
}

.dash-user-tier {
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
}

.dash-logout-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-logout-link:hover {
  color: #ef4444;
}

.dash-wrapper {
  display: flex;
  min-height: calc(100vh - 64px);
  width: 100%;
}

.dash-sidebar {
  width: 250px;
  background: rgba(8, 9, 13, 0.85);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.dash-nav-section {
  margin-bottom: 22px;
}

.dash-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7080;
  margin-bottom: 8px;
  padding-left: 10px;
}

.dash-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dash-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.dash-nav-item a svg {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.dash-nav-item a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.dash-nav-item a:hover svg {
  color: #ffffff;
}

.dash-nav-item.active a {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-weight: 600;
}

.dash-nav-item.active a svg {
  color: #ffffff;
}

.dash-main {
  flex: 1;
  padding: 32px 36px 96px;
  min-width: 0;
}

body[data-page="settings"] .dash-main {
  padding-bottom: 120px;
}

.dash-bottom-spacer {
  height: 96px;
  width: 100%;
  flex-shrink: 0;
  pointer-events: none;
}

.dash-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dash-page-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 4px;
}

.dash-page-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.dash-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-btn-bg);
  color: var(--primary-btn-text);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.dash-btn-primary:hover {
  background: var(--primary-btn-hover);
  transform: translateY(-1px);
}

.dash-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dash-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
}

.dash-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.dash-metric-card {
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 22px 20px;
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9da1b0;
}

.metric-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.metric-val {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-trend {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trend-up {
  color: #10b981;
  font-weight: 600;
}

.dash-panels-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}

.dash-panel {
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.dash-panel-header {
  padding: 18px 24px;
  background: rgba(18, 20, 26, 0.65);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-panel-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.dash-panel-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #a1a5b3;
}

.dash-table-container {
  width: 100%;
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.dash-table th {
  padding: 12px 18px;
  background: rgba(14, 16, 22, 0.9);
  color: #9da1b0;
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.dash-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.dash-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

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

.td-mono {
  font-family: ui-monospace, monospace;
  color: #f1f3f5;
  font-weight: 500;
}

.dash-info-list {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-info-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a7f91;
}

.dash-info-val-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dash-info-val {
  font-size: 0.88rem;
  font-weight: 500;
  color: #ffffff;
  font-family: ui-monospace, monospace;
}

.dash-btn-mini {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #d1d5db;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dash-btn-mini:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.footer-nav {
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 5, 7, 0.85);
  padding: 48px 48px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto 36px;
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-slogan {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9da1b0;
  margin-bottom: 14px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.15s ease;
}

.footer-col-link:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.dash-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.dash-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-search-wrap {
  position: relative;
  min-width: 280px;
  display: flex;
  align-items: center;
}

.dash-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  z-index: 2;
  width: 15px;
  height: 15px;
}

input[type="text"].dash-search-input,
.dash-search-input {
  width: 100%;
  padding: 9px 14px 9px 38px !important;
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

input[type="text"].dash-search-input:focus,
.dash-search-input:focus {
  border-color: var(--border-focus);
  background: rgba(22, 24, 32, 0.95);
}

select,
.dash-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 8px 34px 8px 12px;
  background-color: rgba(14, 16, 23, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8f9c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #e5e7eb;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

select:focus,
.dash-select:focus {
  border-color: var(--border-focus);
  background-color: rgba(20, 23, 32, 0.98);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

select option,
.dash-select option {
  background-color: #0c0e14;
  color: #ffffff;
  padding: 10px 14px;
}

.settings-section {
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}

.settings-section:last-child {
  margin-bottom: 48px;
}

.settings-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.settings-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 24px;
}

.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.settings-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.settings-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.settings-control {
  flex-shrink: 0;
}

.settings-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-bottom: 16px;
}

.settings-input-group:last-child {
  margin-bottom: 0;
}

.dash-summary-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-summary-pill {
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-summary-pill-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.dash-summary-pill-val {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.dash-table-card {
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dash-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.dash-table th {
  background: rgba(18, 20, 27, 0.75);
  padding: 12px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8b8f9c;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.dash-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  vertical-align: middle;
  white-space: nowrap;
}

.dash-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.dash-table-footer {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(10, 11, 15, 0.4);
}

.dash-key-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: #f3f4f6;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.key-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 3px 6px;
  margin-left: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  transition: all 0.15s ease;
}

.key-copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.hwid-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hwid-unbound {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

.table-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.table-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.table-action-btn.danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.table-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ffffff;
}

.table-actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-badge,
.badge-active,
.badge-paused,
.badge-banned,
.badge-unused,
.badge-expired,
.badge-blue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.70rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.025em;
  white-space: nowrap;
  vertical-align: middle;
  transition: all 0.15s ease;
}

.status-badge::before,
.badge-active::before,
.badge-paused::before,
.badge-banned::before,
.badge-unused::before,
.badge-expired::before,
.badge-blue::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-badge.badge-active,
.badge-active {
  background: rgba(16, 185, 129, 0.08);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.status-badge.badge-active::before,
.badge-active::before {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.85);
}

.status-badge.badge-paused,
.badge-paused {
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.status-badge.badge-paused::before,
.badge-paused::before {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.85);
}

.status-badge.badge-banned,
.badge-banned {
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.status-badge.badge-banned::before,
.badge-banned::before {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.85);
}

.status-badge.badge-unused,
.status-badge.badge-blue,
.badge-unused,
.badge-blue {
  background: rgba(59, 130, 246, 0.08);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.status-badge.badge-unused::before,
.status-badge.badge-blue::before,
.badge-unused::before,
.badge-blue::before {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.85);
}

.status-badge.badge-expired,
.badge-expired {
  background: rgba(255, 255, 255, 0.04);
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-badge.badge-expired::before,
.badge-expired::before {
  background: #6b7280;
  box-shadow: none;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

.user-name-wrap {
  display: flex;
  flex-direction: column;
}

.user-display-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.84rem;
}

.user-sub-email {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.app-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}

.app-card {
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease;
}

.app-card.featured {
  border-top: 3px solid #ffffff;
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.app-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.app-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}

.app-card-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.app-card-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.app-card-field-label {
  color: var(--text-muted);
}

.app-card-field-val {
  color: #f3f4f6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.app-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.app-config-section {
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 32px;
}

.app-config-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.app-config-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.toggle-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.toggle-switch-row:last-child {
  border-bottom: none;
}

.toggle-switch-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 20px;
}

.toggle-switch-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.toggle-switch-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.dash-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.dash-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dash-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  transition: 0.2s;
}

.dash-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.2s;
}

.dash-toggle input:checked + .dash-toggle-slider {
  background-color: #10b981;
}

.dash-toggle input:checked + .dash-toggle-slider:before {
  transform: translateX(20px);
}

.dash-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dash-modal-backdrop.is-open {
  display: flex;
}

.dash-modal-card {
  background: #0d0f15;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  animation: modalFadeIn 0.15s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dash-modal-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(18, 20, 26, 0.6);
}

.dash-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.dash-modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.dash-modal-close:hover {
  color: #ffffff;
}

.dash-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dash-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(10, 11, 15, 0.5);
}

.dash-app-switcher-wrap {
  position: relative;
}

.dash-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  background: #0d0f15;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  display: none;
  z-index: 500;
  overflow: hidden;
  animation: modalFadeIn 0.12s ease-out;
}

.dash-dropdown-menu.is-open {
  display: block;
}

.app-switcher-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.app-switcher-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.app-switcher-item.active {
  background: rgba(255, 255, 255, 0.08);
}

.app-switcher-item-info {
  display: flex;
  flex-direction: column;
}

.app-switcher-item-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
}

.app-switcher-item-ver {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.dropdown-action-btn {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-top: 1px solid var(--border-subtle);
  color: #c7cdff;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.dropdown-action-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.user-profile-menu-wrap {
  position: relative;
}

.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #0d0f15;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  display: none;
  z-index: 500;
  overflow: hidden;
  animation: modalFadeIn 0.12s ease-out;
}

.user-profile-dropdown.is-open {
  display: block;
}

.user-profile-dropdown-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(18, 20, 26, 0.4);
}

.user-profile-dropdown-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #e5e7eb;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.dropdown-menu-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.dropdown-menu-link.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.dash-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  background: rgba(12, 14, 19, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  gap: 12px;
}

.dash-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  margin: 0 auto 16px;
  flex-shrink: 0;
}

.dash-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.dash-empty-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.55;
  margin-bottom: 6px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(12, 14, 19, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

.timeline-item:hover {
  border-color: var(--border-hover);
}

.timeline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

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

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.timeline-time {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 8px;
}

.timeline-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.timeline-source,
.timeline-ip {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.chart-svg-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 10px 0;
}

.analytics-svg {
  width: 100%;
  height: 240px;
  display: block;
}

.chart-dot {
  cursor: pointer;
  transition: r 0.15s ease;
}

.chart-dot:hover {
  r: 6;
}

.chart-empty-state {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 14, 19, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.chart-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 440px;
  padding: 20px;
  margin: 0 auto;
}

#set-rsa-key,
textarea[readonly] {
  resize: none !important;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  align-items: center;
  justify-content: center;
}

.mobile-sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 90;
  display: none;
}

.mobile-sidebar-backdrop.is-open {
  display: block;
}

@media (max-width: 960px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .dash-sidebar.mobile-open {
    display: flex !important;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: 260px;
    background: #090b10;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
  }
}

.dash-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f121a;
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.dash-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1100px) {
  .dash-summary-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dash-summary-pills {
    grid-template-columns: 1fr;
  }

  .dash-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-search-wrap {
    min-width: 100%;
  }

  .app-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .legal-layout,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar,
  .docs-sidebar,
  .dash-sidebar {
    display: none;
  }

  .dash-main {
    padding: 24px 20px 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {

  .landing-nav,
  .dash-topbar {
    padding: 14px 18px;
  }

  .nav-links,
  .dash-status-pill {
    display: none;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .dash-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .hero-btn-primary,
  .hero-btn-secondary,
  .dash-btn-group {
    width: 100%;
  }

  .dash-metrics-grid {
    grid-template-columns: 1fr;
  }

  .legal-title {
    font-size: 2rem;
  }

  .legal-card,
  .docs-article {
    padding: 24px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.perm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  margin-right: 4px;
}

.perm-badge.enabled {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.perm-badge.disabled {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
