/* ===================================================
   temettuhesaplama.com — Global Design System
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #0F6FFF;
  --primary-dark: #0052CC;
  --primary-light: #E8F1FF;
  --success: #10B981;
  --success-dark: #059669;
  --success-light: #ECFDF5;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --danger: #EF4444;
  --danger-light: #FEF2F2;

  --navy: #0F2A4A;
  --navy-medium: #1E3A5F;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;

  --bg-page: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--text-secondary); line-height: 1.75; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- NAVBAR --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--success));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.nav-logo span.accent { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav {
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white !important;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(15,111,255,0.25);
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15,111,255,0.35);
  color: white !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(15,111,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,111,255,0.4);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, var(--success), var(--success-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-page);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--border);
  color: var(--text-primary);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

/* --- CARDS --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1.75rem; }

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- FORM ELEMENTS --- */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-label .form-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,111,255,0.12);
}

.form-control::placeholder { color: var(--text-muted); }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 2.75rem; }
.input-icon-wrap .input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.input-prefix {
  display: flex;
  align-items: center;
}
.input-prefix .prefix {
  padding: 0.75rem 0.9rem;
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.input-prefix .form-control {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.input-range {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
  height: 6px;
}

/* --- BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success-dark); }
.badge-warning { background: var(--warning-light); color: #92400E; }
.badge-danger  { background: var(--danger-light);  color: var(--danger); }
.badge-navy    { background: rgba(15,42,74,0.08); color: var(--navy); }

/* --- RESULT BOX --- */
.result-box {
  background: linear-gradient(135deg, var(--primary-light), #F0F9FF);
  border: 1.5px solid rgba(15,111,255,0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.result-box.success {
  background: linear-gradient(135deg, var(--success-light), #F0FDF9);
  border-color: rgba(16,185,129,0.2);
}

.result-main-value {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.result-box.success .result-main-value { color: var(--success); }

.result-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15,111,255,0.1);
}

.result-grid-item {}
.result-grid-item .rgi-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.result-grid-item .rgi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* --- SECTION LAYOUTS --- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* --- GRID SYSTEMS --- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- DIVIDER --- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* --- STAT CARD --- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.stat-icon.blue  { background: var(--primary-light); }
.stat-icon.green { background: var(--success-light); }
.stat-icon.yellow{ background: var(--warning-light); }
.stat-icon.red   { background: var(--danger-light);  }

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- TABLE --- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
}

thead {
  background: var(--bg-page);
  border-bottom: 2px solid var(--border);
}

thead th {
  padding: 0.875rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

thead th:hover { color: var(--primary); }
thead th .sort-icon { margin-left: 0.25rem; opacity: 0.5; }
thead th.sorted .sort-icon { opacity: 1; color: var(--primary); }

tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-page); }

tbody td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  vertical-align: middle;
}

.stock-symbol {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.stock-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.yield-high { color: var(--success-dark); font-weight: 700; }
.yield-medium { color: var(--warning); font-weight: 600; }
.yield-low { color: var(--text-secondary); font-weight: 500; }

/* --- PAGINATION --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
}

.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-secondary);
  transition: var(--transition);
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* --- BLOG CARDS --- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body { padding: 1.5rem; }
.blog-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- BREADCRUMB --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

/* --- TOOLTIP --- */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-wrap .tooltip-content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  font-size: 0.78rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 10;
}
.tooltip-wrap:hover .tooltip-content { opacity: 1; }

/* --- ALERTS / INFO BOXES --- */
.info-box {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}
.info-box.info { background: var(--primary-light); border-left: 4px solid var(--primary); }
.info-box.success { background: var(--success-light); border-left: 4px solid var(--success); }
.info-box.warning { background: var(--warning-light); border-left: 4px solid var(--warning); }
.info-box .info-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.info-box .info-text { color: var(--text-primary); line-height: 1.6; }
.info-box strong { font-weight: 700; }

/* --- PROGRESS BAR --- */
.progress-bar-wrap {
  background: var(--border);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--primary), var(--success));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- FOOTER --- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 4rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo { color: white; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: white; padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: white; }

/* --- HERO GRADIENT BG --- */
.hero-bg {
  background: linear-gradient(160deg, #EEF4FF 0%, #F0FDF9 50%, #FFFBF0 100%);
  border-bottom: 1px solid var(--border);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-up-d1 { animation: fadeInUp 0.6s 0.1s ease both; }
.animate-fade-up-d2 { animation: fadeInUp 0.6s 0.2s ease both; }
.animate-fade-up-d3 { animation: fadeInUp 0.6s 0.3s ease both; }

/* --- UTILITY --- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-success { color: var(--success-dark); }
.text-primary-c { color: var(--primary); }
.text-danger { color: var(--danger); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.d-none { display: none !important; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }

  .result-main-value { font-size: 2rem; }

  /* BİST filter layout */
  .bist-filters > div { flex-direction: column; }
  .bist-filters > div > div { width: 100% !important; min-width: unset !important; }
  .bist-filters .form-control { min-width: unset !important; width: 100% !important; }

  /* Page header padding */
  .page-header { padding: 1.75rem 1rem; }

  /* Container padding */
  .container { padding: 0 1rem; }

  /* Stat cards - 2 column on tablet */
  .grid-4 { grid-template-columns: 1fr 1fr; }

  /* Table: ensure horizontal scroll works */
  .table-wrap { -webkit-overflow-scrolling: touch; }

  /* Reduce card padding on mobile */
  .calc-card { padding: 1.25rem; }
  .sidebar-card { padding: 1.25rem; }

  /* Blog layout stack */
  .blog-layout { display: block; }
  .blog-sidebar { margin-top: 2rem; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .btn-lg { padding: 0.875rem 1.75rem; font-size: 0.95rem; }

  h1 { font-size: 1.65rem; }

  /* Result box on very small screens */
  .result-main-value { font-size: 1.75rem; }
  .result-box { padding: 1.25rem; }

  /* Blog meta wrap */
  .blog-card-meta { flex-wrap: wrap; gap: 0.5rem; }
  .blog-meta { flex-wrap: wrap; gap: 0.5rem; }

  /* Breadcrumb */
  .breadcrumb { font-size: 0.78rem; }

  /* Table cells smaller on tiny screens */
  tbody td { font-size: 0.82rem; padding: 0.75rem 0.75rem; }
  thead th { font-size: 0.7rem; padding: 0.75rem 0.75rem; }

  /* Calc tabs scrollable */
  .calc-tabs { gap: 0.2rem; }
  .calc-tab { padding: 0.55rem 0.65rem; font-size: 0.78rem; }
}
