@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  --dtm-bg: #f7f8fb;
  --dtm-fg: #141527;
  --dtm-card: rgba(255, 255, 255, 0.65);
  --dtm-border: rgba(20, 21, 39, 0.12);
  --dtm-muted: #6b7280;
  --dtm-primary: #6d5bf5;
  --dtm-primary-dark: #5a49db;
  --dtm-accent: #d946ef;
  --dtm-success: #22c55e;
  --dtm-danger: #ef4444;
  --dtm-shadow: 0 20px 50px rgba(28, 30, 54, 0.12);
  --dtm-radius: 16px;
  --dtm-radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

body.dtm-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  background: var(--dtm-bg);
  color: var(--dtm-fg);
}

body.dtm-dark {
  --dtm-bg: #0b0d12;
  --dtm-fg: #f3f4f6;
  --dtm-card: rgba(17, 19, 26, 0.65);
  --dtm-border: rgba(255, 255, 255, 0.08);
  --dtm-muted: #9ca3af;
  --dtm-primary: #7c6cff;
  --dtm-primary-dark: #6a58ee;
  --dtm-accent: #f472b6;
}

body.dtm-has-nav {
  padding-top: 72px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.dtm-container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.dtm-page {
  padding: 48px 0 64px;
}

.dtm-page-hero {
  padding: 72px 0 32px;
}

.dtm-page-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(109, 91, 245, 0.18);
  border: 1px solid rgba(109, 91, 245, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.dtm-page-title {
  font-size: clamp(30px, 5vw, 44px);
  margin: 0 0 12px;
}

.dtm-page-subtitle {
  color: var(--dtm-muted);
  max-width: 520px;
  margin: 0 auto;
}

.dtm-section {
  padding: 80px 0;
}

.dtm-gradient-text {
  background: linear-gradient(135deg, #6d5bf5, #d946ef, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: dtm-gradient 6s ease infinite;
}

@keyframes dtm-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.dtm-glass {
  background: var(--dtm-card);
  border: 1px solid var(--dtm-border);
  backdrop-filter: blur(20px);
  box-shadow: var(--dtm-shadow);
}

.dtm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(109, 91, 245, 0.12);
  color: var(--dtm-primary);
  font-size: 12px;
  font-weight: 600;
}

.dtm-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px 0;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(20, 21, 39, 0.08);
}

body.dtm-dark .dtm-nav {
  background: rgba(12, 14, 20, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dtm-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dtm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.dtm-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(109, 91, 245, 0.15);
  border: 1px solid rgba(109, 91, 245, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.dtm-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dtm-nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--dtm-muted);
  transition: all 0.2s ease;
}

.dtm-nav-link:hover {
  color: var(--dtm-primary);
  background: rgba(109, 91, 245, 0.1);
}

.dtm-nav-email {
  font-size: 14px;
  color: var(--dtm-muted);
}

.dtm-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(20, 21, 39, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

body.dtm-dark .dtm-footer {
  background: rgba(12, 14, 20, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dtm-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.dtm-footer-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.dtm-footer-link {
  display: block;
  color: var(--dtm-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.dtm-footer-link:hover {
  color: var(--dtm-primary);
}

.dtm-footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(20, 21, 39, 0.08);
  text-align: center;
  font-size: 13px;
  color: var(--dtm-muted);
}

.dtm-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0;
  overflow: hidden;
}

.dtm-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.dtm-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(109, 91, 245, 0.18), transparent 60%),
              radial-gradient(circle at 20% 20%, rgba(217, 70, 239, 0.16), transparent 45%);
  z-index: 0;
}

.dtm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(109, 91, 245, 0.15), transparent 60%),
              radial-gradient(circle at 20% 20%, rgba(217, 70, 239, 0.15), transparent 45%);
}

.dtm-hero-card {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 40px 32px;
  border-radius: var(--dtm-radius-lg);
}

.dtm-hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 20px;
  background: rgba(109, 91, 245, 0.18);
  border: 1px solid rgba(109, 91, 245, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dtm-float 6s ease-in-out infinite;
}

@keyframes dtm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.dtm-hero-title {
  font-size: clamp(32px, 6vw, 64px);
  margin-bottom: 16px;
}

.dtm-hero-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--dtm-muted);
  margin-bottom: 32px;
}

.dtm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.dtm-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.dtm-feature-card {
  padding: 24px;
  border-radius: var(--dtm-radius);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.dtm-feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.dtm-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 91, 245, 0.3);
}

.dtm-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(109, 91, 245, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.dtm-theme-toggle {
  border: 1px solid rgba(20, 21, 39, 0.12);
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dtm-muted);
  transition: all 0.2s ease;
}

.dtm-theme-toggle:hover {
  color: var(--dtm-primary);
  border-color: rgba(109, 91, 245, 0.4);
  background: rgba(109, 91, 245, 0.08);
}

.dtm-theme-icon {
  display: inline-flex;
}

.dtm-theme-moon {
  display: none;
}

body.dtm-dark .dtm-theme-sun {
  display: none;
}

body.dtm-dark .dtm-theme-moon {
  display: inline-flex;
}

.dtm-cta {
  padding: 48px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.dtm-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109, 91, 245, 0.15), rgba(217, 70, 239, 0.08), transparent);
}

.dtm-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.dtm-card {
  padding: 24px;
  border-radius: var(--dtm-radius);
}

.dtm-section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
}

.dtm-auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.dtm-auth-card {
  width: min(420px, 92vw);
  padding: 32px;
  border-radius: var(--dtm-radius);
}

.dtm-auth-title {
  text-align: center;
  margin-bottom: 24px;
}

.dtm-auth-title h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.dtm-auth-title p {
  margin: 0;
  font-size: 14px;
  color: var(--dtm-muted);
}

.dtm-form {
  display: grid;
  gap: 16px;
}

.dtm-form-compact {
  gap: 10px;
}

.dtm-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.dtm-link-primary {
  color: var(--dtm-primary);
  font-weight: 600;
}

.dtm-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dtm-muted);
}

.dtm-mt-16 {
  margin-top: 16px;
}

.dtm-mb-12 {
  margin-bottom: 12px;
}

.dtm-divider {
  margin: 24px 0;
  border-top: 1px solid rgba(20, 21, 39, 0.08);
}

.is-hidden {
  display: none;
}

.dtm-success-text {
  color: var(--dtm-success);
}

.dtm-danger-text {
  color: var(--dtm-danger);
}

.dtm-error-text {
  color: var(--dtm-danger);
  font-size: 12px;
}

#passwordStrengthIndicator.weak {
  color: var(--dtm-danger);
}

#passwordStrengthIndicator.moderate {
  color: #f59e0b;
}

#passwordStrengthIndicator.strong {
  color: var(--dtm-success);
}

.dtm-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.dtm-helper-text {
  font-size: 13px;
  color: var(--dtm-muted);
}

.dtm-contact-info {
  text-align: center;
  display: grid;
  gap: 10px;
}

.dtm-contact-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dtm-muted);
}

.dtm-input,
.dtm-select,
.dtm-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--dtm-border);
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  font-size: 14px;
}

.dtm-input:focus,
.dtm-select:focus,
.dtm-textarea:focus {
  outline: none;
  border-color: rgba(109, 91, 245, 0.6);
  box-shadow: 0 0 0 3px rgba(109, 91, 245, 0.15);
}

.dtm-input-icon {
  position: relative;
}

.dtm-input-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--dtm-muted);
}

.dtm-input-icon .dtm-input {
  padding-left: 36px;
}

.dtm-input-icon-right .dtm-input {
  padding-left: 14px;
}

.dtm-input-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--dtm-muted);
  cursor: pointer;
}

.dtm-helper-text {
  font-size: 12px;
  color: var(--dtm-muted);
}

.dtm-accordion {
  display: grid;
  gap: 12px;
}

.dtm-accordion-item {
  border: 1px solid rgba(20, 21, 39, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.6);
}

.dtm-accordion-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
}

.dtm-accordion-item summary::-webkit-details-marker {
  display: none;
}

.dtm-accordion-item p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--dtm-muted);
}

.dtm-legal-stack {
  display: grid;
  gap: 24px;
}

.dtm-legal-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.dtm-legal-section p,
.dtm-legal-section li {
  font-size: 14px;
  color: var(--dtm-muted);
  line-height: 1.6;
}

.dtm-legal-section ul {
  margin: 8px 0 0 18px;
}

.dtm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dtm-btn-primary {
  background: var(--dtm-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(109, 91, 245, 0.25);
}

.dtm-btn-primary:hover {
  background: var(--dtm-primary-dark);
}

.dtm-btn-outline {
  background: transparent;
  color: var(--dtm-fg);
  border-color: rgba(20, 21, 39, 0.12);
}

.dtm-btn-outline:hover {
  border-color: rgba(109, 91, 245, 0.4);
  color: var(--dtm-primary);
}

.dtm-btn-ghost {
  background: transparent;
  color: var(--dtm-muted);
}

.dtm-btn-ghost:hover {
  color: var(--dtm-primary);
  background: rgba(109, 91, 245, 0.1);
}

.dtm-btn-sm {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 10px;
}

.dtm-dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.dtm-dashboard-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.dtm-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dtm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.dtm-folder-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.dtm-folder-card:hover {
  border-color: rgba(109, 91, 245, 0.25);
  transform: translateY(-2px);
}

.dtm-folder-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dtm-folder-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dtm-folder-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dtm-muted);
  margin-bottom: 12px;
}

.dtm-folder-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(20, 21, 39, 0.08);
  padding-top: 12px;
}

.dtm-action-group {
  display: flex;
  gap: 6px;
}

.dtm-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: rgba(109, 91, 245, 0.12);
  color: var(--dtm-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dtm-icon-btn.dtm-danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--dtm-danger);
}

.dtm-media-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.dtm-media-card {
  padding: 12px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.dtm-media-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(109, 91, 245, 0.08);
}

.dtm-media-actions {
  display: flex;
  justify-content: space-between;
}

.dtm-modal .modal-content {
  background: var(--dtm-card);
  border: 1px solid var(--dtm-border);
  backdrop-filter: blur(16px);
  border-radius: var(--dtm-radius);
}

.dtm-slider {
  margin-top: 12px;
}

.noUi-target {
  background: rgba(109, 91, 245, 0.12);
  border: none;
  box-shadow: none;
  height: 6px;
}

.noUi-connect {
  background: var(--dtm-primary);
}

.noUi-handle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--dtm-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  top: -6px;
  right: -9px;
}

progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  accent-color: var(--dtm-primary);
}

@media (max-width: 768px) {
  .dtm-nav {
    padding: 10px 0;
  }

  .dtm-nav-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
