:root {
  --yd-primary: #5446ce;
  --yd-primary-strong: #3e2bb8;
  --yd-secondary: #a73400;
  --yd-surface: #faf8ff;
  --yd-surface-soft: #f3f2fd;
  --yd-surface-card: #ffffff;
  --yd-ink: #1a1b23;
  --yd-muted: #65657a;
  --yd-line: rgba(84, 70, 206, 0.12);
  --yd-shadow: 0 28px 90px rgba(84, 70, 206, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(84, 70, 206, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(215, 67, 0, 0.08), transparent 20%),
    linear-gradient(180deg, #fbfbff 0%, #f4f3ff 36%, #faf8ff 100%);
  color: var(--yd-ink);
  overflow-x: hidden;
}

.glass-nav {
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--yd-shadow);
}

.glass-nav.is-scrolled {
  box-shadow: 0 18px 70px rgba(84, 70, 206, 0.16);
}

.gradient-text {
  background: linear-gradient(135deg, var(--yd-primary), #a73400);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--yd-primary), #6d61e9);
}

.surface-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(41, 34, 108, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.float {
  animation: yd-float 7s ease-in-out infinite;
}

.float-delayed {
  animation-delay: -2s;
}

.drift {
  animation: yd-drift 12s ease-in-out infinite;
}

.pulse-soft {
  animation: yd-pulse 2.8s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  inset: auto;
  border-radius: 9999px;
  filter: blur(32px);
  opacity: 0.7;
}

.hero-blob-1 {
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.23);
  top: -50px;
  right: -70px;
}

.hero-blob-2 {
  width: 320px;
  height: 320px;
  background: rgba(255, 92, 156, 0.16);
  bottom: -100px;
  left: -90px;
}

.btn-premium {
  box-shadow: 0 16px 30px rgba(84, 70, 206, 0.28);
}

.section-shell {
  border-radius: 3rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--yd-shadow);
}

.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(84, 70, 206, 0.12), transparent 20%),
    radial-gradient(circle at top right, rgba(215, 67, 0, 0.08), transparent 20%),
    linear-gradient(180deg, #fcfbff 0%, #f2f3ff 100%);
}

.admin-sidebar {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(84, 70, 206, 0.08);
}

.admin-card {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(41, 34, 108, 0.08);
}

.chart-shell {
  min-height: 320px;
}

.visitor-log-shell {
  border-radius: 2rem;
  background: rgba(247, 247, 255, 0.88);
  border: 1px solid rgba(84, 70, 206, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  padding: 1rem;
}

.visitor-log-shell .dataTable {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 0.75rem !important;
}

.visitor-log-shell .dataTable thead th {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(84, 70, 206, 0.08);
  color: #8b8b9d;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.95rem 1rem;
  white-space: nowrap;
}

.visitor-log-shell .dataTable tbody td {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(84, 70, 206, 0.06);
  border-bottom: 1px solid rgba(84, 70, 206, 0.06);
  padding: 1rem;
  vertical-align: middle;
  white-space: nowrap;
}

.visitor-log-shell .dataTable tbody tr:hover td {
  background: #ffffff;
}

.visitor-log-shell .dt-container {
  display: grid;
  gap: 1rem;
}

.visitor-log-shell .dt-layout-row {
  gap: 0.75rem 1rem;
}

.visitor-log-shell .dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.visitor-log-shell .dt-button {
  border: 1px solid rgba(84, 70, 206, 0.12) !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #ffffff, #f4f2ff) !important;
  color: var(--yd-ink) !important;
  padding: 0.62rem 0.95rem !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(41, 34, 108, 0.08);
}

.visitor-log-shell .dt-button:hover {
  border-color: rgba(84, 70, 206, 0.24) !important;
  background: linear-gradient(135deg, #ffffff, #ece9ff) !important;
  color: var(--yd-primary) !important;
}

.visitor-log-shell .dt-search {
  justify-self: end;
}

.visitor-log-shell .dt-search label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--yd-muted);
}

.visitor-log-shell .dt-search input,
.visitor-log-shell .dt-length select {
  min-height: 2.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(84, 70, 206, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--yd-ink);
}

.visitor-log-shell .dt-search input:focus,
.visitor-log-shell .dt-length select:focus {
  outline: none;
  border-color: rgba(84, 70, 206, 0.34);
  box-shadow: 0 0 0 4px rgba(84, 70, 206, 0.12);
}

.visitor-log-shell .dt-info,
.visitor-log-shell .dt-length {
  color: var(--yd-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.visitor-log-shell .dt-paging {
  justify-self: end;
}

.visitor-log-shell .dt-paging .dt-paging-button {
  border: 1px solid rgba(84, 70, 206, 0.12) !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--yd-ink) !important;
  margin-left: 0.35rem !important;
  padding: 0.45rem 0.8rem !important;
}

.visitor-log-shell .dt-paging .dt-paging-button.current,
.visitor-log-shell .dt-paging .dt-paging-button:hover {
  border-color: rgba(84, 70, 206, 0.2) !important;
  background: linear-gradient(135deg, var(--yd-primary), #6d61e9) !important;
  color: #ffffff !important;
}

.soft-input {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(84, 70, 206, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

@keyframes yd-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes yd-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -10px) scale(1.05); }
}

@keyframes yd-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
