/* ==========================================================================
   HesapVia - Modern Design System v2
   Güven veren mavi-yeşil paleti, finansal araçlar için optimize edilmiş
   ========================================================================== */

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

:root {
  /* Renk paleti - güven, profesyonellik, finansal güvenilirlik */
  --primary: #1e40af;          /* derin güven mavisi */
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --primary-soft: #dbeafe;

  --secondary: #059669;        /* finansal yeşil */
  --secondary-light: #10b981;
  --secondary-soft: #d1fae5;

  --accent: #f59e0b;           /* sıcak vurgu */
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #ea580c;
  --info: #0284c7;

  /* Nötr tonlar */
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;

  /* Gölgeler - soft ve modern */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 40px -8px rgba(30, 64, 175, 0.15);

  /* Tasarım sistemi */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body { overflow-x: hidden; }

/* Mobil tıklama efekti şeffaf - bazı tarayıcılarda görünen mavi flash'ı kapat */
* { -webkit-tap-highlight-color: rgba(0,0,0,0.05); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   HEADER - sticky, glassmorphism etkisi
   ========================================================================== */
.hv-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hv-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  gap: 24px;
}

.hv-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.hv-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.hv-logo-text { color: var(--primary); }

.hv-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}
.hv-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.hv-nav-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
}
.hv-nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.hv-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  color: var(--text);
}

/* Dropdown menu - hover + click hybrid (görünmez köprü ile gap sorunu çözüldü) */
.hv-dropdown {
  position: relative;
}
.hv-dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 200ms;
  vertical-align: middle;
}
.hv-dropdown:hover > a::after,
.hv-dropdown.open > a::after { transform: rotate(180deg); }

/* Görünmez köprü: hover'da menü dışına çıkma sorununu çözer */
.hv-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
  display: none;
}
.hv-dropdown:hover::before,
.hv-dropdown.open::before {
  display: block;
}

.hv-dropdown-content {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 240px;
  display: none;
  z-index: 200;
  animation: dropdownIn 200ms ease;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.hv-dropdown:hover .hv-dropdown-content,
.hv-dropdown.open .hv-dropdown-content {
  display: block;
}
.hv-dropdown-content a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.hv-dropdown-content a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: var(--text);
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-search {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 18px 56px 18px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 16px;
  background: white;
  box-shadow: var(--shadow-lg);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.hero-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.hero-search::after {
  content: "🔍";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ==========================================================================
   AD SLOTS
   ========================================================================== */
.ad-slot {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #f8fafc 100%);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
  margin: 24px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.ad-slot.horizontal { min-height: 90px; }
.ad-slot.sidebar { min-height: 250px; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.category-section { margin-bottom: 48px; }
.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.category-icon.cat-pdf { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; }
.category-icon.cat-finans { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.category-icon.cat-cevirme { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.category-icon.cat-uretici { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #db2777; }
.category-icon.cat-zaman { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.category-icon.cat-resim { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.category-icon.cat-gelistirici { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4f46e5; }
.category-icon.cat-yardimci { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0891b2; }

.category-title-text {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}
.category-desc {
  font-size: 14px;
  color: var(--text-light);
}

/* ==========================================================================
   TOOL CARDS
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.tool-card:hover::before { transform: scaleX(1); }

.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 8px;
  background: var(--bg-alt);
  transition: var(--transition);
}
.tool-card:hover .tool-card-icon {
  background: var(--primary-soft);
  transform: scale(1.08);
}

.tool-card-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
}
.tool-card-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}
.tool-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tool-card-badge.new { background: var(--secondary); }
.tool-card-badge.popular { background: var(--accent); }

/* ==========================================================================
   TOOL PAGE LAYOUT
   ========================================================================== */
.tool-page { padding: 32px 0 60px; }

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

.tool-main {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.sidebar-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-card a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: block;
}
.sidebar-card a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.tool-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.tool-header-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
.tool-header h1 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -1px;
  line-height: 1.2;
}
.tool-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 700px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border-dark); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  background: white;
  transition: var(--transition);
  outline: none;
  color: var(--text);
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-help {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(30, 64, 175, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 16px -4px rgba(30, 64, 175, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: white;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3);
}
.btn-secondary:hover {
  box-shadow: 0 8px 16px -4px rgba(5, 150, 105, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.btn-ghost {
  background: var(--bg-alt);
  color: var(--text);
}
.btn-ghost:hover { background: var(--border); }

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   RESULT BOX
   ========================================================================== */
.result-box {
  background: linear-gradient(135deg, var(--secondary-soft) 0%, #ecfdf5 100%);
  border: 1px solid var(--secondary-light);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}
.result-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary);
}
.result-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.result-value {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.1;
}

.detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
}
.detail-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.result-row:last-child { border-bottom: none; }
.result-row span:first-child {
  color: var(--text-muted);
}
.result-row span:last-child {
  font-weight: 600;
  color: var(--text);
}
.result-row.highlight span:last-child {
  color: var(--secondary);
  font-size: 16px;
}
.result-row.danger span:last-child {
  color: var(--danger);
}

/* ==========================================================================
   CONTENT INFO
   ========================================================================== */
.content-info {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.content-info h2 {
  font-size: 22px;
  margin: 28px 0 14px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.content-info h2:first-child { margin-top: 0; }
.content-info h3 {
  font-size: 17px;
  margin: 20px 0 10px;
  font-weight: 600;
  color: var(--text);
}
.content-info h4 {
  font-size: 15px;
  margin: 16px 0 8px;
  font-weight: 600;
  color: var(--primary);
}
.content-info p {
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}
.content-info ul, .content-info ol {
  margin: 12px 0 16px 24px;
  color: var(--text-muted);
}
.content-info li { margin-bottom: 6px; line-height: 1.6; }
.content-info strong { color: var(--text); }
.content-info a { color: var(--primary); text-decoration: none; }
.content-info a:hover { text-decoration: underline; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hv-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand h3 {
  color: white;
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 800;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  color: #94a3b8;
}
.hv-footer h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hv-footer ul { list-style: none; }
.hv-footer li { margin-bottom: 10px; }
.hv-footer a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}
.hv-footer a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   COMPONENTS - alarm, countdown, generator, file drop
   ========================================================================== */
.alarm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.alarm-item {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}
.alarm-item:hover { border-color: var(--primary-light); }
.alarm-time {
  font-size: 22px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: var(--text);
}
.alarm-active {
  border-color: var(--secondary);
  background: var(--secondary-soft);
}

.countdown-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.countdown-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.countdown-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent);
}
.countdown-number {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: -1px;
  position: relative;
}
.countdown-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.9;
  margin-top: 4px;
  font-weight: 600;
  position: relative;
}

.generator-output {
  background: #0f172a;
  color: #f1f5f9;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 16px;
  word-break: break-all;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #1e293b;
}
.copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  font-family: inherit;
}
.copy-btn:hover { background: var(--primary-light); }

.file-drop {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-alt);
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.file-drop-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.8;
}
.file-drop-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.file-drop-sub {
  color: var(--text-light);
  font-size: 14px;
}
.file-drop input { display: none; }

/* TABS */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.tab {
  flex: 1;
  padding: 10px 18px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-family: inherit;
}
.tab.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-info { background: #dbeafe; color: #1e40af; border-left: 3px solid var(--primary); }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 3px solid #f59e0b; }
.alert-success { background: var(--secondary-soft); color: #065f46; border-left: 3px solid var(--secondary); }
.alert-danger { background: #fee2e2; color: #991b1b; border-left: 3px solid var(--danger); }

/* TABLE */
.hv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}
.hv-table thead {
  background: var(--bg-alt);
}
.hv-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hv-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.hv-table tr:hover td { background: var(--bg); }

/* STAT GRID */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}
.stat-card-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.stat-card-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

/* COLOR PICKER */
.color-display {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* CHECKBOX/RADIO */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: white;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.checkbox-item:hover { border-color: var(--primary-light); }
.checkbox-item input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }

/* RANGE */
input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: var(--shadow);
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 968px) {
  .tool-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hv-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .hv-nav.open { display: flex; }
  .hv-nav-link { width: 100%; padding: 14px 16px; font-size: 15px; }
  .hv-menu-toggle { display: flex; align-items: center; justify-content: center; }
  .hv-dropdown-content { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; margin-top: 0; }
  .hv-dropdown.open .hv-dropdown-content { display: block; }
  .hv-dropdown::before { display: none !important; }

  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .countdown-display { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .countdown-box { padding: 18px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 50px 0 40px; }
  .section { padding: 36px 0; }
  .tool-main { padding: 22px 18px; }
  .tool-page { padding: 20px 0 40px; }
  .container, .container-sm { padding: 0 16px; }
  .hero-stats { gap: 20px; }
  .checkbox-group { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Touch target boyutu artırma */
  .btn { min-height: 44px; padding: 12px 20px; }
  .btn-sm { min-height: 38px; }
  .tab { min-height: 44px; }
  .copy-btn { min-height: 36px; padding: 10px 14px; }

  /* Tablo mobile - scroll */
  .hv-table { font-size: 13px; }
  .hv-table th, .hv-table td { padding: 8px 10px; }

  /* Modal mobile */
  .modal { padding: 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .tool-header h1 { font-size: 22px; }
  .tool-header-icon { width: 52px; height: 52px; font-size: 26px; }
  .countdown-display { gap: 8px; }
  .result-value { font-size: 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* WEB PUSH BİLDİRİM PROMPT */
.hv-push-prompt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9997;
  animation: slideUp 400ms ease;
}
.hv-push-icon {
  font-size: 32px;
  text-align: center;
}
.hv-push-text strong { font-size: 15px; }
.hv-push-text p { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.hv-push-actions { display: flex; gap: 8px; }
.hv-push-actions button {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-family: inherit;
}
.hv-push-btn-yes { background: var(--primary) !important; color: white !important; border-color: var(--primary) !important; }
.hv-push-btn-yes:hover { background: var(--primary-dark) !important; }
@media (max-width: 480px) {
  .hv-push-prompt { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* SOSYAL PAYLAŞIM BUTONLARI */
.hv-share {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  border: 1px solid var(--border);
}
.hv-share-label { font-weight: 600; font-size: 14px; color: var(--text); }
.hv-share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.hv-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.hv-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.hv-share-btn[data-net="wa"]:hover { background: #25D366; color: white; border-color: #25D366; }
.hv-share-btn[data-net="x"]:hover { background: #000; color: white; border-color: #000; }
.hv-share-btn[data-net="fb"]:hover { background: #1877F2; color: white; border-color: #1877F2; }
.hv-share-btn[data-net="tg"]:hover { background: #0088CC; color: white; border-color: #0088CC; }
.hv-share-btn[data-net="li"]:hover { background: #0A66C2; color: white; border-color: #0A66C2; }
.hv-share-btn[data-net="pi"]:hover { background: #E60023; color: white; border-color: #E60023; }
.hv-share-btn[data-net="copy"]:hover { background: var(--primary); color: white; border-color: var(--primary); }

@media (max-width: 640px) {
  .hv-share { padding: 12px 16px; }
  .hv-share-label { font-size: 13px; width: 100%; }
}

/* HAFİF KVKK BANDI - Türkiye için (üstte, küçük) */
.hv-kvkk-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 10px 16px;
  font-size: 13px;
  text-align: center;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  animation: slideDown 300ms ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.hv-kvkk-bar a { color: white; text-decoration: underline; font-weight: 600; }
.hv-kvkk-bar a:hover { opacity: 0.85; }
.hv-kvkk-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 200ms;
}
.hv-kvkk-close:hover { background: rgba(255,255,255,0.35); }

@media (max-width: 640px) {
  .hv-kvkk-bar { font-size: 12px; padding: 8px 12px; gap: 8px; }
}

/* COOKIE CONSENT BANNER (KVKK / GDPR) */
.hv-cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.3);
  z-index: 9999;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 24px;
  animation: slideUp 400ms ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.hv-cookie-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hv-cookie-text { flex: 1; min-width: 240px; }
.hv-cookie-text strong { font-size: 15px; }
.hv-cookie-text p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}
.hv-cookie-text a { color: var(--primary); }
.hv-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hv-cookie-btn {
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.hv-cookie-btn:hover { background: var(--bg-alt); }
.hv-cookie-btn.hv-cookie-accept {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.hv-cookie-btn.hv-cookie-accept:hover { background: var(--primary-dark); }
.hv-cookie-btn.hv-cookie-reject:hover { color: var(--danger); border-color: var(--danger); }

.hv-cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}
.hv-cookie-modal-inner {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.hv-cookie-modal-inner h3 { font-size: 20px; margin-bottom: 8px; }
.hv-cookie-cat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.hv-cookie-cat strong { font-size: 14px; }
.hv-cookie-cat p { font-size: 12px; color: var(--text-light); margin-top: 4px; }

@media (max-width: 640px) {
  .hv-cookie-actions { width: 100%; }
  .hv-cookie-btn { flex: 1; padding: 12px 8px; font-size: 12px; }
}

/* SIDE STICKY BANNERS - Admin'den enjekte edilir */
.hv-side-banner {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  z-index: 40;
  display: none;
}
.hv-side-left { left: 16px; }
.hv-side-right { right: 16px; }
.hv-side-banner img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* Geniş ekranlarda göster (1400px+) */
@media (min-width: 1400px) {
  .hv-side-banner { display: block; }
}

/* Active reklam slotu (admin'den içerik gelince) */
.ad-slot.ad-active {
  background: transparent;
  border: none;
  padding: 0;
  min-height: 0;
  text-transform: none;
  letter-spacing: normal;
  font-weight: normal;
}

/* PRINT */
@media print {
  .hv-header, .hv-footer, .ad-slot, .tool-sidebar, .btn, .hv-side-banner { display: none; }
  .tool-main { box-shadow: none; border: none; }
}
