/* ════════════════════════════════════════════════════════════════
   Acenta Review Agent — Shared Design Tokens
   Modern fintech dashboard · Electric Blue/Violet on Cool-Dark
   ════════════════════════════════════════════════════════════════ */

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

:root {
  /* ── Surface palette — Acenta dark (teal-tinted near-black) ───── */
  --bg:          #0A0F10;
  --surface:     #121A1B;
  --surface-2:   #182324;
  --surface-3:   #21302F;
  --border:      #203030;
  --border-soft: #16201F;

  /* ── Glass surfaces (translucent cards w/ backdrop blur) ───────── */
  --glass:       rgba(18, 26, 27, .55);
  --glass-border:rgba(0, 175, 170, .16);

  /* ── Text ──────────────────────────────────────────────────────── */
  --text:        #EAF3F2;
  --text-soft:   #BBCBC9;
  --muted:       #7E908F;
  --faint:       #4E5E5D;

  /* ── Brand accent — Acenta teal + magenta pop ──────────────────── */
  --accent:      #00AFAA;   /* Acenta teal — primary */
  --accent-2:    #0180AE;   /* Acenta teal-dark */
  --accent-3:    #FF0A60;   /* Acenta magenta — the "pop" / CTA */
  --accent-dim:  #086E6E;
  --accent-soft: rgba(0, 175, 170, .14);
  --accent-ring: rgba(0, 175, 170, .32);
  --accent-grad: linear-gradient(135deg, #00AFAA 0%, #0180AE 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(0,175,170,.92) 0%, rgba(1,128,174,.92) 100%);
  --accent-grad-pop:  linear-gradient(135deg, #00AFAA 0%, #0180AE 55%, #FF0A60 130%);
  --glow:        0 0 0 1px rgba(0,175,170,.28), 0 8px 30px rgba(0,175,170,.20);
  --glow-strong: 0 0 0 1px rgba(0,175,170,.45), 0 12px 44px rgba(0,175,170,.32), 0 2px 8px rgba(255,10,96,.26);
  /* Subtle inner top highlight applied on glass surfaces */
  --hairline:    inset 0 1px 0 rgba(255,255,255,.06);

  /* ── Semantic (tuned cooler) ───────────────────────────────────── */
  --success:     #34D399;
  --success-bg:  rgba(52, 211, 153, .12);
  --warning:     #FBBF55;
  --warning-bg:  rgba(251, 191, 85, .12);
  --danger:      #F2545B;
  --danger-bg:   rgba(242, 84, 91, .12);

  /* ── Radii & elevation ─────────────────────────────────────────── */
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   22px;
  --shadow-1:    0 1px 2px rgba(0,0,0,.45);
  --shadow-2:    0 10px 30px rgba(4,7,20,.45), inset 0 1px 0 rgba(255,255,255,.05);
  --shadow-3:    0 24px 60px rgba(4,7,20,.6), inset 0 1px 0 rgba(255,255,255,.06);
  /* Layered ambient depth for hero/glass cards */
  --shadow-float: 0 1px 0 rgba(255,255,255,.05) inset, 0 2px 4px rgba(0,0,0,.3), 0 18px 48px rgba(4,7,20,.55);

  /* ── Typography — Geist everywhere (no serif) ──────────────────── */
  --font-sans:    'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Geist', 'Inter', system-ui, sans-serif;

  /* ── Legacy aliases (stari inline CSS še vedno dela) ───────────── */
  --navy:   var(--bg);
  --card:   var(--surface);
  --card2:  var(--surface-2);
  --teal:   var(--accent);
  --amber:  var(--warning);
  --red:    var(--danger);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  line-height: 1.5;
}

/* Display headings — Fraunces editorial serif with optical sizing */
h1, .display,
.page-title,
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

/* Focus ring — champagne, not browser blue */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

::selection { background: var(--accent-soft); color: var(--text); }

html { scroll-behavior: smooth; }

/* Scrollbar — diskreten, ne sistemski default */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
*::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ── Brand mark (logo container) — gold outline, not solid block ── */
.logo-icon,
.brand-icon {
  background: transparent !important;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg,
.brand-icon svg { width: 60%; height: 60%; stroke-width: 1.75; }

/* ── Lucide-style SVG icon defaults ──────────────────────────── */
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon-lg { width: 32px; height: 32px; stroke-width: 1.5; }
.icon-xl { width: 48px; height: 48px; stroke-width: 1.25; }

/* ── Empty state (replaces emoji empties) ────────────────────── */
.empty .icon-xl {
  color: var(--faint);
  margin-bottom: 14px;
}

/* ── Toast notifications ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(35,42,74,.92), rgba(24,29,56,.92));
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: .9rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toast-in .32s cubic-bezier(.16,1,.3,1);
}
.toast.fade-out { animation: toast-out .25s ease-in forwards; }
.toast.success  { border-left-color: var(--success); }
.toast.error    { border-left-color: var(--danger); }
.toast.warning  { border-left-color: var(--warning); }
.toast-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.toast.success .toast-icon { color: var(--success); }
.toast.error   .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast-body { flex: 1; }
.toast-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
}
.toast-close:hover { color: var(--text); }

@keyframes toast-in  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); }   to { opacity: 0; transform: translateX(20px); } }

/* ── Branded confirm / prompt modal ──────────────────────────── */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(2px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in .15s ease-out;
}
.app-modal {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(0,175,170,.10), transparent 60%),
    var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  animation: modal-in .24s cubic-bezier(.16,1,.3,1);
}
.app-modal::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--accent-grad);
  opacity: .8;
}
.app-modal-body {
  padding: 28px 28px 20px;
}
.app-modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.app-modal-message {
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.app-modal-input {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
}
.app-modal-input:focus { outline: none; }
.app-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 28px 22px;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
}
.app-modal-btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: opacity .15s, background .15s;
}
.app-modal-btn.cancel {
  background: transparent;
  border-color: var(--border);
  color: var(--text-soft);
}
.app-modal-btn.cancel:hover { background: var(--surface-2); }
.app-modal-btn.confirm {
  background: var(--accent-grad);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,175,170,.30);
  transition: filter .15s, box-shadow .2s, background-position .4s;
}
.app-modal-btn.confirm:hover { filter: brightness(1.08); background-position: 100% 50%; box-shadow: var(--glow-strong); }
.app-modal-btn.danger {
  background: var(--danger);
  color: #fff;
}
.app-modal-btn.danger:hover { opacity: .9; }
.app-modal-btn:disabled { opacity: .4; cursor: not-allowed; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ════════════════════════════════════════════════════════════════
   WOW LAYER — ambient aurora, gradient hovers, entrance motion
   Additive only. No class renames. Pure CSS.
   ════════════════════════════════════════════════════════════════ */

/* Slow-drifting aurora that lives BEHIND all content */
@keyframes aurora-drift {
  0%   { transform: translate3d(0,0,0)      rotate(0deg)   scale(1);    }
  33%  { transform: translate3d(3%,-2%,0)   rotate(4deg)   scale(1.06); }
  66%  { transform: translate3d(-2%,3%,0)   rotate(-3deg)  scale(.97);  }
  100% { transform: translate3d(0,0,0)      rotate(0deg)   scale(1);    }
}
.aurora {
  position: fixed;
  inset: -25vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 78% 8%,  rgba(255,10,96,.16),  transparent 60%),
    radial-gradient(34vmax 28vmax at 12% 4%,  rgba(0,175,170,.18),  transparent 60%),
    radial-gradient(40vmax 32vmax at 60% 96%, rgba(1,128,174,.16),  transparent 62%);
  filter: blur(20px) saturate(120%);
  animation: aurora-drift 28s ease-in-out infinite;
  will-change: transform;
}

/* Soft entrance for content blocks (cards / sections) */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animated gradient sweep — used on highlight stat top-bar & buttons */
@keyframes sheen {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Count-up reveal for stat numbers (JS adds .pop on data load) */
@keyframes value-pop {
  0%   { opacity: 0; transform: translateY(8px) scale(.96); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.stat-value.pop { animation: value-pop .5s cubic-bezier(.16,1,.3,1) both; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .08s !important; }
}
