/* ===== Loading Screen ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 0.5s ease 1.2s forwards;
}

.loading-logo {
  width: 120px;
  height: 120px;
  animation: pulse 1s ease-in-out infinite;
}

.loading-logo img {
  width: 100%;
  filter: drop-shadow(0 0 30px var(--accent-glow));
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin-top: 30px;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #2F5BFF, #ff3333);
  animation: loadProgress 1.2s ease forwards;
}

.loading-text {
  margin-top: 20px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

@keyframes loadProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes fadeOut {
  to { opacity: 0; pointer-events: none; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

:root {
  --bg: #0c1220;
  --bg-gradient: linear-gradient(180deg, #0c1220 0%, #131d33 100%);
  --card: #111b2e;
  --card-hover: #162040;
  --border: rgba(59, 130, 246, 0.15);
  --text: #c8d6e5;
  --text-secondary: rgba(200, 214, 229, 0.7);
  --primary: #3b82f6;
  --primary-deep: #2563c5;
  --primary-glow: 0 0 20px rgba(59, 130, 246, 0.6);
  --success: #22c55e;
  --lightning: #e63946;
  --shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  --shadow-hover: 0 6px 30px rgba(59, 130, 246, 0.5);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

#lightning-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Nav */
header { position: sticky; top: 0; z-index: 60; }
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(12, 18, 32, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo { text-decoration: none; display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.25rem; color: var(--primary); text-shadow: var(--primary-glow); }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a { padding: 0.5rem 0.75rem; border-radius: 0.5rem; text-decoration: none; color: var(--text-secondary); font-size: 0.875rem; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(59, 130, 246, 0.15); }
.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; width: 28px; z-index: 70; }
.burger span { height: 3px; width: 100%; background: var(--text); border-radius: 2px; transition: all 0.3s; }

@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(12, 18, 32, 0.95); backdrop-filter: blur(20px); padding: 1.5rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
}

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; position: relative; z-index: 10; }

/* Sections */
section { margin-bottom: 4rem; }
.hero-section { text-align: center; border: 1px solid var(--border); border-radius: 1rem; padding: 3rem 2rem; position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(59, 130, 246, 0.03), transparent); }
.hero-section h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; color: var(--primary); text-shadow: var(--primary-glow); margin-bottom: 1rem; }
.hero-sub { color: var(--text-secondary); font-size: 1.125rem; max-width: 40rem; margin: 0 auto 2rem; line-height: 1.7; }
.text-secondary { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; }
.section-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 2rem; }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; font-weight: 600; padding: 0.875rem 1.75rem; border-radius: 0.75rem; text-decoration: none; box-shadow: var(--shadow); transition: all 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { display: inline-flex; align-items: center; border: 2px solid var(--primary); color: var(--primary); font-weight: 600; padding: 0.875rem 1.75rem; border-radius: 0.75rem; text-decoration: none; transition: all 0.2s; }
.btn-outline:hover { background: rgba(59, 130, 246, 0.1); }
.btn-green { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(34, 197, 94, 0.2); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.3); font-weight: 600; padding: 0.875rem 1.75rem; border-radius: 0.75rem; text-decoration: none; transition: all 0.2s; }
.btn-green:hover { background: rgba(34, 197, 94, 0.3); }
.full { width: 100%; justify-content: center; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  padding: 1.5rem; transition: all 0.3s; position: relative; overflow: hidden;
}
.card:hover { background: var(--card-hover); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.card h3 { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1rem; }
.card a { color: var(--primary); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.card a:hover { text-decoration: underline; }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* Pricing */
.pricing .price { color: var(--primary); font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.pricing.highlight { border-color: var(--primary); box-shadow: var(--shadow); }
.highlight-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); }

/* Check list */
.check-list { list-style: none; margin-bottom: 1.5rem; }
.check-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); padding: 0.25rem 0; }

/* Mini cards */
.mini-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem; }
.mini-card h4 { font-weight: 600; margin-bottom: 0.25rem; }
.mini-card p { color: var(--text-secondary); font-size: 0.875rem; margin: 0; }
.mini-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* Support & Donate */
.support-box { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; position: relative; overflow: hidden; }
.support-box > p { color: var(--text-secondary); font-size: 1.125rem; line-height: 1.7; margin-bottom: 2rem; }
.support-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.support-header h2 { font-size: 1.5rem; font-weight: 700; }
.icon-box { width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.icon-box.blue { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); }

.donate-box { display: flex; align-items: flex-start; gap: 1rem; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.2); border-radius: 0.75rem; padding: 1.5rem; margin-top: 2rem; }
.donate-box h4 { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.25rem; }
.donate-box p { color: var(--text-secondary); line-height: 1.7; margin: 0; }
.donate-icon { font-size: 2rem; flex-shrink: 0; margin-top: 0.25rem; }

.donate-box-large { background: rgba(34, 197, 94, 0.05); border: 2px solid rgba(34, 197, 94, 0.3); border-radius: 1rem; padding: 2.5rem; }
.donate-box-large h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.donate-box-large .donate-sub { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 1.5rem; }
.donate-box-large > p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; }
.donate-icon-large { font-size: 2.5rem; margin-bottom: 1rem; }

/* Reviews */
.review .quote { color: rgba(59, 130, 246, 0.3); font-size: 2.5rem; line-height: 1; margin-bottom: 0.5rem; }
.stars { color: #eab308; font-size: 0.875rem; margin-bottom: 0.5rem; }
.review-footer { display: flex; justify-content: space-between; align-items: center; }
.review-footer .name { font-weight: 600; font-size: 0.875rem; }
.review-footer .loc { color: var(--text-secondary); font-size: 0.75rem; }

/* FAQ */
.faq-list { max-width: 40rem; margin: 0 auto; }
.faq { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; margin-bottom: 0.75rem; }
.faq summary { padding: 1rem 1.5rem; cursor: pointer; font-weight: 500; font-size: 0.875rem; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: color 0.2s; }
.faq summary:hover { color: var(--primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq-arrow { color: var(--text-secondary); font-size: 0.75rem; transition: transform 0.2s; }
.faq[open] .faq-arrow { transform: rotate(180deg); }
.faq p { padding: 0 1.5rem 1rem; color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem; text-align: center; position: relative; z-index: 10; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
footer p { color: var(--text-secondary); font-size: 0.75rem; }



html[data-theme="light"] {
  --bg: #f3f6fb;
  --bg-gradient: linear-gradient(180deg, #f3f6fb 0%, #dfe8f7 100%);
  --card: rgba(255,255,255,0.92);
  --card-hover: #ffffff;
  --border: rgba(37,99,197,0.18);
  --text: #10213b;
  --text-secondary: rgba(16,33,59,0.72);
  --primary: #3b82f6;
  --primary-deep: #2563c5;
  --primary-glow: 0 0 20px rgba(59, 130, 246, 0.25);
  --shadow: 0 10px 30px rgba(16,33,59,0.10);
  --shadow-hover: 0 12px 36px rgba(16,33,59,0.15);
}
html[data-theme="light"] nav {
  background: rgba(255,255,255,0.82);
}
html[data-theme="light"] .nav-links {
  background: rgba(255,255,255,0.96);
}
html[data-theme="light"] .hero-section,
html[data-theme="light"] .card,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .price-card,
html[data-theme="light"] .pricing-card {
  background: rgba(255,255,255,0.82);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.85rem;
}
.square-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}
.square-btn:hover,
.square-btn.active {
  background: rgba(59,130,246,0.16);
  color: var(--text);
  border-color: rgba(59,130,246,0.35);
  transform: translateY(-1px);
}
.theme-btn {
  position: relative;
  overflow: hidden;
}
.theme-btn .theme-icon {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
html[data-theme="dark"] .theme-icon-light { opacity: 0; transform: scale(0.85); }
html[data-theme="dark"] .theme-icon-dark { opacity: 1; transform: scale(1); }
html[data-theme="light"] .theme-icon-dark { opacity: 0; transform: scale(0.85); }
html[data-theme="light"] .theme-icon-light { opacity: 1; transform: scale(1); }

.kontakt-form {
  margin-top: 1.25rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}
.form-group {
  margin-bottom: 1rem;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  font: inherit;
  outline: none;
}
html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select,
html[data-theme="light"] .form-group textarea {
  background: rgba(16,33,59,0.03);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.submit-btn,
.btn-primary,
a.btn-primary,
button.btn-primary {
  color: #ffffff !important;
}
.submit-btn {
  min-width: 220px;
  display: inline-flex;
  justify-content: center;
}
.form-status {
  margin-top: 0.9rem;
  min-height: 1.35rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.form-status.success { color: #22c55e; }
.form-status.error { color: #ff7b7b; }
.form-status.loading { color: var(--text-secondary); }

@media (max-width: 960px) {
  nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .nav-actions {
    margin-left: auto;
  }
}
@media (max-width: 768px) {
  .nav-actions {
    order: 3;
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .square-btn {
    width: 36px;
    height: 36px;
  }
}



/* ===== Premium logo integration + readability fixes ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("logo.png") center center / min(60vmin, 540px) no-repeat;
  opacity: 0.5;
  filter: blur(2px) drop-shadow(0 0 20px rgba(230, 57, 70, 0.18));
  pointer-events: none;
  z-index: 0;
}
html[data-theme="light"] body::before {
  opacity: 0.025;
  filter: blur(1.5px) drop-shadow(0 0 14px rgba(230, 57, 70, 0.10));
}

.logo {
  gap: 0.7rem;
  color: var(--primary);
  text-shadow: var(--primary-glow);
}
.logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 12px rgba(230, 57, 70, 0.28));
}
.logo span {
  letter-spacing: 0.01em;
}

.hero-section,
.card,
.faq,
.support-box,
.mini-card,
.price-card,
.pricing-card,
.form-card,
.donate-box,
.value-card,
.info-box,
.service-box {
  position: relative;
  overflow: hidden;
}

.hero-section::before,
.card::before,
.faq::before,
.support-box::before,
.mini-card::before,
.price-card::before,
.pricing-card::before,
.form-card::before,
.donate-box::before,
.value-card::before,
.info-box::before,
.service-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(230,57,70,0.12), rgba(230,57,70,0.95), rgba(230,57,70,0.12));
  box-shadow: 0 0 14px rgba(230,57,70,0.25);
  pointer-events: none;
opacity: 0; transform: scaleX(0.35); transform-origin: center; transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;}

.form-group label {
  color: var(--text);
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(200,214,229,0.62);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

html[data-theme="dark"] .form-group select {
  background-color: rgba(11,18,31,0.95);
  color: #f8fbff;
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select,
html[data-theme="light"] .form-group textarea {
  background: rgba(255,255,255,0.96);
  color: #10213b;
  border-color: rgba(16,33,59,0.12);
}

.form-group option {
  background: #ffffff;
  color: #111827;
}

.form-group textarea,
.form-group input,
.form-group select {
  line-height: 1.45;
}

.submit-btn,
.btn-primary,
a.btn-primary,
button.btn-primary {
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.18);
}

.contact-form-card,
.form-card {
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .logo img {
    width: 34px;
    height: 34px;
  }
  .logo span {
    font-size: 1rem;
  }
  .hero-section::before,
  .card::before,
  .faq::before,
  .support-box::before,
  .mini-card::before,
  .price-card::before,
  .pricing-card::before,
  .form-card::before,
  .donate-box::before,
  .value-card::before,
  .info-box::before,
  .service-box::before {
    left: 0.75rem;
    right: 0.75rem;
  }
}



/* ===== Final merged polish ===== */

/* Better readability */
.container {
  background: rgba(7, 18, 38, 0.88);
  backdrop-filter: blur(12px);
  border-radius: 20px;
}

/* Logo in navbar */
.logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.35));
}

/* Red top line only on hover/focus for all key boxes */
.hero-section:hover::before,
.card:hover::before,
.faq:hover::before,
.support-box:hover::before,
.mini-card:hover::before,
.price-card:hover::before,
.pricing-card:hover::before,
.form-card:hover::before,
.donate-box:hover::before,
.value-card:hover::before,
.info-box:hover::before,
.service-box:hover::before,
.hero-section:focus-within::before,
.card:focus-within::before,
.faq:focus-within::before,
.support-box:focus-within::before,
.mini-card:focus-within::before,
.price-card:focus-within::before,
.pricing-card:focus-within::before,
.form-card:focus-within::before,
.donate-box:focus-within::before,
.value-card:focus-within::before,
.info-box:focus-within::before,
.service-box:focus-within::before {
  opacity: 1;
  transform: scaleX(1);
  box-shadow: 0 0 16px rgba(230,57,70,0.32);
}

/* Form fields with hover/focus red top line */
.form-group input,
.form-group select,
.form-group textarea {
  border-top: 2px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-top-color 0.25s ease;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-top-color: #e63946;
  box-shadow: 0 -2px 10px rgba(230, 57, 70, 0.22), 0 0 0 3px rgba(59,130,246,0.10);
  outline: none;
}

/* Better select readability */
.form-group select {
  background-color: rgba(11,18,31,0.95);
}
html[data-theme="light"] .form-group select {
  background-color: rgba(255,255,255,0.96);
}

/* Keep nav compact */
nav {
  padding: 0.5rem 1rem;
}
.nav-links a {
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
}
.square-btn {
  width: 36px;
  height: 36px;
}


/* Payment methods reuse existing design without changing visual language */
.payment-methods { align-items: stretch; }
.payment-methods .mini-card { height: 100%; }
