:root {
  /* Color Palette - 2025 Modern Aesthetic */
  --primary-color: #6366f1; /* Indigo 500 */
  --primary-hover: #4f46e5; /* Indigo 600 */
  --secondary-color: #ec4899; /* Pink 500 */
  --accent-color: #8b5cf6; /* Violet 500 */
  --background-bg: #0f172a; /* Slate 900 */
  --card-bg: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity */
  --text-main: #f8fafc; /* Slate 50 */
  --text-muted: #94a3b8; /* Slate 400 */
  --border-color: rgba(148, 163, 184, 0.1);
  --success-color: #10b981; /* Emerald 500 */

  /* Gradients */
  --main-gradient: linear-gradient(
    135deg,
    #6366f1 0%,
    #a855f7 50%,
    #ec4899 100%
  );
  --card-gradient: linear-gradient(
    180deg,
    rgba(51, 65, 85, 0.5) 0%,
    rgba(30, 41, 59, 0.5) 100%
  );

  /* Spacing & Radius */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;

  /* Shadows */
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background-color: var(--background-bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(99, 102, 241, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(236, 72, 153, 0.15) 0%,
      transparent 40%
    );
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 1.75rem;
  background: var(--main-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.25rem;
  margin-top: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--spacing-xs);
  color: var(--text-main);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-muted);
}

/* Layout */
.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-md);
  flex: 1;
}

/* Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-card);
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

select,
input {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: all 0.3s ease;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Results Section */
.result-card {
  background: linear-gradient(
    145deg,
    rgba(30, 41, 59, 0.8),
    rgba(15, 23, 42, 0.9)
  );
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
}

.result-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-feature-settings: "tnum";
}

.result-value.large {
  font-size: 2rem;
  color: var(--success-color);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.currency {
  font-size: 0.6em;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Footer */
footer {
  margin-top: auto;
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.5rem;
  font-size: 0.875rem;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--primary-color);
}

/* Utilities */
.text-center {
  text-align: center;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.hidden {
  display: none;
}

/* Lists */
ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
}

li {
  margin-bottom: 0.5rem;
}

/* Embedly */
.embedly-card {
  display: block;
  margin: var(--spacing-md) 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeIn 0.5s ease-out forwards;
}
