/* EasySaveIt premium glassmorphism SaaS UI */
* { box-sizing: border-box; }

html, body { height: 100%; }

:root {
  --bg0: #f6f8ff;
  --bg1: #eaf0ff;
  --bg2: #e7ddff;

  --text: #0b1220;
  --muted: rgba(11, 18, 32, 0.65);

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(37, 99, 235, 0.18);
  --glass-shadow: rgba(16, 24, 40, 0.12);

  --primary0: #7c3aed; /* purple */
  --primary1: #2563eb; /* blue */
  --primary2: #22d3ee; /* cyan */

  --btn-bg: linear-gradient(135deg, rgba(124, 58, 237, 1) 0%, rgba(37, 99, 235, 1) 45%, rgba(34, 211, 238, 1) 100%);
  --btn-border: rgba(124, 58, 237, 0.35);

  --card-radius: 18px;
  --shadow: 0 18px 60px rgba(16, 24, 40, 0.15);
  --shadow-soft: 0 10px 26px rgba(16, 24, 40, 0.10);
}

html[data-theme="dark"] {
  --bg0: #0b1220;
  --bg1: #0b1630;
  --bg2: #130a2a;

  --text: #e8eefc;
  --muted: rgba(232, 238, 252, 0.72);

  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(34, 211, 238, 0.22);
  --glass-shadow: rgba(0, 0, 0, 0.28);
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(900px 600px at 80% 0%, rgba(37, 99, 235, 0.16), transparent 55%),
    radial-gradient(900px 900px at 70% 90%, rgba(34, 211, 238, 0.12), transparent 55%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* Layout */
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 18px; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }

.card {
  grid-column: span 12;
  border-radius: var(--card-radius);
  padding: 16px;

  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card h2, .card h3 { margin: 0 0 10px; }

.section-title { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

.muted { color: var(--muted); }

.form-row { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }

/* Nav */
header { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.05);
}

.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; }
.logo { font-weight: 800; letter-spacing: 0.2px; }

.nav-links { display: flex; gap: 14px; align-items: center; }
.nav-links a { color: var(--text); opacity: 0.9; }
.nav-links a:hover { opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Mobile */
.hamburger { display: none; }
.mobile-menu { display: none; }

@media (max-width: 840px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .mobile-menu { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  user-select: none;
}

.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.12); }

.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary {
  border-color: var(--btn-border);
  background: var(--btn-bg);
  color: white;
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover { box-shadow: 0 16px 42px rgba(37, 99, 235, 0.28); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Inputs */
input, textarea, select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  outline: none;
}

textarea { min-height: 92px; resize: vertical; }

input::placeholder, textarea::placeholder { color: rgba(127, 127, 127, 0.8); }

/* Hero */
.hero h1 { margin: 0; font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; }
.hero p { margin: 10px 0 0; }

/* Badges / Tags */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--muted);
}

/* Alerts */
.alert {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.alert-error {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.14);
  color: #ef4444;
}
.alert-success {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.14);
  color: #10b981;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: rgba(255, 255, 255, 1);
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.14); }

@media (min-width: 900px) {
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: span 12; }
}

/* Footer */
footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px 0;
  color: var(--muted);
}

.footer-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.footer-col { grid-column: span 12; }
@media (min-width: 880px) {
  .footer-col { grid-column: span 3; }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: fadeIn 220ms ease both; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

