/* ============================================================
   Saylo Web Studio — Base / Reset
   ============================================================ */

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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--text-1);
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(139, 92, 246, 0.1), transparent 60%),
    radial-gradient(1000px 700px at -10% 110%, rgba(255, 95, 158, 0.08), transparent 55%),
    var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--accent-1);
  text-decoration: none;
}

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

::selection {
  background: rgba(139, 92, 246, 0.35);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-4);
}

/* Utility */
.hidden {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
}

.text-2 {
  color: var(--text-2);
}

.text-3 {
  color: var(--text-3);
}

.grad-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--fs-14);
  color: var(--text-1);
  background: var(--bg-3);
  border: 1px solid var(--line-1);
  transition: all 0.18s var(--ease);
  user-select: none;
}
.btn:hover {
  background: var(--bg-4);
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn-primary {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  filter: brightness(1.1);
  background: var(--accent-grad);
}
.btn-love {
  background: var(--accent-grad-warm);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-love);
}
.btn-love:hover {
  filter: brightness(1.08);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.btn-ghost:hover {
  background: var(--bg-3);
  color: var(--text-1);
}
.btn-sm {
  padding: 6px 12px;
  font-size: var(--fs-13);
  border-radius: var(--r-sm);
}
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  border-radius: var(--r-md);
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-pro {
  background: var(--accent-grad);
  color: #fff;
}
.badge-plus {
  background: var(--accent-grad-warm);
  color: #fff;
}
.badge-vip {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #3a2600;
}
.badge-free {
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--line-1);
}

.divider {
  height: 1px;
  background: var(--line-1);
}

/* Loading dots */
.dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: dot-bounce 1.2s var(--ease-inout) infinite;
}
.dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dot-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.fade-in {
  animation: fade-in 0.35s var(--ease) both;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pop-in {
  animation: pop-in 0.35s var(--ease-bounce) both;
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
