/* Tulex minimal UI - Enhanced Modern Design with Dark Mode */
:root {
  --bg: #fafbfc;
  --muted: #6b7280;
  --text: #0f1724;
  --accent: #1a73e8;
  --radius: 12px;
  --container: 1100px;
  --card: #ffffff;
  --shadow: rgba(15, 23, 36, 0.08);
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg: #0f172a;
  --muted: #94a3b8;
  --text: #f1f5f9;
  --accent: #60a5fa;
  --card: #1e293b;
  --shadow: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .site-header {
  background: #1e293b;
  border-bottom-color: #334155;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.brand:hover {
  transform: translateY(-2px);
}

.logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.3s;
}

.logo-circle:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  transform: scale(1.05);
}

.brand-text h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.brand-text .tag {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid #e5e7eb;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s;
  margin-left: 12px;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle {
  border-color: #334155;
}

/* Nav */
.main-nav a {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  padding: 8px 14px;
  border-radius: 8px;
}

.main-nav a:hover {
  color: var(--accent);
  background: #f0f9ff;
}

[data-theme="dark"] .main-nav a:hover {
  background: #1e293b;
}

/* Hero */
.hero-small {
  padding: 40px 0 20px 0;
  text-align: center;
}

.hero-small h2 {
  margin: 0 0 12px 0;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.muted {
  color: var(--muted);
}

.hero-badge {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  color: #0369a1;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.15);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.trust-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.badge {
  padding: 10px 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #15803d;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.1);
  transition: all 0.3s;
}

/* Search */
.search-row {
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-row input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  transition: all 0.3s;
  background: var(--card);
  color: var(--text);
}

[data-theme="dark"] .search-row input {
  border-color: #334155;
}

.search-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(26, 115, 232, 0.15);
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.tool-card {
  background: var(--card);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 36, 0.06);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .tool-card {
  border-color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.3s;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(15, 23, 36, 0.15);
  border-color: #d1d5db;
}

[data-theme="dark"] .tool-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  border-color: #475569;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.3s;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.form-grid label {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: var(--card);
  font-size: 15px;
  transition: all 0.3s;
  color: var(--text);
}

[data-theme="dark"] .form-grid input,
[data-theme="dark"] .form-grid textarea,
[data-theme="dark"] .form-grid select {
  border-color: #334155;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

[data-theme="dark"] .form-grid input:focus,
[data-theme="dark"] .form-grid textarea:focus,
[data-theme="dark"] .form-grid select:focus {
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

/* Form Actions */
.form-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn.primary {
  background: var(--gradient-1);
  color: white;
  border: none;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn.outline {
  background: var(--card);
  border: 2px solid #e5e7eb;
  color: var(--text);
}

.btn.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f0f9ff;
}

[data-theme="dark"] .btn.outline {
  border-color: #334155;
}

[data-theme="dark"] .btn.outline:hover {
  background: #1e293b;
}

/* Tool Result */
.result-box {
  margin-top: 24px;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #bae6fd;
  box-shadow: 0 4px 16px rgba(3, 105, 161, 0.15);
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-box h3 {
  margin: 0 0 20px 0;
  font-size: 22px;
  color: #0369a1;
  font-weight: 800;
}

.result-box p {
  margin: 12px 0;
  font-size: 16px;
}

.result-box strong {
  color: #0c4a6e;
  font-weight: 700;
}

.cta-box {
  margin-top: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 5px solid #f59e0b;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* Tool Sections */
.tool-section {
  margin-top: 56px;
  padding-top: 24px;
}

.tool-section h3 {
  font-size: 28px;
  margin-bottom: 24px;
  font-weight: 800;
  color: var(--text);
  position: relative;
  padding-bottom: 12px;
}

.tool-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 2px;
}

.content-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eef2f7;
}

[data-theme="dark"] .content-section {
  border-top-color: #334155;
}

.content-section h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.content-section ul {
  margin: 8px 0;
  padding-left: 24px;
}

.content-section li {
  margin: 6px 0;
}

.related-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  padding: 32px 0;
  margin-top: 60px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-top-color: #334155;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 8px;
  font-weight: 600;
  transition: all 0.2s;
  padding: 4px 8px;
  border-radius: 6px;
}

.footer-links a:hover {
  color: var(--accent);
  background: #f0f9ff;
}

[data-theme="dark"] .footer-links a:hover {
  background: #1e293b;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e5e7eb;
}

[data-theme="dark"] .page-header {
  border-bottom-color: #334155;
}

.page-header h2 {
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section {
  text-align: center;
  margin-top: 56px;
  padding: 40px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.cta-section h3 {
  margin-top: 0;
  font-size: 24px;
  font-weight: 800;
}

.cta-section a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  background: #e0f2fe;
  border-radius: 8px;
  display: inline-block;
  margin-top: 12px;
  transition: all 0.3s;
}

.cta-section a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* Pro Tip */
.pro-tip {
  margin-top: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 5px solid #0ea5e9;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.formula-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 20px;
  border-radius: 12px;
  font-family: 'Courier New', monospace;
  margin: 16px 0;
  text-align: center;
  font-size: 18px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .formula-box {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
}

.related-link {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  color: #0369a1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  margin: 6px 4px;
  box-shadow: 0 2px 6px rgba(3, 105, 161, 0.15);
}

.related-link:hover {
  background: var(--gradient-3);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

/* Password Generator */
.password-display {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  align-items: center;
}

.password-display input {
  flex: 1;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  background: #f9fafb;
  color: var(--text);
}

[data-theme="dark"] .password-display input {
  background: #1e293b;
  border-color: #334155;
}

.btn-copy {
  padding: 14px 18px;
  background: var(--gradient-4);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(67, 233, 123, 0.3);
}

.btn-copy:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(67, 233, 123, 0.5);
}

.strength-meter {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 12px;
  border: 2px solid #e5e7eb;
}

[data-theme="dark"] .strength-meter {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
}

.strength-bar {
  height: 10px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .strength-bar {
  background: #475569;
}

.strength-fill {
  height: 100%;
  transition: all 0.4s ease;
  box-shadow: 0 0 8px currentColor;
}

/* QR Code */
.qr-display {
  text-align: center;
  margin-top: 28px;
  padding: 32px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .qr-display {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
}

.qr-display canvas,
.qr-display img {
  max-width: 100%;
  height: auto;
  border: 3px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: white;
}

.qr-display #qrCanvas {
  display: inline-block;
  background: white;
  padding: 16px;
}

/* Unit Converter */
.converter-tabs {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  flex-wrap: wrap;
  border-bottom: 3px solid #e5e7eb;
  padding-bottom: 10px;
}

[data-theme="dark"] .converter-tabs {
  border-bottom-color: #334155;
}

.tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #6b7280;
  transition: all 0.3s;
  position: relative;
}

.tab-btn:hover {
  background: #f3f4f6;
  color: #1a73e8;
  transform: translateY(-2px);
}

[data-theme="dark"] .tab-btn:hover {
  background: #1e293b;
}

.tab-btn.active {
  background: var(--gradient-3);
  color: white;
  box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.converter-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  margin: 32px 0;
}

.converter-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.converter-label {
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.converter-input {
  padding: 18px 20px;
  border: 3px solid #e5e7eb;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  transition: all 0.3s;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  color: var(--text);
}

[data-theme="dark"] .converter-input {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
}

.btn-swap-new {
  background: var(--gradient-5);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 50%;
  cursor: pointer;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
  box-shadow: 0 4px 12px rgba(250, 112, 154, 0.3);
  align-self: center;
}

.btn-swap-new:hover {
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(250, 112, 154, 0.5);
}

.btn-swap-new svg {
  width: 28px;
  height: 28px;
  color: white;
  transition: color 0.3s;
}

.quick-conversions {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 16px;
  border-left: 6px solid #10b981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .quick-conversions {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.quick-conversions h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #065f46;
  font-weight: 800;
}

[data-theme="dark"] .quick-conversions h4 {
  color: #10b981;
}

.conversion-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.conv-chip {
  display: inline-block;
  padding: 10px 18px;
  background: white;
  border: 2px solid #d1fae5;
  border-radius: 24px;
  font-size: 14px;
  color: #065f46;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .conv-chip {
  background: #1e293b;
  border-color: #475569;
  color: #10b981;
}

.conv-chip:hover {
  background: #10b981;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Currency Converter */
.loading-status {
  text-align: center;
  padding: 60px;
  color: #6b7280;
  font-size: 18px;
  font-weight: 600;
}

.loader {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.currency-tabs {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.currency-tab {
  padding: 12px 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .currency-tab {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
  color: var(--muted);
}

.currency-tab:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  border-color: #0369a1;
  color: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.2);
}

.currency-tab.active {
  background: var(--gradient-3);
  border-color: #0ea5e9;
  color: white;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.exchange-rate {
  margin-top: 28px;
  padding: 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 6px solid #0ea5e9;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.15);
}

[data-theme="dark"] .exchange-rate {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.rate-info {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.rate-label {
  font-size: 14px;
  color: #0c4a6e;
  font-weight: 700;
}

[data-theme="dark"] .rate-label {
  color: #60a5fa;
}

.rate-value {
  font-size: 24px;
  color: #0369a1;
  font-weight: 900;
}

[data-theme="dark"] .rate-value {
  color: #60a5fa;
}

.rate-updated {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.popular-currencies {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 16px;
  border: 2px solid #e5e7eb;
}

[data-theme="dark"] .popular-currencies {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
}

.popular-currencies h4 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #374151;
  font-weight: 800;
}

[data-theme="dark"] .popular-currencies h4 {
  color: var(--text);
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.rate-card {
  padding: 20px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .rate-card {
  background: #1e293b;
  border-color: #475569;
}

.rate-card:hover {
  border-color: #0369a1;
  box-shadow: 0 6px 20px rgba(3, 105, 161, 0.2);
  transform: translateY(-4px);
}

.rate-curr {
  font-size: 20px;
  font-weight: 900;
  color: #0369a1;
}

[data-theme="dark"] .rate-curr {
  color: #60a5fa;
}

.rate-name {
  font-size: 12px;
  color: #6b7280;
  margin: 6px 0;
  font-weight: 600;
}

.rate-amount {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  margin-top: 8px;
}

[data-theme="dark"] .rate-amount {
  color: var(--text);
}

/* BMI Calculator Enhancements */
.unit-toggle {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  justify-content: center;
}

.unit-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #6b7280;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .unit-btn {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
}

.unit-btn:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  border-color: #0369a1;
  color: #0369a1;
  transform: translateY(-2px);
}

.unit-btn.active {
  background: var(--gradient-1);
  border-color: #667eea;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#metricInputs,
#imperialInputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  grid-column: 1/-1;
  max-width: 600px;
  margin: 0 auto;
}

.bmi-score {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 20px;
  margin: 32px auto;
  border: 3px solid #0ea5e9;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
  max-width: 500px;
}

[data-theme="dark"] .bmi-score {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.bmi-label {
  display: block;
  font-size: 18px;
  color: #0c4a6e;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

[data-theme="dark"] .bmi-label {
  color: #60a5fa;
}

.bmi-value {
  display: block;
  font-size: 84px;
  font-weight: 900;
  color: #0369a1;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(3, 105, 161, 0.3);
}

[data-theme="dark"] .bmi-value {
  color: #60a5fa;
}

.bmi-category {
  text-align: center;
  margin: 32px auto;
  padding: 32px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 20px;
  border: 2px solid #e5e7eb;
  max-width: 600px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .bmi-category {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
}

.category-badge {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 35px;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.category-badge.underweight {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.category-badge.normal {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.category-badge.overweight {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.category-badge.obese {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  color: #991b1b;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

#categoryDesc {
  font-size: 17px;
  color: #374151;
  font-weight: 600;
  margin: 0;
  line-height: 1.7;
}

[data-theme="dark"] #categoryDesc {
  color: var(--muted);
}

.bmi-scale {
  margin: 40px auto;
  padding: 40px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 20px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  max-width: 900px;
}

[data-theme="dark"] .bmi-scale {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
}

.bmi-scale h4 {
  margin: 0 0 32px 0;
  font-size: 22px;
  font-weight: 800;
  color: #374151;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

[data-theme="dark"] .bmi-scale h4 {
  color: var(--text);
}

.scale-wrapper {
  position: relative;
  margin: 0 auto;
  max-width: 800px;
}

.scale-bar {
  display: flex;
  height: 100px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 24px;
}

.scale-segment {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  text-align: center;
  position: relative;
  padding: 16px 12px;
  gap: 8px;
}

.scale-segment.underweight {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.scale-segment.normal {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.scale-segment.overweight {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.scale-segment.obese {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.scale-label {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scale-label strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.bmi-pointer {
  position: absolute;
  top: 100%;
  margin-top: 12px;
  transform: translateX(-50%);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.pointer-arrow {
  font-size: 48px;
  color: #0369a1;
  text-align: center;
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(3, 105, 161, 0.5));
  animation: bounce 2s ease-in-out infinite;
}

[data-theme="dark"] .pointer-arrow {
  color: #60a5fa;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.pointer-label {
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  color: #0369a1;
  margin-top: 10px;
  background: white;
  padding: 8px 20px;
  border-radius: 24px;
  box-shadow: 0 3px 12px rgba(3, 105, 161, 0.35);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

[data-theme="dark"] .pointer-label {
  color: #60a5fa;
  background: #1e293b;
}

/* Tax Calculator */
.tax-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

.regime-card {
  padding: 24px;
  border-radius: 16px;
  border: 3px solid;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .regime-card {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.regime-card.old-regime {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}

.regime-card.new-regime {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #0ea5e9;
}

.regime-card h4 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.tax-detail {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 15px;
}

.tax-detail .label {
  color: #374151;
  font-weight: 600;
}

.tax-detail .value {
  color: #0f1724;
  font-weight: 700;
}

.tax-amount {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .tax-amount {
  background: #1e293b;
}

.tax-amount .label {
  display: block;
  font-size: 14px;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tax-amount .amount {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: #0f1724;
}

[data-theme="dark"] .tax-amount .amount {
  color: var(--text);
}

.recommendation {
  margin-top: 32px;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .recommendation {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.recommendation.old-regime-better {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 3px solid #f59e0b;
}

.recommendation.new-regime-better {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 3px solid #0ea5e9;
}

.recommendation.equal {
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  border: 3px solid #9ca3af;
}

.recommendation h4 {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 900;
}

.recommendation p {
  margin: 10px 0;
  font-size: 17px;
  font-weight: 600;
  color: #374151;
}

[data-theme="dark"] .recommendation p {
  color: var(--text);
}

/* Responsive */
@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
  
  .header-inner {
    gap: 12px;
  }
  
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .converter-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .btn-swap-new {
    transform: rotate(90deg);
    justify-self: center;
  }
  
  .btn-swap-new:hover {
    transform: rotate(270deg) scale(1.1);
  }
  
  .converter-tabs {
    gap: 8px;
  }
  
  .tab-btn {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .hero-small h2 {
    font-size: 32px;
  }
  
  .logo-circle {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .rate-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .unit-toggle {
    flex-direction: column;
  }
  
  .unit-btn {
    width: 100%;
  }
  
  .scale-bar {
    height: auto;
    flex-direction: column;
  }
  
  .scale-segment {
    height: 60px;
    width: 100%;
    padding: 12px;
  }
  
  .bmi-pointer {
    position: static !important;
    margin-top: 16px;
    transform: none !important;
  }
  
  .pointer-arrow {
    font-size: 32px;
  }
  
  .pointer-label {
    font-size: 14px;
    padding: 6px 16px;
  }
  
  .bmi-value {
    font-size: 56px;
  }
  
  .category-badge {
    font-size: 18px;
    padding: 12px 24px;
  }
  
  .bmi-score {
    padding: 24px;
    max-width: 100%;
  }
  
  .bmi-category {
    padding: 20px;
    max-width: 100%;
  }
  
  .bmi-scale {
    padding: 24px;
    max-width: 100%;
  }
  
  #metricInputs,
  #imperialInputs {
    grid-template-columns: 1fr;
  }
  
  .tax-comparison {
    grid-template-columns: 1fr;
  }
}
