/* ==========================================================================
   THE GOSAI - FIN CALCULATOR MULTI-PAGE HUB STYLESHEET
   Domain: thegosai.com/fin-calculator/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* Dark Mode Palette matching the app screenshot */
  --bg-dark: #080b11;
  --bg-card: #151a25;
  --bg-card-hover: #1a212e;
  --bg-input: #0e121a;
  --border-color: rgba(6, 182, 212, 0.35);
  --border-hover: rgba(6, 182, 212, 0.8);

  --brand-blue: #3b82f6;
  --brand-cyan: #06b6d4;
  --brand-purple: #8b5cf6;
  --brand-coral: #f4a68b;
  --brand-orange: #ff7e5f;
  --brand-amber: #f59e0b;
  --brand-emerald: #10b981;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 18px 45px rgba(6, 182, 212, 0.3);

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;

  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-title: 'Space Grotesk', sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* BASE LIGHT THEME VARIABLES */
[data-theme="light"] {
  --bg-dark: #cfc5b4;
  --bg-card: #fcf8f0;
  --bg-card-hover: #ffffff;
  --bg-input: #c2b5a0;
  --border-color: #947148;
  --border-hover: #0284c7;

  --brand-blue: #1d4ed8;
  --brand-cyan: #0284c7;
  --brand-purple: #6d28d9;
  --brand-coral: #ea580c;
  --brand-orange: #ea580c;
  --brand-amber: #d97706;
  --brand-emerald: #047857;

  --text-primary: #1c1917;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --shadow-card: 0 14px 35px rgba(80, 48, 15, 0.20);
  --shadow-hover: 0 20px 48px rgba(2, 132, 199, 0.32);
}

[data-theme="light"] body {
  background-color: #cfc5b4;
  background-image: 
    radial-gradient(at 0% 0%, rgba(8, 145, 178, 0.14) 0px, transparent 55%),
    radial-gradient(at 100% 0%, rgba(109, 40, 217, 0.12) 0px, transparent 55%),
    radial-gradient(at 50% 100%, rgba(29, 78, 216, 0.10) 0px, transparent 55%);
  background-attachment: fixed;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header Bar */
.hub-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  will-change: transform;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* Seamless Clean Logo with Dynamic Glow */
.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo-img:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.7));
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-app-title {
  font-family: var(--font-title);
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
  white-space: nowrap;
}

.brand-app-title span {
  background: linear-gradient(135deg, var(--brand-cyan), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-header {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-header:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* Attractive Main Site Button */
.btn-mainsite-clean {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid var(--brand-cyan) !important;
  color: var(--brand-cyan) !important;
  padding: 8px 18px !important;
  border-radius: 24px !important;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.2);
  transition: all 0.25s ease;
}

.btn-mainsite-clean:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* Hero Section */
.hero-hub-section {
  text-align: center;
  max-width: 820px;
  margin: 40px auto 32px auto;
  padding: 0 24px;
}

.hero-hub-title {
  font-family: var(--font-title);
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.hero-hub-title span {
  color: var(--brand-cyan);
}

.hero-hub-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Hub Grid Layout - Exact 5 x 3 Grid (5 Cards per Row on Desktop) */
.hub-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 28px 80px 28px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* HUB TOOL CARDS - SQUARE 1/1 ASPECT RATIO WITH RICH DARK MAHOGANY LEATHER */
.tool-card {
  background-image: linear-gradient(145deg, rgba(20, 25, 35, 0.82), rgba(10, 13, 18, 0.88)), url('dark_leather.jpg');
  background-size: cover;
  background-position: center;
  border: 1.5px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-xl);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
  aspect-ratio: 1 / 1;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-cyan);
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.4), inset 0 0 16px rgba(6, 182, 212, 0.15);
  background-image: linear-gradient(145deg, rgba(30, 38, 52, 0.78), rgba(15, 20, 28, 0.82)), url('dark_leather.jpg');
}

/* DYNAMIC AMAZING TOOL ICONS IN DARK MODE */
.tool-card .card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.28) 0%, rgba(15, 26, 42, 0.95) 100%);
  border: 1.5px solid rgba(6, 182, 212, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.95rem;
  margin-bottom: 22px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.tool-card:hover .card-icon {
  transform: scale(1.15) rotate(3deg);
  border-color: #06b6d4;
  background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.45) 0%, rgba(14, 165, 233, 0.25) 100%);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.55), inset 0 0 8px rgba(6, 182, 212, 0.35);
}

/* DYNAMIC DISTINCT NEON ACCENT THEMES FOR EACH TOOL IN DARK MODE */
.cards-grid .tool-card:nth-child(1) { border-color: rgba(16, 185, 129, 0.5); }
.cards-grid .tool-card:nth-child(1) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(16, 185, 129, 0.6); }
.cards-grid .tool-card:nth-child(1):hover { border-color: #10b981; box-shadow: 0 18px 45px rgba(16, 185, 129, 0.4); }

.cards-grid .tool-card:nth-child(2) { border-color: rgba(245, 158, 11, 0.5); }
.cards-grid .tool-card:nth-child(2) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(245, 158, 11, 0.6); }
.cards-grid .tool-card:nth-child(2):hover { border-color: #f59e0b; box-shadow: 0 18px 45px rgba(245, 158, 11, 0.4); }

.cards-grid .tool-card:nth-child(3) { border-color: rgba(59, 130, 246, 0.5); }
.cards-grid .tool-card:nth-child(3) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(59, 130, 246, 0.6); }
.cards-grid .tool-card:nth-child(3):hover { border-color: #3b82f6; box-shadow: 0 18px 45px rgba(59, 130, 246, 0.4); }

.cards-grid .tool-card:nth-child(4) { border-color: rgba(6, 182, 212, 0.5); }
.cards-grid .tool-card:nth-child(4) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(6, 182, 212, 0.6); }
.cards-grid .tool-card:nth-child(4):hover { border-color: #06b6d4; box-shadow: 0 18px 45px rgba(6, 182, 212, 0.4); }

.cards-grid .tool-card:nth-child(5) { border-color: rgba(139, 92, 246, 0.5); }
.cards-grid .tool-card:nth-child(5) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(139, 92, 246, 0.6); }
.cards-grid .tool-card:nth-child(5):hover { border-color: #8b5cf6; box-shadow: 0 18px 45px rgba(139, 92, 246, 0.4); }

.cards-grid .tool-card:nth-child(6) { border-color: rgba(236, 72, 153, 0.5); }
.cards-grid .tool-card:nth-child(6) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(236, 72, 153, 0.6); }
.cards-grid .tool-card:nth-child(6):hover { border-color: #ec4899; box-shadow: 0 18px 45px rgba(236, 72, 153, 0.4); }

.cards-grid .tool-card:nth-child(7) { border-color: rgba(20, 184, 166, 0.5); }
.cards-grid .tool-card:nth-child(7) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(20, 184, 166, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(20, 184, 166, 0.6); }
.cards-grid .tool-card:nth-child(7):hover { border-color: #14b8a6; box-shadow: 0 18px 45px rgba(20, 184, 166, 0.4); }

.cards-grid .tool-card:nth-child(8) { border-color: rgba(99, 102, 241, 0.5); }
.cards-grid .tool-card:nth-child(8) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(99, 102, 241, 0.6); }
.cards-grid .tool-card:nth-child(8):hover { border-color: #6366f1; box-shadow: 0 18px 45px rgba(99, 102, 241, 0.4); }

.cards-grid .tool-card:nth-child(9) { border-color: rgba(244, 63, 94, 0.5); }
.cards-grid .tool-card:nth-child(9) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(244, 63, 94, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(244, 63, 94, 0.6); }
.cards-grid .tool-card:nth-child(9):hover { border-color: #f43f5e; box-shadow: 0 18px 45px rgba(244, 63, 94, 0.4); }

.cards-grid .tool-card:nth-child(10) { border-color: rgba(249, 115, 22, 0.5); }
.cards-grid .tool-card:nth-child(10) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(249, 115, 22, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(249, 115, 22, 0.6); }
.cards-grid .tool-card:nth-child(10):hover { border-color: #f97316; box-shadow: 0 18px 45px rgba(249, 115, 22, 0.4); }

.cards-grid .tool-card:nth-child(11) { border-color: rgba(168, 85, 247, 0.5); }
.cards-grid .tool-card:nth-child(11) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(168, 85, 247, 0.6); }
.cards-grid .tool-card:nth-child(11):hover { border-color: #a855f7; box-shadow: 0 18px 45px rgba(168, 85, 247, 0.4); }

.cards-grid .tool-card:nth-child(12) { border-color: rgba(14, 165, 233, 0.5); }
.cards-grid .tool-card:nth-child(12) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(14, 165, 233, 0.6); }
.cards-grid .tool-card:nth-child(12):hover { border-color: #0ea5e9; box-shadow: 0 18px 45px rgba(14, 165, 233, 0.4); }

.cards-grid .tool-card:nth-child(13) { border-color: rgba(132, 204, 22, 0.5); }
.cards-grid .tool-card:nth-child(13) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(132, 204, 22, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(132, 204, 22, 0.6); }
.cards-grid .tool-card:nth-child(13):hover { border-color: #84cc16; box-shadow: 0 18px 45px rgba(132, 204, 22, 0.4); }

.cards-grid .tool-card:nth-child(14) { border-color: rgba(6, 182, 212, 0.5); }
.cards-grid .tool-card:nth-child(14) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(6, 182, 212, 0.6); }
.cards-grid .tool-card:nth-child(14):hover { border-color: #06b6d4; box-shadow: 0 18px 45px rgba(6, 182, 212, 0.4); }

.cards-grid .tool-card:nth-child(15) { border-color: rgba(234, 179, 8, 0.5); }
.cards-grid .tool-card:nth-child(15) .card-icon { background: radial-gradient(circle at 30% 30%, rgba(234, 179, 8, 0.35) 0%, rgba(15, 26, 42, 0.95) 100%); border-color: rgba(234, 179, 8, 0.6); }
.cards-grid .tool-card:nth-child(15):hover { border-color: #eab308; box-shadow: 0 18px 45px rgba(234, 179, 8, 0.4); }

.card-name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

/* UNIVERSAL SHARE MODAL */
.share-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2100;
}

.share-modal-box {
  background-image: linear-gradient(145deg, rgba(20, 25, 35, 0.94), rgba(10, 13, 18, 0.96)), url('dark_leather.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
}

.share-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.share-link-box {
  display: flex;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 20px;
}

.share-link-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  padding: 0 10px;
  outline: none;
  font-weight: 600;
}

.btn-copy-link {
  background: var(--brand-blue);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-copy-link:hover {
  background: #2563eb;
}

.share-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.share-option-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.share-option-btn:hover {
  border-color: var(--brand-cyan);
  background: var(--bg-card-hover);
}

/* Focused Swipable Tutorial Modal */
.tut-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.tut-modal-box {
  background-image: linear-gradient(145deg, rgba(20, 25, 35, 0.94), rgba(10, 13, 18, 0.96)), url('dark_leather.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 36px 32px 36px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
}

/* Prominent Close Button (Top-Right ✕) */
.tut-close-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.tut-close-x:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  transform: scale(1.1);
}

.tut-slide {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tut-slide.active {
  display: block;
}

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

.tut-header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-right: 36px;
}

.tut-step-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--brand-cyan);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.tut-dots {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tut-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-color);
  transition: all 0.25s ease;
}

.tut-dot.active {
  width: 18px;
  border-radius: 10px;
  background: var(--brand-cyan);
}

.tut-slide-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tut-slide-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tut-bullet-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.tut-bullet-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.tut-bullet-box p:last-child {
  margin-bottom: 0;
}

.tut-bullet-box strong {
  color: var(--text-primary);
}

.tut-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* INDIVIDUAL TOOL PAGE WORKSPACE PANELS - PROPER FLEX/GRID LAYOUT WITH DARK LEATHER */
.tool-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.panel-box {
  background-image: linear-gradient(145deg, rgba(20, 25, 35, 0.88), rgba(10, 13, 18, 0.92)), url('dark_leather.jpg');
  background-size: cover;
  background-position: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
  display: block;
  text-align: left;
}

.panel-head {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-head-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
}

.field-group {
  margin-bottom: 24px;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}

.field-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 16px;
}

.field-box:focus-within {
  border-color: var(--brand-blue);
}

.field-unit {
  font-weight: 700;
  color: var(--brand-cyan);
  font-size: 1.1rem;
  margin-right: 6px;
}

.field-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  text-align: right;
}

.slider-range {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-input);
  border-radius: 3px;
  outline: none;
  margin-top: 12px;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.slider-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-blue);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.chips-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.chip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.chip:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.hero-result-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.hero-result-val {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--brand-cyan);
  line-height: 1.1;
}

.stats-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.stat-box-val {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 4px;
}

/* Footer */
.hub-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.hub-footer a {
  color: var(--brand-cyan);
  text-decoration: none;
  font-weight: 600;
}

/* ==========================================================================
   EXPLICIT RESPONSIVE OVERHAUL FOR MOBILE SMARTPHONES & TABLETS
   ========================================================================== */

@media (max-width: 768px) {
  .header-container {
    padding: 10px 14px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .brand-block {
    gap: 8px;
  }

  .brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand-app-title {
    font-size: 1.4rem;
  }

  .header-actions {
    gap: 6px;
  }

  .btn-header,
  .btn-mainsite-clean {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 16px !important;
  }

  .hero-hub-section {
    margin: 24px auto 20px auto;
    padding: 0 16px;
  }

  .hero-hub-title {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .hero-hub-desc {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .tool-workspace {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }

  .panel-box {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .panel-head-title {
    font-size: 1.2rem;
  }

  .hero-result-val {
    font-size: 2.1rem;
  }

  .field-input {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .hub-main {
    padding: 10px 12px 50px 12px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tool-card {
    aspect-ratio: auto;
    min-height: 115px;
    padding: 16px 10px;
    border-radius: 18px;
  }

  .tool-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.45rem;
    margin-bottom: 10px;
  }

  .card-name {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
  }

  .stats-grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tut-modal-box,
  .share-modal-box {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .share-options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .header-container {
    padding: 8px 10px;
  }

  .brand-app-title {
    font-size: 1.25rem;
  }

  .header-actions {
    gap: 4px;
  }

  .btn-header,
  .btn-mainsite-clean {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
  }
}

/* ==========================================================================
   LIGHTER CLEAN PORCELAIN TOOL CARDS WITH BOLD BRONZE-GOLD BORDERS (LIGHT THEME)
   ========================================================================== */
[data-theme="light"] .tool-card {
  background-image: none !important;
  background: linear-gradient(145deg, #ffffff 0%, #fcf8f0 100%) !important;
  border: 2.5px solid #947148 !important;
  box-shadow: 0 14px 35px rgba(80, 48, 15, 0.20), inset 0 2px 0 rgba(255, 255, 255, 1) !important;
  border-radius: 22px !important;
}

[data-theme="light"] .panel-box,
[data-theme="light"] .tut-modal-box,
[data-theme="light"] .share-modal-box {
  background-image: none !important;
  background: #fdfbf7 !important;
  border: 2.5px solid #947148 !important;
  box-shadow: 0 14px 35px rgba(80, 48, 15, 0.20) !important;
  border-radius: 22px !important;
}

[data-theme="light"] .tool-card:hover {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 20px 48px rgba(2, 132, 199, 0.32), inset 0 0 12px rgba(2, 132, 199, 0.08) !important;
  transform: translateY(-7px) !important;
}

[data-theme="light"] .card-icon {
  background: linear-gradient(135deg, #ded2be, #cebeaa) !important;
  border: 1.5px solid #9e7a4f !important;
  margin-bottom: 22px !important;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.85), 0 4px 14px rgba(80, 48, 15, 0.16) !important;
}
