@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ============================================================
   FRONTEND CSS — pricing, login, index
   Dark theme untuk public pages
   ============================================================ */
:root {
  --bg:           #08090d;
  --surface:      #0f111a;
  --surface-2:    #161a26;
  --border:       #1d2438;
  --border-hover: #2c3550;

  --accent:       #e8441a;
  --accent-dim:   rgba(232,68,26,0.12);
  --accent-glow:  rgba(232,68,26,0.25);

  --text-1: #e6ecf5;
  --text-2: #8494a8;
  --text-3: #3d4e62;

  --success:  #2dd4a0;
  --danger:   #f0524a;
  --warning:  #f59e0b;
  --info:     #38bdf8;

  --tier-basic:      #8494a8;
  --tier-pro:        #818cf8;
  --tier-business:   #38bdf8;
  --tier-enterprise: #e8441a;

  --radius:    10px;
  --radius-sm: 6px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Dot grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; line-height: 1.2; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn-primary   { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.btn-secondary:hover { color: var(--text-1); }
.btn-ghost  { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text-1); }
.btn-sm     { padding: 5px 12px; font-size: 0.8rem; }
.btn-block  { width: 100%; justify-content: center; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-trial    { background: rgba(132,148,168,0.15); color: var(--tier-basic); }
.badge-basic    { background: rgba(132,148,168,0.15); color: var(--tier-basic); }
.badge-pro      { background: rgba(129,140,248,0.15); color: var(--tier-pro); }
.badge-business { background: rgba(56,189,248,0.15);  color: var(--tier-business); }
.badge-success  { background: rgba(45,212,160,0.15);  color: var(--success); }
.badge-danger   { background: rgba(240,82,74,0.15);   color: var(--danger); }

/* Form inputs */
input, select, textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  padding: 8px 12px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder { color: var(--text-3); }

/* Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-1);
  box-shadow: var(--shadow);
  animation: slideIn 0.2s ease;
  max-width: 300px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
@keyframes slideIn { from { transform: translateY(10px); opacity:0; } to { transform: translateY(0); opacity:1; } }
